Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Boards & Microcontrollers
  4. ›Pro Micro (ATmega32U4)

Component guide · Intermediate · 3 min read

Pro Micro (ATmega32U4)

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Pro Micro (ATmega32U4) isPro Micro (ATmega32U4) pinoutWiring the Pro Micro (ATmega32U4)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

Pro Micro (ATmega32U4) pinout

The pins on the Pro Micro (ATmega32U4) and what each one does.

PinFunction
TX0 / RX1 (D1, D0)Hardware Serial1
D2 (SDA), D3 (SCL)I2C
D4 to D10Digital I/O (D3, 5, 6, 9, 10 PWM)
D14 (MISO), D15 (SCK), D16 (MOSI)SPI
A0 to A3 (D18 to D21)Analog inputs
RAWInput to regulator (up to about 12 V)
VCCRegulated 5 V or 3.3 V
RSTReset (tap twice to enter bootloader)
PinFunction
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)
03

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) pinMacro pad wiringNotes
D2 to D9One leg of each key switchUse INPUT_PULLUP
GNDOther leg of each switchCommon ground
A0Potentiometer 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
04

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.

Four-key shortcut pad (Keyboard library) · Arduino C++Verify & upload in Electrolark
#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
}
05

Setup and tuning

Recovery

a sketch that crashes USB makes the port disappear. Tap RST twice quickly and upload within 8 seconds while the bootloader runs.

Safety switch

add a 'disable keyboard' pin check at startup so a buggy sketch cannot flood your computer with keypresses.

Wrong voltage option

on a 3.3 V board can brick the bootloader; check the board before selecting.

QMK firmware

keyboard builders often flash QMK instead of Arduino sketches.

06

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
07

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.
08

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.
09

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

  • Pro Micro 5V 16MHz ATmega32U4 Dev Board
    ₹399View
  • Pro Micro Type-C ATmega32U4 5V/16MHz Dev Board
    ₹559View
  • Pro Micro Type C ATmega32U4 Dev Board for Arduino
    ₹449View
  • ATmega32U4 Pro Micro 5V 16MHz Board w/ Mini USB
    ₹479View
  • Tactile Push Button Switch
    ₹7View
  • Solderless Breadboard
    ₹68View
Shop Boards, Kits & ModulesShop AIoT & Display Development Boards (TFT, e-Paper, Touch)

Terms in this guide

Native USBA microcontroller with USB built into the chip, so the board can act as a keyboard, mouse or MIDI device instead of only a serial port.

Keep learning

ComparisonBeginnerOfficial Arduino Boards ComparedBeyond the classic UNO, official Arduino boards split into small Nano boards, MKR boards with wireless radios, powerful GIGA and Portenta boards, the Opta PLC and the UNO Q, which pairs a Linux processor with a microcontroller.3 min read · Boards & MicrocontrollersHow-toBeginner4x4 Matrix Keypad with ArduinoA 4x4 matrix keypad arranges 16 buttons in four rows and four columns, so it needs only 8 pins instead of 16.3 min read · Switches, Relays & InputHow-toBeginnerPush Buttons with ArduinoWire a push button between a digital pin and ground, set the pin to INPUT_PULLUP, and the pin reads LOW while pressed.3 min read · Switches, Relays & InputComponent guideIntermediateArduino Pro MiniThe Pro Mini is a tiny ATmega328P board, the same chip as the Uno, without a USB port.4 min read · Boards & Microcontrollers

Sources

  • ATmega32U4 datasheet (Microchip)
  • Arduino Keyboard library reference
  • SparkFun Pro Micro hookup guide

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Pro Micro (ATmega32U4) isPro Micro (ATmega32U4) pinoutWiring the Pro Micro (ATmega32U4)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹510

Pro Micro 5V 16MHz ATmega32U4 Dev Board · Crystal Oscillator HC-49 (Pack of 5) · Tactile Push Button Switch · Solderless Breadboard

Run itChange the inputs and watch the output

The board types into your computer as a keyboard. This shows what each key sends.

Serial monitor9600 baud
 

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question