Application of single chip microcomputer fuzzy control in electric rice cooker

Publisher:大橙子5511Latest update time:2013-10-16 Source: dzscKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
At present, most of the rice cookers on the market use fixed power to heat, with low energy utilization and single functions, which makes it difficult to meet people's growing living needs. It is very necessary to develop a microcomputer rice cooker with complete functions, low cost, energy saving, safety and reliability.

1 Working principle and hardware composition of rice cooker

The system uses a control circuit with a low-cost, low-power, and good-performance 8-bit A/D type HT46R47 microcontroller as the control core. The pins are shown in Figure 1.

Its main features are as follows:

·Operating voltage: fSYS=4MHz: 2.2~5.5V;
fSYS= 8MHz; 3.3-5.5 V;
·13-bit bidirectional input/output port;
·8-bit programmable timer/counter with overflow interrupt, with 7-level prescaler;
·Quartz crystal or RC oscillator;
·2 048×14-bit program memory PROM;
·64×8-bit data memory RAM;
·When VDD=5V and the system clock is 8MHz, the instruction clock is 0.5μs;
·s four-channel 9-bit A/D converter;
·The instruction execution time is 1 or 2 instruction cycles with low voltage reset function.

1.1 Working Principle

The working principle of the rice cooker is shown in Figure 2. After power is turned on, the system enters the standby state. At this time, the system can receive the user's function selection, and the user's selected function is displayed through the display circuit. When the user presses the OK button, the MCU starts to monitor the temperature and perform corresponding heating control on various functions until the function ends and a sound alarm prompts.

1.2 Hardware circuit design

(1)MCU

MCU is the core part of the rice cooker, completing functions such as data collection, input, processing, output, and display. [page]

(2) Temperature measuring element

The temperature measuring element is the key to accurately detect the temperature. A thermistor with a negative temperature coefficient is used. Since the change in the thermistor value is nonlinear with the change in temperature, in order to improve the temperature measurement resolution and the anti-interference performance of the system, the circuit is designed as shown in Figure 3.

In Figure 3, Rt is a thermistor with a negative temperature coefficient; after being connected in parallel with R1, the resistance value changes with the temperature in a nearly linear relationship, which improves the resolution; R2 acts as a voltage divider; Point O is the measurement point: when the temperature changes, the resistance value of Rt changes, and the voltage at Point O also changes accordingly. Measuring Point O can measure the temperature change; C1 prevents interference from causing a sudden change in the voltage at Point O.

(3) The heating execution circuit MCU outputs a square wave control signal through PBl, which is coupled by a capacitor, rectified, and sent to the B pole of the transistor. After amplification, it drives the relay to work. In this way, when there is a square wave output, the relay connects the power supply of the heating plate, and when there is no square wave output, the power supply of the heating plate is disconnected. The square wave signal can only be output when the MCU is working normally. When the single-chip computer crashes, it cannot be output. In other words, when the single-chip computer crashes due to serious interference, PBl cannot output square waves, and the power supply of the heating plate will be automatically disconnected. In this way, the safety of the system can be ensured.

(4) Sound alarm circuit

The MCU outputs a square wave signal through the PD0 port, which is amplified by the transistor and drives the AC buzzer to sound an alarm.

(5) Display key multiplexing circuit

The display circuit uses time-sharing scanning to output, 3 common ports and 7 display segments, in the form of 3×7 display output. The key reuses 4 of the 7 display segments. When scanning the key, all displays are turned off, and the I/O port connected to the key is set as the input port. When the scan is completed, it is changed to the output port.

(6) The clock power supply circuit generates the necessary working conditions for the MCU and is used to provide the clock and power required for the MCU to operate.

2 Software Design

The software flow of fuzzy control is shown in Figure 4.

In FIG4 , t1, t2, t3, t01, and t02 are time parameters, which are set according to different powers of the rice cooker, wherein t01

In a typical 750W rice cooker application, the values ​​are as follows:

t1=2 min,t2=30 s,t3=5 min,
t01=4 min,t02=8 min

The main steps are described as follows:

(1) After power is turned on, heat to 60 degrees at full power and enter (a).

(2) (a) Stage: Record the time t required to heat the rice cooker from 60 to 70 degrees, where t is proportional to the mass of rice and water in the pot;

(3) (b) stage: taking t1 as the time unit, measuring the start and end temperatures T1, T2 is the boiling state when T1 = T2;

(4) (c) stage: according to the time t obtained by measuring the amount of rice in (a), compare it with the set parameters t01 and t02, and select the appropriate heating power for heating;

(5) Taking t2 as the time unit, measure the start and end temperatures T1 and T2. When T1 = T2, the water is dry and heating is stopped;

(6) The rice is heated with residual heat for t3 seconds, and an alarm is sounded when the rice is cooked.

3 Conclusion

Because the electric rice cooker adopts fuzzy logic control, imitates the way of thinking of people, and combines accurate condition judgment, this electric rice cooker can accurately detect the boiling of water in the electric rice cooker even at different altitudes (with different boiling points), and can never overflow; because of the use of fuzzy logic, it can accurately detect whether the water in the electric rice cooker has been boiled dry, and accurately cut off the heating power supply, so that the cooked rice is soft and not burnt. On the basis of fuzzy logic, plus time control, this fuzzy control electric rice cooker has the functions of scheduled cooking, soup, porridge, etc. In addition, the circuit design of this electric rice cooker is simple and reliable, and the hardware cost of all control circuits is only more than ten yuan. At present, this control circuit designed by us has been adopted by many manufacturers and has been mass-produced. The wide application of this single-chip fuzzy control technology in electric rice cookers will have a far-reaching impact on improving people's lives.

Keywords:MCU Reference address:Application of single chip microcomputer fuzzy control in electric rice cooker

Previous article:Using Fuzzy Logic to Detect Ventricular Premature Beats on Single Chip Microcomputer
Next article:The minimum system and development of Lingyang 16-bit single-chip microcomputer SPCE061A

Recommended ReadingLatest update time:2024-11-16 21:28

Use Proteus to learn the keyboard of 51 single chip microcomputer
The keyboard is probably the most direct tool to interact with the microcontroller, so I am also looking forward to keyboard detection. The keyboard is actually a lot of buttons. If the number of keyboards is relatively small, you can directly use the IO port to connect the buttons. For example, if I want to implement
[Microcontroller]
Use Proteus to learn the keyboard of 51 single chip microcomputer
Detailed Analysis of C51 MCU Timer/Counter Interrupt Function (Part 2)
1. External interrupt related registers 1. Timer/Counter Control Register Control Register (TCON)    IT0: External Interrupt 0 Trigger Mode Control Bit  When IT0=0, it is level trigger mode (low level is valid)  When IT0=1, it is edge trigger mode (falling edge is valid)  IT1: External Interrupt 1 Trigger Mode Contro
[Microcontroller]
Detailed Analysis of C51 MCU Timer/Counter Interrupt Function (Part 2)
STC15 MCU ADC thermistor temperature measurement source program
Pinno Electronics STC15W4K-Experiment 29-ADC Thermistor Measuring Temperature The microcontroller source program is as follows: /************************************************************************************ * * Experimental platform: Pivot Electronics STC15W4K core board + Pivot Electronics "Pioneer" expansi
[Microcontroller]
Microcontroller C language tutorial (I)
  When using C language, you must use a C compiler to compile the written C program into machine code so that the microcontroller can execute the written program. KEIL uVISION2 is one of the excellent software among many microcontroller application development software. It supports MCS51 architecture chips from
[Microcontroller]
Microcontroller C language tutorial (I)
Design of intelligent lighting LED platform based on Renesas MCU
1. Introduction to 78K0/Ix2 series MCU The 78K0/Ix2 series MCU is a high-performance 8-bit MCU designed by Renesas Electronics for lighting applications. This series of MCUs is positioned to meet the current lighting market's hot demands for high-resolution dimming control, abnormal detection protection
[Power Management]
Design of intelligent lighting LED platform based on Renesas MCU
Microcontroller music programming
Using a single-chip microcomputer (or single-board computer) to play music is probably one of the issues that radio enthusiasts are interested in. This article starts with the basic experiment of single-chip microcomputers, discusses the design principles of music programs, and gives specific examples for reference.
[Microcontroller]
Microcontroller music programming
STM32 MCU key debounce and FPGA key debounce
Written in front: STM32 MCU key debounce and FPGA key debounce Key debounce: From the above figure, we can see that there is a difference between the ideal waveform and the actual waveform. The actual waveform has jitter at the moment of pressing and releasing. The length of the jitter time is related to the mec
[Microcontroller]
STM32 MCU key debounce and FPGA key debounce
Window ripple anti-pinch solution based on GD32A503 automotive-grade MCU
With the continuous development of modern automobile technology, people are pursuing a more comfortable and easy-to-operate driving environment. Therefore, more and more cars are equipped with electric windows to achieve automatic lifting of windows. However, since the electric windows rise quickly and have a large
[Embedded]
Window ripple anti-pinch solution based on GD32A503 automotive-grade MCU
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号