breadboard
docs

Example project · Start here

Arduino Uno R3 blink (open bench)

The classic first sketch on the classic board: a real emulated ATmega328P Uno on the open bench, D13 wired to an LED pin-to-pin. The sketch is in Code; sign in and press Compile & upload to build it on the server and flash the result.

The Arduino Uno R3 blink (open bench) circuit as rendered by the simulator

How it works

The classic first sketch on the classic board, with no breadboard at all: every part sits free on the bench and wires run pin-to-pin. The Uno runs from its USB cable, and D13 drives the LED through a 220 Ω resistor. The board boots real blink firmware on the emulated ATmega328P, and the sketch itself is in Code: sign in, edit it, and Compile & upload builds genuine AVR firmware on the server and flashes it here.

What's on the bench

  • Arduino Uno R3
  • LED
  • Resistor

How it's wired

  • Arduino Uno R3 · d13→Resistor · a
  • Resistor · b→LED · a
  • LED · k→Arduino Uno R3 · gnd2

The code

This Arduino C++ sketch lives in Code; sign in and press Compile & upload to build real firmware for the emulated board.

// The classic blink. Edit it, then Compile & upload (sign-in needed):
// the server builds real AVR firmware and boots it on this emulated Uno.
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}

Try this

  • Drag the parts around: free placement means the wires follow, and the circuit keeps running.
  • Hover the d13 pin and watch it alternate between ~5 V and 0 V every half second.
  • Edit the delays in Code and press Compile & upload (sign-in needed) to run your own build.
  • Add a second LED + resistor from d12 to gnd, copy the pattern in the sketch, and make them alternate.

Related projects