The Nucleo-L476RG is a development board built around the STM32L476RG microcontroller, which features an ARM Cortex-M4 core. This board is designed to provide a flexible and efficient platform for prototyping and developing embedded applications. It supports a wide range of peripherals, including digital and analog interfaces, and is compatible with Arduino Uno shields, making it highly versatile for various projects.
Parameter | Specification |
---|---|
Microcontroller | STM32L476RG (ARM Cortex-M4 @ 80 MHz) |
Flash Memory | 1 MB |
SRAM | 128 KB |
Operating Voltage | 3.3V |
Input Voltage (VIN) | 7V to 12V |
USB Interface | Micro-USB (for power and programming) |
Clock Speed | 80 MHz |
GPIO Pins | 51 |
Analog Input Pins | 6 (12-bit ADC) |
PWM Output Pins | 12 |
Communication Interfaces | I2C, SPI, UART, CAN |
Debug Interface | ST-LINK/V2-1 (onboard debugger) |
Dimensions | 68.6 mm x 53.3 mm |
The Nucleo-L476RG features a dual-row pin header layout, compatible with Arduino Uno shields and ST morpho connectors. Below is a summary of the pin configuration:
Pin Name | Functionality | Description |
---|---|---|
A0-A5 | Analog Inputs | 12-bit ADC channels |
D0-D1 | UART (RX, TX) | Serial communication |
D2-D13 | Digital I/O | GPIO, PWM (on select pins) |
3.3V | Power Output | 3.3V regulated output |
5V | Power Output | 5V regulated output |
GND | Ground | Common ground |
VIN | Power Input | External power supply input (7-12V) |
Pin Name | Functionality | Description |
---|---|---|
PAx, PBx | GPIO, ADC, PWM, I2C, SPI, UART | Multi-purpose pins for peripherals |
VDD | Power Supply | 3.3V power input/output |
GND | Ground | Common ground |
Powering the Board:
Programming the Board:
Connecting Peripherals:
Running Your Code:
Below is an example of blinking the onboard LED (LD2) using the Arduino IDE:
// Define the pin connected to the onboard LED
#define LED_PIN LED_BUILTIN
void setup() {
pinMode(LED_PIN, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(LED_PIN, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
The board is not detected by the computer:
Code does not upload to the board:
Peripherals are not working as expected:
The board overheats or does not power on:
Q: Can I use the Nucleo-L476RG with Arduino shields?
A: Yes, the board is compatible with most Arduino Uno shields via its Arduino-compatible headers.
Q: What is the maximum current output of the 3.3V and 5V pins?
A: The 3.3V pin can supply up to 150 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 black reset button located near the Micro-USB port.
Q: Can I use the board for low-power applications?
A: Yes, the STM32L476RG microcontroller is optimized for low-power operation, making it suitable for battery-powered projects.