
57/78
Lesson 6 Ultrasonic Sensor Module
About this lesson:
Ultrasonic sensor is great for all kind of projects that need distance measurements, avoiding obstacles as examples.
The HC-SR04 is inexpensive and easy to use since we will be using a Library specifically designed for these sensor.
Introduction:
Ultrasonic sensor module HC-SR04 provides 2cm-400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The
modules includes ultrasonic transmitters, receiver and control circuit. The basic principle of work:
(1) Using IO trigger for at least 10us high level signal,
(2) The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back.
(3) IF the signal back, through high level , time of high output IO duration is the time from sending ultrasonic tore turning.
Test distance = (high level time × velocity of sound (340m/s) /2
The Timing diagram is shown below. You only need to supply a short 10us pulse to the trigger input to start the ranging, and then the
module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo. The Echo is a distance object that is pulse width and the
Содержание Obstacle Avoidance Smart Car Kit
Страница 1: ...Obstacle Avoidance Smart Car Kit...
Страница 2: ......
Страница 6: ...4 78 Packing list...
Страница 9: ...7 78 Click Windows Installer Click JUST DOWNLOAD...
Страница 11: ...9 78 Click I Agree to see the following interface...
Страница 12: ...10 78 Click Next You can press Browse to choose an installation path or directly type in the directory you want...
Страница 14: ...12 78 Next the following icon appears on the desktop Double click to enter the desired development environment...
Страница 16: ...14 78...
Страница 18: ...16 78 Right click on the device and select the top menu option Update Driver Software...
Страница 26: ...24 78...
Страница 31: ...29 78 Once open you should see something like this...
Страница 36: ...34 78 When the sketch window opens enlarge it so that you can see the entire sketch in the window...
Страница 45: ...43 78 Lesson 4 Installation Method...
Страница 46: ...44 78...
Страница 47: ...45 78...
Страница 48: ...46 78...
Страница 49: ...47 78...
Страница 50: ...48 78...
Страница 51: ...49 78...
Страница 52: ...50 78...
Страница 53: ...51 78...
Страница 54: ...52 78...
Страница 55: ...53 78...
Страница 57: ...55 78 Connection diagram...
Страница 61: ...59 78 Wiring diagram...
Страница 65: ...63 78 Wiring diagram...
Страница 67: ...65 78 Remote control code...
Страница 70: ...68 78 Wiring diagram...
Страница 73: ...71 78 Connection Schematic...
Страница 74: ...72 78 Wiring diagram...
Страница 78: ...76 78 Connection Schematic...
Страница 79: ...77 78 Wiring diagram...