69
Exercise 1
Using the program provided in figure 2.40, make modifications to control the motors to move the
wheels forward for 5 seconds, stop for 2 seconds, reverse for 3 seconds, and stop indefinitely.
Exercise 2
Add another function called TURN. Have it turn the wheels in opposite directions. This will cause your Pi-
Bot to spin in circles.
Congratulations
! You have successfully tested the motion control capabilities of your Pi-Bot!
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 ...