The Arduino Pro Micro Leonardo is a compact microcontroller board based on the ATmega32U4. It features built-in USB connectivity, allowing for direct communication with a computer without the need for an external USB-to-serial converter. This makes it an ideal choice for projects that require a small form factor and direct USB communication, such as keyboard emulators, game controllers, and various IoT applications.
Specification | Value |
---|---|
Microcontroller | ATmega32U4 |
Operating Voltage | 5V |
Input Voltage | 7-12V (recommended 9V) |
Digital I/O Pins | 12 |
PWM Pins | 5 |
Analog Input Pins | 4 |
Flash Memory | 32 KB (ATmega32U4) |
SRAM | 2.5 KB |
EEPROM | 1 KB |
Clock Speed | 16 MHz |
USB Interface | Full-speed USB |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V) |
2 | GND | Ground connection |
3 | RX0 | Serial receive pin |
4 | TX0 | Serial transmit pin |
5 | D0 | Digital I/O pin (PWM capable) |
6 | D1 | Digital I/O pin (PWM capable) |
7 | D2 | Digital I/O pin |
8 | D3 | Digital I/O pin (PWM capable) |
9 | D4 | Digital I/O pin |
10 | D5 | Digital I/O pin (PWM capable) |
11 | D6 | Digital I/O pin |
12 | D7 | Digital I/O pin |
13 | D8 | Digital I/O pin |
14 | A0 | Analog input pin |
15 | A1 | Analog input pin |
16 | A2 | Analog input pin |
17 | A3 | Analog input pin |
18 | A4 | I2C SDA pin |
19 | A5 | I2C SCL pin |
Powering the Board:
Connecting to USB:
Programming:
Board Not Recognized by Computer:
Code Upload Fails:
Unexpected Behavior in Code:
Here is a simple example code that blinks an LED connected to pin 13:
// Blink an LED connected to pin 13
void setup() {
// Set pin 13 as an output
pinMode(13, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(13, HIGH);
// Wait for 1000 milliseconds (1 second)
delay(1000);
// Turn the LED off
digitalWrite(13, LOW);
// Wait for 1000 milliseconds (1 second)
delay(1000);
}
This code will make the LED blink on and off every second. Upload it to your Arduino Pro Micro Leonardo using the Arduino IDE to see it in action.