In this chapter, you will upload a test sketch to the robot that will verify that your robot is working correctly.
The assembled robot chassis.
Example code and libraries installed, see Installing Third-Party Libraries.
5 AA cells inserted into the battery holder (USB does not provide sufficient power to drive the motors).
Reflectance sensors mounted and connected (left sensor to analog input 0, right to analog 1). You can use the stripboard wiring described in Making a Line Sensor Mount. But to run the edge detecting project described in Chapter 9, you need more space between the sensors.
Figure 6-3. Reflectance sensor connections
Although the sketch code used in this chapter is printed in the pages that follow, you will need some libraries that are included in example ...