Beginner
Blink an LED with Arduino Uno
You'll need an Arduino Uno, an LED, a 220ohm resistor and two jumper wires.
Step 1: Connect the LED's long leg through the resistor to pin 13, and the short leg to GND.
Step 2: Upload the sketch below and watch it blink.
Code
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
} Need parts for this project?
Shop components Browse our full catalog of Arduino boards, sensors and components.
Reviews
Be the first to review this guide.
More tutorials
Beginner Controlling a Servo Motor with Arduino: SG90 and MG996R
Move a servo to an exact angle, and understand why powering it from the Arduino is the mistake that breaks most first attempts.
Arduino Final-Year Project Ideas That Are Actually Achievable
Project ideas grouped by difficulty, with the parts each one needs and an honest note on where students usually get stuck.
Beginner ESP32 vs Arduino Uno: Which Board Should You Buy?
An honest comparison of the two most common boards, and a clear rule for choosing between them.