Beruflich Dokumente
Kultur Dokumente
Introduction
access.
The
design
and
construction
of
keypad
as
microcontroller
an
as
input,
a
two
control
relays
unit.
as
The
switches,
keypad
and
and
a
the
Others includes the power supply unit which was driven from the
car can still case the code program failure which there is a hard
starting, the battery may go weak and the code circuit will not be
able to work properly.
CHAPTER TWO
LITERATURE REVIEW
2.1 Origin of the project
Ignition system
Early one September morning in 1908, Ernest Sweet, chief
engineer for the Cadillac Motor Car Co., stepped off a train in
Dayton, Ohio. He was met by an engineer who worked for
National Cash Register.
In the five years he had spent at NCR, the younger man -- he was
32 -- had invented an electrically operated cash register that did
away with hand cranking. He had also developed OK Charge
Although it was only another two years before dry cells were
replaced by storage batteries, it was quite a while longer before
storage batteries attained any degree of reliability.
As late as 1935, some manufacturers were still placing magnetos
into cars. But, for all intents and purposes, the end of the
magneto came with the end of the Model T Ford in 1927. Ford
refused to trust battery ignition for the Model T, even after the
development of more reliable storage batteries. So, every Model T
came with a self-starter and battery for "modern starting," and a
hand crank that sprung the magneto to life if the self-starter or
battery failed.
Equipment leasing is often used in manufacturing; it is possible it
was used in the manufacturing of these ignition systems.
Four basic systems
There have been only four basic auto ignition systems during the
last 100 years -- hot tube, magneto, battery and computerized -plus a number of oddball variations. As late as 1924, systems
using lighter flints and moving files (sometimes attached to the
10
12
plug's top section. Fiddling with this gap was said to blast away
deposits.
Another type was a priming plug. The driver opened a small valve
on the plug that allowed gas in a reservoir to drip through the
plug itself and into the cylinder. There was, however, a problem: If
the motorist didn't close the priming valves tightly before
starting, the engine either flooded or, if ignition did take place,
was transformed into a flame thrower. Then there was a plug with
electrodes at both ends. If the motorist experienced plug failure,
he simply unscrewed a terminal cap, turned the plug end for end,
reattached the terminal cap was to the fouled end, and he had a
fresh plug ready to go.
There have been many other ignition developments over the
years -- spark advance components, for example. The first manual
spark advance system was brought out by Packard in 1901. For
years after, drivers controlled spark advance by a lever on the
steering wheel hub. Studebaker pioneered the vacuum advance in
1930, and Chrysler installed the first combination vacuum and
centrifugal advance unit in 1931. During the 1980s, on-board
13
15
(Atmel89s52)
accepts
the
entered
code
and
CHAPTER THREE
DESIGN METHODOLOGY
measure
in
an
automobile.
It
can
however,
be
This includes the stages passed for the design and construction
of this project.
1
Information Gathering
The link which enhanced my knowledge to the design and
construction of this project was as a result my curiosity,
some which was gotten form the internet research I did,
some from the school environment, form the already existing
product which was the main source of my knowledge on how
to go about the project then others was from my teacher and
supervisor etc. all this information I gathered for the design
and construction of this project.
19
some
simulation
software
like
the
professional
3.4.3
falling
off
from
the
circuit
which
can
cause
3.4.6
Project testing
Project testing is the art of placing the design in a running
mode for test and operation analysis, this helps to show the
designer that how accurate his/her work is and encourage
21
22
23
Chapter four
System design and implementation
4.1 System design
The construction of this work is base of the designed hardware
and software programs which from this report listed the steps
from the starting to the finishing of this project.
4.2 Component analysis
Design analysis of this project base on the construction done to
archive this design
4.3. Component description
This are the description of the design component that was use to
archive this network and it operation
4.3.1 Power supply unit
This circuit makes use of a DC powered battery of 9volts power
rating with a current of 25mA. The source battery is the main
24
9v DC Supply
FILTER
CAPACITOR
16v
1000uF
Regulator IC
LM7805
4.3.2 Regulator
Voltage Regulators
A Voltage Regulator (also called a "regulator") has only three
legs and appears to be a comparatively simple device but it is
actually a very complex integrated circuit. A regulator converts
varying input voltage and produces a constant "regulated"
output voltage. Voltage regulators are available in a variety of
outputs, typically 5 volts, 9 volts and 12 volts. The last two digits
in the name indicate the output voltage in the table below.
25
Voltage
LM7805
+ 5 volts
LM7809
+ 9 volts
LM7812
+ 12 volts
LM7905
- 5 volts
LM7909
- 9 volts
LM7912
- 12 volts
26
4.3.4Capacitors
28
Circuit symbol
schematic diagram
29
Circuit symbol
schematic diagram
VARIABLE CAPACITORS:
This type of capacitor has varying value capabilities. It has a
maximum and minimum range of values within which it can be
adjusted. It is mostly used as tuning circuits.
Circuit symbol
schematic diagram
30
4.3.5 Resistors
Resistance is the property of a component which restricts the
flow of electric current. Energy is used up as the voltage across
the component drives the current through it and this energy
appears as heat in the component.
Resistance is measured in ohms; the symbol for ohm is an
omega .
1
and
1 k = 1000
M .
1 M = 1000000 .
31
When
resistors
are
connected
in
series
their
combined
resistance
of
can
be
extended
R=
for
R1 R2
R1 + R2
more
resistors:
R = R1 + R2 + R3 + R4 + ...
Note that the combined resistance in series will always be
greater than any of
the
resistances.
individual
Bro
Re
Oran
Yello
Gre
Blu
Viol
Gra
Whit
ck
wn
ge
en
et
The mnemonic
Bad Boys Ravish Only Young Girls But Violet Gives Willingly
Black is also easy to remember as zero because of the
nothingness common to both.
First find the tolerance band, it will typically be gold ( 5%) and
sometimes silver (10%).
34
Starting from the other end, identify the first band - write down
the number associated with that color; in this case Blue is 6.
Now 'read' the next color, here it is red so write down a '2' next
to the six. (You should have '62' so far.) Now read the third or
'multiplier' band and write down that number of zeros.
In this example it is two so we get '6200' or '6,200'. If the
'multiplier' band is Black (for zero) don't write any zeros down. If
the 'multiplier' band is Gold move the decimal point one to the
left. If the 'multiplier' band is Silver move the decimal point two
places to the left. If the resistor has one more band past the
tolerance band it is a quality band.
Read the number as the '% Failure rate per 1000 hour' This is
rated assuming full wattage being applied to the resistors. (To
get better failure rates, resistors are typically specified to have
twice the needed wattage dissipation that the circuit produces)
1% resistors have three bands to read digits to the left of the
multiplier. They have a different temperature coefficient in order
to provide the 1% tolerance.
At 1% most error is in the temperature coefficient - i.e. 20ppm.
35
36
LEDs that emits blue light are also available but red is the most
common. LEDs emit no light when reverse biased.
LEDs are manufactured with domed lensses in order to lesssen
the reabssorption problem ; they are always encased in order to
protect their delicate wires. Being made of semiconductor
material, it is rugged and has a life of more than 10,000 hours.
Since LEDs operate at voltage levels from 1.5v to 3.3v, they are
highly compatible with solid state circuitry [2].
green, yellow and orange LED readouts are also available. The
readouts come packaged in standard DIP configurations with clear
or modified diffused lens the latter, for Full-flood visibility.
Its mode of fabrication is based in either a common-cathode or
common-anode arrangement. But common anode arrangement
was used in this project for easier configuration.
37
The seven-
segment display gets its name from the fact seven illuminated
segments are used to configure the digits 0-9 (and a few lower
and upper case letters).
number eight. Its read out and list of segments required for it to
illuminate is given below.
In common cathode, all the cathode are internally tied together
and brought out to circuit ground through an external current
limiting, or pull-down resistor.
38
But operation of LED in bright light (out door displays) makes the
display to be washed off by direct sunlight (invisible).
The
SEVEN
SEGMENT
39
DISPLAY
4.3.6 Microcontrollers
The AT89s52 is a low power, high performance cmos 8-bit
microcomputer
erasable
read
with
only
8Kbytes
memory
of
flash
programmable
(EEPROM).
The
device
and
is
41
Fig.
4.11
Pin
configuration
of
AT89S51
Features of AT89S52
43
Pin description
Vcc
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open-drain bi-directional I/O port. As an output
port, each pin can sink eight TTL inputs. When 1s are written to
port 0 pins, the pins can be used as high impedance inputs. Port
0 may also be configured to be the multiplexed low order
Address/data bus during accesses to external program and data
memory. In this mode P0 has internal pull-ups. Port 0 also
receives the code bytes during Flash programming, and outputs
the code bytes during program verification. External pull-ups are
required during program verification.
44
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The
Port 1 output buffers can sink/source four TTL inputs. When 1s
are written to Port 1 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 1 pins that
are externally being pulled low will source current (IIL) because
of the internal pull-ups. Port 1 also receives the low-order
address bytes during Flash programming and verification.
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The
Port 2 output buffers can sink/source four TTL inputs. When 1s
are written to Port 2 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 2 pins that
are externally being pulled low will source current (IIL) because
of the internal pull-ups. Port 2 emits the high-order address byte
during fetches from external program memory and during
accesses to external data memory that uses 16-bit addresses
(MOVX @ DPTR). In this application, it uses strong internal pullups when emitting 1s. During accesses to external data memory
that uses 8-bit addresses (MOVX @ RI), Port 2 emits the contents
of the P2 Special Function Register.
Port 2 also receives the high-order address bits and some control
signals during Flash programming and verification.
45
Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The
Port 3 output buffers can sink/source four TTL inputs. When 1s
are written to Port 3 pins they are pulled high by the internal
pull-ups and can be used as inputs. As inputs,
Port 3 pins that are externally being pulled low will source
current (IIL) because of the pull-ups. Port 3 also serves the
functions of various special features of the AT89S51 as listed
below.
46
RST
Reset input. A high on this pin for two machine cycles while the
oscillator is running resets the device.
ALE/PROG
Address Latch Enable output pulse for latching the low byte of
the address during accesses to external memory. This pin is also
the program pulse input (PROG) during Flash programming. In
normal operation ALE is emitted at a constant rate of 1/6 the
oscillator frequency, and may be used for external timing or
clocking purposes. Note, however, that one ALE pulse is skipped
during each access to external Data Memory. If desired, ALE
operation can be disabled by setting bit 0 of SFR location 8EH.
With the bit set, ALE is active only during a MOVX or MOVC
instruction. Otherwise, the pin is weakly pulled high. Setting the
ALE-disable bit has no effect if the microcontroller is in external
execution mode.
PSEN
Program Store Enable is the read strobe to external program
memory. When the AT89C51 is executing code from external
program memory, PSEN is activated twice each machine cycle,
except that two PSEN activations are skipped during each access
to external data memory.
EA/VPP
47
1k
P2.7
28
vcc
VCC
VCC
Buzzer
4.7k
2k
P2.6 27
GND
4.13 Transistors
Transistors
Transistors can be regarded as a type of switch, as can many
electronic components. They are used in a variety of circuits and
you will find that it is rare that a circuit built in a school
Technology Department does not contain at least one transistor.
49
They are central to electronics and there are two main types;
NPN and PNP.
Most circuits (e.g. this project design) tend to use NPN. There are
hundreds of transistors that work at different voltages but all of
them fall into these two categories.
Types of Transistor
There are two types of standard transistors, NPN and PNP, with
different circuit symbols. The letters refer to the layers of
semiconductor material used to make the transistor. Most
transistors used today are NPN because this is the easiest type
to make from silicon. This page is mostly about NPN transistors.
The leads are labeled base (B), collector (C) and emitter (E).
These terms refer to the internal operation of a transistor but
they are not much help in understanding how a transistor is
used.
50
Transistor currents
The diagram shows the two current paths through a transistor.
The small base current controls the larger collector current.
When the switch is closed, small current flows into the base (B)
of the transistor. It is just enough to make LED B glow dimly. The
transistor amplifies this small current to allow a larger current to
flow through from its collector (C) to its emitter (E). This collector
current is large enough to make LED C light brightly.
51
52
rating. The current gain hFE can vary widely, even for transistors
of the same type!
A transistor that is full on (with RCE = 0) is said to be 'saturated'.
When a transistor is saturated the collector-emitter voltage V CE is
reduced to almost 0V.
53
less than the current gain h FE. The emitter current IE = Ic + IB, but
Ic is much larger than IB, so roughly IE = Ic.
LED indicators
Power supply unit
keypad
Microcontroller unit
Relay lamp switching unit
Fig 4.18 block diagram of design
54
+12V
+5v
+5V
+5V
+12v
7805
VI
VO
+5V
GND
R3
R4
R5
220R
220R
220R
C1
100u
C2
D2
D3
LED-RED
LED-YELLOW
LED-GREEN
D1
RL1
U1
10p
C3
X1
19
CRYSTAL
18
10p
9
0
clear
29
30
31
1
2
3
4
5
6
7
8
3
4
enter
XTAL1
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
XTAL2
RST
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
PSEN
ALE
EA
P1.0/T2
P1.1/T2EX
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
P3.0/RXD
P3.1/TXD
P3.2/INT0
P3.3/INT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD
39
38
37
36
35
34
33
32
21
22
23
24
25
26
27
28
12V
R2
1k
R1
Q1
L1
2N3904
12V
1k
Q2
2N3904
10
11
12
13
14
15
16
17
AT89C52
R6
10k
AmakaProjectdesign
MicrocontrollerB aseddigitallocksystem
55
and application
software,
which
addresses
the
56
4.8
of
assembly
language.
Asm
allows
the
57
4.9.2
58
59
61
initialize(){
relay = 0;
Power_led = 0;
erro_led =1;
Power_led = 1;
erro_led =1;
access_led = 0;
delay(25);
return 0;
}
62
shift(){
m4 = m3 ;
m3 = m2 ;
m2 = m1 ;
m1= m1A ;
}
clear_mem0(){
m1A,m1,m2,m3,m4 = 0xff;
return 0;
}
clock_error(){
erro_led = 0;
delay(25);
63
erro_led =1;
delay(25) ;
return 0;
}
clock_access(){
access_led = 0;
delay(25);
access_led =1;
delay(25) ;
return 0;
}
int main(){
initialize();
64
initialize();
initialize();
while (1){
begin:{ Power_led = 0;
access_led = 1;
while (1){
if (bt0 == 0){loop0:if(bt0==0){goto loop0;}else{ m1A =
0;shift(); Power_led = 1; delay(25);goto begin ;}}
if (bt1 == 0){loop1:if(bt1==0){goto loop1;}else{ m1A =
1;shift(); Power_led = 1; delay(25);goto begin ;}}
if (bt2 == 0){loop2:if(bt2==0){goto loop2;}else{ m1A =
2;shift(); Power_led = 1; delay(25);goto begin ;}}
if (bt3 == 0){loop3:if(bt3==0){goto loop3;}else{ m1A =
3;shift(); Power_led = 1; delay(25);goto begin ;}}
if (bt4 == 0){loop4:if(bt4==0){goto loop4;}else{ m1A =
4;shift(); Power_led = 1; delay(25);goto begin ;}}
65
67
CHAPTER FIVE
BILL OF ENGINEERING MEASUREMENT AND EVALUTION.
69
5.2.1
Components Test
70
Black probe
Red probe
Collector
Base
Emitter
Base
EXPERIMENTE
ACTUA
UNI
TOLERANC
D VALUE
VALUE
Resistor
Capacitor
Transistor
10000
10000
2000
2000
220
218
10000
9980
10
10.20
10
10.15
30
29.82
Rbe
520
550
Rbc
510
548
13.2
Transformer
12Vac
voltage
240Vac input
@
72
Regulator
5.00
210
5.02
5%
73
CHAPTER SIX
SUMMARY
6.1 Summary and Conclusion
This section of this project report forms the concluding part of
the write up and takes a look at some of the problems
encountered during the progressive job on the system and also
brings
in
suggestions
for
further
improvement
and/or
74
During the course of the design of this system, there were series
of problems which came in the way of achieving the design goals
of this project, most of them where over come via share
troubleshooting, in some cases some parts require redesigning
and the software debugging also created a bit of a problem.
One major setback of this project is the availability of
components required to build the hardware of the system. In
most cases I had to look through electrical catalogs to obtain
replacements of some of the components which are not
available in the market.
After developing the software for the microcontroller, it was very
difficult to find a firm/individual to help program the chip
(burning the embedded software on to the chip). This posed
serious problem as it brought about delay in the design time and
it was also costly, this also affected the overall cost of the
system.
The final packaging of the design was also another trouble, as
this actually caused problems on the circuit board. Such
problems include partial contact within the circuit board,
between components and also with the wiring. This was actually
one
of
the
most
challenging
aspects
of
the
circuit
75
6.5: Conclusion
Going through the planning, flow process, design and software
implementation the system had really been a tough one; but on
the whole it has been a chance to show case a little bit of
craftsmanship.
76
REFERENCES
78