Arduino Leonardo
Uno-sized board whose chip has USB built in, so it can act as a keyboard or mouse.
MicrocontrollerATmega32U4
Clock16 MHz
Flash32 KB
RAM2.5 KB
Development BoardsReviewedMPN A000057Used in 7 projects
In short
What is the Arduino Leonardo and what is it used for?
Uno-sized board whose chip has USB built in, so it can act as a keyboard or mouse. Makers use it for macro keyboards, game controllers.
How it works
An ATmega32U4 that handles USB itself, so there is no separate USB-to-serial chip.
Key specifications
| Development board spec | Value |
|---|---|
| Microcontroller | ATmega32U4 |
| Clock | 16 MHz |
| Flash | 32 KB |
| RAM | 2.5 KB |
| Logic level | 5 V |
| Input voltage | 7 to 12 V or USB |
| I/O pins | 20 digital (7 PWM), 12 analog |
| ADC | 10-bit |
Pinout
23SDA SCL (also the I2C header)
01Serial1 RX TX (separate from USB)
ICSPSPI only
13LED
A0 to A5 plus 4 6 8 9 10 12Analog inputs
How to use it
The USB is native, so it can act as a keyboard or mouse with the Keyboard and Mouse libraries. Serial goes to USB and Serial1 goes to pins 0 and 1. If a sketch breaks USB, press reset just as the IDE starts uploading.
Applications
Macro keyboardsgame controllers
Builds that use it
Alternatives
- Arduino MicroSame chip in a breadboard size
- Arduino Uno R3More common, same 5 V shields
Common questions
What is the Arduino Leonardo used for?
In maker projects: macro keyboards, game controllers.
How does the Arduino Leonardo work?
An ATmega32U4 that handles USB itself, so there is no separate USB-to-serial chip.
What can I use instead of the Arduino Leonardo?
Arduino Micro and Arduino Uno R3.
