Learn

Uno R4 Minima pinout: the Uno layout, pin by pin

Start building free

Or see every lesson.

  • 526parts on the bench
  • 46boards running now
  • 1.00xreal time, on every board
Uno R4 Minima: a knob fades an LEDlive0.000 s 0.00x
Click to open it in the editor
A potentiometer on an Uno R4’s A0 fades an LED on pin 9, and the monitor prints the same pin in ten bits and in the converter’s own fourteen.

This page lists the pins of the Arduino Uno R4 Minima in Mokxi. It is the board people buy now: the same shape and the same 5 V pins as an Uno R3, but with a Renesas RA4M1 Arm Cortex-M4 chip running at 48 MHz underneath, instead of the older 8-bit AVR. The Minima is the one with the USB-C socket and no WiFi. Here you find where each pin is and what it does.

In Mokxi the pin names follow the silkscreen, counted the way the board prints them. Pins 0 to 13 run along the digital header, and A0 to A5 run along the bottom. The A pins are also digital pins 14 to 19, so you can use either name in a sketch. The built-in LED sits on pin 13, and SDA and SCL beside AREF are just A4 and A5 again.

Every pin on the board

The table has one row for each of the 31 holes of the Uno R4 Minima in Mokxi, in the order of the part's pin list, which follows the board's headers. A row that says "Not a GPIO" is a supply, a ground or a control pin, and a sketch cannot drive it.

Every row below is worked out from the same board model the simulator runs: the pin list, the Circuit Doctor's pin data and the default bus pins.

Uno R4 Minima: every hole in Mokxi's pin list
PinSketch nameWhat it can doWatch out for
SCLA5Digital in and out. Analog in. I2C SCL (default).The same trace as A5: one trace, two holes.
SDAA4Digital in and out. Analog in. I2C SDA (default).The same trace as A4: one trace, two holes.
AREF-The board's AREF pin.Not a GPIO.
GND-Ground.-
1313Digital in and out. SPI SCK (default). The on-board LED is on this pin.-
1212Digital in and out. SPI MISO (default).-
1111Digital in and out. PWM. SPI MOSI (default).-
1010Digital in and out. PWM. SPI SS (default).-
99Digital in and out. PWM.-
88Digital in and out.-
77Digital in and out.-
66Digital in and out. PWM.-
55Digital in and out. PWM.-
44Digital in and out.-
33Digital in and out. PWM.-
22Digital in and out.-
11Digital in and out. Serial1 TX.-
00Digital in and out. Serial1 RX.-
IOREF-The board's IOREF pin.Not a GPIO.
RESET-The board's RESET pin.Not a GPIO.
3V3-A 3.3 V power pin: 3V3.Not a GPIO.
5V-A 5 V power pin: 5V.Not a GPIO.
GND-Ground.-
GND-Ground.-
VIN-A power input pin: VIN.Not a GPIO.
A0A0Digital in and out. Analog in.-
A1A1Digital in and out. Analog in.-
A2A2Digital in and out. Analog in.-
A3A3Digital in and out. Analog in.-
A4A4Digital in and out. Analog in. I2C SDA (default).-
A5A5Digital in and out. Analog in. I2C SCL (default).-

How to read the table

The Pin column is what is printed on the board, and the Sketch name column is what a sketch writes. The pins are the Uno ones: 0 to 13 along the digital header and A0 to A5 along the bottom, which are also digital pins 14 to 19. SDA and SCL beside AREF are the same traces as A4 and A5, so each has two holes.

A hole that has no sketch name is a supply, a ground or a control pin. It is listed so the table matches the board, hole for hole.

Power and ground pins

The Uno R4 Minima has 3 ground holes in its pin list. Its 5 V pins are 5V. Its 3.3 V pins are 3V3. Its power input pins are VIN. Pins named for a job, not for a GPIO, are AREF, IOREF and RESET. A sketch cannot drive any of these with digitalWrite.

PWM and analog pins

These pins can drive PWM with analogWrite: 11, 10, 9, 6, 5 and 3.

These pins can read an analog voltage with analogRead: A5, A4, A0, A1, A2 and A3. The pins run at 5 V.

The default I2C and SPI pins

Wire uses SDA on A4 and SCL on A5.

SPI uses SCK on 13, MISO on 12, MOSI on 11 and SS on 10.

Which pin should I use for what?

For an LED, a buzzer or a switch, any GPIO row in the table will do. For dimming, pick a PWM pin: 11, 10, 9, 6, 5 and 3. For a potentiometer or an analog sensor, use A5, A4, A0, A1, A2 and A3. For an I2C module, wire SDA to A4 and SCL to A5. For an SPI module, wire SCK to 13, MISO to 12 and MOSI to 11, and use 10 for SS. The pins run at 5 V logic.

PWM and the tilde pins

Six pins do hardware PWM with analogWrite, at 490 Hz. They are 3, 5, 6, 9, 10 and 11, the six with a tilde on the silkscreen. These are the same six PWM pins as an Uno, so an old sketch moves across without changes.

Use analogWrite(pin, value) as usual. Value goes from 0 to 255, and the pin outputs a pulse train at 490 Hz. The other digital pins do not do PWM, so pick one of the six.

The LED on pin 13

The built-in LED is on pin 13, wired to the header. It is active high: digitalWrite(LED_BUILTIN, HIGH) lights it, and LOW turns it off. That matches an Uno, so Blink works unchanged.

LED_BUILTIN is just another name for 13. You can use either in your sketch. The built-in Blink firmware uses this pin.

Serial and the USB socket

This is the first surprise for someone coming from an Uno R3. There is no second USB chip. Serial is the USB-C socket itself, and Serial1 is the UART on pins 0 and 1, a port of its own.

What you print to Serial appears in the serial monitor. What you print to Serial1 also appears in the monitor, and it comes out of pin 1 as bits as well, so a scope or a second board wired to that pin sees it.

Analog pins and pull-ups

The A0 to A5 pins are also digital pins 14 to 19. analogRead returns ten bits, 0 to 1023, so an Uno sketch behaves the same way. Call analogReadResolution(14) and you get all fourteen bits. Full scale is the 5 V rail, not 3.3 V.

There is no INPUT_PULLDOWN on this chip. An RA4M1 pin has a pull-up and nothing else. Asking for a pull-down gets a plain floating input, and the runtime says so rather than pretending.

Open this circuit in the editor. Uno R4 Minima: a knob fades an LED, wired as it runs at the top of this page. Change a part or a value and run it again.

Questions

What are the Uno R4 Minima I2C pins?

SDA is A4 and SCL is A5.

What are the Uno R4 Minima SPI pins?

SCK is 13, MISO is 12, MOSI is 11 and SS is 10.

What voltage do the pins use?

Full scale is the 5 V rail, not 3.3 V. The board is a 5 V board like the Uno before it.

Which pins do pwm?

Pins `3`, `5`, `6`, `9`, `10` and `11` do hardware PWM at 490 Hz. They are the six with a tilde on the silkscreen.

Where is the built-in led?

The built-in LED is on pin `13` and it is active high. `digitalWrite(LED_BUILTIN, HIGH)` lights it, as on an Uno.

Is serial on pins 0 and 1?

No. `Serial` is the USB socket. `Serial1` is the UART on pins `0` and `1`, a port of its own.

Can i use a pull-down resistor inside the chip?

No. There is no `INPUT_PULLDOWN` on this chip. A pin has a pull-up and nothing else, and asking for a pull-down gives a plain floating input.

Build this for real

Open the editor, change a value and watch the number move with it. Nothing to install, and no account needed.