Professional Documents
Culture Documents
+
+
C1 C2
12V Supply 470uF 220uF
R1
330 PCU1
817
Rb = (Vcc -1.4)/Ib
Fig.3 Optical Isolation Circuit for Valves Driver = (12-0.14) /0.19 mA
The next optical isolation circuit design for PC817 is = 56000= 56k
used for inverted signal such as valves control. It is not R1 and R2 can be considered as less than 56k: to
necessary to use a transistor because sink current of 8051 is limit the base current for transistor selected, it is needed to
more than 25 mA and this advantage can be used to drive give the sufficient collector current. To get sufficient collector
internal LED of PC817 from high to low. Normally, this is current, the base resistance of darlington transistor pair must
common with open collector circuit and can only be used as be maximum and any resistor under this value can be chosen
inverted. Resistor R3 is used to limit voltage drop of internal for base resistance of this transistor pair. In this case, R1 and
LED. R2 are chosen as the combination of 47k: and 4.7k:.
123
V1
5V
Phase
To prevent from spark surges, 150 ohms resistor is
+V
RLY1
12VSPDT F1
2A
series with gate and C945 collector. This cannot be effected to
P1
operation but can limit surge noise current.
PC817
U1
R1
47k RLY2
220 V AC Source
Triac Q1 is to drive left winding of motor and Q2 is
Inlet Valve
Q1
NPN for right. Capacitor C1 is 4.7 uF/440V capacitor and which is
Q2
NPN N used for starting excitation of motor.
V1
12V
+V
Phase
voltage for valve. Other driver transistor and switch relay are R2
10k Q4
NPN
Q2
BTA8-600
F2
5A
Left Coil
L2
P1 220 AC source
V2
5V
+V
D1
RLY4
12VSPDT F2
1A
5A
F3
5A Phase
Fig.7 Triac Controlled Motor Driver Circuit
P2
R2
47k RLY3
PC817 Outle Valve 220 V AC Source
U2
Q4
NPN
Q3
NPN N
124
interrupt. When the door switch is opened during process, it
will call the interrupt routine and it will stop the process. And
then it will re-operate the process when the door switch is
enclosed.
5.1. Time Delay Loop Calculation
Software time delay loops are often used in computer
programs and the tasks performed by these types of loops are
Fig.10 PCB Schematics for Washing Machine Control System simple to waste time. The timing sequence for the washing
(Control Circuit and Driver Ciurcuit) machine requires long time to be completed. But in
demonstration, long period is not necessary as practical. The
4.5. Cautions from this Circuit in Testing delay time for debouncing can be calculated as follows.
1. For the DC water drain valve, the inductive voltage is TT8: MOV VAR2,#33
created anytime power to the coil is de-energized. It MOV VAR1,#104
is ten times the applied voltage. TT9: DJNZ VAR1,TT9
2. +12V DC supply from circuit is referenced to 220V DJNZ VAR2,TT9
AC and this voltage can be used to drive AC triacs Crystal = 4 MHz
directly. Oscillator period = 250 ns
3. While this circuit is working, any device in driver Instruction execution time for mov R, # data= 12
circuit should not be touched by hand. This can get Instruction execution time for djnz Rn, rel = 24
electrical shock, since all devices are working at live 250 ns u (12 12) 250 ns u (103 u 24) 250 ns u (255 u 32 u 24)
area. 50m s
In this system, 3seconds delay, 7seconds delay, 10seconds
V. SOFTWARE DEVELOPOMENT delay and 5seconds delays are written as the subroutines in the
main program.
5.2. Flow Chart for Process Control
A number of operations have to be carried out in the
The mainline program is written just to call the
correct sequence in the control process of washing machine.
sequence of corresponding procedure. These are water inlet
Each of these operations involves opening valve to fill the
valve routine, wash routine for soft mode, regular mode and
machine drum to the required level, closing the valve,
heavy mode, spin routine and drain valve routine are written
switching on the wash motor to rotate the forward and
in sequence as shown in Fig 12.
backward direction for a specific time. The operating
sequence is called program, the sequence of instructions in
each program being predefined and built into the controller
used.
125
VI. DISCUSSIONS AND FUTHER EXTENSION [4] Thomas E. Kisseell.. 1997 “Industrial Electronics” Prentice Hall, Inc.
[5] Predko, M. 2001. “Programming and Customizing the 8051
Microcontroller. Reprinted in India by arrangement with the M. Graw
This control system is designed by using 8051 Hill Companies Inc, New York
architecture and based on discrete digital control system. The [6] Philips Semiconductor Company. April 1999. “Data sheet of 80S51, 8
bit, Microcontroller Family”. April 1999
design is based on AT89S51, which is produced from Atmel’s [7] Kleitz. W. 1998 “Microprocessor and Microcontroller Fundamentals” .
company. The application software has been developed by 1998
using assembly language. [8] http://www.repairclinic.com
For monitoring, status LEDs are used to show [9] http://www.home.howstuffworks.com
[10] http:// www.wikipedia.com
process and error condition of control system. As a safety
factor, optical isolation method is used to separate AC and DC
control user interface. Moreover, switches are substituted to
indicate the water level sensors other than implementation the
water level sensing circuits. Switches are used instead of door
sensor. When this switch is pressed during the motor is
running, the motor will stop. The opening and closing of
valves are indicated by means of AC water inlet valve and DC
water drain valve. System can drive all real components of a
washing machine. The main advantages of system are
compact in design, accurate timing control, solid switching for
motor driving, safety optical isolation. As optional,
microcontrollers are easily re-programmable and customizable
for user requirement. Firmware base design are more flexible
in function than hardware only control.
The actual water level sensing circuits and water
pump should also be added to form a physically complete
washing machine. And the hardware modifications are also
required for further applications.
For power black out condition, the system should
store the process time that has been completed in the
EEPROM. But AT89S51 microcontroller does not contain
internal EEPROM. So the connection techniques for external
EEPROM and microcontroller should be studied as further
extensions.
ACKNOWLEDGMENT
The author wishes to acknowledge Dr. Maung
Maung Latt Professor and Head, Electrical and Electronic
Research Department, Mandalay Technological University,
for his kind permission, helpful advices and encouragement in
carrying out this paper. The author especially thanks to her
teachers at Department of Electronic Engineering, Mandalay
Technological University and Yangon Technological
University, for their encouragement, help, support and
guidance during the theoretical study and preparation duration
of this paper.
The author wishes to express her deep gratitude to all
persons who helped her directly or indirectly towards the
successful completion of this paper.
REFERENCES
126