Chapter 6. Testing the Robot's Basic Functions
In this chapter, you will upload a test sketch to the robot that will verify that your robot is working correctly.
Hardware Required
The assembled robot chassis.
Motors connected to shield (see Figure 3-25 for 2WD or Figure 4-26 for 4WD).
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-1 shows the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access