UB32 Help: the Uno Breadboard Simulator
How to use the simulator, from the first example to the multimeter. For the Arduino C commands it runs, see the UB32 Reference. Back to the simulator.
Help - Table of Contents
- Getting Started
- UB32 Simulator
- Quick Start
- The Bench
- The Uno
- The Breadboard and Components
- Power Supply and Bus Meters
- Multimeter
- Mistakes and Burned Parts
- Notes
- Privacy and Limits
UB32 Simulator
The Uno Breadboard Simulator (UB32, version 0.3.2) is an Arduino Uno, a breadboard, a power supply, and a multimeter that run in your browser. Write a sketch, build the circuit, and run it. Nothing is sent to a server. It is made for a desktop or laptop with a mouse or trackpad.
Quick Start
- Press Examples and choose a sketch, for example 01.Basics, Blink.
- Leave Wire it for me checked: the example's circuit is placed on the breadboard.
- Press Upload (the right arrow). It builds the sketch, loads it onto the Uno, and starts it.
- Watch the LEDs on the breadboard and the text in the Serial Monitor.
- To stop the sketch, unplug the USB (click the USB jack) or hold the reset button, as on a real Uno.
Build and Upload
- Build (the check mark) checks the code (syntax). An error shows in red in the Output with its line number, and that line number turns red in the editor.
- Upload (the right arrow) builds the sketch, runs the compiler checks, loads it onto the Uno, and starts it, as in the Arduino IDE. The USB cable must be plugged in.
- Each press starts a new Output; its first line names the button and the sketch, for
example
Upload: Blink.ino. - The green Run LED beside Upload is on while the sketch runs and off when it stops.
- The sketch runs until you press Build, upload another sketch, unplug the USB, or hold the reset button. The editor tab shows "changed since Upload" when the code differs from the sketch on the Uno.
Editor, Output, Serial Monitor, and Plotter
- The editor keeps its size; long code scrolls with the scroll bars or the mouse wheel. Drag the grip in the lower right corner to make it taller.
- Output shows Build and Upload messages and errors. Serial Monitor shows what the sketch prints with Serial.print and Serial.println.
- The Serial Plotter graphs the numbers the sketch prints, one trace per number
on a line. Print
name:valuepairs to name the traces, as in the Arduino IDE 2. - Output, Serial Monitor, and Plotter also have grips. A new example, New, or Reset Page sets the sizes back.
Examples, Files, and Reference
- Examples: 35 sketches in sub menus, as in the Arduino IDE (Basics, Digital, Analog, Carpenter Software with the Numerics lessons, and the finite state machines).
- New starts an empty sketch. Save downloads an .ino file; Open loads one. The circuit and power supply ride along as comment lines.
- Reset Page clears what this browser keeps and starts over.
- Reference opens the UB32 Reference: every Arduino C command the simulator runs.
The Uno
- Click the USB jack to plug or unplug the Uno. The ON LED shows power.
- Hold the red reset button, or wire RESET to GND, to hold the Uno in reset.
- The L LED is on pin 13; TX blinks when the sketch prints.
The Breadboard and Components
- Rows a to e and f to j: the five holes in a column on each half are connected. The gap in the middle separates the halves.
- Bus A is the top pair of rails and Bus B the bottom pair, each with a + rail and a − rail.
- Choose a component, then click two holes: a resistor 2 to 8 holes apart; an LED with the long leg (+) first; a wire from a pin or hole to another pin or hole.
- Hold a button to press it. Drag a knob or a light sensor to change it.
- Delete removes a part; Starter Circuit places two LEDs and a button; Clear Board removes every part.
Power Supply and Bus Meters
- The power supply sits between the Bus A and Bus B meters. Press A or B beside 3.3V, 5V, or 9V to put that voltage on a bus; one post per bus.
- The supply 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; until then the bus meter shows "no common GND".
- Each bus meter shows a green LED (on) or red LED (off), the voltage, and its source: from supply, from Uno 5V, or "two sources!" in red.
Multimeter
- V: click the red probe, then a hole or pin; then the black probe and another hole or pin. It reads the voltage from red to black (a PWM pin reads its average).
- mA: the meter goes in series, as on a real meter. Open the circuit where you want to measure: delete a wire (or move a lead). Put the red probe on one end of the gap and the black probe on the other. The meter closes the gap and reads the current from red to black. Example: in Blink, delete the wire from pin 13 and put the red probe on pin 13 and the black probe on the hole where the wire ended; the LED lights and the meter reads about 12 mA.
- Never put the mA probes across a source (for example 5V and GND, or a pin and GND): that is a short circuit. Over 200 mA the meter's fuse blows and it shows FUSE; press UNPLUG to replace the fuse. A pin can burn before the fuse blows. Press UNPLUG before you change to mA.
- Ω: unplug the USB and turn off both buses, then put the red and black probes on two holes or pins. The meter reads the resistance between them through resistors, wires, pressed buttons, the knob, and the light sensor. Two holes in the same strip read 0.0 Ω; with nothing between them it reads OL; an LED reads OL. With the power on it shows PWR ON, as a real meter warns.
- UNPLUG takes both test leads off the board.
Mistakes and Burned Parts
- 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.
- The page warns above 20 mA per LED or pin. Try 24.MistakeLab in the Examples.
- Reset Breadboard replaces burned parts and keeps the wiring.
Privacy and Limits
- Your sketch and circuit are kept in this browser only. Nothing is sent to a server.
- Not covered: libraries, String, interrupts, timers, and exact timing. See the Not supported list.
- Designed: Jesse Carpenter and Claude (Anthropic). Simulator code: MIT License.