Component guide · Intermediate · 3 min read
Pro Micro (ATmega32U4)

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Pro Micro is a small ATmega32U4 board with native USB, so besides normal Arduino code it can act as a USB keyboard, mouse, game controller or MIDI device. It is the usual board for macro pads and custom keyboards. Upload as 'Arduino Leonardo' or 'SparkFun Pro Micro' at the right voltage; if it stops showing a port, double-tap reset to recover.
Key specs at a glance
- Chip
- ATmega32U4, 32 KB flash (4 KB bootloader), 2.5 KB RAM
- Clock and logic
- 5 V at 16 MHz (common) or 3.3 V at 8 MHz
- USB
- Native USB: serial plus HID (keyboard, mouse, gamepad)
- I/O
- 18 usable pins, 9 analog inputs, 5 PWM
- Connector
- Micro USB or USB-C
- Size
- 33 x 18 mm, Pro Mini footprint
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Pro Micro 5V 16MHz ATmega32U4 Dev Board₹399
Option 2Pro Micro Type-C ATmega32U4 5V/16MHz Dev Board₹559
Option 3Pro Micro Type C ATmega32U4 Dev Board for Arduino₹449
Option 4ATmega32U4 Pro Micro 5V 16MHz Board w/ Mini USB₹479
What the Pro Micro (ATmega32U4) is
Most Arduino boards use a separate chip for USB. The ATmega32U4 has native USB built in, so your sketch controls what the computer sees: a keyboard typing text, a mouse moving or a joystick.
That makes the Pro Micro ideal for shortcut keypads, stream decks, flight sim panels and accessibility switches.
Pro Micro (ATmega32U4) pinout
The pins on the Pro Micro (ATmega32U4) and what each one does.
| Pin | Function |
|---|---|
| TX0 / RX1 (D1, D0) | Hardware Serial1 |
| D2 (SDA), D3 (SCL) | I2C |
| D4 to D10 | Digital I/O (D3, 5, 6, 9, 10 PWM) |
| D14 (MISO), D15 (SCK), D16 (MOSI) | SPI |
| A0 to A3 (D18 to D21) | Analog inputs |
| RAW | Input to regulator (up to about 12 V) |
| VCC | Regulated 5 V or 3.3 V |
| RST | Reset (tap twice to enter bootloader) |
- TX0 / RX1 (D1, D0)
- Hardware Serial1
- D2 (SDA), D3 (SCL)
- I2C
- D4 to D10
- Digital I/O (D3, 5, 6, 9, 10 PWM)
- D14 (MISO), D15 (SCK), D16 (MOSI)
- SPI
- A0 to A3 (D18 to D21)
- Analog inputs
- RAW
- Input to regulator (up to about 12 V)
- VCC
- Regulated 5 V or 3.3 V
- RST
- Reset (tap twice to enter bootloader)
Wiring the Pro Micro (ATmega32U4)
Each key connects one pin to GND. With INPUT_PULLUP no resistors are needed. For more than about 12 keys, wire them as a matrix.
| Pro Micro (ATmega32U4) pin | Macro pad wiring | Notes |
|---|---|---|
| D2 to D9 | One leg of each key switch | Use INPUT_PULLUP |
| GND | Other leg of each switch | Common ground |
| A0 | Potentiometer wiper (volume knob) | Optional |
- D2 to D9
- Macro pad wiring:
- One leg of each key switch
- Notes:
- Use INPUT_PULLUP
- GND
- Macro pad wiring:
- Other leg of each switch
- Notes:
- Common ground
- A0
- Macro pad wiring:
- Potentiometer wiper (volume knob)
- Notes:
- Optional
Example code
Select 'Arduino Leonardo' for 5 V/16 MHz boards, or install SparkFun's board package for the 3.3 V/8 MHz version.
#include <Keyboard.h>
const int keys[] = {2, 3, 4, 5};
bool last[4];
void setup() {
for (int i = 0; i < 4; i++) { pinMode(keys[i], INPUT_PULLUP); last[i] = HIGH; }
Keyboard.begin();
}
void loop() {
for (int i = 0; i < 4; i++) {
bool now = digitalRead(keys[i]);
if (now == LOW && last[i] == HIGH) {
if (i == 0) { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('c'); } // copy
if (i == 1) { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('v'); } // paste
if (i == 2) { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('z'); } // undo
if (i == 3) Keyboard.print("Hello from Geekobot");
delay(10);
Keyboard.releaseAll();
}
last[i] = now;
}
delay(5); // simple debounce
}Setup and tuning
a sketch that crashes USB makes the port disappear. Tap RST twice quickly and upload within 8 seconds while the bootloader runs.
add a 'disable keyboard' pin check at startup so a buggy sketch cannot flood your computer with keypresses.
on a 3.3 V board can brick the bootloader; check the board before selecting.
keyboard builders often flash QMK instead of Arduino sketches.
What you need
Shop this list7 of 7 found in our store · ₹1,494
Pro Micro 5V 16MHz ATmega32U4 board: micro USB versionCrystal Oscillator HC-49 (Pack of 5)₹36
Pro Micro Type-C ATmega32U4 board: USB-C versionPro Micro Type C ATmega32U4 Dev Board for Arduino₹449Closest match, check the specs
Pro Micro ATmega32U4 Type-C module: USB-C alternativePro Micro Type C ATmega32U4 Dev Board for Arduino₹449Closest match, check the specs
Pro Micro Type-C ATmega32U4 board: USB-C alternativePro Micro Type C ATmega32U4 Dev Board for Arduino₹449Closest match, check the specs
ATmega32U4 Pro Micro 5V 16MHz (mini USB): mini USB versionCrystal Oscillator HC-49 (Pack of 5)₹36
Tactile push button switch: keys for a macro padTactile Push Button Switch₹7
Solderless breadboard: to build without solderingSolderless Breadboard₹68
Alternatives and when to choose them
- Pro Mini: same size, no USB, lowest power.
- Arduino Nano: USB serial only, no HID.
- Raspberry Pi Pico: RP2040 with USB HID and more speed, also great for macro pads.
Common mistakes to avoid
- Choosing the wrong board or voltage in the IDE.
- Writing a sketch that sends keys continuously with no way to stop it.
- Panicking when the COM port vanishes instead of using double reset.
- Assuming pin numbers match the Uno.
Frequently asked questions
Can the Pro Micro act as a keyboard?
Yes. The Keyboard and Mouse libraries make it appear as a USB HID device.
Which board do I select?
'Arduino Leonardo' for the 5 V/16 MHz version, or the SparkFun Pro Micro option for 3.3 V/8 MHz.
My Pro Micro is not detected anymore. Is it dead?
Usually not. Double-tap reset and upload during the 8-second bootloader window.
Pro Micro or Pro Mini?
Pro Micro for USB devices and easy uploads; Pro Mini for ultra-low-power battery builds.
Does it work with QMK?
Yes. It is one of the most common QMK controllers.
How many keys can it handle?
18 direct keys, or many more with a key matrix.
Parts for this guide
Terms in this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
