High-efficiency, energy-saving, water-saving, electricity-saving and environmentally friendly washing machines have always occupied a dominant position in the market. Whether in terms of quality, technology, function or appearance, they are closest to the purpose of serving people's lives. In the future, washing machines will develop in several directions such as high automation, product diversification, energy saving and health.
Single-chip microcomputers are increasingly widely used as control systems for daily household appliances. The intelligent control system for washing machines introduced in this article uses a single-chip microcomputer as the control core, which simplifies the cumbersome operations of previous washing machines and improves machine performance. At the same time, it adds different control functions and improves control accuracy. It combines software and hardware methods to realize the automation and intelligence of washing machines.
Overall Design
The washing machine panel contains four buttons, seven indicator lights and two LED digital displays. The four buttons are used to control the working mode of the washing machine. The indicator lights work with the buttons. The LED digital display is used to display the washing time and the dehydration time. Turn on the power switch of the washing machine. The strong wash indicator light indicates that the washing machine is currently working in the strong wash mode, that is, the motor only runs in one direction. Select the weak wash mode and press the "increase" key once; then press the "programming selection" key, the "washing times" indicator light will light up, press the "increase" key or "decrease" key to set the washing times; then press the "programming selection" key to set the washing time. At the same time, the "washing time" indicator light will light up, and the dehydration time will be set in the same way; after setting all the parameters, press the "start" key, the washing machine starts to work, and the washing machine automatically divides the washing time set by the user by the washing times to get the water change time each time. During the washing process, the LED digital display shows the remaining time of the washing machine; when the washing time set by the user has arrived, the water in the washing tub is drained, and then the motor is started to start dehydration, and the "remaining time" indicator light will light up, and the LED digital display will show the remaining dehydration time. After the dehydration is completed, the buzzer alarm will sound 5 times to notify the user that the washing is over.
hardware design
The automatic control of the bundle washing machine is realized by using AT89C52 chip control) through 74LSl38 decoder, water level detection mechanism, inlet/outlet valve, LED digital display, keyboard and other hardware circuits. The circuit schematic is shown in the figure below.
AT89C52 supports online programming. The combination of a general-purpose microprocessor and Flash memory allows the Flash memory to be repeatedly erased and written, effectively reducing development costs, greatly simplifying circuits, and making program writing and curing more convenient and flexible.
In the above figure, the 8 I/0 ports of the chip's PO and P2 are connected to an LED digital display respectively, PO controls the high bit, P2 controls the low bit, P1.0 and P1.1 control the direction of the motor, P1.2 is connected to the buzzer, high level is valid, when P1.2 is "1", the buzzer alarms, and when it is "0", the alarm stops, P1.3, P1.4 and P15 are connected to the 74LSl38 decoder input terminals A, B, and C, P3.0 and P3.1 control the inlet and outlet valves respectively, P3.2 and P3.3 control the water level detector), P3.4 and P3.5 control the row output of the keyboard, and P3.6 and P3.7 control the column input of the keyboard.
The hardware input controls the washing machine control mode and working procedures. There are 7 different indicator lights. 74LSl38 is a 3-8 decoder. The output ends control 7 indicator lights respectively. YO controls the "washing remaining time" indicator light, Y1 controls the "dehydration remaining time" indicator light, and Y2 controls the "strong wash" indicator light.
Indicator light, Y3 controls the "weak wash" indicator light, Y4 controls the "number of washes" indicator light, Y5 controls the "washing time" indicator light, and Y6 controls the "spinning time" indicator light.
The four buttons consisting of a 2x2 matrix keyboard are used to set the four parameters of strong and weak wash selection, number of washes, washing time and dehydration time.
The output control circuit of hardware output control consists of three parts: water inlet valve, drain valve, motor and water level detector. The water inlet and drain valves have two states: open and closed. In the motor drive circuit, P1.0 controls the motor to run forward, and P1.1 controls the motor to run reversely. The strong wash mode selection means that the motor always rotates in one direction, and the weak wash mode means that the motor moves alternately in the forward and reverse directions, changing direction every one minute. The water level indicator F of the water level detector is used to indicate whether the water is full or empty. Interrupt 1 determines the water level through the F value.
software design
The main program flow chart is shown in the figure below. The software design also includes: external interrupt 0 service program controls the programming state and working mode, external interrupt 1 service program determines the water level state, timer 0 timer wash time and each water change time, timer 1 timer dehydration dl\par time. The system uses a 6MHz crystal oscillator ) Timer 0 and timer 1 are initially set to generate an interrupt every 100ms, the corresponding high-order time constant is OBOH, and the low-order is 3CH. After the washing machine enters the working state, timer 0 starts to control the washing time according to the set value.
Press the "Start" button and the washing machine starts working. It is also used as a "pause" button during operation. If the button is not used for programming, increase or decrease for a period of time, the washing machine stops working after the "Start" button is pressed and the working status at that time is retained. When the button is pressed again, the washing machine continues to work.
The focus of software anti-interference is the CPU's anti-interference ability. The purpose of anti-interference is to discover how the CPU is interfered with, how to intercept the out-of-control program flow, how to reduce program losses, and how to quickly and accurately restore the system to normal. The most common method is to solve it through instruction redundancy and software traps.
Previous article:Security demonstration of single-chip electronic password lock based on infrared module
Next article:Design and working principle of intelligent laboratory control system
Recommended ReadingLatest update time:2024-11-16 11:39
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- DSP system design - interference and board layout related issues
- Today at 10:00 am TI Award Live: Low-power wireless technology for building automation sensor applications
- For SMD components with thin pins, what should be the PCB wiring line width?
- EEWORLD University Hall----Live Replay: TI Sitara? Latest AM64X Platform Introduction
- [Project source code] FPGA-based digital tube font, used to display numbers on the LCD screen
- MSP430g2553 hardware UART (modification based on official routines)
- Antenna transmission line standing wave conversion conjugate matching
- Getting Started with the ST SensorTile.box Sensor Kit (5) Bluetooth Connection
- Tektronix Live: Senior engineers chat with you about oscilloscopes, and orders are free!
- 【STM32WB55 Review】_01_First Look