Design of Automatic Washing Machine Based On Verilog HDL Language
Design of Automatic Washing Machine Based On Verilog HDL Language
Keywords-Verilog;
Hardware
Automatic washing machine
description
languages;
THE INTRODUCE OF
VERILOG HDL
II.
V3-38
program.
3) There are four working ways of automatic washing
machine. If you pay one yuan, the mashing will execute
dehydration operation after 15 seconds, if you continue to
pay one yuan in 15 seconds the machine will recognize
and it is executed express laundry operation. If you pay
another one yuan in 15 seconds but in 15 seconds later
without the forth coin it is executed the third
operating :standards laundry, if have four coins then
execute the fourth operation: big things laundry. figure 1
shows the states of the automatic washing machine .
C.
idle
m 0
start
f------t
=0 cl=0
Water
7s
I-----
Wl mO
Wash
;k:
LdrY ---.J---I.- < det ect>
r--------
- yes
...
9s
t--
=0 cl=0
beep
6s
f----.
5s
dry
I-----
m=1
dl w=0
beep
15s
r--
mO, dO
Laundry process:
A) Open power then start program, the circuit is reset to
initial condition, the control signal is m = 0, w = 0, d = 0.
When press start button the program wiIJ enter the state of
water!, w = 1, then open water valve continuing 7s to adding
water. According the rotation current of motor estimates
the weight of clothing to decide water level and washing
time. (That based on cleaning index of manufacturing
standards).
B) Start fill solenoid valves when the water reached
requirement shutdown water pushing solenoid valves.
C) Start motor to catharsis and this moment is w = 0, m = 1,
which makes motor start operation, the process last for 9s,
and close motor when washing finish.
D) Start drainage electromagnetic valves, the water-level
sensor controls the drainage electromagnetic to be closed,
and check whether the switch is closed after drainage
electromagnetic valve close
E) Start clutch and drying motor, when drying close jilt dry
,
V3-39
signal definition:
clk: Clock input;
reset The reset signal of the system;
oneyuan: Representative into one yuan coin;
execute_d: Representative start washing machine and
execute single dehydration operation;
execute f: Representative start washing machine
execute express laundry operation;
execute s: Representative start washing machine
execute standard laundry operation;
execute b: Representative start washing machine
laundry
objects
larger
execute
operationo
* /
Main design program is as follows:
input oneyuan,reset,clk;
output execute_d,e_f, e_s, e_b
reg execute_d,e_f, e_s, e_b
reg[2:0] state;
parameter idle=O,one=1,two=2,three=3,four=4;
always @ (posedge clk)
begin
itrreset)
else
begin
case(nextstate)
state=idle
water:
wash:
drain:
dry:
beep:
endcase
end
ACKNOWLEDGMENT
end
assign speaker=clk_1Hz&clk_1 KHz&alarm;
D.
REFERENCES
When rest signal comes, all of the signals set zeros; then
if you put on start button the machine will enter water state.
As long as you no longer press start button, washing
machine will automatically execute the process according to
the predetermined. The simulation results as shown in figure
4.
III.
[ I]
[2]
[3]
[4]
WangJiGang,
GuGuoChang.
Structures
and
patterns
in
communication system software application research (J].journal of
computer application pract, ( I I) : 43-45.
[5]
[6]
CONCLUSION
Name
elk_1IG{Z
elk_1Hz
rst
start.J)ause
mode
level
open_door
Ii!
times
W
M
D
IW
nextstate
V3-40