70
Chapter 7: Distance Sensor
The HC-SR04 ultrasonic sensor uses sonar to determine the distance to an object just like bats and
dolphins. Since they are used to determine distance, ultrasonic sensors are popularly known as distance
sensors. Ultrasonic sensors offer excellent non-contact range detection from 2cm to 400 cm or 1” to 13
feet.
Assembly
1.
Locate the ultrasonic sensor, LED adapters, and ultrasonic mount, as shown in Figure 7.1.
Figure 7.1
2.
LEDs can be attached to the ultrasonic sensor mount using the adapters. You should be able to
gently push the green and red LEDs through the adapters. See Figure 7.2.
Figure 7.2
Summary of Contents for Pi-Bot v2.00
Page 67: ...67 Figure 6 15 ...
Page 78: ...78 UltraSonicSensorTestwithLED Program ...
Page 80: ...80 ObstacleAvoidance Program ...
Page 82: ...82 ObstacleAvoidancewithLED Program ...
Page 83: ...83 ObstacleAvoidancewithLED Program CONTINUED ...
Page 90: ...90 Download and run the following program LineFollowing Program ...
Page 91: ...91 LineFollowing Program CONTINUED ...
Page 94: ...94 AdvancedLineFollowing Program CONTINUED ...
Page 95: ...95 AdvancedLineFollowing Program CONTINUED ...
Page 96: ...96 AdvancedLineFollowing Program CONTINUED ...
Page 110: ...Appendix B Complete Pi Bot Wiring Schematic ...