Professional Documents
Culture Documents
CONTROLLER
Block Diagram
Flow Chart
Hardware Requirements
Schematic Diagram
Working
Applications
BLOCK DIAGRAM
LCD
(16 X 2)
ULTRASONIC
SENSOR
AT89S52
(Microcontroller)
ASM CProgram
LAMP/(MOTOR)
FLOW CHART
No
POWER SUPPLY
230 V AC
50 Hz
Bridge rectifier
5v Regulator
5V
DC
12V step down
transformer
Filter(470f)
Microcontroller
Microcontroller
is a small computer on a
single integrated circuit containing a processor core,
memory, and . programmable input/output peripherals.
CPU
RAM ROM
A single chip
I/O
Port
Serial
Timer COM
Port
Microcontroller
MICRO CONTROLLER
AT89S52
Ultrasonic
sensors
(also
known
as
Ultrasonic
When ultrasonic waves are incident on an object, diffused reflection of the energy
takes place over a wide solid angle which might be as high as 180 degrees.
Thus some fraction of the incident energy is reflected back to the transducer in the
form of echoes and is detected.
TRANSMITTER
CONTROL
CIRCUIT
RECEIVER
SURFACE
The distance to the object (L) can then be calculated through the
speed of ultrasonic waves (v) in the medium by the relation
L =
Vtcos
2
V = Velocity of wave.
t = Time taken by the wave to reach back to the sensor.
PROPERTIES:
Ultrasonic
The
The
FEATURES
It
is
switching
used
in
general-purpose
and
amplification
Whenever base is high, then current starts flowing through base and emitter
and after that only current will pass from collector to emitter.
High power devices like motors and light bulbs give a large
current output for a very tiny current input.
A MOSFET can act as the interface between an integrated circuit
that can give only a tiny current, and the motor that takes a big
current.
In complimentary pairs they are used in hi-fi power amplifiers.
They produce less distortion as they are more linear than bipolar
transistors.
RELAY
A relay is an electromagnetically operated switch.
It is an electrical switch that uses an electromagnet to move the switch from the off to on
position instead of a person moving the switch.
It is used to enable a low current circuit to control a high current circuit.
CONFIGURATION
Relays (and switches) come in different
configurations. The most common are:
1. Single Pole Single Throw (SPST)
2. Single Pole Double Throw (SPDT)
3. Double Pole Single Throw (DPST)
4. Double Pole Double Throw(DPDT)
Description
Single Pole Single Throw (SPST) is the simplest with only two contacts.
Single Pole Double Throw (SPDT) has three contacts.
The contacts are usually labelled
Common (COM)
Normally Open (NO)
Normally Closed (NC)
The Normally Closed contact will be connected to the Common contact when no
power is applied to the coil. The Normally Open contact will be open (i.e. not
connected) when no power is applied to the coil.
When the coil is energized the Common is connected to the Normally Open contact
and the Normally Closed contact is left floating.
DPST (double pole single throw) and DPDT (double pole double throw) relays are
relays which have two switches - i.e. they can control two different things at the
same time.
WORKING:
A normal relay has two circuits.
The control (Green) circuit energizes an electromagnetic coil.
Energized magnetic coil attracts the armature, pulling it down and closing the contacts
of the high current switch of the power circuit (Red).
Externally, the control circuit is connected to a low current switch at one end and ground
at the other end.
The power circuit is connected to a power source at the one end and the load at the
other end.
Closing the control circuit switch energizes the magnetic coil which, in turn, closes the
relay contacts, completing the circuit to the load.
LCD BACKGROUND
If an 8-bit data bus is used the LCD will require 11 data lines.
Control lines = 3.
Data bus lines = 8 ((D D ) = (Pin 7- pin 14))
0
Control Lines
EN
RS
RW
EN=Enable (used to tell the LCD that you are sending it data)
RS=Register Select
R/W=Read/Write
The ultrasonic module attached to the board will check liquid level
from reflecting ultrasonic waves.
If the water falls below certain level, the sensor will sense it from the
reflecting waves and gives the information to the microcontroller.
If the water rises beyond a certain level the controller will switch off the
lamp, indicating motor off.
A relay is used to switch on and off the lamp.
The relay is turned on or off by a switching mechanism consisting of a
mosfet and a transistor.
+12V
TO
RELAY
R5
Q2
OFF
FROM
MICRO CONTROLLER
Q1
I/P = 0
I/P = 1
ON
OFF
ON
R4
A zero logic from the MC maintains Q1(transistor) in off state such that R4
provides a voltage level to turn on the relay.
A high logic from the controller switches on Q1 that provides zero voltage
level at R4 to turn the device fully "OFF.
SOFTWARE REQUIREMENTS
PROGRAMMING
Embedded
LANGUAGES:
COMPILERS:
Keil 4.0/0.0uv
DUMPING
SOFT WARE:
Using Micro controller flash Software we are dumping our HEX Code into
Micro Controller .
APPLICATIONS
Automotives
Liquid level
controller
Industries
Household
CONCLUSION
This project is best suitable for all industrial and
household purposes where liquid level control is of
prime importance.
FUTURE SCOPE
This project can be extended to be used in
nuclear power plants, Dams and Industries
where automatic control of liquid level is
necessary.
www.atmel.com
www.beyondlogic.org
www.wikipedia.org
www.howstuffworks.com
www.alldatasheets.com