Blink your first LED with an Arduino

Place an Arduino Uno, wire an LED to pin 13, and watch the Blink sketch run, in a graph or in real time.

In this tutorial you’ll place an Arduino Uno, add an LED, and watch the board’s program blink it, just as it would on your desk. It takes about five minutes.

1. Place the board#

  1. Open the Parts navigator and go to Microcontrollers › Arduino.
  2. Drag Arduino Uno onto the canvas.

The Uno comes with the Blink sketch already loaded: it turns pin 13 on for half a second, then off for half a second, over and over. Pin 13 also drives the board’s own LED, the small dot marked L in the corner of the symbol.

2. Add an LED and a ground#

  1. Press R and click to place a resistor to the right of the board. Double-click its value and type 330.
  2. From Parts › Indicators, drag an LED (red) below the resistor.
  3. Press G and place a Ground below the LED.
  4. Wire D13 to the resistor, the resistor to the LED’s anode, the LED’s cathode to ground, and the Uno’s GND pin to ground too.

The board powers itself: its 5V and 3V3 pins are supplies, so you don’t need a battery. It does need the Ground symbol; without one, the Log and the Code window say add a ground.

3. Run it#

Clip a Voltage probe onto the wire from D13 and press Run (⌘R). Coppa simulates long enough to see the sketch work, about two seconds for Blink, and the graph beside the circuit shows pin 13 switching on and off every half second.

4. Run it on the bench#

  1. Select the Uno and click Edit Code… in its properties, or choose Window › Code. The Code window opens beside the circuit with the sketch:
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}
  1. Click Run on Bench in the Code window’s toolbar.

The circuit now runs continuously, in step with the clock. The LED and the L dot blink once a second. The subtitle shows Running sketch interpreter and the time.

  1. Change both delay(500) lines to delay(100). The bench restarts with the new sketch and the LED flashes faster.
  2. Click Stop when you’re done.

Run versus Run on Bench#

  • Run (⌘R) simulates a fixed stretch of time and shows it in the graph. With a board on the page, Coppa makes the window twice the total of the sketch’s delay() calls, between 0.2 and 5 seconds, or 2 seconds for firmware. A .tran directive on the page, or a Stop time in Settings › Simulation, sets it yourself.
  • Run on Bench keeps the circuit running in real time, like a board on your desk. Use it to watch things happen, to type into the serial monitor and to stop at breakpoints.

What’s next#

  • Print from the sketch with Serial.begin(9600) and Serial.println(...), and read it in the serial monitor.
  • Try the other examples in the Code window’s More menu: Fade, AnalogReadSerial, Hello LCD and more.
  • Learn what each board can run in Boards.

Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.