Simulator

Arduino Uno R4 simulator, running in this tab

Mokxi is a free Arduino Uno R4 simulator that runs in your browser, with nothing to install and no account needed. Mokxi models the Renesas RA4M1 on the Uno R4 Minima, on our own Arm Cortex-M4 core at 48 MHz, on the real memory map, so a build that runs here runs on the board on your desk.

  • 505parts on the bench
  • 45boards running now
  • 1.00xreal time, on every board
Uno R4: 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 coreArm Cortex-M4 (ARMv7E-M) at 48 MHz, with the datasheet cycle count of every instruction. Soft float, because this core has no FPU: the runtime is built for it and a VFP instruction faults rather than lying.
PeripheralsThe port block with one PFS register a pin behind its write protection, GPT PWM on the six tilde pins at 490 Hz, SCI2 as Serial1 on D0 and D1, a fourteen-bit ADC on A0 to A5, and SysTick at 1 kHz for millis.
PinsD0 to D13 and A0 to A5 on an Uno’s header, at 5 V, so an Uno shield fits. The tilde pins are 3, 5, 6, 9, 10 and 11. Each pin has its own PmnPFS word: direction, output latch, pull-up, open drain and analog switch.
Memory256 KB of flash at zero with the option-setting word at 0x400, and 32 KB of SRAM, at the real RA4M1 addresses. The link fails if you overrun either.
Serial and Serial1Serial is the USB-C socket and reaches no header pin. Serial1 is SCI2, a real UART on D0 and D1, 8N1. The serial monitor shows both; only Serial1 moves a pin.
No WiFi on the MinimaThis board has no radio. The Uno R4 WiFi, with its 12 by 8 LED matrix and a simulated network, is a separate board in the parts bin.
What is not there yetA USB stack (Serial is a byte pipe with no enumeration behind it), the ICU, so there is no attachInterrupt, the AGT, I2C and SPI. Some addresses are marked unverified in the contract rather than claimed.
Go further

The full board page

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

Arduino Uno R4 Minima simulatorBlink, a button and the serial monitor, running.
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 Uno R4 does this simulate?

The Minima: USB-C, no WiFi. The Uno R4 WiFi is a board of its own in the parts bin, with the LED matrix and a simulated network.

Is this the same as an Uno R3?

The same shape, the same 5 V pins and the same shield header, with an Arm Cortex-M4 at 48 MHz underneath instead of an 8-bit AVR at 16.

Why does analogRead give me 0 to 1023?

Because that is what the Arduino core does, so an Uno sketch reads the same numbers. The converter is fourteen bits; analogReadResolution(14) gives you all of them.

Is it free?

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

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 Uno R4

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