LED Blink — Your First Circuit
Build your first circuit by connecting an LED to Arduino and writing code to make it blink on and off.
What students learn
Students learn the basics of a digital circuit — how current flows from Arduino through a resistor and LED, and how to write their first Arduino sketch using digitalWrite() and delay().
The science behind this experiment
- LEDs are polarized — current only flows in one direction (anode + to cathode −)
- A resistor limits current to prevent LED damage. V = IR, so R = (5V - 2V) / 0.02A = 150Ω minimum
- digitalWrite(pin, HIGH) sets the pin to 5V; LOW sets it to 0V
- delay(ms) pauses the program for the specified milliseconds
Key relation: R = (V_supply - V_LED) / I_LED = (5V - 2V) / 20mA = 150Ω (use 220Ω for safety)
Equipment used
- Arduino Uno R3
- Breadboard + wooden base
- 1x Red LED
- 1x 220Ω resistor (red-red-brown)
- 2x Jumper wires
- USB cable
Questions for students
- Why do we need a resistor with an LED but not with the built-in LED on pin 13?
- If you wanted the LED to blink in a pattern (2 fast, 1 slow), how would you modify the code?
What to expect
The LED blinks on for 1 second, then off for 1 second, repeating indefinitely. Changing delay(1000) to delay(250) makes it blink faster. An LED circuit requires a current-limiting resistor to protect the LED. The Arduino's digitalWrite() function controls the pin voltage (5V or 0V), and delay() controls timing.
Run this experiment in your classroom
This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.
See the ATP Volta mobile science labTalk to our team