What Is the ATmega32U4? AVR with Built-in USB (Leonardo/Micro)
The ATmega32U4 is an 8-bit AVR microcontroller with a built-in USB controller (32 KB flash). Because it supports USB directly it is the chip of the Arduino Leonardo/Micro/Pro Micro; it can appear as a keyboard/mouse (HID). Unlike the ATmega328P it needs no external USB-serial chip (CH340/FT232). Its pin map differs from the 328P.
The ATmega32U4 is an 8-bit AVR microcontroller with a built-in USB controller. Because it supports USB directly it is the chip of the Arduino Leonardo, Micro and Pro Micro boards; it can appear to a computer as a keyboard/mouse (HID). For the concept, see what is a microcontroller.
What is the ATmega32U4 used for?
USB HID devices (keyboard/mouse/gamepad emulation), USB serial devices, macro keyboards and Arduino Leonardo/Micro projects. Unlike the ATmega328P, it needs no external USB-serial chip (CH340/FT232); USB is on the chip.
Specifications
| Parameter | Value |
|---|---|
| Core | 8-bit AVR |
| Flash | 32 KB |
| Highlight | Built-in full-speed USB (HID/CDC) |
| Boards | Arduino Leonardo, Micro, Pro Micro |
Watch out
Since USB is directly on the MCU, faulty code (e.g. one that constantly resets the USB link) can make the board un-programmable; then reset timing to drop into the bootloader is needed. The pin map differs from the ATmega328P; check when porting code.
Equivalents
- ATmega328P: a classic AVR without USB (needs external USB-serial).
- RP2040: a dual-core MCU with built-in USB.
- ATmega16U2: a relative used as a USB interface.
Find it in our catalog
Use the ATmega32U4 search.