Arduino for Kids: Build Your First Blinking LED
The first Arduino project everyone builds is a blinking light, and the first thing most beginners do is burn out the LED by wiring it straight to the pin. Both of those are worth doing on a simulator before spending money, because a simulated LED that pops teaches the lesson and costs nothing. This guide is the Blink circuit from the ground up - what an Arduino is, how a breadboard works, and why a 220-ohm resistor is the difference between a light and a puff of smoke.
Everything below comes from 3Eyes Circuits - a 3D interactive Arduino lab where a child drags LEDs, resistors and wires onto a breadboard and runs real sketches, with parts that burn out if wired wrong. The recordings below are taken straight from it; the lesson itself is part of 3Eyes.
What an Arduino actually is
An Arduino Uno is a small computer with no screen and no keyboard. What it has instead is a row of metal pins, and a program on the board can switch each pin between 0 volts and 5 volts. That is the entire trick. Connect something to a pin - a light, a buzzer, a motor - and the program can turn it on and off, thousands of times a second if it likes.
The program is called a sketch. Blink, the one every Arduino ships with, is four lines: turn pin 13 on, wait a second, turn it off, wait a second, repeat. Children who have seen Scratch will recognise the shape immediately.
How a breadboard connects things without solder
A breadboard looks like a slab of holes, and the holes are wired together underneath in a pattern that is not obvious until someone tells you.
The holes are in rows of five, lettered a to e on one side and f to j on the other. Each row of five is joined together underneath. Push two wires into holes b3 and d3 and they are connected; push one into d3 and one into d4 and they are not. The long strips down each edge - marked + and − - run the full length of the board and carry power and ground to wherever you need them.
That is all there is to it. Once a child knows "same row of five = same wire", they can read any breadboard diagram on the internet.
Why the LED needs a resistor
This is the part beginners skip and regret. An LED is a light-emitting diode, and a diode is not a bulb. A bulb resists current and warms up gently. A diode lets current through almost freely once it is on, so if you connect it straight across 5 volts it takes as much current as the pin can give - far more than the 20 milliamps it is rated for. The LED dies, and on a real board the pin can be damaged with it.
A resistor in series limits the current. The arithmetic a child can do:
- The Arduino pin gives 5 volts.
- A red LED uses up about 2 volts of that just to turn on.
- That leaves 3 volts across the resistor.
- Current = volts ÷ ohms = 3 ÷ 220 = about 14 milliamps. Bright, and safe.
Swap the 220 Ω for 1 kΩ and the current drops to 3 mA - dimmer but fine. Leave it out and the simulator does what the real part does: the LED flares, burns out and turns dark, and the history panel logs why.
Polarity: the long leg goes to the plus side
The other classic mistake. An LED only works one way round. The longer leg is the anode and goes toward the positive side (the pin, via the resistor); the shorter leg is the cathode and goes to ground. Backwards, nothing happens - no damage, just no light. Flip it.
Building Blink, step by step
Wire it in this order and it works first time.
- Jumper wire from pin D13 to any empty row on the breadboard. Pin 13 is the one with the built-in LED next to it, so you get a second light for free.
- Resistor (220 Ω) from that row to a new row. Resistors have no polarity - either way round is fine.
- LED from the resistor's row to another new row, long leg toward the resistor.
- Jumper wire from the LED's short-leg row to GND on the Arduino.
- Run the Blink sketch. The LED blinks once a second. The serial monitor shows
digitalWrite(13, HIGH)andLOWalternating, which is the program talking.
The three instructions every sketch uses:
| Command | What it does | Used for |
|---|---|---|
digitalWrite(pin, HIGH) |
Sets a pin to 5 V (or 0 V with LOW) |
Lights, relays, anything on/off |
analogWrite(pin, 0-255) |
Switches a pin on and off very fast so it looks partly on | Dimming an LED, motor speed |
tone(pin, frequency) |
Sends a square wave at a set pitch | Buzzers and beeps |
analogWrite is the interesting one. Pins cannot output 2.5 volts, only 0 or 5. So the Arduino fakes it by switching at 490 times a second - on for half the time reads as half brightness. This is called PWM, it only works on pins marked with a ~, and the Fade sketch in the simulator uses pin 9 to show it.
What to build next
Once Blink works, the same three parts do a lot. The simulator has guided projects for each:
- Breathing light. Move the LED to pin 9 and run Fade. The brightness ramps up and down smoothly - that is
analogWritedoing its PWM trick. - Doorbell. Add a push button and a buzzer. Press the button and pin 2 reads HIGH; the sketch calls
tone()and the buzzer sounds. That is an input controlling an output, which is what every real device does. - Two LEDs alternating. Traffic lights are the classic follow-on.
The simulator's job is to make these free to get wrong. A real Uno and a starter kit cost about the price of a video game, and by the time a child buys one they already know why the resistor matters.
Where 3Eyes Fits
3Eyes Circuits is one of about sixty interactive lessons built into 3Eyes, which is a parental controls product for family computers - it filters the machine, approves sites rather than blocking them one at a time, and limits YouTube to channels you choose.
The lessons exist because a computer that only ever says no is a hard thing to defend to a twelve-year-old. When the same laptop has an electronics bench and sixty science lessons on it, the limits stop being the whole relationship.
About two minutes to set up. See what it includes or create an account.
Frequently asked questions
What age is Arduino good for? Around 12 and up to work alone, 9 or 10 with an adult alongside. The wiring is easy; the patience to find a wire in the wrong hole is the real requirement, and a simulator that highlights every hole by name helps a lot with that.
Do you need to know how to code for Arduino? Not to start. Blink and Fade come ready-made, and changing a number - the delay, the pin, the brightness - is where most children begin. Real coding arrives when they want the board to do something no example does.
Why did my LED burn out? Almost always no resistor, or one with far too low a value. An LED lets current through almost freely, so without a resistor to limit it the current exceeds what the LED can take. Use 220 Ω to 1 kΩ for a standard LED on 5 V.
Which way round does an LED go? Long leg to the positive side (the pin, through the resistor), short leg to ground. The rim of the plastic is also flat on the short-leg side. Backwards it just stays dark - no harm done.
Is a simulator as good as a real Arduino? For learning the ideas, yes, and it is better for mistakes because nothing breaks. For the satisfaction of a real light coming on, no - and that is the point of graduating to a kit once the circuit is understood.