Skip to main content
PartAndStock
Blog

What Is the ATmega32U4? AVR with Built-in USB (Leonardo/Micro)

November 29, 2026 4 min read
Quick answer

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

ParameterValue
Core8-bit AVR
Flash32 KB
HighlightBuilt-in full-speed USB (HID/CDC)
BoardsArduino 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.

Frequently Asked Questions

What is the ATmega32U4?+
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 boards; it can emulate a keyboard/mouse (HID).
What is the difference between the ATmega32U4 and the ATmega328P?+
On the ATmega32U4 USB is directly on the chip (HID/CDC), so no external USB-serial chip is needed. The ATmega328P (Uno/Nano) needs a chip like the CH340/FT232 for USB.
Can the ATmega32U4 act as a keyboard/mouse?+
Yes; thanks to built-in USB HID support it can appear to a computer as a keyboard, mouse or gamepad. It is ideal for macro keyboards and input-device projects.
What are ATmega32U4 equivalents?+
The ATmega328P without USB; the RP2040 with built-in USB; the ATmega16U2 as a USB interface.