Components / Boards / Arduino Leonardo

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
ARDUINO
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 specValue
MicrocontrollerATmega32U4
Clock16 MHz
Flash32 KB
RAM2.5 KB
Logic level5 V
Input voltage7 to 12 V or USB
I/O pins20 digital (7 PWM), 12 analog
ADC10-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

Alternatives

Buy at

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.