2.1 Led
2.1 Led
LED
Overview
In this lesson, you will learn how to change the brightness of an LED
by using different values of resistor.
Component Required:
(1) x Elegoo Uno R3
Component Introduction
BREADBOARD MB-102:
A breadboard enables you to creat a prototype circuits quickly, without having to solder the connections.
Below is an example.
①The simplest kind is just a grid of holes in a plastic block. Inside are strips of metal that provide electrical
connection between holes in the shorter rows. Pushing the legs of two different components into the same
row joins them together electrically. A deep channel running down the middle indicates that there is a
break in connections there, meaning, you can push a chip in with the legs at either side of the channel
without connecting them together.
②Some breadboards have two strips of holes running along the long edges of the board that are separated
from the main grid. These have strips running down the length of the board inside and provide a way to
connect a common voltage. They are usually in pairs for +5 volts and ground. These strips are referred to as
rails and they enable you to connect power to many components or points in the board.
While breadboards are great for prototyping, they have some limitations. Because the connections are
push-fit and temporary, they are not as reliable as soldered connections. If you are having intermittent
problems with a circuit, it could be due to a poor connection on a breadboard.
LED:
LEDs LEDs make great indicator lights. They use very little electricity and they pretty much last forever.
In this lesson, you will use perhaps the most common of all LEDs: a 5mm red LED.
5mm refers to the diameter of the LED. Other common sizes are 3mm and 10mm.
You cannot directly connect an LED to a battery or voltage source because
① the LED has a positive and a negative lead and will not light if placed the wrong way.
②an LED must be used with a resistor to limit or 'choke' the amount of current flowing through it;
otherwise, it will burn out!
If you do not use a resistor with an LED, then it may well be destroyed almost +
immediately, as too much current will flow through it, heating it and destroying -
the 'junction' where the light is produced.
There are two ways to tell which is the positive lead of the LED and which the negative.
① the positive lead is longer.
② where the negative lead enters the body of the LED, there is a flat edge to the case of the LED.
If you happen to have an LED that has a flat side next to the longer lead, you should assume that the
longer lead is positive.
RESISTORS:
As the name suggests, resistors resist the flow of electricity. The higher the value of the resistor, the more
it resists and the less electrical current will flow through it. We are going to use a resistor to limit how
much current flows through the LED and therefore, how brightly it shines.
The unit of resistance is called the Ohm, which is usually shortened to 4 7 000 +5%
(it doesn't resist much at all), we also denote the values of resistors in
kΩ (1,000 Ω) and MΩ (1,000,000 Ω). These are called kilo-ohms and
mega-ohms.
1 DIGIT 2 DIGIT 3 DIGIT MULTIPLIER TOLERANCE
ST ND RD
220Ω, 1kΩ and 10kΩ. These resistors all look the same, except that 1
2
1
2
1
2
10
100
1%
2%
they have different colored stripes on them. These stripes tell you 3
4
3
4
3
4
1000
10000
The resistor color code has three colored stripes and then a gold 8
9
8
9
8
9
0.1 GOLD
0.01 SILVER
5% GOLD
10% SILVER
5 1 0 00 +1%
If you find this approach method too complicated, you can read the color ring flag on our resistors
directly to determine its resistance value. Or you may use a digital multimeter instead.
A B C D E F G H I F
1 1
5 5
10 10
15 15
Connection Schematic
20 20
Uno
(Rev3)
Arduino
25 25
30 30
35 35
220Ω
40 40 2 1 1 2
220Ω
45 45
1
1
50 50
1K
10K
55 55
2
2
1KΩ
10KΩ
60 60
Wiring diagram
A B C D E F G H I F
The UNO is a convenient source of 5 volts, which we will use to provide power to the LED and the resistor.
You do not need to do anything with your UNO, except to plug it into a USB cable.
With the 220 Ω resistor in place, the LED should be quite bright. If you swap out the 220 Ω resistor for the
1kΩ resistor, then the LED will appear a little dimmer. Finally, with the 10 kΩ resistor in place, the LED
will be just about visible. Pull the red jumper lead out of the breadboard and touch it into the hole and
remove it, so that it acts like a switch. You should just be able to notice the difference.
At the moment, you have 5V going to one leg of the resistor, the other leg of the resistor going to the
positive side of the LED and the other side of the LED going to GND. However, if we moved the resistor
so that it came after the LED, as shown below, the LED will still light.
You will probably want to put the 220Ω resistor back in place.
It does not matter which side of the LED we put the resistor, as long as it is there somewhere.