Skip to content
MCU Atlas
Walkthrough

Build and Debug Your First MicroPython Circuit with Zero Hardware

Build and debug a real MicroPython circuit in a free browser breadboard simulator: LED, push button, code and a 4-channel scope, every figure measured live.

By · Published: 11/30/2026 · Updated: 11/30/2026

Flat-vector illustration, night desk lit by a brass gooseneck lamp at the left. An open laptop shows a browser breadboard simulator: a cream canvas with a breadboard, a green RP2040 Pico module seated at its left, a resistor, one lit red LED, a push button and five dark jumper wires, with a dark oscilloscope strip below drawing a blue square wave, a yellow dip, a dashed level line and a centred orange trigger marker. A plain cream mug sits at the right. No readable words on screen.

Embedded programming normally starts with buying a board, installing a toolchain (software that builds and loads code), and flashing a program before your first LED blinks. de:volt is a free browser breadboard simulator (a solderless plug-in prototyping board): it emulates a Raspberry Pi Pico (RP2040) closely enough to run real MicroPython, with parts to wire and a 4-channel oscilloscope (test gear that draws voltage over time). No board, no toolchain, no installs — the parts tray, simulation, editor, and scope traces are all free without an account; the scope's interactive controls (channels, trigger) need a free sign-in, and the LOGIC/CAPTURES/OPERATING POINT/SWEEPS tabs and the AI assistant are marked PRO.

One rule up front: all code here is pinned to stable MicroPython v1.29.x. The latest stable release is v1.29.0 (2026-08-24); v1.30 exists only as preview builds (micropython.org, checked 2026-11-29), so its features — asyncio.Queue, WiFi HaLow, RP2350 hardware floating-point, WASM packaging — are in no stable release. A beginner tutorial shouldn't depend on features that can still move, so everything below uses long-stable APIs: machine.Pin, time.sleep_ms, ticks_ms, ticks_diff. de:volt's RP2040 executes MicroPython v1.28.0 — even stricter — so this code runs in the browser today and unchanged on a real Pico running v1.29.x.

Every figure below was measured live in de:volt (SPEED ×1).

Step 1: Open de:volt in your browser

Use a desktop browser (Chromium-class) about 1280 px wide or wider — narrower, and the code editor never appears. Go to https://sim.devoltapp.com/: the simulator, firmware, and scope run client-side as an anonymous * Untitled LOCAL project.

The fastest way in is this circuit link — de:volt's own export of the build (5 parts, 5 wires, the program below):

https://sim.devoltapp.com/?open=link#c=1.nVjRbts2FP0VgnuxAS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y_m58woo8UEdoYQASgAHRBl17AIFCUqVoZkhe33y6_XP5-StYgBChLnInkoaQFptNTkFBJRMZGG3V-IGvcsafGN-ABfgmd7QX40jLwChwDBX8V2Fky4nSy_IuWByVHY3rgZJ4a6CQdA8WAPdxP2Q3c5nYqQONnO5pDkY021CQUU1TPTaiPD-ynJa1JA_cRHLx3Mpq7ipNNAWLGuxqT_IdPYz9clCqqkVwQMCa5LmptUw3KmsZeyCjK7HjKQUBQmCrqnC2BlVdpjDCs0OuBUDl5anTRlw8e-Ckzhi8M0g1cfPXeDxc6OPlaYIlLRfP1Uita5n4SOoQ3IBn62425dQxeLcAhx5rBJVpaXZViXQQzSJ0aIIjIZor2oAw4WK9Pj6M2o8jjMYPZt3bqdWyEM9UwgR7kAtNFUwgbLzTf7kLUITAZ5ZKcfeiHwUH1-WnhtNmWtvRn6wDMsdp1Hilr4fab_KN-623d4zqnTechf2v76S9oNWn1kur9KodN5n2B1rLYcWc8JTCJAiQB7XIqayu0RWaNJU7FHlMndPMlzTzZ1mIV1Man4Sqv_w0Naond0iE68NWhOPLEh2PAGfkmrT3bZE1xHpqIPzpHGNnnRAp0Y8liCVcKnIhy0dvStqvYYKvZpZamVk7T6mLnXr0q1XDD9N5RBEhJ8HM6LIabQunnplOH30zo6u_6gNZNJ_-VH_97_YKOzdaJ44459gq32RyKaETWGc8G2k_l1wompXZtmJLuSbyxf6qd7dTj-C6ktrEPjNJGzqZS9-8DvrmtleeDpbHb5iXvv2VswvGT6-UWtjRHauLFnWIeUZNR6KjKiUrSZVfOcsl1QHb4LJyiXSYdygPE1odyB0eHagNGk8devSpeSRUZeuhtNLcr78FOJzOOK_Bi_w0ryrlJWLdWl3m1fHYfl6vHx7kVNcfwVX6SLdkuadSlW6KPEj5nknBt2WeV6jptqCS6J2kv5sXYg_mu3LBMc4nnNcrTY3Hqb6p_PX69vYf

The circuit loads and auto-starts: the top bar shows * Untitled LOCAL, the t= counter, HEALTHY or SLOW, and SPEED ×1; the red LED is already blinking. Dismiss the Start on the breadboard card with Skip.

The de:volt simulator at first open, circuit link loaded: the top bar's Untitled LOCAL project, t= counter, HEALTHY/SLOW and SPEED x1 chips, the Start-on-the-breadboard onboarding card with its Skip button, and the bottom scope already drawing the blink square wave.
First open via the circuit link — the simulation auto-runs; the onboarding card dims the UI. Screenshot: MCU Atlas, captured live in de:volt.

Step 2: Breadboard the circuit

What you're building: an LED blinked by MicroPython on GP15 through a current-limiting 220 Ω resistor, plus a push button on GP14 that toggles the blinking. Five parts from the Components tray, five wires.

Part (tray name)Where it goes
Breadboard (830)Canvas centre
RP2040 MicroPython BoardSeated in rows a (top) and f (bottom), columns 1–20
Resistor (220 Ω)Pin a in hole b24, pin b in hole b27
Red LEDAnode A in hole d27, cathode K in hole d29
Push ButtonStraddling the centre channel above bottom-bank columns 23–26

Decoder: a hole is row letter + column number (b24 = row b, column 24); the LED's A (anode) leg is positive, K (cathode) negative; GP15/GP14 are GPIO (general-purpose input/output) pins. Five jumper wires (row f is the Pico's bottom pin row):

FromTo
Pico pin gp15 (hole f20)Resistor pin a (b24)
Resistor pin b (b27)Red LED anode A (d27)
Red LED cathode K (d29)Pico pin gnd (f3)
Push Button pin aPico pin gp14 (f19)
Push Button pin bPico pin gnd (f3)

The LED chain is GP15 → 220 Ω → LED → ground; the button shorts GP14 to ground when pressed: GP14 reads 1 at rest (its internal pull-up holds the pin at 3.3 V), 0 while pressed. No bench supply: the board's USB power property is on by default. Lit, the LED draws about 5.8 mA — comfortably under its 20 mA maximum.

Finished breadboard: an 830-point breadboard with the RP2040 MicroPython board seated in columns 1-20, a 220 Ω resistor, red LED and push button wired with all five jumper wires.
The finished five-wire circuit on the virtual breadboard. Screenshot: MCU Atlas, captured live in de:volt.

Step 3: Edit and run MicroPython in the browser

First quirk: the Code sub-tab only appears when the board itself is selected — click an empty canvas spot, then the Pico body. Click the Inspector tab on the window's right edge, then Code: the header reads RP2040, with a Run button (Ctrl/Cmd+Enter) above a Monaco editor.

Replace the editor contents with this program:

from machine import Pin
from time import sleep_ms, ticks_ms, ticks_diff

led = Pin(15, Pin.OUT)                    # GP15 -> resistor -> LED -> GND
button = Pin(14, Pin.IN, Pin.PULL_UP)     # GP14, button to GND: 1 at rest, 0 pressed

BLINK_MS = 300                            # LED toggle period (ms)
blinking = True                           # button toggles blinking on/off
last_blink = ticks_ms()
last_press = ticks_ms()
prev = 1                                  # previous button level (edge detect)

while True:
    now = ticks_ms()
    state = button.value()
    # toggle blink on a falling edge (press), debounce 200 ms
    if prev == 1 and state == 0 and ticks_diff(now, last_press) > 200:
        blinking = not blinking
        last_press = now
    prev = state
    if blinking:
        if ticks_diff(now, last_blink) >= BLINK_MS:
            led.toggle()
            last_blink = now
    else:
        led.off()
    sleep_ms(10)

Click Run. The status dot reads running, and the LED blinks at a measured period of 0.60 s (300 ms per level, BLINK_MS).

One gap: no serial monitor (the text window where print() output normally appears) — de:volt's Pico shows output nowhere, so there's no print(); everything shows on the LED and the scope.

Now press the button: a plain click only selects a part, so press and hold the cap a quarter to half second, then release. Each press toggles the blinking once. The code acts on the falling edge (the pin's high-to-low drop), with 200 ms debounce ignoring repeats.

The Inspector's Code sub-tab on the selected board: RP2040 header with the running status dot, the Run button and the full blink_button.py program in the Monaco editor, LED lit in the canvas.
The code editor on the selected board, program running. Screenshot: MCU Atlas, captured live in de:volt.

Step 4: Watch the signal on the 4-channel scope

Sign in first: as a guest the scope is view-only (traces draw; the channel and trigger controls ignore clicks). File → Sign in to save — Google, Microsoft, or an emailed link, free — unlocks the controls. The bottom Analysis → SCOPE panel is open by default with four auto-assigned channels, Node 0–Node 3. Remove Node 1 and Node 3 (click each chip → Remove from scope), leaving Node 0 (GP15, LED drive) and Node 2 (GP14, button).

The trigger redraws the trace each time the signal crosses the set level, holding it still. Arm it: click TRIGGER Off → On, and in the popover set Source = Node 0, Edge = Falling, click the 50% chip on Level (1.50 V), and Mode = Normal. Leave Position, Persistence, and the timebase (TIME — horizontal time span) at their defaults (50%, Off, 1 s).

Why the LED line? The simulated button is an ideal switch, and the trigger never fires on it; Node 0 fires on every blink edge, and the press still shows on Node 2.

With the program running, the trace shows:

  • Blue (Node 0): a square wave (the pin switching low↔high) between 0 mV and 3.01 V (3.01 V high under load, not 3.30 V) at a measured period of ≈0.60 s.

  • Yellow (Node 2): idles at 3.30 V (internal pull-up), diving to 0 mV only while held.

Press and hold the button now: the two traces fall together at the centre trigger marker when the press lands in the LED's lit phase — about half the time; otherwise yellow's fall sits just right of it. Either way, blue stays flat at 0 V right of the marker (blinking paused) — the firmware saw the press and acted. Release and yellow rises back to 3.30 V; press again and the square wave returns.

Two quirks: if the trace rolls, reopen the trigger popover and click 50% (the level can default to 0 after a reload); scope settings never survive a reload — the circuit link restores parts, wires, and program, not the scope.

The bottom Analysis SCOPE panel: Node 0 and Node 2 channel chips and the Node 0 1.50 V trigger chip, a blue square wave, a yellow line pulled low mid-press, both traces falling together at the centred orange trigger marker with the dashed 1.5 V level line.
Press timed to the LED's lit phase: both traces fall together at the marker, and blue stays flat at 0 V right of it (blinking paused). Screenshot: MCU Atlas, captured live in de:volt.

What's next

You now have the full loop — write, flash, wire, measure — with zero hardware. Inside the simulator: change BLINK_MS and watch the period move, or try Load an example… (GP25 on-board LED, a potentiometer on GP26). For real hardware, export with File → Copy link to circuit and port the same code to a Pico running v1.29.x.

Parts Mentioned