← Back to blog

June 19, 2026 · 4 min read

How to Simulate the Arduino Blink Sketch (LED Blink)

Video coming soon

We’re recording the walkthrough for this tutorial — the written steps below already cover everything you need.

Blink is the first sketch almost everyone runs on a real Arduino, and it's just as useful as a first test in simulation — it confirms your wiring, your pin numbers, and that code is actually compiling and running, not just being pattern-matched. Here's how to set it up in LogicBench.

01

Place the Arduino and an LED

Drag an Arduino Uno onto the workspace, then place an LED and a current-limiting resistor (around 220Ω) on the breadboard.

02

Wire the LED circuit

Connect the Arduino's digital pin 13 through the resistor to the LED's anode, and the LED's cathode to ground. This mirrors the exact wiring used on a real Uno board.

03

Write or paste the Blink sketch

Open the code editor and use the standard Blink sketch: pinMode(13, OUTPUT) in setup(), then digitalWrite(13, HIGH), delay(1000), digitalWrite(13, LOW), delay(1000) in loop().

04

Compile and run

Hit compile. LogicBench's C++ engine actually transpiles and runs your sketch — it isn't matched against a template — so a typo in your code will fail to compile, exactly like it would on real hardware.

05

Watch the LED blink in real time

Once it compiles, the simulation runs and the LED toggles on a real one-second interval driven by your actual delay() calls.


Try it yourself

Open LogicBench and follow along — no install required.

Launch the simulator