
60/78
Code
Using a Library designed for these sensors will make our code short and simple. We include the library at the beginning of our code,
and then by using simple commands we can control the behavior of the sensor.
After wiring, please open the program in the code folder- Lesson 6 Ultrasonic Sensor Module and click UPLOAD to upload the program.
See Lesson 3 for details about program uploading if there are any errors.
Before you can run this, make sure that you have installed the < HC-SR04> library or re-install it, if necessary. Otherwise, your code
won't work.
For details about loading the library file, see Lesson 2.
Summary of Contents for Obstacle Avoidance Smart Car Kit
Page 1: ...Obstacle Avoidance Smart Car Kit...
Page 2: ......
Page 6: ...4 78 Packing list...
Page 9: ...7 78 Click Windows Installer Click JUST DOWNLOAD...
Page 11: ...9 78 Click I Agree to see the following interface...
Page 16: ...14 78...
Page 18: ...16 78 Right click on the device and select the top menu option Update Driver Software...
Page 26: ...24 78...
Page 31: ...29 78 Once open you should see something like this...
Page 45: ...43 78 Lesson 4 Installation Method...
Page 46: ...44 78...
Page 47: ...45 78...
Page 48: ...46 78...
Page 49: ...47 78...
Page 50: ...48 78...
Page 51: ...49 78...
Page 52: ...50 78...
Page 53: ...51 78...
Page 54: ...52 78...
Page 55: ...53 78...
Page 57: ...55 78 Connection diagram...
Page 61: ...59 78 Wiring diagram...
Page 65: ...63 78 Wiring diagram...
Page 67: ...65 78 Remote control code...
Page 70: ...68 78 Wiring diagram...
Page 73: ...71 78 Connection Schematic...
Page 74: ...72 78 Wiring diagram...
Page 78: ...76 78 Connection Schematic...
Page 79: ...77 78 Wiring diagram...