Skip to content

Arduino Uno Mega 16u2 Pinout

Nico edited this page Jan 29, 2019 · 4 revisions

Arduino Uno Pinout (c) pighixxx

Note: Some pins are not connected on a standard Arduino Uno R3 but still listed so you can use them if you had a custom board. It might also be possible that your ISP header of the 16u2 is flipped 180 degrees on some unofficial boards. You also need to solder the additional 4 pin header to access all 7 PB i/o pins. D7 has PWM! (other not connected pins with a timer as well). The 16u2 pinout is the same for Arduino Uno/Mega.

Keep in mind that the Leds have inverted logic. Writing LOW means turn them on.

16u2 Pinout
[NC] = Not connected on an Arduino Uno/Mega R3

D0  - [NC] PB0 PCINT0 SS
D1  - PB1 PCINT1 SCLK
D2  - PB2 PCINT2 MOSI
D3  - PB3 PCINT3 MISO
D4  - PB4 PCINT4
D5  - PB5 PCINT5
D6  - PB6 PCINT6
~D7 - PB7 PCINT7 TIMER1C PWM

D8  - [NC] PC7 INT4
D9  - [NC] PC6 PCINT8 TIMER1A
D10 - [NC] PC5 PCINT9 TIMER1B
D11 - [NC] PC4 PCINT10
D12 - [NC] PC2 PCINT11

D13 - [NC] PD0 INT0 TIMER0B
D14 - [NC] PD1 INT1 
D15 - PD2 INT2 USART1 RX
D16 - PD3 INT3 USART1 TX
D17 - PD4 INT5    RXLED
D18 - PD5 PCINT12 TXLED
D19 - [NC] PD6 INT6 
D20 - PD7 INT7 328/2560 RESET