Uno Breadboard Simulator
Write a sketch, build the circuit on the breadboard, wire it to the Uno or the power supply, and press Upload. Everything runs in your browser on a desktop or laptop. This simulator is experimental and under development. A bug is an error in a program; if a result looks wrong, check it against a real circuit.
Choose a component, then tap two holes. Press and hold a button to push it.
What this simulator does (and does not do)
- Made for a desktop or laptop screen, with a mouse or trackpad.
- Runs a subset of Arduino C: setup() and loop(), int, long, byte, bool, float, arrays, if, for, while, switch, and your own functions.
- Built in: pinMode, digitalWrite, digitalRead, analogWrite, analogRead, delay, millis, micros, map, constrain, tone, noTone, and Serial.print, println, and write.
- Build checks the code, Upload runs the compiler checks and loads the sketch onto the Uno, and starts it, as in the Arduino IDE. Build stops a running sketch; so do unplugging the USB and holding the reset button.
- Components: resistor, LED, push button, wire, knob (potentiometer), light sensor (photoresistor), piezo buzzer (Sound starts off), RGB LED, capacitor (22 pF, 0.1 µF, 22 µF), and crystal (16 MHz). Drag a knob or a light sensor to change it.
- The bench, left to right: the instruments over the Uno; the breadboard standing on end, fed by Bus A and Bus B (their readings on top); the Electronics Lab with breadboard 2 under it. Both breadboards are half size (30 columns); breadboard 2 has no bus.
- Electronics Lab (top right): the Modules column places the L298N motor driver, the thumb joystick, and a two wheel robot; wire their dots (along the bottom of the lab) like the Uno's pins. Drag the joystick and watch the robot's arrows: one per wheel, longer with more volts, and a curved arrow for the turn. Clear Lab takes the modules out.
- Power supply: a roller for Bus A (top rails) and Bus B (bottom rails), OFF, 3.3, 5, 8, 9, 12, 14, or 18 V; 8 V and up are for the L298N motor supply. Its GND is separate from the Uno GND: wire the bus − rail to an Uno GND pin so the sketch and the supply share a common ground.
- Mistakes burn parts, marked with a red X: an LED over 50 mA, a resistor over 0.3 W, an Uno pin over 80 mA or above 5.5 V, and the Uno itself above 5.6 V on its 5V pin. Reset Breadboard replaces them and keeps the wiring.
- ATmega328P on the breadboard (Modules, Microchip (Atmel)): it runs its own sketch from the Chip tab when wired with its crystal, capacitors, and RESET. Click the Uno's chip to pull it: the Uno becomes its programmer. The page starts this way.
- Examples menu with sub menus, as in the Arduino IDE: 38 examples, including JoystickDrive and ChipJoystickDrive (Joystick-Uno-L298N in C, with the lab modules), Programmer, the Numerics lessons in C (Carpenter Software, Numerics), TrafficLightFSM (a finite state machine in loop()), TwoBotsFSM (two robots, two state machines with Enter, Execute, and Exit that send each other messages), and TimerButton (Timer.h and Button.h in C).
- Multimeter (under the power supply): V reads from the red probe to the black probe (click a probe, then a hole or pin; a PWM pin reads its average). mA goes in series: open the circuit and put the probes on the two ends. Ω reads between the probes, only with the USB unplugged and the power supply off.
- Oscilloscope (under the ID tag): uses the same probes and shows the voltage over time; PWM and tone() stand still on a rising edge, slower signals such as Blink scroll. See Help.
- Serial Plotter: always shown beside the code, it graphs the numbers the sketch prints, one trace per number on a line; "name:value" names a trace, as in the Arduino IDE 2.
- Tap the USB jack to plug or unplug the Uno. Hold the red reset button, or wire RESET to GND, to hold the Uno in reset.
- Your sketches, circuit, and lab modules are kept in this browser only (see the Privacy Policy). Save downloads an .ino file; Open loads one. Nothing is sent to a server.
- Registers DDRB, PORTB, PINB, DDRC, PORTC, PINC, DDRD, PORTD, and PIND work, so bare metal code such as DDRB |= (1 << DDB5); runs.
- Speed: math runs close to a real Uno, pin changes about 20 times slower; millis() steps by 0.1 ms; the screen updates about 60 times a second. See Help, Speed and Timing Limits.
- The LED current follows Ohm's law: I = (V − VLED) / R. The page warns above 20 mA per LED or pin.
- Not covered: libraries, #include files, String, interrupts, timers, and exact timing. An int is 16 bits on the Uno; values wrap when stored.
Designed: Jesse Carpenter and Claude (Anthropic)
Simulator code: MIT License.
Arduino and Uno are trademarks of Arduino SA. This simulator is not affiliated with or endorsed by Arduino.