74
Figure 7.9
3.
Connect the four (4) 20cm ultrasonic wires to the following:
a.
VCC – Red to breadboard positive 5V (use the jumper wires you have already set up so
that the VCC lead connects to the breadboard)
b.
Trig – Yellow to Pin 2
c.
Echo – Green to Pin 4
d.
GND – Black to breadboard GND (use the jumper wires you have already set up so that
the GND lead connects to the breadboard)
Wiring the LEDs
4.
Now you will need to wires your LEDs. As discussed in the Introduction to Electronics and Basic
Hardware Programming chapters, an LED requires a resistor to drop the voltage. Figure 7.10
shows the two (2) 330
Ω
resistors that you will need.
Figure 7.10
Black – GND Jumper Red – 5V Jumper
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 ...