Source: https://mokxi.com/learn/nucleo-f411re-pinout
Updated: 2026-11-20

Learn

# Nucleo F411RE pinout: the Arduino headers and the morpho pins

Beginner

Written by the Mokxi team, updated November 20, 2026

Start building free Open the editor

Or see every lesson.

- 526 parts on the bench
- 46 boards running now
- 1.00x real time, on every board

Click to open it in the editor

The green LD2 on D13 and an LED beside the board, both lit when the pin is HIGH, as on an Uno.

This page lists the pins of the STM32 Nucleo-F411RE in Mokxi. It is ST's Nucleo-64 board with an STM32F411 running at 100 MHz. The board has Arduino Uno headers, morpho headers along the edges, an ADC, and Serial over the ST-LINK. Here you can see which pins carry PWM, analog input, I2C and SPI, and which pins light the LED.

The board has two kinds of header. The Arduino Uno headers are inside, and the ST morpho headers CN7 and CN10 run down the edges. A pad on both headers is one piece of metal, so it is one pin, named for the Arduino header. The morpho's PA5 is D13. A diagram written with port names still wires to the right pin.

## Every pin on the board

The table has one row for each of the 63 holes of the Nucleo F411RE 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.

Nucleo F411RE: every hole in Mokxi's pin list
Pin | Sketch name | What it can do | Watch out for

IOREF | - | The board's IOREF pin. | Not a GPIO.

NRST | - | The board's NRST 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.

A0 | A0 | Digital in and out. Analog in. PWM. | 3.3 V logic.

A1 | A1 | Digital in and out. Analog in. PWM. | 3.3 V logic.

A2 | A2 | Digital in and out. Analog in. | 3.3 V logic.

A3 | A3 | Digital in and out. Analog in. PWM. | 3.3 V logic.

A4 | A4 | Digital in and out. Analog in. | 3.3 V logic.

A5 | A5 | Digital in and out. Analog in. | 3.3 V logic.

D15 | D15 | Digital in and out. PWM. I2C SCL (default). | 3.3 V logic.

D14 | D14 | Digital in and out. PWM. I2C SDA (default). | 3.3 V logic.

AVDD | - | A 3.3 V power pin: AVDD. | Not a GPIO.

GND | - | Ground. | -

D13 | D13 | Digital in and out. Analog in. PWM. SPI SCK (default). The on-board LED is on this pin. | 3.3 V logic.

D12 | D12 | Digital in and out. Analog in. PWM. SPI MISO (default). | 3.3 V logic.

D11 | D11 | Digital in and out. Analog in. PWM. SPI MOSI (default). | 3.3 V logic.

D10 | D10 | Digital in and out. PWM. SPI SS (default). | 3.3 V logic.

D9 | D9 | Digital in and out. PWM. | 3.3 V logic.

D8 | D8 | Digital in and out. PWM. | 3.3 V logic.

D7 | D7 | Digital in and out. PWM. | 3.3 V logic.

D6 | D6 | Digital in and out. PWM. | 3.3 V logic.

D5 | D5 | Digital in and out. PWM. | 3.3 V logic.

D4 | D4 | Digital in and out. PWM. | 3.3 V logic.

D3 | D3 | Digital in and out. PWM. | 3.3 V logic.

D2 | D2 | Digital in and out. PWM. | 3.3 V logic.

PC10 | PC10 | Digital in and out. | 3.3 V logic.

PC11 | PC11 | Digital in and out. | 3.3 V logic.

PC12 | PC12 | Digital in and out. | 3.3 V logic.

PD2 | PD2 | Digital in and out. | 3.3 V logic.

VDD | - | A 3.3 V power pin: VDD. | Not a GPIO.

E5V | - | A power input pin: E5V. | Not a GPIO.

BOOT0 | - | The board's BOOT0 pin. | Not a GPIO.

GND | - | Ground. | -

PA13 | PA13 | Digital in and out. | 3.3 V logic.

PA14 | PA14 | Digital in and out. | 3.3 V logic.

PA15 | PA15 | Digital in and out. PWM. | 3.3 V logic.

PB7 | PB7 | Digital in and out. PWM. | 3.3 V logic.

PC13 | PC13 | Digital in and out. | 3.3 V logic.

VBAT | - | The board's VBAT pin. | Not a GPIO.

PC2 | PC2 | Digital in and out. Analog in. | 3.3 V logic.

PC3 | PC3 | Digital in and out. Analog in. | 3.3 V logic.

PC9 | PC9 | Digital in and out. PWM. | 3.3 V logic.

PC8 | PC8 | Digital in and out. PWM. | 3.3 V logic.

PC6 | PC6 | Digital in and out. PWM. | 3.3 V logic.

PC5 | PC5 | Digital in and out. Analog in. | 3.3 V logic.

U5V | - | A 5 V power pin: U5V. | Not a GPIO.

GND | - | Ground. | -

PA12 | PA12 | Digital in and out. | 3.3 V logic.

PA11 | PA11 | Digital in and out. PWM. | 3.3 V logic.

PB12 | PB12 | Digital in and out. | 3.3 V logic.

PB2 | PB2 | Digital in and out. | 3.3 V logic.

PB1 | PB1 | Digital in and out. Analog in. PWM. | 3.3 V logic.

PB15 | PB15 | Digital in and out. PWM. | 3.3 V logic.

PB14 | PB14 | Digital in and out. PWM. | 3.3 V logic.

PB13 | PB13 | Digital in and out. PWM. | 3.3 V logic.

AGND | - | Ground. | -

PC4 | PC4 | Digital in and out. Analog in. | 3.3 V logic.

PA2 | PA2 | Digital in and out. Analog in. PWM. | 3.3 V logic. Serial uses this pin.

PA3 | PA3 | Digital in and out. Analog in. PWM. | 3.3 V logic. Serial uses this pin.

## How to read the table

The Pin column is what is printed on the board. The Sketch name column is what a sketch writes. The Arduino header pins are D2 to D15 and A0 to A5, and the morpho pins use their port names, such as PC10 or PB13. A pad that is on both headers is one pin, named for the Arduino header, so the morpho pin PA5 is D13.

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 Nucleo F411RE has 6 ground holes in its pin list. Its 5 V pins are 5V and U5V. Its 3.3 V pins are 3V3, AVDD and VDD. Its power input pins are VIN and E5V. Pins named for a job, not for a GPIO, are IOREF, NRST, BOOT0 and VBAT. A sketch cannot drive any of these with digitalWrite.

## PWM and analog pins

These pins can drive PWM with analogWrite: A0, A1, A3, D15, D14, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, PA15, PB7, PC9, PC8, PC6, PA11, PB1, PB15, PB14, PB13, PA2 and PA3.

These pins can read an analog voltage with analogRead: A0, A1, A2, A3, A4, A5, D13, D12, D11, PC2, PC3, PC5, PB1, PC4, PA2 and PA3. The pins run at 3.3 V.

## The default I2C and SPI pins

Wire uses SDA on D14 and SCL on D15.

SPI uses SCK on D13, MISO on D12, MOSI on D11 and SS on D10.

## 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: A0, A1, A3, D15, D14, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, PA15, PB7, PC9, PC8, PC6, PA11, PB1, PB15, PB14, PB13, PA2 and PA3. For a potentiometer or an analog sensor, use A0, A1, A2, A3, A4, A5, D13, D12, D11, PC2, PC3, PC5, PB1, PC4, PA2 and PA3. For an I2C module, wire SDA to D14 and SCL to D15. For an SPI module, wire SCK to D13, MISO to D12 and MOSI to D11, and use D10 for SS. The pins run at 3.3 V logic.

## Pin numbers in a sketch

Pins are numbered exactly as STM32duino's NUCLEO_F411RE variant numbers them. Numbers 0 to 15 are the header's D0 to D15, as on an Uno. Numbers 16 to 51 are the morpho pins in the variant's order.

A0 to A5 are the header's analog pins, and A6 to A15 are the other ADC pins. Port names work too. PA5 is the same pin as 13 and D13. Note that analogRead(0) reads A0, not D0, because STM32duino reads a number below 16 as an analog input.

## The LED and the button

LED_BUILTIN is PA5, which is D13. LD2, the green LED, goes from that pin to ground through 510 ohms, so HIGH lights it. That is the same as an Uno and unlike the Black Pill. digitalWrite(13, HIGH) lights the green LED.

USER_BTN is PC13, the blue B1 button. It pulls the pin to ground when pressed. The board has its own 4.7 k pull-up on PC13, so INPUT is enough. While the simulation runs, hold the blue B1 and PC13 reads LOW until you let go.

Hold the black B2 RESET to hold the chip in reset. The sketch starts again from the top when you let go. A pushbutton wired from PC13 or NRST to GND does the same.

## Pins that are not connected

Some pads are drawn but have no pin behind them, as the board ships. These are D0 and D1, because solder bridges SB62 and SB63 are open, and PA3 and PA2 go to the ST-LINK instead.

Also not connected are PC14 and PC15, which belong to the 32.768 kHz crystal, and PH0 and PH1, which carry the ST-LINK's 8 MHz clock. They are drawn and have no pin behind them.

## Serial

Serial is USART2 on PA2 and PA3. The board wires it to the ST-LINK's USB virtual COM port, and that is what the serial monitor shows.

STM32duino calls it Serial2 and makes it Serial. No Serial1 is started, so Serial1 does not compile here either. Serial prints nothing until you call Serial.begin().

Open this circuit in the editor. Nucleo F411RE: blink on D13, wired as it runs at the top of this page. Change a part or a value and run it again.
Open the circuit

## Questions

What are the Nucleo F411RE I2C pins?

SDA is D14 and SCL is D15.

What are the Nucleo F411RE SPI pins?

SCK is D13, MISO is D12, MOSI is D11 and SS is D10.

Which pin is the led on the nucleo f411re?

`LED_BUILTIN` is `PA5`, which is `D13`. Write `HIGH` to it to light the green LED.

Which pin is the button on the nucleo f411re?

`USER_BTN` is `PC13`, the blue B1 button. The pin reads `LOW` while the button is held.

Does analogread 0 read pin 0?

No. `analogRead(0)` reads `A0`, not `D0`. A number below 16 is read as an analog input.

How fast is the nucleo f411re?

The CPU, timers and fast peripheral bus run at 100 MHz. A cycle is exactly 10 ns, and the chip is at 100 MHz from power-on.

Why do d0 and d1 not work on the nucleo?

`D0` and `D1` are not connected as the board ships. Solder bridges `SB62` and `SB63` are open, and `PA3` and `PA2` go to the ST-LINK instead.

Related

## Keep going

STM32F411 Black Pill Pinout: PC13, KEY and BOOT0 Arduino Uno Pinout: ATmega328P Pins, PWM, I2C, SPI STM32 Blue Pill Pinout: 5 V Tolerant Pins and BOOT Run the Nucleo F411RE in the simulator Help: the Nucleo F411RE model The project page, with the full sketch Beginner

## Build this for real

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

Start building free Open the editor
