Transcript lab2_cs355

Digital LAB
Lab 2
The 555 timer is an 8-Pin D.I.L. Integrated Circuit or ‘chip’
Notch
Pin 1
What it looks like
2
555 Timer
DIP chip
Dual
In-Line
Pins
1
8
2
7
3
555
4
6
5
top view
Operation:
555 timer
•Contains 25 transistors, 2 diodes and 16 resistors
• Maximum operating voltage 16V
• Maximum output current 200mA
• Best treated as a single component with required
input and output
INPUT
PROCESS
OUTPUT
If you input certain signals they will be processed / controlled
in a certain manner and will produce a known output.
4
555 timer
What the 555 timer is used for:
•To switch on or off an output after a certain time delay i.e.
Games timer, Porch light, Childs mobile, Exercise timer.
•To continually switch on and off an output i.e.
Hazard warning lights, Soft toy, Bicycle indicators.
•As a pulse generator i.e.
To provide a series of clock pulses for a counter.
5
555 timer
Digital Terminology:
To use the 555 timer correctly you have to be aware of
the correct terminology:
• Monostable
Time
• Astable Time
6
555 timer
• MONOSTABLE:
This is a system which has only one stable state.
It can be made to change but it will always return
to its original stable state. A spring operated
push button switch is an example of this.
Monostable circuits are used as timers and as a
single pulse generator.
7
Schematic diagram of 555 Monostable
timer
• The duration of the pulse is
called the time period (T)
and this is determined by
resistor R1 and capacitor
C1:
• time period,
T = 1.1 × R1 × C1
8
Monostable
time period, T = 1.1 × R1 × C1
T = time period in seconds (s)
R1 = resistance in ohms ()
C1 = capacitance in farads (F)
The maximum reliable time period is about 10
minutes
• R1 should be in the range 1k to 1Mohm
9
555 timer
• ASTABLE:
This is a system which has no stable state. It
changes from one state to the other all the time.
A pendulum swings from one side to the other
continuously. Astable circuits are used to flash
lights or sound a loudspeaker. It can act as a
square wave oscillator
10
Schematic diagram of 555 Astable
timer
• The time period (T) of
the square wave is
the time for one
complete cycle, but it
is usually better to
consider frequency (f)
which is the number
of cycles per second.
T = 0.7 × (R1 + 2R2) × C1
11
Astable
f = 1.4/ (R1 + 2R2) × C1
T = time period in seconds (s)
f = frequency in hertz (Hz)
R1 = resistance in ohms ()
R2 = resistance in ohms ()
C1 = capacitance in farads (F)
The time period can be split into two parts: T = Tm +
Ts
Mark time (output high): Tm = 0.7 × (R1 + R2) × C1
Space time (output low): Ts = 0.7 × R2 × C1
• R1 and R2 should be in the range 1k to 1Mohm
555 Astable frequencies
C1
R2 = 10kohm
R1 = 1kohm
0.001µF 68kHz
0.01µF 6.8kHz
0.1µF
680Hz
1µF
68Hz
10µF
6.8Hz
R2 = 100kohm
R1 = 10kohm
6.8kHz
680Hz
68Hz
6.8Hz
0.68Hz
R2 = 1Mohm
R1 = 100kohm
680Hz
68Hz
6.8Hz
0.68Hz
0.068Hz
(41 per min.)
(4 per min.)
13
Theme : A Safe Environment
Monostable:
Egg Timer : Food / Electrical safety
Bath / Oven Timer
Astable:
Hazard / warning lights / school crossing
Bicycle indicators
Burglar Alarm
Steep Gradiant Indicator
Personal Alarm
14
Flashing LED Project
555 timer
15
Parts Required
• resistors: 470, 1k, 220k
• capacitor: 1µF 16V radial
• red LED (or orange, yellow or green if you
prefer!)
• 555 timer IC
• 8-pin IC holder (a 'DIL socket') for the 555 IC
• battery clip for 9V PP3
• stripboard: 6 rows × 21 holes
16
Instructions
• Solder the 8-pin IC holder in the correct place
on the stripboard.
• Break the 4 tracks under the IC holder with a
track cutter tool. You can allow extra holes if
your piece of stripboard is large enough.
17
Instructions
18
Instructions
• Use the resistor colour code to identify the
resistors which are marked with coloured
bands to show their value.
• Insert and solder the resistors in the correct
position, they can be put in either way round,
but you must line them up correctly with the
IC holder.
• Identify the other parts, then solder them in
the correct position and the right way round.
19
Instructions
20
Instructions
• Solder the 2 wire links in place around the IC
holder, it is easier to use plastic-coated singlecore wire. (The flexibility of stranded wire is
not needed for connections like this and the
strands can be difficult to push through the
small hole).
• Finally insert the 555 timer IC and connect a
battery!
21