Simulator

Arduino simulator: free online, running in this tab

Mokxi is a free Arduino simulator that runs in your browser, with nothing to install and no account needed. Wire a circuit, write the sketch, press Run. Mokxi models a complete Arduino Uno R3, down to the ATmega328P, and the firmware runs on our own AVR core rather than being interpreted or faked.

  • 505parts on the bench
  • 45boards running now
  • 1.00xreal time, on every board
Arduino Uno: blinklive0.000 s 0.00x
Click to open it in the editor
Real firmware, running right now on our own core. Click it to open the circuit in the editor.
What is modeled

The numbers, not the marketing

Taken from the board's own contract document and put in plain words.

The coreEvery ATmega328P mnemonic, at 16 MHz, with the datasheet cycle count for each one.
Timers and I/OThree timers in every waveform mode including hardware PWM, USART0, the ADC, external and pin-change interrupts, sleep and EEPROM.
WiringThe Uno stands beside the breadboard and reaches it with jumper wires, because its headers are two inches apart and will not push into one, on the real board or on this one.
PartsLEDs, buttons, potentiometers, servos, sensors, LCD and OLED displays, motors and relays, with the analog side solved by real device models.
Code and outputA real compiler builds your sketch in the tab, with more than 100 common libraries, and the serial monitor shows what it prints.
Boards

Every Arduino board here

The same editor, the same breadboard, a real compiler for each one.

Arduino Uno R3A complete ATmega328P, with three timers in every mode, USART0, the ADC, interrupts and sleep.Arduino NanoThe Uno's ATmega328P on a board 45 by 18 mm, so it pushes into the breadboard instead of standing beside it.Arduino Mega 2560The big Arduino: fifty-four digital pins, sixteen analog inputs and four serial ports, on the ATmega2560.Arduino LeonardoAn Uno-shaped board whose USB goes to the chip itself: Serial is a USB CDC endpoint and Serial1 is pins 0 and 1.Arduino MicroThe Leonardo’s ATmega32U4 on a board that pushes into a breadboard, with the L LED on pin 13 and the SPI pins on holes of their own.Arduino Pro MiniThe Uno’s ATmega328P on the smallest Arduino there is, with no USB on it, in both builds: 5 V at 16 MHz and 3.3 V at 8 MHz.SparkFun Pro MicroThe ATmega32U4 in a Pro Mini’s footprint with a USB socket on the end, running the Leonardo’s programs.Arduino Uno R4 MinimaRenesas RA4M1, Arm Cortex-M4 at 48 MHz, in an Uno’s shape and on an Uno’s 5 V pins. Modeled: the PFS port block, GPT PWM on the six tilde pins, SCI2 as Serial1 on D0 and D1, and a fourteen-bit ADC that analogRead reads ten bits of.Arduino Uno R4 WiFiThe Uno R4’s RA4M1 with a 12 x 8 LED matrix to draw on through Arduino_LED_Matrix.h.Arduino Nano ESP32An ESP32-S3 at 240 MHz on the Nano outline, with the Nano’s D and A pin names and an orange LED on D13.Arduino Nano RP2040 ConnectThe Pico’s RP2040 at 133 MHz on the Nano outline, with the Nano’s D and A pin names and an LED on D13.ATtiny85A whole microcontroller in an 8-pin DIP, straight into the breadboard: six I/O, two timers, an ADC and a USI.ATmega328P on a breadboardThe Uno’s chip on its own in a 28-pin DIP, in both builds the tutorials wire: 16 MHz from a crystal, and 8 MHz from its internal clock.
Go further

The full board page

Every peripheral area, every example and the wiring notes, in one place.

Arduino Uno simulatorBlink, a button and the serial monitor, running.
Guides

Step-by-step guides for the Arduino

Each one has the parts, the wiring and the code, and ends in a circuit you can run.

How it works

Three steps from a blank tab to a running circuit.

  1. Open the editor

    It runs in your browser tab. Nothing to install, and you need no account to start.

    Your first project
  2. Wire it and write the code

    Drag parts onto a breadboard, run each wire from pin to pin, and write the sketch beside it.

    Wiring
  3. Press Run

    Your sketch compiles in the tab and runs on a model of the chip, with the Serial Monitor beside it.

    Run and serial
Reviews

What makers say about Mokxi.

“The AI checker helps check and correct my circuits, and it has way more components than Tinkercad. As a student I really appreciate the tool.”

ChloeEngineering student

“I’d been looking for a real online electronic simulator that was intuitive and complete when I found Mokxi. I was able to quickly import a Fritzing file and my Arduino sketch and start testing. Mokxi has all of the makings for the best online Arduino simulator I have been able to find!”

JayModel builderFeatured in his DioramaOS post

“I’m using Mokxi to develop and simulate an STM32-based four-wheel-drive robot car before building the actual hardware. It allows me to experiment with DC motor control, PWM, RPM measurement using photointerrupters, and different acceleration, braking, and reversing strategies, helping me understand and refine the system before implementing it in real life.”

NusretRobot car builder, Hamburg

Share your story

FAQ

Questions, answered.

Which Arduino boards can I simulate?

The Uno R3 runs above. The free plan also has the Nano, the Mega 2560, the Leonardo, the Micro, the Pro Mini, the Pro Micro, the Uno R4 Minima and WiFi, the Nano ESP32 and the Nano RP2040 Connect, each with a page of its own.

Does my sketch run unchanged?

Usually. The firmware runs on the ATmega328P register map for its supported peripherals, and the Arduino calls a tutorial uses are all there. Test your finished sketch on the physical board before relying on it.

Is it free?

Yes, all of it, with no card and no account needed to try it.

Do I need to install anything?

No. It runs in a browser tab on Windows, macOS, Linux or a Chromebook, and the sketch compiles in the tab. There is no download and no Arduino IDE to set up.

Can I use Arduino libraries?

More than 100 common ones are built in under their usual names, such as Servo, Wire, LiquidCrystal, LiquidCrystal_I2C, DHT, the Adafruit display and sensor headers and SoftwareSerial. Each is Mokxi’s own header rather than the upstream code. There is no Library Manager; on every plan you can add a library of your own as a zip or as loose files.

Can it simulate analog parts, like several buttons on one analog pin?

Yes. The analog parts of a circuit are solved with real device models, so a resistor ladder, a divider or an RC filter reads the voltage those parts set, and analogRead returns it.

Can I run two Arduinos talking to each other?

Yes. A project can hold more than one board, each with its own sketch, wired together over serial or plain pins. The serial monitor labels each line with the board that sent it.

Can I put the sketch on my real Arduino?

Yes. Upload to board writes it to an Uno, Nano, Mega or other Arduino AVR board over USB from a browser with Web Serial, such as Chrome or Edge. Anywhere else, download the .hex and flash it with the Arduino IDE or avrdude.

What is not modeled?

Shields as physical parts, the Arduino Library Manager, and the parts of each chip its board page lists as absent. The runtime is Mokxi’s own, written to the Arduino language reference, rather than the Arduino core itself.

Simulators for one kind of circuit

A servo, a display, a motor driver or a rectifier, each already running.

Try your own firmware on the Arduino

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