Robot

Overview

Building a basic robot involves assembling various components that allow it to move around on wheels. Essential parts include a chassis, geared motors, wheels, a microcontroller, and motor circuitry. The assembly process typically involves attaching a breadboard and motors, followed by testing the motors using the Johnny-Five library. A robot can be powered using a Tessel board and a USB power bank, enabling wireless operation and untethered task performance.

Figure 6.21. A basic robot needs a chassis (body). Two or more geared motors connect to wheels or tracks to propel the bot. Of course, you’ll also need circuitry, a brain (microcontroller), and a power supply. Figure 6.21. A basic robot needs a chassis (body). Two or more geared motors connect to wheels or tracks to propel the bot. Of course, you’ll also need circuitry, a brain (microcontroller), and a power supply.

Suggested Kits

For constructing a simple roving robot, the Actobotics Peewee Runt Rover kit is recommended. This kit includes a chassis, wheels, gearmotors, and mounts, which are crucial for building a basic robot. Other options, such as SparkFun’s Shadow chassis, are also viable alternatives.

Driving the Robot

To control the robot, a script is provided that allows the use of arrow keys on a keyboard to steer the robot and the spacebar to stop it. This script utilizes the Johnny-Five library for motor control and the keypress module for handling keyboard input.

Powering the Robot

A robot can be made wireless by replacing the microcontroller with a Tessel board and using a USB power bank. This setup allows the robot to operate without being tethered to a power source, providing greater flexibility in its movement and tasks.

Figure 8.18. By replacing the Uno in chapter 6’s roving bot with a Tessel, making a couple of wiring adjustments, and plugging in a USB battery to the Tessel, you can create a wires-free roving bot. Figure 8.18. By replacing the Uno in chapter 6’s roving bot with a Tessel, making a couple of wiring adjustments, and plugging in a USB battery to the Tessel, you can create a wires-free roving bot.

Motor Circuitry

The motor circuitry is crucial for translating the robot's desired movements into actual motor motion. The SN754410 is used for wiring the power connections on the robot's breadboard. The power and enable pins are connected as shown in the motor power wiring diagram, with shared ground rails and isolated power sources for motor and logic power.

Figure 6.30. Wiring the SN754410’s power connections on the robot’s breadboard Figure 6.30. Wiring the SN754410’s power connections on the robot’s breadboard

Assembly

The assembly process involves attaching small plastic nubbins to the bottom plate, which the robot rests on when not moving. Once the motors are confirmed to be functioning correctly, the top and bottom chassis plates can be snapped together.

Figure 6.38. The completed robot, viewed from the front Figure 6.38. The completed robot, viewed from the front