SparkFun RedBot Mainboard Pinout

ATmega328P robot controller with a two-channel TB6612FNG motor driver. The sensor headers supply regulated 5 V. Servo POW uses switched battery voltage.

Jump to pin index ↓

Main pinout

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show alternate functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

74 visible
PinMCU pinTypesNotes
ADCA0 at ATmega328P U1.23 (PC0). Analog input and D14. With S3 in SW SERIAL, this is ATmega TX to XBee DIN through R4 (1 kΩ).
ADCA1 at ATmega328P U1.24 (PC1). Analog input and D15. With S3 in SW SERIAL, this is ATmega RX from XBee DOUT.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
PWMD3 at ATmega328P U1.1 (PD3). Timer 2 channel B PWM or external interrupt INT1.
PWMD9 at ATmega328P U1.13 (PB1). Timer 1 channel A PWM. SparkFun's RedBot Buzzer uses this servo position.
PowerSwitched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V.
PowerSwitched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
PWMD10 at ATmega328P U1.14 (PB2). Timer 1 channel B PWM or AVR hardware SPI SS.
PWMD11 at ATmega328P U1.15 (PB3). Timer 2 channel A PWM or SPI MOSI. JP5.4 shares this net.
PowerSwitched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V.
PowerSwitched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
I2CA4 at ATmega328P U1.27 (PC4). Analog input and D18. I²C data when using the TWI peripheral.
I2CA5 at ATmega328P U1.28 (PC5). Analog input and D19. I²C clock when using the TWI peripheral.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
ADCA2 at ATmega328P U1.25 (PC2). Analog input and D16. PCINT10 can detect digital changes.
ADCA3 at ATmega328P U1.26 (PC3). Analog input and D17. PCINT11 can detect digital changes.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
ADCA6 at ATmega328P U1.19 (ADC6). Analog input only on the ATmega328P TQFP-32.
ADCA7 at ATmega328P U1.22 (ADC7). Analog input only on the ATmega328P TQFP-32.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
PowerRegulated logic supply shared by the sensor ports and outer power breakouts.
GNDCommon logic and battery return.
GNDCommon logic and battery return.
Power6–9 V DC battery positive. This input shares the center-positive barrel jack and feeds the motor VM rail directly.
MotorLeft channel A, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorLeft channel A, output 2. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorLeft channel A, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorRight channel B, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorRight channel B, output 2. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorRight channel B, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs.
MotorThrough-hole test and wiring position for left channel a, output 2.
MotorThrough-hole test and wiring position for left channel a, output 1.
MotorThrough-hole test and wiring position for right channel b, output 2.
MotorThrough-hole test and wiring position for right channel b, output 1.
GNDCommon logic and battery return.
SPIU1.15. This shares the JP9 D11 servo signal.
PowerRegulated VCC and programmer voltage reference.
ControlU1.29. Active-low reset, shared with the reset button and USB auto-reset.
SPIU1.17. The D13 LED is driven through R7 from this net.
SPIU1.16. The D12 user button S5 pulls this net low when pressed.

Specifications

Controller
ATmega328P TQFP-32, 16 MHz, 5 V logic, Uno Optiboot.
Power input
6–9 V DC at JP16 or the center-positive 5.5 × 2.1 mm barrel jack.
Sensor headers
A0–A5 support ADC and GPIO. A4/A5 carry I²C. A6/A7 are analog inputs only.
Servo headers
D3, D9, D10 and D11. POW is switched and fused battery voltage, shared across both headers.
Motor outputs
Two TB6612FNG H-bridges. Each three-way socket repeats OUT1 on both outside contacts and uses OUT2 on the center contact.
Programming and radio
Mini-B USB via FT232RL, six AVR ICSP pads and a 3.3 V XBee socket with HW/SW serial selection.
PCB outline
93.98 × 49.53 mm in EAGLE, excluding the protruding connectors.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
RedBot MainboardGetting Started guideSparkFunOnboard features and motor-control assignments.Datasheet
RedBot Mainboard v14SchematicSparkFunv14 connection and circuit reference.Datasheet
RedBot Mainboard v14EAGLE board and schematicSparkFunPad order, wiring and board layout.Datasheet
ATmega328PPin multiplexing and ADCMicrochipATmega328P TQFP-32 pin functions.Datasheet
TB6612FNGH-bridge outputs and truth tableToshibaDriver channels, supply and logic.Datasheet
FT232RLUSB-to-UART interfaceFTDIUSB Mini-B programming interface.Datasheet

Board notes

Motor control signals
Left AIN1/D2, AIN2/D4, PWMA/D5. Right BIN1/D7, BIN2/D8, PWMB/D6. S2 controls driver standby when S1 is on.
Motor wire colors
RED and BLACK identify H-bridge outputs. The driver reverses their polarity. The Shadow Chassis guide crosses the wire colors at the right motor.
XBee socket
MOD1.1 is 3.3 V, .2 is module DOUT, .3 is module DIN via R4, .10 is GND and .17 is DIO3 on the USB auto-reset gate. S3 selects D0/D1 or A1/A0 for MCU RX/TX.
USB power
USB can supply logic via D2 and U3. It does not feed the battery rail used by the motor driver and servo POW.