Electronic circuits · no code

Simple LED Circuit

Light an LED from a 9 V battery with a resistor that protects it. It is the first circuit in electronics and needs no programming at all.

  • LevelBeginner
  • Time10 min
  • Power9 V DC
  • CategoryLights & LEDs

Bill of materials

Everything you need to build it, with the reference you will see on the schematic.

Bill of materials
Qty Part Ref.
1 470 Ω resistor (yellow-violet-brown) R1
1 red LED D1
1 9 V battery with snap clip BT1
1 Breadboard (400 tie-points or more)
2 Jumper wires

Missing parts? The kits recommended by Impeca Tech include almost all of them. See the kits

Schematic & wiring

On the left, the circuit diagram; on the right, the same circuit built on a breadboard. Both connect exactly the same things.

Circuit diagram of “Simple LED Circuit”
Circuit diagram
Breadboard layout of “Simple LED Circuit”
Breadboard layout

Wire it step by step

  1. Place the components
    • 470 Ω resistor R1 (bands: yellow, violet, brown, gold): one leg in 7f and the other in 4f (either way round).
    • red LED D1: the long leg (+, anode) in 4g and the short leg (−, cathode, flat side) in 3g.
  2. Add the jumper wires
    • Red wire: from 7j to the + (red) rail.
    • Black wire: from 3j to the − (blue) rail.
  3. Connect the battery
    • Connect the 9 V battery to its clip: the clip’s red lead to the + (red) rail and the black one to the − (blue) rail. Do this last, once everything else is in place.
  4. Test the circuit
    • As soon as you connect the battery the LED should light. Disconnect and reconnect it and it lights the same way: there is nothing to adjust.

How to read the holes: the letter is the row and the number is the column of the breadboard (for example 7f). The red (+) and blue (−) rails are the two long lines along the edge.

How does it work?

  1. 19 V battery
  2. 2The resistor limits the current
  3. 3About 15 mA flows through the LED
  4. 4The LED lights up

An LED does not limit its own current: connect it straight to the battery and the current grows unchecked until it burns out. Resistor R1 (470 Ω) takes most of the voltage (about 7 V of the 9 V) and, by Ohm’s law, lets only about 15 mA through, a safe current that is plenty to make the LED shine.

Testing & troubleshooting

What you should see

Normal operation
LED current≈ 15 mA
LED voltage≈ 1.92 V

Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.

If something does not work

The LED does not light?

Turn the LED round: it only works with the long leg (+) on the resistor side. Also check that the battery is not flat and that each leg is in a different column.

The LED is very dim?

Look at the resistor bands: they should be yellow, violet and brown (470 Ω). One with a much higher value, such as 47 kΩ, hardly lets the LED glow.

Want to automate this circuit with code?

Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.