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 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.
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 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.