The STM-32 NUCLEO-F401RE is a development board manufactured by STMicroelectronics, featuring the STM32F401RE microcontroller. It is part of the STM32 family and is designed to facilitate rapid prototyping and development of embedded applications. The board supports both Arduino Uno V3 and ST morpho headers, making it highly versatile and compatible with a wide range of expansion boards and shields.
The STM-32 NUCLEO-F401RE features multiple pin headers for connectivity. Below is a summary of the pin configuration:
Pin Name | Function | Description |
---|---|---|
VIN | Power Input | External power input (7V-12V) |
5V | Power Output | 5V output from onboard regulator |
3.3V | Power Output | 3.3V output |
GND | Ground | Ground connection |
A0-A5 | Analog Input | 6 analog input pins |
D0-D13 | Digital I/O | 14 digital I/O pins (D0-D1 for UART) |
PWM | PWM Output | PWM-capable pins (e.g., D3, D5, D6, D9) |
SDA/SCL | I2C Communication | I2C data (SDA) and clock (SCL) lines |
RX/TX | UART Communication | UART receive (RX) and transmit (TX) pins |
Pin Name | Function | Description |
---|---|---|
VDD | Power Supply | 3.3V power supply |
GND | Ground | Ground connection |
PAx, PBx | GPIO | General-purpose I/O pins |
USARTx | UART Communication | UART transmit and receive lines |
SPIx | SPI Communication | SPI clock, MISO, MOSI, and NSS lines |
I2Cx | I2C Communication | I2C data (SDA) and clock (SCL) lines |
ADCx | Analog Input | Analog-to-digital converter inputs |
Powering the Board:
Programming the Board:
Connecting Peripherals:
Debugging:
Below is an example code to blink an LED connected to pin D13:
// Blink an LED on pin D13 of the STM-32 NUCLEO-F401RE
void setup() {
pinMode(13, OUTPUT); // Set pin D13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
The board is not detected by the computer:
Code upload fails:
Peripherals are not working as expected:
The board overheats:
Q: Can I use the STM-32 NUCLEO-F401RE with the Arduino IDE?
A: Yes, the board is compatible with the Arduino IDE. Install the STM32 core to program it using Arduino libraries.
Q: What is the maximum current output of the 3.3V and 5V pins?
A: The 3.3V pin can supply up to 100 mA, and the 5V pin can supply up to 500 mA when powered via USB.
Q: How do I reset the board?
A: Press the onboard reset button to restart the microcontroller.
Q: Can I use the board for low-power applications?
A: Yes, the STM32F401RE microcontroller supports low-power modes for energy-efficient applications.