Sei sulla pagina 1di 10

ProductUsersManualHCSR04UltrasonicSensor

User'sManual

V1.0



ProductUsersManualHCSR04UltrasonicSensor

Index

1. Introduction 3

2. PackingList 4

3. ProductLayout 5

4. ProductSpecificationandLimitation 6

5. Operation 7

6. HardwareInterface 8

7. ExampleCode 9

8. Warranty 10




ProductUsersManualHCSR04UltrasonicSensor

1.0INTRODUCTION

The
HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like bats or
dolphins do. It offers excellent non-contact range detection with high accuracy and stable
readings in an easy-to-use package. From 2cm to 400 cm or 1 to 13 feet.Itoperationisnot
affected by sunlight or black material like Sharp rangefinders are (although acousticallysoft
materials like cloth can be difficult to detect). It comes complete with ultrasonic transmitter
andreceivermodule.

Features:
PowerSupply:+5VDC
QuiescentCurrent:<2mA
WorkingCurrnt:15mA
EffectualAngle:<15
RangingDistance:2cm400cm/1"13ft
Resolution:0.3cm
MeasuringAngle:30degree
TriggerInputPulsewidth:10uS
Dimension:45mmx20mmx15mm



3




ProductUsersManualHCSR04UltrasonicSensor

2.0PACKINGLIST





1. 1x
HCSR04module

















4




ProductUsersManualHCSR04UltrasonicSensor

3.0PRODUCTLAYOUT



VCC=+5VDC
Trig=TriggerinputofSensor
Echo=EchooutputofSensor
GND=GND

5


R


ProductUsersManualHCSR04UltrasonicSensor

4.0PRODUCTSPECIFICATIONANDLIMITATIONS

Parameter Min Typ. Max Unit

OperatingVoltage 4.50 5.0 5.5 V

QuiescentCurrent 1.5 2 2.5 mA

WorkingCurrent 10 15 20 mA

UltrasonicFrequency 40 kHz

6




ProductUsersManualHCSR04UltrasonicSensor

5.0OPERATION

The timing diagram of HC-SR04 isshown.Tostartmeasurement,Trigof SR04mustreceive
a pulse of high (5V) for at least 10us, this will initiate the sensor willtransmitout8cycleof
ultrasonicburstat40kHzandwaitforthereflectedultrasonicburst.When thesensordetected
ultrasonic from receiver, it will set the Echo pin to high (5V) and delay for a period(width)
whichproportiontodistance.Toobtainthedistance,measurethewidth(Ton)ofEchopin.

Time=WidthofEchopulse,inuS(microsecond)
Distanceincentimeters=Time/58
Distanceininches=Time/148
Oryoucanutilizethespeedofsound,whichis340m/s







Note:
PleaseconnecttheGNDpinfirstbeforesupplyingpowertoVCC.
Please make sure the surface of object to be detect should have at least 0.5 meter
2


forbetterperformance.







7




ProductUsersManualHCSR04UltrasonicSensor

6.0HARDWAREINTERFACE

HereisexampleconnectionforUltrasonicRangingmoduletoArduinoUNOboard. Itcanbe
SK40C
interfacewithanymicrocontrollerwithdigitalinputsuchasPIC, SK28A
, SKds40A
, ,
Arduinoseries.

8




ProductUsersManualHCSR04UltrasonicSensor

7.0EXAMPLECODE

Thisis UltrasonicRangingmodule.
examplecode Pleasedownloadthecompletecodeatthe
productpage.

9



ProductUsersManualHCSR04UltrasonicSensor


8.0WARRANTY

Productwarrantyisvalidfor6months.
Warrantyonlyappliestomanufacturingdefect.
Damagedcausedbymissuseisnotcoveredunderwarranty
Warrantydoesnotcoverfreightcostforbothways.




























10

Potrebbero piacerti anche