T ThinkEdge Learn

Arduino LED projects for beginners

Every LED build on this site — the first blink, the fade, the chaser and the traffic lights — with the parts, the wiring and the code written out.

36 projects Beginner first Arduino uno, Arduino nano, Arduino mega

An LED is the first thing that proves the board is alive and the first thing that proves the wiring is right. If the current is too high the LED burns out, and if the resistor is missing the current is far too high — which is exactly the mistake the simulator is built to let a student make safely, on screen, before touching a bag of components.

The projects here are ordered so that each one adds a single idea to the last: an output pin drives a LED, then a PWM duty cycle dims it, then a loop moves it, then a second and third LED turn it into a display. A class that works down the list ends the unit able to read a datasheet and pick their own resistor.

What you need

The parts below are the ones the most of these projects share. Each project page lists the full set for that build.

PartUsed byWhy
1× breadboard16Holds the circuit together without solder
1× 220Ω resistor16Limits the current through an LED or a pin
1× Arduino Uno R316The board that runs the sketch
Breadboard15Holds the circuit together without solder
1× red LED9The output you can see working
1× 9V battery9The supply the circuit runs on

All 36 arduino led projects

Easiest first. Each card links to the project's own page with the wiring, the parts and the code written out.

Relay Driver

Switching a 50 mA lamp from a 20 mA pin

Tier 1 · Basics · Beginner · 25 min
Arduino — Blink Without Delay

Use millis() instead of delay() — the right way to blink

Tier 1 · Basics · Easy · 20 min
Arduino — Fade an LED with PWM

analogWrite on D9 — the smoothest way to dim an LED

Tier 1 · Basics · Easy · 20 min
Arduino Nano — Temperature on Serial Monitor

Read the room temperature every 2 seconds and print it

Tier 1 · Basics · Easy · 20 min
Arduino — Light-Activated Night Lamp

LDR + LED — the LED turns on automatically when it gets dark

Tier 1 · Basics · Easy · 20 min
Arduino — LED Chaser (Knight Rider)

5 LEDs that light up in sequence, like KITT from Knight Rider

Tier 1 · Basics · Easy · 25 min
LDR — Automatic Night Light

The room gets dark, the LED turns on

Tier 2 · Logic & Sensors · Easy · 25 min
PIR — Motion-Activated LED

Walk past, the light turns on. Stand still, it goes off.

Tier 2 · Logic & Sensors · Easy · 25 min
Sound Sensor — Loud Sound Light

LED brightness follows the sound · quiet keeps it off

Tier 2 · Logic & Sensors · Easy · 15 min
Arduino — PIR Motion Burglar Alarm

Detect motion with the PIR sensor and sound the buzzer

Tier 2 · Sensor Projects · Easy · 25 min
Morse Code Telegraph

How the first internet worked — one click at a time

Tier 2 · Logic & Sensors · Easy · 25 min
Binary Counter — How Computers Count

Four LEDs, sixteen numbers — counting in twos

Tier 2 · Logic & Sensors · Easy · 25 min
Smart Recycling Bin

Ultrasonic sensor detects when the bin is full

Tier 2 · Logic & Sensors · Easy · 30 min
Classroom Voting Machine

Three buttons, three options, instant democracy

Tier 2 · Logic & Sensors · Easy · 30 min
Conveyor Belt Counter

Count objects on a moving line — like a real factory sensor

Tier 2 · Logic & Sensors · Easy · 25 min
Arduino Nano — Reaction Timer Game

How fast can you press the button? Built in a tiny form factor.

Tier 2 · Sensor Projects · Intermediate · 30 min
Arduino Mega — 10-LED Bar Graph

Light up an LED "bar" that grows with the analog input

Tier 2 · Sensor Projects · Intermediate · 35 min
Arduino — Two-Player Reaction Battle

Two players, two buttons — fastest finger wins

Tier 2 · Sensor Projects · Intermediate · 30 min
Police Siren

Alternating red + blue LEDs with a wailing 600–1500 Hz buzzer

Tier 3 · Combined Projects · Intermediate · 30 min
DHT11 — Auto Fan Controller

Hot day, fan on. Cool day, fan off.

Tier 3 · Combined Projects · Intermediate · 40 min
Ultrasonic — Reverse Parking Sensor

Beep faster as you get closer

Tier 3 · Combined Projects · Intermediate · 40 min
Simon Says — Memory Game

Repeat the pattern, level by level

Tier 3 · Combined Projects · Intermediate · 45 min
DHT11 — Temperature Alarm

Too hot, too cold, or just right

Tier 3 · Combined Projects · Intermediate · 35 min
PIR — Intruder Alarm

Motion + armed switch = loud alarm. Disarm first.

Tier 3 · Combined Projects · Intermediate · 35 min
PIR — Smart Doorbell / Welcome Light

A guest walks up to the door — chime + welcome LED

Tier 3 · Combined Projects · Intermediate · 30 min
Sound Sensor — VU Meter (5 LEDs)

The louder the sound, the more LEDs light up

Tier 3 · Combined Projects · Intermediate · 35 min
LDR — Sunrise Alarm Clock

When the sun rises, the room wakes up with a soft glow

Tier 3 · Combined Projects · Intermediate · 30 min
Ultrasonic — Object Counter

Count things as they pass — like a door sensor or factory line

Tier 3 · Combined Projects · Intermediate · 30 min
Arduino — RGB LED Color Mixer

Three pots, one RGB LED — mix any color of the rainbow

Tier 3 · Combined Projects · Intermediate · 30 min
Arduino Mega — Traffic Light Controller

A full intersection with pedestrian crossing — and a buzzer

Tier 3 · Combined Projects · Intermediate · 40 min
Insulation Test Chamber

Which material keeps heat in best?

Tier 3 · Combined · Intermediate · 40 min
Smart Sundial

A light sensor that tells the time of day

Tier 3 · Combined · Intermediate · 35 min
Toy Elevator Controller

Limit switches and motor control — the basics of elevator design

Tier 3 · Combined · Intermediate · 45 min
Arduino — Ultrasonic Distance on Serial

Read distance with HC-SR04 and print the cm on Serial Monitor

Tier 3 · Combined Projects · Advanced · 35 min
Smart Fan — Temperature + Distance

Only blows when it is hot AND someone is within 100 cm

Tier 4 · Capstone · Advanced · 60 min
Pet Feeder — Distance-Triggered Servo

When the pet is near, drop food

Tier 4 · Capstone · Advanced · 60 min

How to use these with a class

These 36 projects run from about 15 minutes to 60 minutes each, and 6 of them are Tier 1 — one component and one idea, which is what a class can finish in a single period.

Each project page carries the full build — the concept, the parts, the wiring one step at a time and the sketch — so a class can work through it without the teacher having to explain every wire.

Every one of them can be practised in the browser simulator first, with the real sketch and a real circuit solver behind it, and the first 15 projects are free with no account.

Common questions

Why does every LED need a resistor?

An LED does not limit its own current. Without a resistor in series the pin drives as much current as the LED will take, and the LED destroys itself. 220 Ω is the value used on almost every project here, because it works with the 5 V pin on every Arduino board. The simulator shows the current so a student can see what the resistor is doing.

Do I need to know C++ to build these?

No. Every project carries the sketch it runs, and the first ones use four lines of it. A student can read a sketch, change the pin number or the delay and see what happens — that is the whole skill the first term needs.

How long does the first one take?

About twenty minutes, including reading the concept. One LED, one resistor, one pin. The point of starting here is not the LED; it is that the class finds out who is good at wiring.

Related

All the projectsThe complete catalogue The guidesHow the ideas behind these work Arduino projects for beginnersThe board-specific builds Arduino simulator in the browserTry any of these without hardware

Try the full simulator with your class

103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.