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.
Beginner Getting Started with Arduino in Kenya: What to Buy and What to Build
What an Arduino actually is, which board to buy first, the handful of parts worth owning from day one, and the projects to build in your first month.
Beginner DHT11 and DHT22: Reading Temperature and Humidity with Arduino
Wire either sensor, choose between them honestly, and handle the failed readings that every DHT sensor produces.