User Manual

Pin Assignment Table Sorted by Function
Function Arduino Pin mega168 Pin
digital I/Os (x16)
digital pins 0 – 2, 4, 7 – 10, 12, 13
analog inputs 0 – 5
PD0 – PD2, PD4, PD7,
PB0 – PB2, PB4, PB5,
PC0 – PC5
analog inputs (x8) analog inputs 0 – 7 PC0 – PC5, ADC6, ADC7
motor 1 control (A and B) digital pins 5 and 6 PD5 and PD6
motor 2 control (A and B) digital pins 3 and 11 PD3 and PB3
red user LED digital pin 1 PD1
user trimmer potentiometer analog input 7 ADC7
ICSP programming lines (x3) digital pins 11, 12, and 13 PB3, PB4, PB5
RESET reset PC6
UART (RX and TX) digital pins 0 and 1 PD0 and PD1
I2C/TWI (SDA and SCL) analog inputs 4 and 5 PC4 and PC5
SPI inaccessable to user
Timer1 PWM outputs (A and B) digital pins 9 and 10 PB1 and PB2
Programming Orangutans and the 3pi Robot from the Arduino
Environment
© 2001–2019 Pololu
Corporation
2. ATmega168/328-Arduino Pin Mapping Page 12 of 66