Professional Documents
Culture Documents
Kit Arduino
Kit Arduino
Starter Kit
Lesson 21: Break Beam Detector Buzzer with NE555 and Photoresistor 80
21.1 Overview 80
21.2 Components Required 80
21.3 Circuit 80
21.4 Circuit Explanation 81
21.5 Example Picture 83
Lesson 22: Light Reactive Theremin with NE555, Photoresistor and Buzzer 84
22.1 Overview 84
22.2 Components Required 84
22.3 Circuit 84
22.4 Circuit Explanation 85
22.5 Example Picture 85
Important Note: If something unusual happens or if you suspect that something is wrong or has
malfunctioned, do not do anything with the product and immediately contact the seller. For
inquiries and assistance, please reach us via email address: office@plusivo.com
To know more about our other products, please visit us in our official pages:
www.plusivo.com
https://www.facebook.com/plusivo/
1.1 Overview
In this lesson you will learn how to light up an LED.
The unit of resistance is Ohm with this symbol Ω. We also represent the values of resistors in
kΩ (1,000 Ω) and MΩ (1,000,000 Ω), called kilo-ohms and mega-ohms.
Resistors are not polarized, so no matter if you connect the first lead to the positive of the
battery and vice versa.
We should connect an LED and a resistor in series to determine the current flows through it.
1. The longer leg is the positive leg (but sometimes it is trimmed so you can use this way
only for new LEDs).
2. Locate the flat edge on an LED, the leg nearest the flat edge is the negative leg.
3. If you look inside the LED, the thick wire is the negative leg.
These breadboards have various sizes and configurations. The simplest is just a grid of holes in
a plastic block, where strips of metal inside provide electrical connection between the holes in
the shorter rows. If you push the legs of two different components into the same row, they will be
joined together electrically. The deep channel running down the middle indicates a break in
connections there, which means placing a chip in with the legs at either side of the channel
does not connect them together.
Some breadboards have two strips of holes (also called rails) running along the long edges of
the board separated from the main grid, with strips running down the length of the board inside
that enable you to connect to the voltage source.
While breadboards are great for prototyping, they have some limitations due to potential poor
connections. Because the connections are temporary, they are not as reliable as soldered
connections.
1.4 Circuit
Note:
In this guide we are going to use GND symbol and VCC symbol instead of using power supply
symbol.
Wiring diagram
And there is no standard resistor with this value, so we are going to use the closer one which is
220 Ω.
10
11
2.1 Overview
This lesson is the same as the previous lesson, the only difference is that we are going to use a
push button to light up an LED.
12
2.4 Circuit
Schematic
13
14
3.1 Overview
In this lesson we are going to flash two LEDs without push buttons.
Transistor
A transistor is a semiconductor device used to amplify or switch electronic signals and electrical
power. It is composed of semiconductor material with three terminals.
15
Below you can see the schematic symbols of NPN and PNP transistor.
16
1. Cut-Off
2. Sauration
In the Saturation mode IB = High Value , IC = High as much as the source can give.
3. Active Region
If we use the transistor in Cut-Off and Saturation modes, it will be as a switch ON / OFF.
In this guide most of the circuits are going to be in the first two modes.
17
In PNP transistors the base voltage should be lower than the emitter voltage by 0.7V to
turn the transistor ON.
Capacitor
A capacitor is an electronic device that stores electric energy. It is similar to a battery, but can be
smaller, lightweight and a capacitor charges or discharges much quicker.
Capacitors are usually made with two metal plates that are on top of each other and near each
other, but that do not actually touch. When powered, they allow energy to be stored inside an
electrical field. Because the plates need a lot of area to store even a small amount of charge,
the plates are usually rolled up into some other shape, such as a cylinder.Capacitors come in
many sizes.All capacitors have two connections, or leads.
18
Some types of capacitors are polarized like Electrolytic and some of them are not polarized like
Ceramic. Farad is the unit of capacitor, it is really a big value, it is rare to find a capacitor whose
value is near to 1 Farad.
The most common values for Capacitors are Microfarad(µF), Nanofarad(nF) and Picofarad(pF).
Microfarad = 10-6 Farad
Nanofarad = 10-9 Farad
Picofarad = 10-12 Farad
Below you can see an Electrolytic capacitor, it is easy to read its value, for example the one
below is 4700µF.
19
As you can see in the picture above the first 2 digits is the value in pF and the third one is the
multiplier so: 10 pF x 103 = 10 nF
3.4 Circuit
Schematic
20
Note:
If you want to change the time of flashing, there are two ways:
1. Changing R1 and R2 to a bigger value so the time of flashing will be longer, and vice versa.
2. Changing C1 and C2 to a bigger value so the time of flashing will be longer, and vice versa.
You can change them individually, for example you can change only R1 or C1 and you will get a
different time for each LED.
21
4.1 Overview
In this lesson we are going to build a smart system, this circuit will light up an LED in the dark.
We can say LDR (Light Dependent Resistor), it is simple to use, has only two terminals.
The resistance of the LDR will fall with increasing light intensity and vice versa.
22
Note:
We designed the circuit in our light circumstances, so that it considers the light around 6KΩ and
it considers the dark around 600KΩ.
4.4 Circuit
Schematic
Wiring diagram
23
We can use voltage divider law to calculate the output voltage in the daylight and in the dark.
𝑉𝑜𝑢𝑡 = 𝑉 ·
𝑖𝑛
( 𝐿𝐷𝑅
𝐿𝐷𝑅 + 100 𝐾Ω )
In the dark: 𝑉
𝑜𝑢𝑡
= 5𝑉 · ( 600 𝐾Ω
600 𝐾Ω + 100 𝐾Ω ) = 5𝑉 · 0. 86
𝑉𝑜𝑢𝑡 = 4. 3 𝑉
In the daylight: 𝑉
𝑜𝑢𝑡
= 5𝑉 · ( 6 𝐾Ω
6 𝐾Ω + 100 𝐾Ω ) = 5𝑉 · 0. 057
𝑉𝑜𝑢𝑡 = 285 𝑉
In the daylight, voltage on the base of the transistor will be less than 0.7V so the transistor will
be in the Cut-Off mode, and the LED will be off. But in the dark, voltage on the base will be
higher than 0.7V so the transistor will be in the Saturation mode, and the LED will light up.
Note:
To calculate Rfixed which is 100KΩ, we need to achieve 3 conditions:
● 0. 7 𝑉 ≤ 𝑉 𝑜𝑢𝑡 in the dark
● 0. 7 𝑉 > 𝑉 𝑜𝑢𝑡
in the light
● The current of Vout should be more than 20µA in the dark because it is the base current. If
we consider the gain of the transistor “150”
○ 𝐼𝐶 = 𝐼𝐵 · β = 20 𝑢𝐴 · 150
○ 𝐼𝐶 = 3𝑚𝐴
So we need at least 20 𝑢𝐴 on the base, to make the LED light up a little bit in the dark.
We are going to use the voltage divider law to achieve the first 2 conditions.
24
𝑉 𝑜𝑢𝑡
≤𝑉 𝑖𝑛
· ( 𝐿𝐷𝑅
𝐿𝐷𝑅 + 𝑅 𝑓𝑖𝑥𝑒𝑑
)
If we considered 𝑉 𝑜𝑢𝑡
= 0. 7 𝑉 and LDR = 600KΩ
0. 7𝑉 ≤ 5𝑉 · ( 600𝐾Ω
600 𝐾Ω + 𝑅 𝑓𝑖𝑥𝑒𝑑
) , 𝑅 𝑓𝑖𝑥𝑒𝑑
≤ 3. 685𝑀Ω
𝑉 𝑜𝑢𝑡
>𝑉 𝑖𝑛
· ( 𝐿𝐷𝑅
𝐿𝐷𝑅 + 𝑅 𝑓𝑖𝑥𝑒𝑑
)
If we considered 𝑉 𝑜𝑢𝑡
= 0. 7 𝑉 and LDR = 6KΩ
0. 7𝑉 > 5𝑉 · ( 6𝐾Ω
6 𝐾Ω + 𝑅 𝑓𝑖𝑥𝑒𝑑
)
, 𝑅 𝑓𝑖𝑥𝑒𝑑
> 36. 857𝐾Ω
So 3. 685𝑀Ω ≥ 𝑅 𝑓𝑖𝑥𝑒𝑑
> 36. 857𝐾Ω, but 3.685MΩ will not work, because it won’t give
enough current on the base to make the LED light up.
25
5.3 Circuit
Schematic
Wiring diagram
26
So when you touch the probes, indeed you are making a resistor between 5V and the base of
the transistor (TR2),it will be in the Active Region because the IB(TR2) current is not enough to
make it in the saturation mode, so we will take the IC (TR2) current which is much higher to the
base of the transistor (TR1) through 10KΩ resistor.
27
6.3 Circuit
Schematic
28
29
30
7.3 Circuit
Schematic
31
When you touch OFF probes you are making a resistor between 5V and the base of TR4, when
TR4 works it will make TR3 on the saturation mode, when TR3 be on the saturation mode, it is
connected directly to GND so all of the Feedback current will go directly to GND, TR2 will be on
Cut-Off mode accordingly TR1 so the LED will turn OFF.
32
33
8.3 Circuit
Schematic
34
When you press on the push button, the current will flow from the capacitor to the base of
TR2, it will be in the saturation mode, immediately TR1 will be in the saturation mode too,
because the current will start to flow from the base of TR1(PNP) to the collector of TR2, we
35
When you press on the push button again, the Feedback signal which is making TR2 in the
saturation mode will go directly to the capacitor, so TR2 will be in the Cut-Off mode,
accordingly TR1 and TR3, the LED will turn OFF,and the capacitor will charge again.
36
37
38
9.4 Circuit
Schematic
39
When the capacitor gets charged the voltage on pin 2 will be high, so the output will be zero, the
LED will turn OFF, and pin 7 will be 0V so the capacitor will discharge.
40
Note:
If you want to change the time of flashing, there are two ways:
1- Changing R1 to a bigger value so the time of flashing will be longer, and vice versa.
2- Changing C1 to a bigger value so the time of flashing will be longer, and vice versa.
41
10.3 Circuit
Schematic
42
43
When the capacitor gets almost empty, the voltage on pin 2 will be low, so the blue LED will light
up and the red LED will turn OFF, and the capacitor will recharge because the voltage on pin 7
is almost 5V, and so on.
44
11.1 Overview
In this lesson we are going to make a flasher using RGB LED.
All of the LEDs are sharing the Cathode or the Anode, so there are four terminals for the three
LEDs, below you can see the schematic symbols for both of them.
45
11.4 Circuit
Schematic
46
At the same time C2 will recharge, it will get the positive side through R2 and will get the
negative side through TR1.
47
Note:
If you want to change the time of flashing, there are two ways:
1- Changing R1 and R2 to a bigger value so the time of flashing will be longer, and vice versa.
2- Changing C1 and C2 to a bigger value so the time of flashing will be longer, and vice versa.
You can change them individually, for example you can change only R1 or C1 and you will get a
different time for each LED.
48
12.3 Circuit
Schematic
49
50
When C1 gets almost empty, the voltage on pin 2 will be low, so the output will be high, and the
capacitor (C1) will recharge because the voltage on pin 7 is almost 5V, C3 will start to recharge,
the LED will start to light up, and so on.
51
13.1 Overview
In this lesson we are going to use the circuit in the previous lesson, but we are going to use
three of it at the same time, so we will be able to fade RGB LED Up/Down.
52
53
The first one which is connected with the red LED, it is the slower one, then the second one
which is connected to the green LED, and the third one which is connected to the blue LED, it is
the faster one.
So each LED will go from dark to full brightness then go back to dark, each one has its
frequency.
54
14.3 Circuit
Schematic
55
56
57
15.3 Circuit
Schematic
58
The LED will light up, and the capacitor C1 will charge.
59
60
61
The difference between them is that Active Buzzer is able to generate only a sound, but Passive
Buzzer is able to generate many sounds spending on the frequency.
62
Wiring diagram
63
When the capacitor gets charged the voltage on pin 2 will be high, so the output will be zero, the
Buzzer will turn OFF, and pin 7 will be 0V so the capacitor will discharge.
64
65
17.3 Circuit
Schematic
66
In the first part, when the output is OFF, the red LED will light up and it is connected to 5V, it is
only in need to GND.
67
When the second part is activated, the green LED will light up, it is already connected to GND, it
is only in need to 5V.
68
Note:
We added 2.2 uF capacitor(C2) in parallel with 10 uF capacitor(C1), to make the frequency of
NE555(1) lower than NE555(2), so the time of NE555(1) is bigger because F = 1 / T.
So we ensure when red LED is OFF, green LED and yellow LED will light up respectively, before
rel LED will light up again.
69
70
18.4 Circuit
Schematic
71
When the capacitor gets charged the voltage on pin 2 will be high, so the output will be zero, the
Buzzer will turn OFF, and pin 7 will be 0V so the capacitor will discharge through R1, even
though it is bigger than R2 but the diode will block the current.
72
In this circuit we created a path to charge C1, and a different path to discharge C1.
73
19.3 Circuit
Schematic
74
We used low R5 (10k) and low C3 (100nF) with NE555(2) so we are going to get high frequency
on the output of NE555(2), but it is constant, to make it in 2 different sounds we used NE555(1)
and connect its output to pin 5 of NE555(2), so we have access to the internal voltage divider of
NE555(2) so we are going to change the output frequency of NE555(2) almost each 0.5
Second, and therefore the sound of the buzzer.
75
20.3 Circuit
Schematic
76
For example if you have 5V on the input, and the duty cycle is 0, so you will get 0V on the
output, but if the duty cycle is 25% you will get 1.25V on the output and so on.
In our case frequency will be constant, we are going to modify the duty cycle.
77
To modify the duty cycle we created paths to charge and discharge the capacitor (C1).
Charging path
78
So by modifying the potentiometer you are changing the time of charging and discharging the
capacitor(c1) and therefore the duty cycle.
79
21.3 Circuit
You should put the LED and the LDR in front of each other.
80
Wiring diagram
We used the LDR and 10k (R3) resistor to make a voltage divider, and the output of the voltage
divider goes to the base of TR2 amplifies the signal then sends it through its emitter to the base
of TR1.
There are two situations for this circuit, the first one when nothing between the LED and the
LDR.
81
So most of the 5V will be on R3, and TR2 will be on Cut-OFF mode therefore TR1 so NE555 will
be OFF because it needs GND to work, so no sound on the passive buzzer.
But if you put something between the LDR and the LED, for example a paper or your finger,
here is the second situation, it will be dark on the LDR, so we will get high resistance for the
LDR, so most of the 5V will be on the LDR, TR2 will be on Saturation mode therefore TR1 so
NE555 will be ON, so the passive buzzer will generate a sound.
82
83
22.3 Circuit
Schematic
84
The more light we have Photoresistor, the more high frequency we get on the output and vice
versa.
85
86
Wiring diagram
87
We used NE555(2) to generate high frequency, but it will not work until TR1 gets in the
saturation mode, the base of TR1 is connected to the output of NE555(1).
The first part is a delay circuit, when you press on the push button you are activating TR3, so
you will connect pic 2 to GND, therefore the output will be high, until C3 gets fully charged the
output will turn OFF.
Indeed you get two different frequencies on the output of NE555(2), the first one when you click
on the push button, you are activating NE555(1) therefore NE555(2), and connecting pin 5 of
NE555(2) to 5V through TR2, so we get a different frequency, but when you release the push
button, it will continue in the other frequency, so you will get two different sounds.
88
89
90
When the capacitor C1 gets almost fully charged it will be high voltage on pin 6, so the output
will turn OFF, so the capacitor will discharge through pin 7.
91
92
MULTIMETER KITS
93
WIRE KITS
94
LED KITS
3mm and 5mm LED Kit (310 pcs) 5 mm Diffused LED Kits (600 pcs)
3 mm Diffused LED Kits (1000 pcs) 3 mm Clear Lens LED Kits (1000 pcs)
95
To know more about us and our products, please visit us in our official pages:
www.plusivo.com
https://www.facebook.com/plusivo/
For inquiries and assistance, please reach us via email address: office@plusivo.com
96