Aiming at the requirement of middle aged people to economize water, thermostatic element save electricity, operate simply and cost more, an automatic washing machine controller based on single chip microcomputer is designed.
In order to meet the requirement of easy use, the washing machine is completed automatically from washing, rinsing and drying, and automatic control of inlet and outlet water. In order to save water and electricity, the water level can be set manually and the two washing modes of fast and slow washing can be adjusted manually.
After washing, the laundry has reminder function. The design of hardware circuit and program are completed. The system design block diagram is shown in Figure 1.
The automatic washing machine is composed of seven parts: the smallest single chip microcomputer system, the LCD1602 liquid crystal display circuit, the function setting, the sound reminder circuit, the inlet and outlet water control, and the motor drive. The working principle of the system is that single chip microcomputer is the main control chip, and the key is to send control instructions to the single chip microcomputer.
Then the microcontroller controls the display module, the voice reminder circuit, the motor control module and the inlet and outlet water control module. In order to complete the design of single-chip automatic controller. Before starting the washing machine, use the function settings to set the required water level and the way of washing, then press the start button. The washing machine began to work automatically. The first step is to open the intake relay and start the water intake. When the water level reaches the set level, turn off the intake relay, turn the washing machine motor, and then turn on the outlet relay after washing.
After the water is finished, the relay will be closed, then the intake relay will be opened, and the water intake will start. The water inlet relay is completed, the intake relay will be closed, and the rinse will be started.
After rinsing, the water will start to go out until the water is finished. The machine was opened and began to dry until it was finished. The sound and light reminders began to remind them that the clothes had been washed and ready for drying. There are two laundry methods, fast and slow, which take 12 minutes and 8 minutes respectively.
This design is mainly based on the design of MCU controller. For the washing machine’s inlet and outlet controller, bit sensing is carried out by means of LED and relay simulation.
This design mainly takes 89C52 as the main core controller. It designs command control by key press, and carries on the analysis and the corresponding processing in MCU.
There are five buttons corresponding to the corresponding functions, reset, water level selection, laundry mode selection, lid simulation, and start button. The motor is driven by lg1190. The display shows the washing mode and the remaining time. The Led lamp displays the water level, the washing process, and the incoming and outgoing water. In larger programming, I usually choose modularization to achieve, because the module is easy to understand the code, looks very concise, and relatively easy to use for transplantation.
Finally, after careful consideration, I chose to write the program in a modular way. Because programs are too long, some are implemented in pseudocode.
Washing machine has become an indispensable household electrical appliance in every household.
Because of the demand, the washing machine has developed rapidly. The automatic washing machine has been popular because of its convenience. All the actions of the automatic washing machine are now shown as follows: automatic import and export of water, automatic washing, automatic rinsing, automatic drying and so on. The controller can be set up.
Several washing methods are set up, and the washing method of the washing machine is set up according to the different needs of the customers.