LED and Resistor Basics
In this lesson, we will learn about two very important electronic components: the LED and the resistor. We will also build our first simple circuit on a breadboard.
In this lesson, we will learn about two very important electronic components: the LED and the resistor. We will also build our first simple circuit on a breadboard.
By the end of this lesson, you will understand:
- π‘ What an LED is
- π LED polarity
- π« What a resistor is
- β‘ Why an LED needs a resistor
- π How to connect an LED to a battery
- π‘ How to build an LED glowing circuit
- π How to control an LED using a push button
What Is an LED?
LED stands for Light Emitting Diode.
An LED is an electronic component that produces light when electric current flows through it in the correct direction.
LEDs are used in many places, including:
- Indicator lights
- Displays
- Toys
- Electronic devices
- Decorative lighting
- Traffic signals
- Arduino and robotics projects
LEDs are available in many colors, such as:
- π΄ Red
- π’ Green
- π΅ Blue
- π‘ Yellow
- βͺ White

An LED has two terminals:
- Anode (+)
- Cathode (β)
Longer leg β Anode (+)
Shorter leg β Cathode (β)
What Is a Resistor?
A resistor is an electronic component that provides resistance in a circuit.
Resistance opposes the flow of electric current.
The unit of resistance is:
Ohm (Ξ©)
Common resistor values include:
- 100 Ξ©
- 220 Ξ©
- 330 Ξ©
- 1 kΞ©
- 10 kΞ©
A resistor is commonly represented by:
ββββ/\/\/\/ββββ
or using the rectangular IEC symbol:
ββββ[ R ]ββββ

Project 1 β LED Glowing on a Breadboard
Objective
Build a simple circuit that makes an LED glow using a battery, resistor, and breadboard.
Components Required
- 1 Γ Breadboard
- 1 Γ LED
- 1 Γ 220 Ξ© or 330 Ξ© resistor
- 1 Γ Low-voltage battery/power source
- Jumper wires
Step-by-step
Step 1: Connect the positive terminal of the battery/power supply to the breadboard's positive rail.
Step 2: Connect the negative terminal to the negative rail.
Step 3: Insert the resistor into the breadboard.
Step 4: Connect one side of the resistor to the positive rail.
Step 5: Connect the other side of the resistor to the LED's anode.
Step 6: Connect the LED's cathode to the negative rail.
Step 7: Turn on/connect the power.
The LED should glow. π‘
Circuit Diagram

Project 2 β LED ON/OFF Using a Push Button
Now let's add the push button we learned about in Lesson 2.
Our goal is:
Press the button β LED ON
Release the button β LED OFF
Components Required
- Breadboard
- LED
- 220 Ξ© or 330 Ξ© resistor
- Push button
- Battery/power source
- Jumper wires
Circuit Diagram

Step-by-Step
Step 1
Connect the positive side of the battery to one side of the push button.
Step 2
Connect the other side of the push button to the resistor.
Step 3
Connect the resistor to the LED's anode.
Step 4
Connect the LED's cathode to the negative side of the battery.
What You Learned
In this lesson, you learned:
- π‘ An LED is a Light Emitting Diode.
- π LEDs have polarity.
- β The longer LED leg is normally the anode.
- β The shorter leg is normally the cathode.
- π« A resistor provides resistance and limits current.
- β‘ An LED normally needs appropriate current limiting.
- π A breadboard allows us to build circuits without soldering.
- π A push button can control whether a circuit is complete.
- π‘ You built your first LED circuit.
- π You built an LED ON/OFF circuit using a push button.