Board

Arduino Micro simulator, the Leonardo in a breadboard

The Micro is the Leonardo’s ATmega32U4 on a board 48 by 18 mm that pushes into a breadboard. The same chip, the same pin numbers and the same programs; Serial is the chip’s own USB and Serial1 is pins 0 and 1.

Start building free
  • 6peripheral areas modeled
  • 1project ready to run
  • Real timeon your own machine
Arduino Micro: blinklive0.000 s 0.00x
Click to open it in the editor
The board is running real firmware right now. Click it to open the circuit in the editor.
The model

What is modeled

Taken from the board's own contract document and put in plain words, with what is missing beside it.

Modeled

Core
The ATmega32U4 at 16 MHz, every instruction with its datasheet cycle count
Timers
Four, including the ten-bit timer 4, with PWM on seven pins
USB serial
Serial as a byte pipe to the monitor; Serial1 as the real USART on pins 0 and 1
ADC
Twelve inputs, six of them also digital pins
Lamps
L on pin 13, and RX and TX on PB0 and PD5, lit when their pins go low
The board
Two rows of seventeen, 0.6 inch apart, with MISO, SCK, MOSI and SS on holes of their own

Not modeled

  • The USB stack: no enumeration, and no keyboard or mouse.
  • Everything the Leonardo model leaves out.
Start here

Open one and press Run

Each of these opens in the editor exactly as it is drawn here.

Projects

Every built-in project on the Micro

Each has its own page with the circuit running, the code and a parts list.

Libraries

Arduino libraries that compile as they are

Paste a tutorial that includes one of these and it builds. For any other library, the build names the Mokxi header that does the same job.

Servo.h
attach, write, writeMicroseconds, read, detach, on any pin
Wire.h
I2C as a master; Wire.begin() puts it on 2 (SDA) and 3 (SCL)
SPI.h
transfer and transactions, on the board’s usual SPI pins
EEPROM.h
read, write, update, get, put and EEPROM[i], kept in the chip’s own 1 KB EEPROM
LiquidCrystal_I2C.h
the 16x2 LCD behind its I2C backpack
Adafruit_GFX.h and Adafruit_SSD1306.h
the 128x64 I2C OLED: text, pixels, lines, rectangles, circles, triangles and bitmaps
Adafruit_NeoPixel.h
WS2812 strips and panels
DHT.h
the DHT11 and DHT22: temperature, humidity and the heat index, as floats you can print

And 17 more, 25 in all: OneWire.h and DallasTemperature.h; Adafruit_BME280.h, Adafruit_BMP280.h and SparkFunBME280.h; RTClib.h; Adafruit_SHT31.h; Adafruit_PCF8591.h; Adafruit_ADXL345_U.h; LedControl.h; Adafruit_LEDBackpack.h; Adafruit_TCS34725.h; Adafruit_SGP30.h; Adafruit_INA219.h; Adafruit_ADS1X15.h; Adafruit_MCP23X17.h; Bounce2.h; Keyboard.h and Mouse.h; Joystick.h; HX711.h.

Questions

Is it free?

Yes. Every board and every part is on the free plan, with no account needed.

Will a Leonardo sketch run on it?

Yes, unchanged. It is the same chip with the same pin numbers, and it runs the same programs.

Where are SDA and SCL?

On pins 2 and 3, as on the Leonardo, not on A4 and A5 as on an Uno: on this chip I2C is on port D.

Why does driving SS low light a lamp?

Because SS is PB0, and the RX lamp hangs from 5 V on PB0. RXLED1 and RXLED0 are the names for it.

Try it on your own firmware

What you build here runs on the board on your desk, unchanged. Nothing to install and no account needed.