87
5.
Connect the wires as follows:
a.
Power (Red) – to STEM Board 5V or 5V on breadboard
b.
L (Yellow) – to STEM Board Pin 7
c.
C (Green) – to STEM Board Pin 8
d.
R (Blue) – to STEM Board Pin 10
e.
GND (Black) – to STEM Board GND or GND on Breadboard
Complete Pi-Bot Wiring Schematic
6.
Figure 8.4 shows the wiring diagram of the line sensor array.
a.
The diagram also shows connections for the ultrasonic sensor, motors, and LEDs.
Figure 8.4
7.
Once you have completed the wiring, download the program
LineFollowingSensorTest
from
http://www.stemcenterusa.com/pi-bot/downloads-/
8.
Open the serial monitor and run the program. Each of the line sensor outputs will be displayed.
You will see three columns, one for each line sensor.
0 indicates White
1 indicates Black
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 ...