Beruflich Dokumente
Kultur Dokumente
CONTROLLER
• Block Diagram
• Flow Chart
• Hardware Requirements
• Schematic Diagram
• Working
• Applications
BLOCK DIAGRAM
LCD
(16 X 2)
ULTRASONIC AT89S52
SENSOR (Micro-
controller) LAMP/(MOTOR)
ASM ‘C’Program
FLOW CHART
No
• POWER SUPPLY BLOCK
• MICROCONTROLLER (AT89S52/AT89C51)
• ULTRASONIC MODULE
• IRFZ44 MOSFET
• BC547 TRANSISTOR
• IN4007 DIODE
• RELAY
• LCD(16X2)
• PUSH BUTTONS
• RESISTORS
• CAPACITORS
POWER SUPPLY
230 V AC Bridge rectifier 5v Regulator
50 Hz
5V
DC
•Thus some fraction of the incident energy is reflected back to the transducer in the
form of echoes and is detected.
TRANSMITTER
CONTROL
θ SURFACE
CIRCUIT
L
RECEIVER
•The distance to the object (L) can then be calculated through the
speed of ultrasonic waves (v) in the medium by the relation
Vtcosθ
L =
2
• V = Velocity of wave.
• 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.
LIQUID CRYSTAL DISPLAY (LCD)
•Most common LCDs connected to the microcontrollers are 16x2
and 20x2 displays.
•This means 16 characters per line by 2 lines and 20 characters per
line by 2 lines, respectively.
•The standard is referred to as HD44780U, which refers to the
controller chip which receives data from an external source (and
communicates directly with the LCD.
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 7
Control Lines
EN RS RW
•EN=Enable (used to tell the LCD that you are sending it data)
•RS=Register Select
•RS = LOW ( 0 ) Data is treated as command.
•RS = HIGH ( 1 ) Data being sent is text data .
•If the water falls below certain level, the sensor will sense it from the
reflecting waves and gives the information to the microcontroller.
•
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 ON
OFF
FROM
MICRO CONTROLLER
Q1 OFF
ON R4
I/P = 0
I/P = 1
•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”.
• PROGRAMMING LANGUAGES:
• Embedded C , ALP (Assembly Language)
• 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
Industries
controller
Household
• Liquid level controllers have got really high demand in various
aspects of life.