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 ...

Get Make an Arduino-Controlled Robot now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.