0% found this document useful (0 votes)
108 views5 pages

2.1 Led

This document provides instructions for an experiment that uses different value resistors to change the brightness of an LED connected to an Arduino board. It introduces the components needed, including an Arduino Uno board, breadboard, 5mm red LED, and 220 ohm, 1k ohm, and 10k ohm resistors. It explains how breadboards are used to prototype circuits and provides details on LEDs, including how to identify the positive and negative leads. Resistor color codes are also explained to identify resistor values. A wiring diagram is included to connect the LED and resistors to the Arduino board.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views5 pages

2.1 Led

This document provides instructions for an experiment that uses different value resistors to change the brightness of an LED connected to an Arduino board. It introduces the components needed, including an Arduino Uno board, breadboard, 5mm red LED, and 220 ohm, 1k ohm, and 10k ohm resistors. It explains how breadboards are used to prototype circuits and provides details on LEDs, including how to identify the positive and negative leads. Resistor color codes are also explained to identify resistor values. A wiring diagram is included to connect the LED and resistors to the Arduino board.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Part 2

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

(1) x 5mm red LED

(1) x 220Ω resistor

(1) x 1kΩ resistor

(1) x 10kΩ resistor

(2)x M-M wires (Male to Male jumper wires)

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.

Breadboards come in various sizes and configurations.

①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.

But first, more about resistors...

The unit of resistance is called the Ohm, which is usually shortened to 4 7 000 +5%

Ω the Greek letter Omega. Because an Ohm is a low value of resistance


4 BAND CODE 47K-OHM +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

In this lesson, we are going to use three different values of resistor: 0 0 0 1

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 value of the resistor. 5 5 5 100000


6 6 6 1000000
7 7 7

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

stripe at one end.

Unlike LEDs, resistors do not have a positive and negative lead.


They can be connected either way around.
5 BAND CODE 51K-OHM +1%

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.

You might also like