Main pinout
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
ATmega328P robot controller with a two-channel TB6612FNG motor driver. The sensor headers supply regulated 5 V. Servo POW uses switched battery voltage.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| ADC | A0 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Ω). | |
| ADC | A1 at ATmega328P U1.24 (PC1). Analog input and D15. With S3 in SW SERIAL, this is ATmega RX from XBee DOUT. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| PWM | D3 at ATmega328P U1.1 (PD3). Timer 2 channel B PWM or external interrupt INT1. | |
| PWM | D9 at ATmega328P U1.13 (PB1). Timer 1 channel A PWM. SparkFun's RedBot Buzzer uses this servo position. | |
| Power | Switched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V. | |
| Power | Switched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| PWM | D10 at ATmega328P U1.14 (PB2). Timer 1 channel B PWM or AVR hardware SPI SS. | |
| PWM | D11 at ATmega328P U1.15 (PB3). Timer 2 channel A PWM or SPI MOSI. JP5.4 shares this net. | |
| Power | Switched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V. | |
| Power | Switched battery voltage via Q1 and resettable fuse F1. This rail is not regulated to 5 V. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| I2C | A4 at ATmega328P U1.27 (PC4). Analog input and D18. I²C data when using the TWI peripheral. | |
| I2C | A5 at ATmega328P U1.28 (PC5). Analog input and D19. I²C clock when using the TWI peripheral. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| ADC | A2 at ATmega328P U1.25 (PC2). Analog input and D16. PCINT10 can detect digital changes. | |
| ADC | A3 at ATmega328P U1.26 (PC3). Analog input and D17. PCINT11 can detect digital changes. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| ADC | A6 at ATmega328P U1.19 (ADC6). Analog input only on the ATmega328P TQFP-32. | |
| ADC | A7 at ATmega328P U1.22 (ADC7). Analog input only on the ATmega328P TQFP-32. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| Power | Regulated logic supply shared by the sensor ports and outer power breakouts. | |
| GND | Common logic and battery return. | |
| GND | Common logic and battery return. | |
| Power | 6–9 V DC battery positive. This input shares the center-positive barrel jack and feeds the motor VM rail directly. | |
| Motor | Left channel A, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Left channel A, output 2. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Left channel A, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Right channel B, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Right channel B, output 2. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Right channel B, output 1. The callout points at the socket solder tail. RED and BLACK are reversible outputs. | |
| Motor | Through-hole test and wiring position for left channel a, output 2. | |
| Motor | Through-hole test and wiring position for left channel a, output 1. | |
| Motor | Through-hole test and wiring position for right channel b, output 2. | |
| Motor | Through-hole test and wiring position for right channel b, output 1. | |
| GND | Common logic and battery return. | |
| SPI | U1.15. This shares the JP9 D11 servo signal. | |
| Power | Regulated VCC and programmer voltage reference. | |
| Control | U1.29. Active-low reset, shared with the reset button and USB auto-reset. | |
| SPI | U1.17. The D13 LED is driven through R7 from this net. | |
| SPI | U1.16. The D12 user button S5 pulls this net low when pressed. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
RedBot Mainboard | Getting Started guide | SparkFun | Onboard features and motor-control assignments. | Datasheet |
RedBot Mainboard v14 | Schematic | SparkFun | v14 connection and circuit reference. | Datasheet |
RedBot Mainboard v14 | EAGLE board and schematic | SparkFun | Pad order, wiring and board layout. | Datasheet |
ATmega328P | Pin multiplexing and ADC | Microchip | ATmega328P TQFP-32 pin functions. | Datasheet |
TB6612FNG | H-bridge outputs and truth table | Toshiba | Driver channels, supply and logic. | Datasheet |
FT232RL | USB-to-UART interface | FTDI | USB Mini-B programming interface. | Datasheet |