Design of Simulating Fully Automatic Washing Machine Based on Single Chip Microcomputer SPMC75

Publisher:素心轻语Latest update time:2009-11-04 Keywords:SPMC75  MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Washing machines are an indispensable household appliance in family life. Fully automatic washing machines are popular because of their convenience. Fully automatic means that a series of processes such as water filling, washing, rinsing, and drying are completed automatically. The controller of a general washing machine usually has several washing programs for users to choose from for different clothes. Although washing machines with such controllers make the washing process simple and easy to control, they cannot combine washing and energy saving well [1].

This design is based on a simulated washing machine system based on fuzzy control, which makes the laundry system develop in the direction of automation, intelligence, and especially energy saving. It can automatically control the water volume, water temperature, detergent, mechanical force, etc. according to the texture and degree of dirtiness of the washed clothes, so that the washing process is more energy-efficient while the clothes are washed clean.

1. Sunplus microcontroller SPMC75F2413A

SPMC75F2413A is an industrial-grade 16-bit microcontroller chip designed and developed by Sunplus Technology. Its core uses the μ′nSTM (pronounced micro-n-SP) microprocessor with independent intellectual property rights of Sunplus. It integrates functional modules such as multi-function I/O ports, synchronous and asynchronous serial ports, ADC, timer counters, and special hardware modules such as multi-function capture comparison module, BLDC motor drive dedicated position detection interface, two-phase incremental encoder interface, and PWM generator that can generate various motor drive waveforms [2]. These hardware modules support SPMC75F2413A to complete complex applications such as variable frequency drives for household appliances, standard industrial variable frequency drives, variable frequency power supplies, and multi-loop servo drive systems.

2 Fuzzy Control Model of Fully Automatic Washing Machine

Fuzzy control is a new type of computer control method based on fuzzy set theory, fuzzy language variables and fuzzy logic reasoning. Obviously, the basis of fuzzy control is fuzzy mathematics, and the means of realizing fuzzy control is computer.

The basic working process of a fully automatic washing machine includes water intake, washing, rinsing, drainage, and spin drying. After fuzzy control technology is used in a fully automatic washing machine, it can automatically obtain the best washing method based on the detection of the laundry, thereby achieving intelligent and energy-saving effects. This design takes the weight and dirtiness of the laundry as the test objects, and designs a series of washing methods suitable for different clothes. The fuzzy control model of a fully automatic washing machine is shown in Figure 1.

Fuzzy Control Model of Fully Automatic Washing Machine

3 Hardware Design

First, the hardware part of the washing machine is modularized, mainly divided into the following modules:

⑴ Detection module: The detection part is mainly realized by various sensors and A/D converters, which are divided into: cloth quantity detection, clothing contamination detection, etc. The detection results of each part are input into the single-chip CPU through the A/D converter for processing and analysis;

⑵Control module: The control part is the key part of the entire intelligent washing machine, and the single-chip microcomputer is responsible for processing. The sensor transmits the detected data information to the controller, where it is analyzed and processed. The CPU compares the obtained data with the standard data to obtain the control results, such as: water addition amount, washing time, motor speed, etc., and outputs the processed results to the actuator action;

⑶ Washing module: The washing part is mainly composed of a motor and various switches. Various washing actions are completed through the CPU-controlled motor forward and reverse rotation, speed and switch closing. Its hardware circuit is shown in Figure 2;

Hardware Circuit

Taking five washing methods as an example, the fuzzy control rule table is shown in Table 2. Among them, 16 clothing detection states are represented by state1~state16; washing intensity {weak, medium, strong} is represented by variables {w, c, s} respectively; time {short, medium, long} is represented by variables {s, m, l} respectively.

Fuzzy control rules table

(4) Voice module: The voice part is completed by the speaker, which reports the washing progress through the control of the CPU;

⑸ Display module: The display part consists of a group of LED digital displays and 9 groups of light-emitting diodes, which are used to display the washing time and washing process. Its hardware circuit is shown in Figure 3.

Hardware Circuit

4 Software Design and Physical Pictures

In a fuzzy controller, the measured quantity needs to be fuzzified before being sent to the fuzzy controller.

The fuzzy sets of the fuzzy input quantities of the above-mentioned measurement quantities are: whether the clothes are dirty or clean {clean, relatively clean, relatively dirty, dirty}, and whether the clothes are light or heavy {light, relatively light, relatively heavy, heavy}.

The fuzzy sets of the output quantities of the corresponding fuzzy controller are: water inlet time (control water inlet amount) {short, medium, long}, washing time {short, medium, long}, rinsing time {short, medium, long}, drainage time {short, medium, long}, dehydration time {short, medium, long}, washing intensity {weak, medium, strong}.

The detection status table of the clothes to be washed is shown in Table 1. In the table, 0000~1111 represent 16 different detection states.

Detection status table of clothes to be washed

The main program flow chart of the software is shown in Figure 4. Clothes washing process: Turn on the washing machine, select automatic or manual mode, if it is manual, set the washing parameters, otherwise enter the automatic mode. Detect the state of the clothes before washing, and then automatically select the corresponding washing parameters, call the corresponding washing program, and complete the control of fuzzy rules on clothing washing.

Software main program flow chart

The working state diagram of the simulated washing machine is shown in Figure 5. There are three parts in the figure, as shown in Figure 5(a): 1 is the power supply and motor control part; 2 is the main controller Lingyang microcontroller SPMC75F2413A; 3 is the cleaning state display part; 4 is the DC motor that simulates the rotation of the washing machine cylinder. Figure 5(a) is the rinsing state of state 12, the motor rotates forward and reverse, and the digital tube displays the remaining rinsing time. Figure (b) is the dehydration state of state 12, the motor rotates forward, and the digital tube displays the remaining dehydration time.

Simulation of the working state of the washing machine

This design uses the Sunplus 16-bit single-chip SPMC75F2413A as the control core to complete a simulation system of a fully automatic washing machine based on fuzzy control. The system can automatically select the corresponding washing method through fuzzy reasoning of the laundry detection status information, and achieves better control of a series of parameters such as washing intensity, water intake, washing time, etc. during the washing process, and simulates the washing, rinsing, dehydration, drainage and other states during the laundry process. The design scheme is verified to be feasible through the combination of software and hardware, and meets the design requirements.

Keywords:SPMC75  MCU Reference address:Design of Simulating Fully Automatic Washing Machine Based on Single Chip Microcomputer SPMC75

Previous article:Design of touch button based on electric field sensor MC33794
Next article:Design of constant temperature faucet based on STC12C5A08PWM

Recommended ReadingLatest update time:2024-11-16 17:50

Design of industrial frequency voltage/frequency meter based on ATmega8 microcontroller
1 Introduction In power production and electrical testing, it is often necessary to measure power frequency voltage and frequency. There are many types of power frequency voltage meters and frequency meters on the market. Compared with them, this design has the characteristics of simple circuit, small size, low powe
[Microcontroller]
Design of industrial frequency voltage/frequency meter based on ATmega8 microcontroller
Design of MMS alarm system based on GPRS and single chip microcomputer
  The traditional domestic electronic anti-theft alarm system solution is often to detect theft and other alarm information through electronic equipment at the user end, and then automatically transmit the signal to the alarm center through the communicator via the telephone line to complete the alarm process. This ki
[Microcontroller]
Design of MMS alarm system based on GPRS and single chip microcomputer
Serial Communication between Single Chip Microcomputer and Digital Radio
The general digital acquisition system converts the captured field signal into an electrical signal through a sensor, and after sampling, quantization and encoding by the analog/digital converter ADC, it becomes a digital signal, which is stored in a data storage device, or sent to a microprocessor, or sent to the rece
[Microcontroller]
Wireless controller designed using MC9S08QG8 low-end microcontroller
      Wireless communication is part of people's modern daily life. In offices, schools or homes, we are exposed to wireless communication devices such as laptops, printers, cameras, handheld devices, lighting controllers and home appliances. The complexity of these devices is related to the types of tasks they perfor
[Microcontroller]
Wireless controller designed using MC9S08QG8 low-end microcontroller
Write a cyclic flashing microcontroller program to control 8 light-emitting diodes
Write a program that flashes in a loop. There are 8 LEDs, and each time one of them flashes 10 times, it will turn to the next one and flash 10 times, and the cycle will continue. Solution: MOV A,#01H    SHIFT: LCALL FLASH  RR SJMP SHIFT   FLAH: MOV R2,#0AH   FLAH1: MOV P1,A            LCALL DELAY            M
[Microcontroller]
51 single chip microcomputer simulates traffic lights
Traffic lights are simulated by using the control diode and digital tube display of the 51 single-chip microcomputer. The system crystal oscillator is 11.0592MHZ. The red light in the east-west direction is set to 30 seconds, and the red light in the north-south direction is set to 20 seconds. P1.3 is connected to an e
[Microcontroller]
51 single chip microcomputer simulates traffic lights
51 MCU learning notes: timer generates PWM adjustable square wave to control the brightness of LED lights
Use timer T0 to generate PWM square wave, Use the button to adjust the duty cycle, 20 levels adjustable Control the brightness level of LED lights.   C Code   #include  "my51.h"   #include  "timer0.h"      #define grading 20 //Brightness changes to 20 levels   sbit keyS3=P3^5; //Adjust the duty cycle by pressin
[Microcontroller]
51 MCU learning notes: timer generates PWM adjustable square wave to control the brightness of LED lights
The minimum system of STM8S microcontroller
The minimum system of STM8S microcontroller                                                          STM8S003F3P6 pin diagram   This is the pin diagram of the simplest STM8S003F3P6 in the STM8S series. Without using an external crystal oscillator, you only need to connect appropriate compon
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号