Project Report
Project Report
CONTENTS
1. ABSTRACT
2. INTRODUCTION
3. FUNCTIONAL DESCRIPTION
4. DESCRIPTION AS PER THE DIAGRAMS
5. DIAGRAMS
BLOCK DIAGRAM
CIRCUIT DIAGRAM
6. GENERAL DESCRIPTION ABOUT DISHWASHERS
7. BRIEF DESCRIPTION ABOUT MECHATRONICS
8. DETAILS ABOUT A/D CONVERTERS
9. DESCRIPTION OF MICROCONTROLLERS
10. LCD INTERFACING
11. BRIEF DESCRIPTION ABOUT RELAYS
12. HARDWARE DETAILS
13. SOFTWARE DETAILS
14. CONCLUSIONS AND REFERENCES
AUTOMATIC DISH WASHER
ABSTRACT
Washing the dishes with hot water manually is painful activity; there
by this semi automatic machine is designed to wash the plates with
constant hot water source. The system designed here is very useful for the
big restaurants where always food serving plates are supposed to be
washed with hot water to maintain the high generic atmosphere in the
kitchen. In addition as the system is automated human efforts are reduced
to some extent to clean the plates.
INTRODUCTION
CHAPTER 3
FUNCTIONAL DESCRIPTION
Function of relay 1
Here in this project work relays are used to control the output
devices depending on the instructions of the micro controller. A total of five
relays are used in the project.
The third relay is used to activate the dryer to blow hot air and dry
the dishes. After washing the dishes with water, the dryer blows hot air that
requires single phase supply just like the water heater. So through the
relay contact the supply is provided to the dryer to dry the dishes.
The fourth and fifth relays are used to operate the DC motor that
drives the dish washing mechanism in clock wise and anti clock wise
directions for washing and drying the dishes.
The pumping motor used here operates at 12V DC. The main
function of this motor is to draw hot water from the water container when
required. Since it is a proto type module a small DC motor is used and it
can spray the water at some force. Though the force is not sufficient to
clean the dish, for demo purpose little force is enough, otherwise the water
may spread in all directions. For real applications, huge torque motor is
essential and dish placing area must be covered from all sides to avoid
spreading of water. The motor used here is small in size and hence it is
mounted to the water container directly. A small container with a capacity of
2-3 liters is used as water source. Depending up on the availability of
motor, any type of small motor can be used for the purpose.
Function of microcontroller
This section of the project work is explained as per circuit and block
diagrams. The complete block circuit diagrams are provided in the
following chapter. The details are as followed.
As per the block diagram, the first block is temperature sensor and
the process begins from this sensor. The sensor used in the project work is
very sensitive, and it can detect even one degree variation also. The
methods of temperature measurement may be divided into two main
classes according as the exchange of heat between the testing body and
the hot system takes place by contact or by radiation across a space. In
the contact methods (used, for example, in thermometers or thermo
couples immersed in solids or liquids) the thermo dynamic equilibrium
between the hot body and the testing body is established by material
contact. In the non-contact methods (used, for example in radiation
pyrometers), the heat radiated in to the space through a heating element
or atmosphere temperature can be measured through specific sensors.
Here the sensor it can be used for both applications, if required it can be
firmly attached to a body of any device that will be producing heat, other
wise the same sensor can be kept in the air from where the temperature
data must be acquired.
: non-inverting input
: inverting input
: output
: positive power supply
: negative power supply
CIRCUIT ANALYSIS
The temperature sensing circuit contains two op-amps & they are
used to amplify the signal strength. The temperature sensor wired with one
op-amp is configured as differential amplifier, there by the difference
between two inputs created by the sensor according to the temperature is
amplified. The output of this differential amplifier is further amplified with
second op-amp. The second op-amp is configured as voltage amplifier. In
the first stage an NPN General purpose transistor (SL100) is used as a
temperature sensor and this transistor is having TIN metal body so that it
can absorb the heat properly. This transistor is connected in feed back loop
(input to output). This first stage is designed in such a way so that, as the
transistor body temperature rises, according to the temperature, the base-
emitter or base-collector junction resistance decreases. This variation in
the sensor in the form of resistance is converted in to the proportionate dc
level & difference created due to hike in the temperature is amplified at
input side.
As the input increases from zero to full scale, the output code stair
steps. The width of an ideal step represents the size of the least significant
CIRCUIT ANALYSIS
For ADC to start converting the data after selecting the channel by
sending the address inputs, the start conversion signal is to be sent by
Micro-controller. Then ADC starts converting the analog signals voltage
into corresponding digital data. For Ex: The following table shows the
digital data corresponding to analog input.
After conversion, the ADC generates EOC (End of conversion). This
indicates to Micro-controller that the conversion is completed and takes the
digital data corresponding to analog input. The following is Circuit diagram
of A/D Converter along with its clock generator.
In the above circuit diagram 555 timer IC is used for generating the
required clock pulses.
CLOCK GENERATOR
The output state is LOW during the discharge cycle for a time period
t2, given by t2 = 0.693 RbC
Thus, the total period charge and discharge is
T = t 1 + t2
= 0.693 (Ra + 2Rb) C (Seconds)
So that the output frequency is given as
The 555 timer is one of the most popular and versatile integrated
circuits ever produced. It includes 23 transistors, 2 diodes and 16 resistors
on a silicon chip installed in an 8-pin mini dual-in-line package (DIP-8). The
556 is a 14-pin DIP that combines two 555s on a single chip. The 558 is a
16-pin DIP that combines four slightly modified 555s on a single chip.
Description of Circuit:
This circuit requires very few external components. The main three
are R1, R2 and C1. C2 is merely there to prevent instability problems. R3
limits current to the LED. A 9V battery is used as power source, but for the
same purpose 5V supply also can be used.
The time high (ON) and time low (OFF) are determined by R1, R2
and C1. Let's call the time high Th and the time low Tl. The total time is Tt
Now to figure out the Time low, we use the same formula ignoring R1.
Tl = 0.693 X C1 X R2
Tl = .693 X .00001 X 147,000
Tl = 1.014 seconds
All that is left to figure out is Time Total. Just add the Tl and Th.
Tt = Th + Tl
Tt = 2.03 seconds
F = 1/Tt
F = .5 Hertz (Hz) or cycles per second.
Using a one ohm resistor for R1 gives nearly the same time on as
off. The ratio of time ON to total time is called Duty Cycle. The example
circuit we made has a duty cycle of 1:2 or 50% (50% on and 50% off)
To make a circuit that provides with a longer time on and shorter time
off, the following is the example:
This produces a circuit with the LED on for 1.34 seconds and off .33
seconds. Its duty cycle is now 3:4 or 75%. The following is the simple
formula to figure out duty cycle.
The LCD used here is having two rows and each row contains 16
characters, depending up on the availability of LCD panel 3 lines or 4 lines
panels can be used for the purpose, so that more information can be
displayed simultaneously. The LCD used here is having its drive circuitry
for the display internally. Since application is to display the water
temperature, set value and actual value both are displayed separately
through different rows. After initializing the LCD panel through
microcontroller, a sequence of control codes are sent to display the
characters according to the temperature.
The LCD panel used in this project work is having 16 pins. The
function of each pin description with table is as followed:
RS - register select:
There are two very important registers inside the LCD. The RS pin is
used for their selection as follows. If RS = 0, the instruction command code
register is selected, allowing the user to send a command such as clear
display, cursor at home, etc. If RS = 1 the data register is selected,
allowing the user to send data to be displayed on the LCD.
R/W - read/write:
R/W input allows the user to write information to the LCD or read
information from it. R/W = 1 when reading; R/W =0 when writing.
E - Enable:
D0 D7: The 8 bit data pins, D0 D7, are used to send information to the
LCD or read the contents of the LCDs internal registers. To display letters
and numbers, we send ASCII codes for the letters A Z, a z, and
numbers 0 9 to these pins while making RS = 1. There are also
instructions command codes that can be sent to the LCD to clear the
display or force the cursor to the home position or blink the cursor.
RELAY
Normally-open contacts connect the circuit when the relay is activated; the
circuit is disconnected when the relay is inactive. It is also called Form A contact
or "make" contact. Form A contact is ideal for applications that require to switch a
high-current power source from a remote device.
OPERATION
The relays used in this project work are electromagnetic relays. The
electromagnetic relay is basically a switch (or a combination of switches)
operated by the magnetic force generated by a current flowing through a
coil. Essentially, it consists of four parts an electromagnet comprising a
coil and a magnetic circuit, a movable armature, a set of contacts, and a
frame to mount all these components. However, very wide ranges of relays
have been developed to meet the requirements of the industry. This relay
is nothing but a switch, which operates electromagnetically. It opens or
closes a circuit when current through the coil is started or stopped. When
the coil is energized armature is attracted by the electromagnet and the
contacts are closed. That is how the power is applied to the signals
(indicators). The construction of the typical relay contains a code
surrounded by a coil of copper wire. The core is mounted on a metal
frame. The movable part of the relay is called armature. When a voltage is
applied to the coil terminals, the current flowing through the coil produces a
magnetic field in the core. In other words, the core acts as an
electromagnet and attracts the metal armature. When the armature is
attracted to the core, the magnetic path is from the core through armature,
through the frame, and back to the core. On removing the voltage the
spring attached to the armature returns the armature to its original position.
In this position, there is a small air-gap in the magnetic path. Hence, more
power is needed to pull in the armature than that needed to keep it held in
the attracted position.
CHAPTER 6
Spray methods, the direction of spray, and the shape of the wash tub
has evolved over time due to the difficulty of cleaning some types of
dishes. Plates and cutlery tend to be the easiest to clean because of their
fairly flat and open shape. Bowls, glasses, pitchers, vases, and other
containers are more difficult to clean because of the recessed inner cavity
and the need for liquid to drain out of the interior cavity. The difficulty of
cleaning a container in a dishwasher increases as the neck diameter
decreases and the interior space width and depth enlarges. This has
generally required glasses, pitchers, and other containers to be placed in
the device with the opening pointed downward and exposed directly to the
spray arm jets or impeller in the base of the unit, so that the liquid is
propelled with sufficient force as to reach all the way into the back / top of
containers with small mouth openings.
The second was the mid-level spray system, using either a pop-up
spray tower extending upward from the base using water pressure to
extend the tower during washing, or a fixed tower spray arm supplying
water to a secondary rotating arm suspended below the upper rack(s). This
mid-level spray system allows for large spray-blocking bowls and pans to
be placed in the bottom rack, while still getting water spray up into the
undersides of glasses and bowls in the top rack.
However, the pop-up tower or fixed tower method blocks use of the
center of the bottom rack, restricting the size of objects that can fit in the
bottom rack. A modification has been to reroute water flow to the mid-level
spray arm using tubing directed up the back wall of the wash chamber,
leaving the center of the bottom rack open and available for use.
Characterization
Plumbing
Detergent
Hand-washing detergent
Dishwasher salt
Pouring detergent into the salt compartment will damage the water
softening system, however this can be reversed if the user acts very
quickly and the dishwasher is NOT used: with a suitable wet and dry
vacuum cleaner, remove the foreign substance e.g. detergent, followed by
adding water again and removing the water with the wet and dry vacuum
and repeating the process several times.
Most digital panel Meters (DPM) and digital multi-meters (DMM) use
either the single integration or duel-slope integration methods for the A/D
conversion process. The single slope integrator is simple, but is limited to
those applications that can tolerate accuracy of one or two percent.
The AND gate requires all three inputs to be high before its output can
be HIGH also. The output of the AND gate will go HIGH every time the
clock signal is also HIGH. The encoder, in this case an B-bit binary
counter, will than see a pulse train with a length proportional to the
amplitude of the analog input voltage. If the A/D converter is designed
correctly, then the maximum range (full-scale) value of Vx. Several
problems are found in single-slope integrator A/D converters.
2) The ramp voltage may have too steep or too shallow a slope
These circuits are not A/D Converters in the strictest sense, but are
very good for representing analog data in a form that can be tape recorder
on a low cost audio-machine, or transmitted over radio. The V/F converter
output can also be used for direct input to a computer if a binary counter is
used to measure the output frequency. Two forms of V/F converter are
common. One is a voltage-controlled oscillator (VCO), that is, a regular
oscillator circuit in which the output frequency is a function of an input
controls voltage. If the VCO is connected to a binary or binary coded
decimal (BCD) counter, then the VCO be comes a V/F form of A/D converter.
The integrator, which causes the integrator output to begin charging
capacitor, the output voltage of the integrator will begin to rise. As soon as
this voltage raises a few milli-volts above ground potential the comparator
output snaps HIGH Positive. A HIG comparator output causes the control
circuit to enable the counter, which begins to count pulses. The following is
the block diagram of voltage to frequency converter
Counter type A/D Converter:
The outputs control the DAC inputs, so the DAC output voltage will
begin to rise when the counter begins to increment. As long as analog input
voltage Vx is less than Vref (The DAC output), the comparator output is
HIGH, when Vx and Vref are equal, however, the comparator output goes
low, which turns off the clock and stops the counter output at this time
represents the value of Vx. The following is the block diagram of binary A/D
converter is shown in the next page.
DESCRIPTION OF MICROCONTROLLERS
As stated, the 8051 can address 64K of external data memory and
64K of external program memory. These may be separate blocks of
memory, so that up to 128K of memory can be attached to the
microcontroller. Separate blocks of code and data memory are referred to
as the Harvard architecture. The 8051 has two separate read signals, RD#
and PSEN#. The first is activated when a byte is to be read from external
data memory, the other, from external program memory. Both of these
signals are so-called active low signals. That is, they are cleared to logic
level 0 when activated. All external code is fetched from external program
memory. In addition, bytes from external program memory may be read by
special read instructions such as the MOVC instruction. There are
separate instructions to read from external data memory, such as the
MOVX instruction. That is, the instructions determine which block of
memory is addressed, and the corresponding control signal, either RD# or
PSEN# is activated during the memory read cycle. A single block of
memory may be mapped to act as both data and program memory. This is
referred to as the Von Neumann1 architecture. In order to read from the
same block using either the RD# signal or the PSEN# signal, the two
signals are combined with a logic AND operation. This way, the output of
the AND gate is low when either input is low.
The advantage of the Harvard architecture is not simply doubling the
memory capacity of the microcontroller. Separating program and data
increases the reliability of the microcontroller, since there are no
instructions to write to the program memory. A ROM device is ideally suited
to serve as program memory. The Harvard architecture is somewhat
awkward in evaluation systems, where code needs to be loaded into
program memory. By adopting the Von Neumann architecture, code may
be written to memory as data bytes, and then executed as program
instructions.
The 8052 has 256 bytes of internal RAM and 8K of internal code
ROM. The 8051 and 8052 internal ROM cannot be programmed by the
user. The user must supply the program to the manufacturer, and the
manufacturer programs the microcontrollers during production. Due to the
setup costs, the factory masked ROM option is not economical for small
quantity productions. The 8751 and 8752 are the Erasable Programmable
Read Only Memory (EPROM) versions of the 8051 and 8052. Many
manufacturers offer the EPROM versions in windowed ceramic and non-
windowed plastic packages. These are user programmable. However, the
non-windowed versions cannot be erased. These are usually referred to as
One-Time- Programmable (OTP) microcontrollers, which are more suitable
for experimental work or for small production runs. The 8951 and 8952
contain FLASH EEPROMs (Electrically Erasable Programmable Read
Only Memory). These chips can be programmed as the EPROM versions,
using a chip programmer. Moreover, the memory may be erased. Similar to
EPROMs, Erasing FLASH memory sets all data bits (data bytes become
FFh). A bit may be cleared (made 0) by programming. However, a zero bit
may not be programmed to a one. This requires erasing the chip. Some
larger FLASH memories are organized in banks or sectors. Rather than
erasing the entire chip, you may erase a given sector and keep the
remaining sectors unchanged.
With all latest features, this chip can be called as a mini computer.
The prime use of a microcontroller is to control the operation of a machine
using a fixed program that is stored in ROM and that does not changeover
the lifetime of the system. The microcontroller design uses a much more
limited set of instructions that are used to move code and data from
internal memory to the ALU. Many instructions are coupled with pins on the
IC package. The pins are programmable independently, that is capable of
having several different functions depending on the program. The
microcontroller is concerned with getting data from and to its own pins; the
architecture and instruction set are optimized to handle data in bit, byte,
and word size. Generally for any application, often designers chose the 8
bit controller, because they are most popular microcontrollers in use today,
another important aspect is cost effective.
The heart of the chip is the circuitry that generates the clock pulses
by which all internal operations are synchronized. Typically a quartz crystal
and capacitors are connected to the oscillator pins of microcontroller. The
crystal frequency is the final internal clock frequency of the microcontroller.
Often 12 MHz crystals are preferred for ease of program. A 12 MHz crystal
yields the convenient time of one microsecond per cycle. The
manufacturers of the 8051 devices specifies the frequency range, less
frequency other then specified may erase the data that is stored in ROM,
there by the frequency must be always be more then the above normal.
The oscillator formed by the crystal and capacitors generates a pulse train
at the frequency of the crystal.
LCD INTERFACING
As seen from the above figure, Pins from 7 to 14 are data pins used
for the selection of a particular character and pins 4 to 6 are Control signal
pins used for performing Register bank selection, Read / Write and Enable
pins respectively. By adjusting the voltage at pin number 3 we can change
the contrast of the display. To display a particular character its associated
logic sequence has to be placed on the data pins and write signal (Pin-6)
has to be enabled. Microcontroller takes care of all these things based on
the program loaded into it. In the receiving end, Microcontroller places the
logic sequence on the data pins based on the information obtained from the
decoder output.
1 Vss -- Ground
4 RS I RS = 0 to select command
6 E I/O Enable
In the above table Vcc and Vss are supply pins and VEE (Pin no.3) is
used for controlling LCD contrast. Pin No.4 is Rs pin for selecting the
register, there are two very important registers are there in side the LCD.
The RS pin is used for their selection as follows. If RS = 0, the instruction
command code register is selected, allowing the user to send a command
such as clear display. If RS=1, the data register is selected, allowing the
user to send data to be displayed on the LCD.
R/W is a read or writes Pin, which allows the user to write information
to the LCD or read information from it. R/W=1 when reading, R/W=0 when
writing. The enable (E) pin is used by the LCD to latch information presented
to its data pins. When data is supplied to data pins, a high to-low pulse
must be applied to this pin in order for the LCD to latch in the data present at
the data pins. This pulse must be a minimum of 450 ns wide.
The 8-bit data pins, D0-D7, are used to send information to the LCD or
read the contents of the LCDS internal registers. To display letters and
numbers, we must send ASCII (Antenna Standard Code for Information Inter
Change, Pronounced ask E) codes for the letters A Z, and numbers 0 -
9 to these pins while making RS=1.
In recent years the LCD panels became very popular because of their
widespread use in various electronic systems like instruments to read the
parameter values, digital communications for sending or receiving the text
information, data acquisition systems, etc. These display units dominating
seven segment displays by providing more features to the user. The LCD
system can display numbers, characters, and graphics, where as seven
segments LEDs displays only numbers, there fore most of the engineers
prefers LCDs. The data fed to the LCD remains as it is and the same will be
displayed until it gets an erase signal from the controller. The data can be
stored and it can be refreshed for the next task.
Introduction
Relay
Neutral Relays
This is the most elementary type of relay. The neutral relays have a
magnetic coil, which operates the relay at a specified current, regardless of
the polarity of the voltage applied.
Biased Relays
Polarized Relays
Like the biased relays, the polarized relays operate only when the
current through the coil in one direction. But there the principle is different.
The relay coil has a diode connected in series with it. This blocks the
current in the reverse direction. The major difference between biased
relays and polarized relays is that the former allows the current to pass
through in the reverse direction, but does the not operate the relay and the
later blocks the current in reverse direction. You can imagine how critical
these properties when relays are connected in series to form logic circuits.
Relays for AC
These are neutral relays and picked up for a.c. current through their
coil. These are very fast in action and used on power circuits of the point
motors, where high current flows through the contacts. A normal relay
would be slow and make sparks which in turn may weld the contacts
together.All relays have two operating values (voltages), one pick-up and
the other other drop away. The pick-up value is higher than the drop away
value.
Applications
To control a high-voltage circuit with a low-voltage signal, as in some
types of modems or audio amplifiers,
To control a high-current circuit with a low-current signal, as in the
starter solenoid of an automobile,
To detect and isolate faults on transmission and distribution lines by
opening and closing circuit breakers (protection relays),
To isolate the controlling circuit from the controlled circuit when the
two are at different potentials, for example when controlling a mains-
powered device from a low-voltage switch. They may also be
controlled by room occupancy detectors in an effort to conserve
energy.
To perform logic functions. For example, the boolean AND function is
realised by connecting NO relay contacts in series, the OR function
by connecting NO contacts in parallel. The change-over or Form C
contacts perform the XOR (exclusive or) function. Similar functions
for NAND and NOR are accomplished using NC contacts. The
Ladder programming language is often used for designing relay logic
networks.
The term relay was used for the first time to describe an invention
made by Samuel Morse in 1836. The device invented by Morse was a
Telegraph Amplifying Electromagnetic Device which enabled a small
current flowing in a coil to switch on a large current in another circuit and
thus helped in relay of signals.
Though relays are simple devices, they are rarely fully understood
by electronic equipment designers because there are so many varieties.
They have been developed to meet a wide range of requirements. A relay,
when used properly under good climatic conditions, can have a very long
life. Under other conditions, it can give considerable trouble.
The relays used in this project work are electromagnetic relays. The
electromagnetic relay is basically a switch (or a combination of switches)
operated by the magnetic force generated by a current flowing through a
coil. Essentially, it consists of four parts an electromagnet comprising a
coil and a magnetic circuit, a movable armature, a set of contacts, and a
frame to mount all these components. However, very wide ranges of
relays have been developed to meet the requirements of the industry.
RELAY CHARACTERSTICS
HARDWARE DETAILS
The ICs and other important components used in this project work,
procured from the Hyderabad Electronics Market. The details or data
sheets of the ICs are down loaded from the Internet. The following are the
web sites that can be browsed for collecting the data sheets.
The following are the ICs and other important components used in
this project work
The required PCBS (Printed Circuit boards) for the project work are
fabricated by SUNRISE CIRCUITS, Kushaiguda Industrial Estate,
Hyderabad. Kushaiguda Industrial Estate is very famous for fabricating the
Industrial grade PCBs, i.e. glass epoxy boards.
CHAPTER - 13
CONCLUSIONS
(1) Linear & Digital IC Applications By: professor B.N. Yoga Narsimhan
(2) Industrial and power Electronics By: Harish C. Roy
(3) The 8051 Micro-controller Architecture, programming & Applications
By: Kenneth J. Ayala
(4) The 8051 Microcontroller and Embedded Systems By: MD Ali Mazidi
(5) Practical transistor circuit design and analysis
By: GERALD E. WILLIAMS
(6) Programming and Customizing the 8051 Micro-controller By: Myke
Predko
(7) The concepts and Features of Micro-controllers - By: Raj Kamal
(8) Digital and Analog Communication System By: K. sam Shanmugam
(9) Digital Electronics. By JOSEPH J.CARR
(10) Electronics for you Monthly Magazine
(11) Practical Electronics
(12) Elector India