Simulator for Arduino Uno
Test Arduino code online, without a board
Write an Arduino Uno sketch and press Run. It compiles with the standard Arduino toolchain and runs on a virtual Uno in your browser, wired to the parts you choose.
- Nothing to install, and no account needed.
- Real compiled code on a model of the Uno's chip, so delay() and millis() behave as on a board.
- LEDs, buttons, a potentiometer, a servo, a buzzer, a 16x2 LCD and the serial monitor.
How it works
Start from your own code or a starter: blink, button, fade, knob and serial, servo sweep, buzzer melody or lcd counter.
Write a sketch
Write setup() and loop() as for a real Uno, or open a starter. Pick the parts on the bench and the pin each one is wired to.
Press Run
The sketch compiles on our server with the standard Arduino toolchain. Compiler errors are listed with their line numbers, and clicking one takes you to the line.
Watch it work
The program runs on a virtual Uno in your browser. LEDs light and dim, the servo turns, the LCD shows text, and Serial.print appears in the serial monitor. Press a button or turn the knob and the sketch reacts.
Parts on the bench
Outputs
- LEDs in five colours, which dim with analogWrite on a PWM pin.
- A servo, driven by the Servo library.
- A piezo buzzer that plays tone(), with sound you can turn on.
- A 16x2 LCD on I2C (LiquidCrystal_I2C).
- The serial monitor, which shows Serial.print and sends text back to the sketch.
Inputs
- Push buttons, wired to GND and read with INPUT_PULLUP.
- Potentiometers on the analog pins, read with analogRead.
- Up to eight parts at once, each on the pin you choose.
Share it, or let AI start it
Share a link
- Share copies a link holding your sketch and its parts.
- Opening it fills the editor; nothing runs until you press Run.
- Nothing is stored on our side, so the link is the only copy.
Ask the AI
- Describe a project, like a button that toggles an LED: the AI writes the sketch and puts the parts on the bench.
- Every sketch it writes is compiled before you see it. It can also fix compiler errors and explain a sketch.
- AI use counts against your monthly AI allowance; running sketches does not.
What works now, and what does not
- Arduino Uno sketches, and most Nano sketches (the same chip).
- The core libraries plus Servo, LiquidCrystal and LiquidCrystal_I2C.
- Phones and tablets as well as laptops.
- ESP32, Raspberry Pi Pico and other boards.
- Other libraries, and sensors that need exact timing.
- Uploading to a real board. This is simulation only.
Circuits with resistors, LEDs and transistors, without code, run in the circuit simulator. Arduino® is a trademark of Arduino S.r.l.; breadboardhub is not affiliated with or endorsed by Arduino.
Questions
- Can I test Arduino code without a board?
- Yes, for the Arduino Uno. Write a sketch and press Run: it compiles with the standard Arduino toolchain and runs on a virtual Uno in your browser, with LEDs, buttons, a potentiometer, a servo, a buzzer, a 16x2 LCD and the serial monitor.
- Do I need to install anything or sign up?
- No. It runs in a browser tab. Without an account you can compile 20 times an hour; a free account gives you 60.
- Which boards does it support?
- The Arduino Uno (ATmega328P). The Nano uses the same chip, so most Nano sketches run too. ESP32 and other boards are not supported.
- Which libraries can I use?
- The Uno core with Wire, SPI, EEPROM and SoftwareSerial, plus Servo, LiquidCrystal and LiquidCrystal_I2C. Other libraries cannot be added yet.
- How accurate is it?
- The program is the real compiled code, run on a model of the Uno's chip, so timing with delay() and millis() matches a real board closely. Only the parts shown are modelled, and a very busy sketch can run slower than real time on a slow device; the page shows the speed when that happens.
- Is my code private?
- Your sketch is sent to our compiler to build it and is not stored or logged. A share link holds the code in the link itself, so only people you give the link to can see it.
- Can the AI write the sketch for me?
- Yes. Open the AI panel on the playground and describe a project: the AI writes the sketch, puts the parts on the bench and compiles it before you see it. It can also fix compiler errors, explain a sketch and change it in a conversation. Signing in is free; AI requests use your monthly allowance.
- Is it free?
- Yes. Compiling and running sketches is free on every plan. Only AI requests have a monthly allowance.