Download Print this page

Sparkfun Electronics RedBot Getting Started page 4

Advertisement

Motor PWM (Speed) - Pin 6
Here's a quick tour of the hardware that's on the board:
1. Analog/digital headers - These three headers provide one I/O pin, which can be used for
analog input as well as digital input or output, as well as 5V power and ground. In addition, the
header with A4 and A5 can be used for connecting I
designed to solder directly to this header, making connecting an accelerometer a snap.
2. Analog input header - This header provides an additional two analog input pins. These pins
can't be used for digital signals, however.
3. Analog output/digital header - These two headers provide four pins which can be used for
either PWM output or regular digital I/O. Note that the power supply for these headers is
connected directly to the battery, providing extra umph for servo motors, but devices
expecting 5V should not be connected directly to them!
4. Wireless Socket - The RedBot has a socket for an XBee module, providing easy wireless
interfacing.
5. XBee Mode Switch A switch allows you to select whether the XBee communicates via the
standard serial I/O pins (0 and 1, accessible through the built in Serial command set) or via
pins 14 and 15 (A0 and A1), using the SoftwareSerial library. Using the software mode will
consume two of your analog inputs, however.
6. 5V / GND Headers - Headers are available to allow the user to tap off the 5V and ground
signals.
7. Power Switch - A power switch puts the board into a very low power consumption mode
(microamps or less) allowing you to turn the board off without pulling the power connection.
8. Motor Disable Switch - A motor disable switch allows you to turn off the motor driver so you
can program the board without having it drive all over.
9. Motor Headers - Headers are available to easily connect up the right and left side motors.
The motor control is powered by the TB6612FNG Motor Driver.
10. Power Input Header - A header has also been provided to allow you to access the input
supply, either for purposes of driving additional circuitry or to allow more flexibility than the
standard barrel jack does for power sources.
11. DEBUG LED (pin 13) - An LED is connected to pin 13 to allow basic sanity checks that code
is loading and running on the board.
12. Power LED - A power LED will remain lit whenever the power switch is active.
Here's a quick Example program to test your RedBot out with. It spins the left motor forward and
reverse, and the spins both motors forward and reverse.
2
C devices; the RedBot Accelerometer is
Page 4 of 19

Advertisement

loading
Need help?

Need help?

Do you have a question about the RedBot and is the answer not in the manual?

Subscribe to Our Youtube Channel