Académique Documents
Professionnel Documents
Culture Documents
TABLE OF CONTENTS
1
CONTENTS
PAGE
TITLE PAGE
APPROVAL PAGE
ii
DEDICATION
iii
ACKNOWLEDGEMENT
iv
ABSTRACT
TABLE OF CONTENTS
vi
CHAPTER ONE
INTRODUCTION
2- 3
CHAPTER TWO
LITERATURE REVIEW
4-5
CHAPTER THREE
COMPONENT DESCRIPTION
6-9
10-14
3.3 RESISTOR
14-15
3.4 TRANSISTOR
16
17-18
3.6 CAPACITORS
19-20
3.7 TRANSFORMER
21
2
3.8 DIODES
22
CHAPTER FOUR
PRINCIPLE OF OPERATION
23
23
24-25
26
26-27
28
COMPONENT LIST
29
CONTROLER PROGRAM
30
CHAPTER FIVE
5.1 CONCLUSION
31
5.2 RECOMMENDATION
32
REFERENCES
33
CHAPTER ONE
INTRODUCTION
1.1
charger whose output current depend upon the batterys state. An intelligent
charger may monitor the batterys voltage, temperature and/ or time under charge
to determine the optimum charge current at that instant. Charging is terminated
when a combination of the voltage, temperature and/or time indicates that the
battery is fully charged.
1.3
simplicity means that a simple charger is inexpensive but there is a trade off
in quality.
2. TRICKLE BATTERY CHARGER: A trickle charger is a kind of simple
charger that charges the battery slowly, at the self-discharge rate. A trickle
charger is the slowest kind of battery charger.
3. TIMER-BASED BATTERY CHARGER: The output of timer charger is
terminated after a predetermined time. Timer chargers were the most
common type for high-capacity Ni-Cd cells in the late 1990s
4. FAST BATTERY CHARGER: fast chargers make use of control circuitry in
the batteries being charged to rapidly charge the batteries without damaging
the cells element. Most such chargers have a cooling fan to help keep the
temperature of the cells under control.
5. PULSE BATTERY CHARGER: some charger use pulse technology in
which a pulse is fed to the battery. This DC pulse has a strictly
controlled rise time, pulse width, pulse repetitive rate (frequency) and
amplitude. This technology is used to work with any size, voltage, capacity
or chemistry of batteries including automotive and valve-regulated batteries.
6. INDUCTIVE BATTERY CHARGER: Inductive battery chargers use
electromagnetic induction to charge batteries. A charging station sends
5
CHAPTER TWO
LITERATURE REVIEW
One of the most important discovering in the last 400 years has been electricity.
Electricity consists of charge carried by electrons, protons and other particles.
Electric charge comes in two forms; positive and negative.
6
CHAPTER THREE
COMPONENT DESCRIPTION
3.1
What are micro controllers and what are they used for?
As all other good things, this powerful component is basically very simple and is
obtained by uniting tested and high- quality "ingredients" (components) as per
following receipt:
1. The simplest computers processor is used as a "brain" of the future system.
2. Depending on the taste of the producer, it is added: a bit of memory, a few
A/D converters, timers, input/output lines etc.
3. It is all placed in one of standard packages.
4. Simple software that will be able to control it all and about which everyone
will be able to learn has been developed.
Three things have had a crucial impact on such a success of the micro controllers:
Powerful
and
intelligently
chosen
electronics
embedded
in
the
Therefore, if you are infected with a virus called electronics, there is nothing left
for you to do but to learn how to control its power and how to direct it at the right
course.
How does microcontroller operate?
Even though there is a great number of various microcontrollers and even greater
number of programs designed for the microcontrollers use only, all of them have
many things in common. That means that if you learn to handle one of them you
will be able to handle them all. A typical scenario on whose basis it all functions is
as follows:
1. Power supply is turned off and everything is so stillchip is programmed,
everything is in place, nothing indicates what is to come
2. Power supply connectors are connected to the power supply source and
everything starts to happen at high speed! The control logic registers what is
going on first. It enables only quartz oscillator to operate. While the first
preparations are in progress and parasite capacities are being charged, the
first milliseconds go by.
3. Power supply connectors are connected to the power supply source and
everything starts to happen at high speed! The control logic registers what is
10
going on first. It enables only quartz oscillator to work. While the first
preparations are in progress and parasite capacities are being charged, the
first milliseconds go by.
4. Voltage level has reached its full value and frequency of oscillator has
become stable. The bits are being written to the SFRs, showing the state of
all peripherals and all pins are configured as outputs. Everything occurs in
harmony to the pulses rhythm and the overall electronics starts operating.
Since this moment the time is measured in micro and nanoseconds.
5. Program Counter is reset to zero address of the program memory. Instruction
from that address is sent to instruction decoder where its meaning is
recognized and it is executed with immediate effect.
6. The value of the Program Counter is being incremented by 1 and the whole
process is being repeated...several million times per second.
11
3.2
Microcontroller section: the chief component in this section is the Intel 8051
chip. It has 40 pins in all with 32 of them dedicated for input and output
connections.
2.2 8051 Microcontroller's pins
Microcontroller's pins
Pins 1-8: Port 1 Each of these pins can be configured as input or output.
12
Pin 9: RS Logical one on this pin stops microcontrollers operating and erases the
contents of most registers. By applying logical zero to this pin, the program starts
execution from the beginning. In other words, a positive voltage pulse on this pin
resets the microcontroller.
Pins10-17: Port 3 Similar to port 1, each of these pins can serve as universal input
or output. Besides, all of them have alternative functions:
Pin 10: RXD Serial asynchronous communication input or Serial synchronous
communication output.
Pin 11: TXD Serial asynchronous communication output or Serial synchronous
communication clock output.
Pin 12: INT0 Interrupt 0 input
Pin 13: INT1 Interrupt 1 input
Pin 14: T0 Counter 0 clock input
Pin 15: T1 Counter 1 clock input
Pin 16: WR Signal for writing to external (additional) RAM
Pin 17: RD Signal for reading from external RAM
13
Pin 18, 19: X2, X1 Internal oscillator input and output. A quartz crystal which
determines operating frequency is usually connected to these pins. Instead of
quartz crystal, the miniature ceramics resonators can be also used for frequency
stabilization. Later versions of the microcontrollers operate at a frequency of 0 Hz
up to over 50 Hz.
Pin 20: GND Ground
Pin 21-28: Port 2 If there is no intention to use external memory then these port
pins are configured as universal inputs/outputs. In case external memory is used
then the higher address byte, i.e. addresses A8-A15 will appear on this port. It is
important to know that even memory with capacity of 64Kb is not used ( i.e. note
all bits on port are used for memory addressing) the rest of bits are not available as
inputs or outputs.
Pin 29: PSEN If external ROM is used for storing program then it has a logic-0
value every time the microcontroller reads a byte from memory.
Pin 30: ALE Prior to each reading from external memory, the microcontroller will
set the lower address byte (A0-A7) on P0 and immediately after that activates the
output ALE. Upon receiving signal from the ALE pin, the external register
(74HCT373 or 74HCT375 circuit is usually embedded) memorizes the state of P0
14
and uses it as an address for memory chip. In the second part of the
microcontrollers machine cycle, a signal on this pin stops being emitted and P0 is
used now for data transmission (Data Bus). In this way, by means of only one
additional (and cheap) integrated circuit, data multiplexing from the port is
performed. This port at the same time used for data and address transmission.
Pin 31: EA By applying logic zero to this pin, P2 and P3 are used for data and
address transmission with no regard to whether there is internal memory or not.
That means that even there is a program written to the microcontroller, it will not
be executed, the program written to external ROM will be used instead. Otherwise,
by applying logic one to the EA pin, the microcontroller will use both memories,
first internal and afterwards external (if it exists), up to end of address space.
Pin 32-39: Port 0 Similar to port 2, if external memory is not used, these pins can
be used as universal inputs or outputs. Otherwise, P0 is configured as address
output (A0-A7) when the ALE pin is at high level (1) and as data output (Data
Bus), when logic zero (0) is applied to the ALE pin.
Pin 40: VCC Power supply +5V
3.3
RESISTOR
15
Resistors are one of the most common components in an electronic circuit. The
basic operation is to limit the flow of current in the circuit. Many resistor values
were used in this project. Some of them include 1K, 10k, 100 and the 330
used to limit the current that flows to the seven segment display.
How to read Resistor Color Codes
Black
Brown
0
1
Red
2
Orange
3
4
Yellow
5
Green
6
7
Blue
8
Violet
9
Grey
White
First find the tolerance band, it will typically be gold (5%) and sometimes silver
(10%). Starting from the other end, identify the first band - write down the number
associated with that color; in this case Brown is 1. Now 'read' the next color, here it
is Black so write down a '0' next to the six. (you should have '10' so far.) Now read
the third or 'multiplier exponent' band and write down that as the number of zeros.
In this example it is two so we get '1000'. If the 'multiplier exponent' band is Black
(for zero) don't write any zeros down.
16
If the 'multiplier exponent' band is Gold move the decimal point one to the left. If
the 'multiplier exponent' 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.
3.4
materials, such as silicon or germanium, that are doped (have minute amounts of
foreign elements added) so that either an abundance or a lack of free electrons
exists. In the former case, the semiconductor is called n-type, and in the latter case,
p-type. By combining n-type and p-type materials, a diode can be produced. When
this diode is connected to a battery so that the p-type material is positive and the ntype negative, electrons are repelled from the negative battery terminal and pass
unimpeded to the p-region, which lacks electrons. With battery reversed, the
electrons arriving in the p-material can pass only with difficulty to the n-material,
which is already filled with free electrons, and the current is almost zero.
3.5 SEVEN SEGMENT DISPLAY
One common requirement for many different digital devices is a visual numeric
display. Individual LEDs can of course display the binary states of a set of latches
or flip-flops. However, we're far more used to thinking and dealing with decimal
numbers. To this end, we want a display of some kind that can clearly represent
17
Most seven-segment digits also include a decimal point ("dp"), and some also
include an extra triangle to turn the decimal point into a comma. This improves
readability of large numbers on a calculator, for example. The decimal point is
shown here on the right, but some display units put it on the left, or have a decimal
point on each side.
18
In addition, most displays are actually slanted a bit, making them look as if they
were in italics. This arrangement allows us to turn one digit upside down and place
it next to another, so that the two decimal points look like a colon between the two
digits. The technique is commonly used in LED clock displays.
3.6
CAPACITOR
Capacitors store electric charge. They are used with resistors in timing circuits
because it takes time for a capacitor to fill with charge. They are used to smooth
varying DC supplies by acting as a reservoir of charge. They are also used in filter
circuits because capacitors easily pass AC (changing) signals but they block DC
(constant) signals. There are many types of capacitor but they can be split into two
groups, polarized and nonpolarised. Each group has its own circuit symbol.
Electrolytic Capacitors
Electrolytic capacitors are polarized and they must be connected the correct way
round, at least one of their leads will be marked + or -. They are not damaged by
heat when soldering.
19
There are two designs of electrolytic capacitors; axial where the leads are attached
to each end (220F in picture) and radial where both leads are at the same end
(10F in picture). Radial capacitors tend to be a little smaller and they stand
upright on the circuit board.
It is easy to find the value of electrolytic capacitors because they are clearly printed
with their capacitance and voltage rating. The voltage rating can be quite low (6V
for example) and it should always be checked when selecting an electrolytic
capacitor.
Nonpolarized capacitors
Small value capacitors are nonpolarized and may be connected either way round.
They are not damaged by heat when soldering, except for one unusual type
(polystyrene). They have high voltage ratings of at least 50V, usually 250V or so. It
can be difficult to find the values of these small capacitors because there are many
types of them and several different labeling systems!
20
Many small value capacitors have their value printed but without a multiplier, so
you need to use experience to work out what the multiplier should be. For example
0.1 means 0.1F
3.7
TRANSFORMER
DIODES
A diode is a very important two terminal passive and non- linear device used in
electrical and electronics application, but in this case the diodes were connected to
form a bridge rectifier circuit.
The rectifier circuit changes alternating current to direct current, which is one of
the simplest and most important applications of diodes.
21
CHAPTER FOUR
PRINCIPLE OF OPERATION
4.1
22
220V AC
D1
T1
D2
12V
DC
D3
D4
The transformer (T1) above is a step down type, which steps down the incoming
220v to 15v. The output of the transformer connects to a bridge rectifier network
made up of four diodes connected as in the circuit above. The diode network
hereby rectifiers the incoming 15v ac waveform to a 15v dc which connects to the
battery through a capacitor filter. The capacitor here functions as a filter to remove
ripples present in the dc waveform.
4.2
23
Vcc
Vcc
LM358
2 +
4
3.3V
20K
The 3.3v zener diode seen in the diagram above sets a reference voltage at the Pin
1 terminal of the Lm358. the 20k variable resistor is used to adjust
the threshold
voltage to be compared by the comparator. For instance, taking 12v as a threshold,
it means that an 11.9v battery will be connected to the terminal A and the resistor
varied until there is no output at B. Again, a 12.1v battery will also be connected
and the resistor varied until there is a voltage output at B. Therefore, the circuit
will give no output when terminal A is connected to a battery whose voltage is less
than 12v and will give an output when terminal A is connected to a battery whose
voltage is greater than 12v.
4.3
ATMEL 8952 microcontroller chip which gets logical information from the voltage
24
comparator, processes this information based on a written and stored program, then
gives an output information across its output port terminals. The above mentioned
program was written in assembly language, compiled and stored in the
microcontroller memory. A logic O information from the comparator triggers the
pin 16 of the micro controller so that a seven bit binary information is received at
its output port terminals. This seven bit information is different from that received
when a logic 1 comes from the comparator to trigger the controller.
4.4
DISPLAY SECTION: The seven bit information at the output port of the
25
Vcc
1
40
39
38
ULN
37
2003
36
35
4.0mHz
8951
33
32
10
31
11
30
12
29
d
e
Vcc
7 ATMEL
34
8
470
Q1
470
Q2
13
Vcc
10k
-Lm
358
+
To positive
3.3v
terminal of
charger
+
30v
20k
To
2200ufterminals
To 220 ac
power
supply
of
battery
26
Component list
Quantity
Part no
Description
220v/15v
Transformer
IN400B
Diodes
C1815
Transistor
30v/2200uf
Capacitor
470K
Resistor
10k
20k
Resistor
3.3v
Zener diode
Lm 358
Comparator
Atmel 8951
Micro controller
ULN 2003
Resistor
CHAPTER FIVE
5.1
CONCLUSION
27
5.2
RECOMMENDATIONS
Due to the economic and technical advantage of a rechargeable battery
system over dry cells, we recommend that it should be the pre dominant battery
in use for all system.
28
REFERENCES
1.
2.
29
3.
4.
Robert J. Kaka lee It Al, 1979, New technology for Battery charging
Rectifiers, Bell laboratories Record.
5.
6.
www.en.wikipedia.
Org/wiki/counter
7.
30