A Dual-Core MCU-Based Ultra-Thin Induction Cooker Cooperative Control System and Method
Through the induction cooker control system with dual-core MCU architecture, the functional decoupling and modular design of the induction cooker are realized, which solves the problems of low real-time performance and insufficient safety of the existing induction cooker control system, improves the reliability and safety of the system, and supports multi-level abnormality detection and precise heating control.
Patent Information
- Application Number
- CN202510069283.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The existing induction cooker control system has problems such as low real-time system performance, high risk of single point failure, lack of intelligent identification and precise matching of cookers, low reliability of data communication, and a single abnormal detection and early warning mechanism, which is difficult to meet the high accuracy and high safety requirements of ultra-thin induction cookers.
Using a dual-core architecture of display MCU and master MCU, a two-way data transmission channel is established through the SPI communication interface, functional decoupling and modular design are realized, multi-level abnormality detection and early warning mechanism is built, basic and scenario control modes are supported, PWM parameter templates are dynamically adjusted, and data transmission reliability and security are ensured.
It significantly improves the scalability and flexibility of the control system, realizes precise and personalized heating control, captures abnormalities in real time and provides multi-level early warnings to ensure the safety of use to the greatest extent.
Smart Images

Figure CN119472481B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of collaborative control, and particularly to a collaborative control system and method for an ultra-thin induction cooker based on a dual-core MCU. Background Art
[0002] As an indispensable cooking device in modern family kitchens, the performance of the control system of an induction cooker directly determines the cooking experience and safety of users. Traditional induction cookers mainly adopt a single MCU architecture, integrating display control and heating control in the same processor. This design scheme has inherent defects such as low real-time performance of the system and high risk of single-point failure.
[0003] The control strategies of existing induction cookers generally have technical shortcomings, such as the lack of an intelligent recognition and precise matching mechanism for different cookware, a simple PWM compensation algorithm, low reliability of data communication, and a single abnormal detection and warning mechanism. These technical limitations restrict the performance and reliability of the induction cooker control system and are difficult to meet the actual needs of users for high-precision and high-safety ultra-thin induction cookers. Summary of the Invention
[0004] In view of the limitations of the existing induction cooker control system in aspects such as architecture design, data communication, and safety protection, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is how to achieve reliable bidirectional data communication and precise PWM control through a distributed architecture of a display MCU and a main control MCU, and establish a multi-level abnormal detection and warning mechanism.
[0006] To solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a collaborative control system for an ultra-thin induction cooker based on a dual-core MCU, which includes a display MCU, a main control MCU, and a communication link module; the communication link module includes an SPI communication interface and a data channel management module, and the data channel management module is used to establish a two-way data transmission channel between the display MCU and the main control MCU; the display MCU includes a touch panel, an instruction encoding module, an anomaly detection module, and an alarm prompt module. The touch panel collects control instructions input by the user, the instruction encoding module encodes the control instructions into a first data packet, and the display MCU transmits the first data packet to the main control MCU through the two-way data transmission channel; the anomaly detection module reads and parses the status code in the second data packet sent by the main control MCU to obtain the electromagnetic field working state parameters and make an anomaly state judgment; the alarm prompt module sends an alarm signal to the user when an anomaly state is recognized; the main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module, and a status encoding module. The instruction parsing module reads and parses the instruction code in the first data packet, the PWM control module determines the control mode according to the instruction code and generates a pulse signal for controlling the heating coil, and the pulse signal changes the electromagnetic field working state parameters by adjusting the duty cycle and frequency; the parameter acquisition module real-time acquires the electromagnetic field working state parameters, the status encoding module encodes the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through the two-way data transmission channel to complete two-way information interaction.
[0008] As a preferred solution of the collaborative control system for the ultra-thin induction cooker based on the dual-core MCU of the present invention, wherein: the electromagnetic field working state parameters include electromagnetic field intensity, coil temperature, and coil current; the first data packet is composed of a frame header identifier, an instruction code, and a check code, and the second data packet is composed of a frame header identifier, a status code, and a check code.
[0009] As a preferred solution of the collaborative control system for the ultra-thin induction cooker based on the dual-core MCU of the present invention, wherein: the working process of the data channel management module is as follows: configure the display MCU as the master device and the main control MCU as the slave device, and connect the display MCU and the main control MCU through the SPI bus; establish a transmit buffer and a receive buffer in the display MCU and the main control MCU, and the transmit buffer and the receive buffer adopt a circular queue structure; the display MCU sends a handshake request data packet to the main control MCU, the main control MCU returns a handshake response data packet, and the display MCU judges whether the handshake is successful according to the handshake response data packet; when the handshake is successful, start an interrupt service program in the display MCU and the main control MCU.
[0010] As a preferred solution of the ultra-thin induction cooker collaborative control system based on a dual-core MCU according to the present invention, the working process of the instruction encoding module is as follows: The working process of the instruction encoding module includes: dividing an instruction buffer area in the sending buffer area and writing the control instruction into the instruction buffer area; using an instruction mapping table to convert the control instruction in the instruction buffer area into an instruction code according to a unified encoding format; performing a check operation on the instruction code through a cyclic redundancy check algorithm to generate a check code, and calling a frame format template to generate a frame header identifier; sequentially assembling the frame header identifier, the instruction code, and the check code to generate a first data packet.
[0011] As a preferred solution of the ultra-thin induction cooker collaborative control system based on a dual-core MCU according to the present invention, the working process of the PWM control module is as follows: determining the control mode according to the control mode identification bit of the control instruction code, where the control mode includes a basic control mode and a scenario control mode; collecting the impedance value of the current cookware and matching the impedance value with a cookware type mapping table to determine the cookware type; retrieving the corresponding PWM parameter template from a control strategy library according to the control mode and the cookware type; performing interpolation calculation within the frequency range and duty cycle range specified by the PWM parameter template according to the power level data to obtain the frequency value and duty cycle value of the initial PWM wave; collecting the coil temperature and coil current, and compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and coil current to generate an actual PWM control signal; outputting the actual PWM control signal to the heating coil through an IGBT drive circuit.
[0012] Compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and coil current includes: establishing a temperature compensation coefficient matrix and a current compensation coefficient matrix, dividing the temperature range and current range into multiple sub-ranges, and each sub-range corresponds to a set of frequency compensation coefficients and duty cycle compensation coefficients; collecting the coil temperature and coil current within each PWM cycle, calculating the temperature effective value using a weighted average algorithm, and obtaining the current effective value by least squares fitting; determining the first set of compensation coefficients in the temperature compensation coefficient matrix according to the temperature effective value, and determining the second set of compensation coefficients in the current compensation coefficient matrix according to the current effective value; performing weighted fusion on the first set of compensation coefficients and the second set of compensation coefficients to obtain a comprehensive compensation coefficient; performing compensation calculation on the frequency value and duty cycle value of the initial PWM wave according to the comprehensive compensation coefficient; generating an actual PWM control signal according to the compensated frequency value and duty cycle value.
[0013] As a preferred embodiment of the ultra-thin induction cooker collaborative control system based on a dual-core MCU according to the present invention, specifically: The working process of the anomaly detection module is as follows: The working process of the anomaly detection module is as follows: Establish a threshold interval table for the electromagnetic field working state parameters. The threshold interval table includes a safe operation interval, a prompt-level warning interval, a warning-level warning interval, and an emergency-level warning interval. The threshold interval table is dynamically adjusted according to the changes in the control mode and power level; After receiving the second data packet, the anomaly detection module verifies the integrity of the data packet and extracts the electromagnetic field working state parameters in the status code; Construct a sliding window for the electromagnetic field working state parameters according to the sampling period, and calculate the change characteristics of each parameter within the sliding window; Construct a multi-parameter state prediction model based on the parameter change characteristics, and calculate the predicted values of the electromagnetic field intensity, coil temperature, and coil current for the next sampling period respectively; Compare the parameter predicted values with the threshold interval table to generate independent anomaly level identifiers for each parameter; Judge the comprehensive anomaly level in combination with the parameter weights, and send the comprehensive anomaly level to the alarm prompt module.
[0014] In a second aspect, an embodiment of the present invention provides a collaborative control method for an ultra-thin induction cooker based on a dual-core MCU, which includes establishing a bidirectional data transmission channel between the display MCU and the main control MCU through a priority communication scheduling mechanism; Collecting the control instructions input by the user, encoding the control instructions into a first data packet, and the display MCU transmits the first data packet to the main control MCU through the bidirectional data transmission channel; The main control MCU receives and parses the instruction code in the first data packet, matches the corresponding control strategy from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil; Collecting the electromagnetic field working state parameters, encoding the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through the bidirectional data transmission channel; The display MCU receives and parses the status code in the second data packet returned by the main control MCU, obtains the electromagnetic field working state parameters, performs anomaly state judgment, and issues an alarm signal to the user when an anomaly state is recognized.
[0015] The beneficial effects of the present invention are as follows: The present invention adopts a dual-core architecture of a display MCU and a main control MCU, and realizes system modular design through function decoupling, significantly improving the scalability and flexibility of the control system; Construct a bidirectional data transmission channel based on SPI full-duplex communication, and ensure the reliability and security of data transmission through a strict handshaking mechanism, CRC check, and multiple verifications; Innovatively design a control mode identification bit, support basic and scenario control modes, dynamically adjust the PWM parameter template according to the cookware type and power level, and realize precise and personalized heating control of the cooking scenario; Establish a multi-level threshold monitoring mechanism for the electromagnetic field working state parameters, which can capture anomalies in real time and provide audible and visual alarms, intelligent power adjustment, and even automatic protection according to different levels, ensuring the maximum use safety. Description of the Drawings
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0017] Figure 1 It is a system architecture diagram of a collaborative control system for an ultra-thin induction cooker based on a dual-core MCU.
[0018] Figure 2 It is a flowchart of the operation of the anomaly detection module of a collaborative control system for an ultra-thin induction cooker based on a dual-core MCU.
[0019] Figure 3 It is a flowchart of the operation of the PWM control module of a collaborative control system for an ultra-thin induction cooker based on a dual-core MCU. Specific Embodiments
[0020] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following will provide a detailed description of the specific embodiments of the present invention with reference to the accompanying drawings of the specification.
[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.
[0022] Secondly, the so-called "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that can be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that mutually excludes other embodiments.
[0023] Embodiment 1, referring to Figures 1 to 3 , which is the first embodiment of the present invention. This embodiment provides a collaborative control system for an ultra-thin induction cooker based on a dual-core MCU. The system architecture diagram is as shown in Figure 1 and includes a display MCU, a main control MCU, and a communication link module:
[0024] The communication link module includes an SPI communication interface and a data channel management module. The data channel management module is used to establish a two-way data transmission channel between the display MCU and the main control MCU. The data transmission channel includes: a first data channel from the display MCU to the main control MCU (for transmitting a first data packet containing control instructions, 32 bits), and a second data channel from the main control MCU to the display MCU (for transmitting a second data packet containing electromagnetic field working state parameters, 48 bits). The establishment process is as follows:
[0025] First, configure the display MCU as the master device and the main control MCU as the slave device, and connect the display MCU and the main control MCU through the SPI bus. Specifically, the display MCU outputs SS, SCLK, and MOSI signals through GPIO ports, and the main control MCU outputs the MISO signal through the GPIO port to form a full-duplex communication link. In the initialization stage, configure the SPI working mode as mode 0 (CPOL = 0, CPHA = 0), set the initial baud rate to 2MHz, the data bit width to 8 bits, adopt the high-order first transmission method, and control the system startup initialization time within 500ms.
[0026] Second, establish transmit buffers and receive buffers in the display MCU and the main control MCU. The transmit buffers and receive buffers adopt a circular queue structure. Specifically, to ensure the stability of data transmission, the size of each buffer is set to 4KB, the interval between the read and write pointers is not less than 512 bytes, and the usage rate warning threshold is set to 75%. Allocate a transmit buffer for storing the first data packet and a receive buffer for storing the second data packet for the display MCU, and allocate a transmit buffer for storing the second data packet and a receive buffer for storing the first data packet for the main control MCU. Manage the access of data through the read and write pointers, and set the buffer usage rate warning threshold to monitor the buffer status.
[0027] Then, the display MCU sends a handshake request data packet to the main control MCU, and the main control MCU returns a handshake response data packet. The display MCU judges whether the handshake is successful according to the handshake response data packet. Specifically, the display MCU starts a timer after sending the handshake request data packet and waits for the handshake response data packet from the main control MCU. The display MCU sends a request data packet containing the 0xAA identifier, and the main control MCU returns a response data packet containing the 0x55 identifier. When receiving the handshake response data packet, the display MCU first verifies whether the frame header identifier of the data packet is correct, then checks whether the control field is the predetermined handshake response code, and finally performs a CRC check. Only when all three verifications pass and are completed within the specified timeout period (such as 100ms), is the handshake determined to be successful. If any verification fails or times out, the display MCU will resend the handshake request, with a maximum of 3 retries. If the three handshakes all fail, the upper-layer application will be notified that the communication link establishment fails, and the communication link reconstruction timeout is set to 2s.
[0028] Finally, when the handshake is successful, an interrupt service routine is started in the display MCU and the master MCU. The interrupt service routine is responsible for monitoring and processing the data in the transmit buffer and the receive buffer. Specifically, transmit complete interrupt and receive complete interrupt related to SPI communication are configured in the two MCUs, and the receive interrupt priority is set higher than the transmit interrupt.
[0029] Among them, the main operations of the transmit interrupt service routine include: checking whether there is data to be transmitted in the transmit buffer; if there is data, reading a data packet from the transmit buffer; transmitting the data through the SPI interface; updating the read pointer of the transmit buffer; if the transmission is complete, clearing the transmit flag bit. The main operations of the receive interrupt service routine include: reading the received data from the SPI receive buffer register; performing data frame format verification and CRC check; if the check passes, storing the data in the receive buffer; updating the write pointer of the receive buffer; checking the usage rate of the receive buffer, and notifying the upper layer application if it exceeds the warning threshold; clearing the receive flag bit.
[0030] Preferably, the communication link module solves the problems of reliability, real-time performance and stability of the communication link well by establishing a bidirectional data transmission channel between the display MCU and the master MCU, adopting an SPI communication architecture with clear master-slave division of labor, a differential data packet design, a buffer management with a 4KB circular queue structure, a triple-verification handshake mechanism and a priority-based interrupt handling mechanism, and improves the system response efficiency while ensuring the data transmission quality.
[0031] The display MCU includes a touch panel, an instruction encoding module, an anomaly detection module and an alarm prompt module. First, the touch panel collects the control instructions input by the user. The touch panel is a resistive or capacitive touch screen, with characteristics such as anti-interference and multi-touch, and can accurately capture the user operation coordinates and touch signals.
[0032] Secondly, the instruction encoding module encodes the control instructions into the first data packet. The working flow chart of the instruction encoding module is as Figure 2As shown below: Divide an instruction buffer area and an instruction processing area in the send buffer. The instruction buffer area is used to store control instructions to be sent, and the instruction processing area is used to record the encoding and sending status of the instructions; Write the control instructions into the instruction buffer area; Implement an instruction mapping table based on the hash table algorithm and store it in a Flash memory with an wear-leveling algorithm. The instruction mapping table stores the mapping relationships of control instructions such as heating level instructions, timing control instructions, preset mode instructions, shutdown instructions, etc.; The instruction mapping table adopts a key-value pair structure, where the key is the string identifier of the control instruction, and the value is a structure containing the control mode, function type, and parameter range; Convert the control instructions in the instruction buffer area into 16-bit instruction codes according to a unified encoding format, including 2-bit control mode identification bits (to distinguish between basic control mode and scenario control mode), 6-bit function codes (to indicate specific operation types), 6-bit parameter codes (to store the specific setting values of the corresponding functions), and 2-bit reserved bits; Perform a check operation on the 16-bit instruction code through the cyclic redundancy check algorithm to generate an 8-bit check code. The cyclic redundancy check algorithm uses the CRC-8 polynomial for calculation; Call the frame format template to generate an 8-bit frame header identifier, where the high 4 bits of the frame header identifier are fixed as 1010 for frame synchronization, and the low 4 bits are cyclic count values from 0 to 15 for detecting communication anomalies such as packet loss or duplicate packets; Assemble the 8-bit frame header identifier, 16-bit instruction code, and 8-bit check code in sequence to generate a 32-bit first data packet; Write the first data packet into the area to be sent in the send buffer, update the write pointer, and mark the encoding completion and the to-be-sent status in the instruction processing area.
[0033] Specifically, the control instruction conversion process includes: First, look up the corresponding structure in the instruction mapping table according to the string identifier of the control instruction; Then, set the 2-bit control mode identification bit according to the control mode information in the structure; Next, generate a 6-bit function code according to the function type information in the structure. In the basic control mode, 0-31 are used for basic function encoding, and 32-63 are used for extended function encoding; Finally, generate a 6-bit parameter code according to the specific parameter value in the control instruction and the parameter range information in the structure. The parameter code uses a linear mapping method to map the actual parameter value to the encoding space of 0-63.
[0034] In this embodiment, the control mode identification bit adopts a 2-bit binary code: 00 represents the basic control mode for conventional heating control, supporting 1-9 gear firepower adjustment; 01 represents the scene control mode for professional control of specific cooking scenarios, including the soup-making mode, the stir-frying mode, and the simmering mode; 10 and 11 are reserved codes for future function expansion. In the basic control mode, the specific allocation of function codes is as follows: 000000 - heating switch control, 000001 - firepower gear adjustment, 000010 - timing control, 000011 - child lock control, 000100 to 011111 are reserved for basic function expansion; in the scene control mode, the specific allocation of function codes is as follows: 000000 - scene mode selection, 000001 - scene parameter adjustment, 000010 to 111111 are reserved for scene function expansion. The parameter code has different mapping rules under different functions: under the firepower gear adjustment function, 000000 represents gear 1, 000001 represents gear 2, and so on until 001000 represents gear 9, and the remaining codes are reserved; under the scene mode selection function, 000000 represents the soup-making mode, 000001 represents the stir-frying mode, 000010 represents the simmering mode, and the remaining codes are reserved; under the timing control function, the parameter code supports linear mapping from 0 to 63 minutes.
[0035] Then, the display MCU transmits the first data packet to the receive buffer of the main control MCU through the bidirectional data transmission channel. Next, the working flowchart of the abnormal detection module is as Figure 2As shown below: The anomaly detection module reads and parses the status code in the second data packet sent by the master MCU from the receive buffer of the display MCU to obtain the electromagnetic field operating state parameters, and performs anomaly state judgment. The specific process is as follows: Establish a threshold interval table for the electromagnetic field operating state parameters. The electromagnetic field intensity, coil temperature, and coil current are all set with safe operating intervals, prompt-level warning intervals, warning-level warning intervals, and emergency-level warning intervals. The threshold interval table is dynamically adjusted according to the changes in the control mode and power level. The adjustment process adopts the following method: First, calculate the reference threshold based on the power level value under the current control mode. In the basic control mode, the reference threshold is determined according to the linear ratio of the fire power levels 1-9. In the scenario control mode, the reference threshold is determined according to the characteristic power curve of different scenarios. Then, correct the reference threshold according to the characteristic requirements of different control modes. For example, in the soup-making mode, expand the safe operating interval of the coil temperature to adapt to long-term low-temperature heating. In the stir-fry mode, narrow the warning interval of the electromagnetic field intensity to achieve precise power control. In the slow-stewing mode, expand the warning interval of the coil current to allow a larger fluctuation range. Finally, according to the real-time collected electromagnetic field operating state parameters, use an adaptive algorithm based on parameter change trend prediction and PI control to fine-tune the threshold interval. By calculating the parameter change rate and the steady-state deviation from the set value in the last 5 sampling periods, the dynamic optimization of the threshold interval is achieved under the premise of ensuring safety.
[0036] Furthermore, after receiving the second data packet, the anomaly detection module uses a dual mechanism of CRC checksum and data packet timing comparison to verify the integrity of the data packet, and extracts the electromagnetic field operating state parameters (electromagnetic field intensity, coil temperature, and coil current) in the status code; constructs a sliding window for the electromagnetic field operating state parameters according to the sampling period, and calculates the change characteristics of each parameter within the sliding window, including calculating the first-order difference sequence of the parameter to obtain the change rate, and the second-order difference sequence to obtain the change acceleration; constructs a multi-parameter state prediction model based on the parameter change characteristics, and calculates the predicted values of the electromagnetic field intensity, coil temperature, and coil current for the next sampling period respectively; compares the parameter predicted values with the threshold interval table to generate independent anomaly level identifiers for each parameter, including safe operation, prompt-level warning, warning-level warning, and emergency-level warning; maps the anomaly level identifiers to numerical values, and safe operation, prompt-level warning, warning-level warning, and emergency-level warning are mapped to 1, 2, 3, and 4 respectively, and weight coefficients are preset for the three parameters of electromagnetic field intensity, coil temperature, and coil current; calculates the comprehensive score by combining the parameter weights to obtain the comprehensive anomaly level, and sends the comprehensive anomaly level to the alarm prompt module. The score range of the comprehensive anomaly level is preset.
[0037] Among them, the construction process of the multi-parameter state prediction model is as follows: Standardize the parameter sequence within the sliding window, and extract the change rate and acceleration characteristics of the parameters; Use a method that combines ARIMA and exponential smoothing to establish independent prediction models for the three parameters of electromagnetic field strength, coil temperature, and coil current respectively. The model parameters are selected based on the stationarity test and autocorrelation analysis of the parameter sequence. The ARIMA model parameters automatically select the optimal order through the AIC and BIC criteria, and at the same time, the unit root test is combined to ensure the effectiveness of the model.
[0038] Finally, the alarm prompt module selects the corresponding alarm method according to the comprehensive anomaly level, sends out an audible and visual alarm signal to the user, displays the anomaly prompt information on the display screen, and waits for the user to confirm or automatically terminates the alarm after the anomaly state is lifted.
[0039] The main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module, and a status encoding module.
[0040] First, the instruction parsing module reads and parses the instruction code in the first data packet from the receive buffer of the main control MCU. Subsequently, the working flowchart of the PWM control module is as Figure 3 shown, specifically as follows: The PWM control module matches the corresponding control mode from the control strategy library according to the instruction code and generates a pulse signal for controlling the heating coil. Specifically as follows: Determine the control mode according to the control mode identification bit of the control instruction code, including the basic control mode and the scenario control mode; Collect the impedance value of the current cookware through the impedance detection circuit, and match the impedance value with the cookware type mapping table to determine the cookware type. The cookware type mapping table stores the impedance characteristic intervals of different types of cookware, and the cookware type is determined by comparing the interval where the impedance value falls.
[0041] Furthermore, according to the control mode and cookware type, retrieve the corresponding PWM parameter template from the control strategy library. The PWM parameter template includes the standard frequency range and duty cycle range of this type of cookware under the current control mode. The calling process is as follows: Construct a two-dimensional index table with the control mode and cookware type as the double index key values; According to the current control mode identification bit and the identified cookware type, search for the corresponding template ID in the index table; According to the template ID, read the corresponding PWM parameter template data structure from the control strategy library. This data structure includes the upper and lower limits of the frequency, the upper and lower limits of the duty cycle, the power response curve parameters, etc.
[0042] Further, according to the power level data carried by the parameter code in the instruction code, interpolation calculation is performed within the frequency range and duty cycle range specified by the PWM parameter template to obtain the frequency value and duty cycle value of the initial PWM wave. The specific process is as follows: Read the upper and lower limit parameters of the frequency and duty cycle from the PWM parameter template; Normalize the power level value extracted from the parameter code and map it to the 0-1 interval; Construct a segmented frequency adjustment function, using a low slope in the low power interval to achieve a slow change in frequency and a high slope in the high power interval to achieve a fast adjustment of frequency. Through this segmented design, the heating effect at different power levels is ensured; Construct a duty cycle adjustment function based on a quadratic function to achieve a non-linear change in the duty cycle with the power level and ensure a smooth transition of the heating power; Substitute the normalized power value into the frequency adjustment function and the duty cycle adjustment function to calculate the actual frequency value and duty cycle value; Output the calculated frequency value and duty cycle value as the parameters of the initial PWM wave.
[0043] Further, collect the coil temperature and coil current, and compensate and adjust the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and coil current to generate an actual PWM control signal; Output the actual PWM control signal to the heating coil through the IGBT drive circuit to adjust the on-off timing of the heating coil and change the electromagnetic field working state parameters, where the electromagnetic field working state parameters include the electromagnetic field intensity, coil temperature, and coil current.
[0044] It should be noted that the control strategy library stores the PWM parameter templates corresponding to different combinations of control modes and cookware types. Each PWM parameter template contains two groups of parameters: the frequency range and the duty cycle range. The frequency range defines the minimum frequency and the maximum frequency of the PWM signal under this working condition; The duty cycle range defines the minimum duty cycle and the maximum duty cycle.
[0045] Among them, compensating and adjusting the frequency value and duty ratio of the initial PWM wave according to the coil temperature and coil current includes: establishing a temperature compensation coefficient matrix and a current compensation coefficient matrix, dividing the temperature range and current range into multiple sub-ranges, each sub-range corresponding to a set of frequency compensation coefficients and duty ratio compensation coefficients, and the compensation coefficients are obtained through experimental calibration; collecting the coil temperature and coil current in each PWM cycle, calculating the effective temperature value using the weighted average algorithm, and obtaining the effective current value by least square fitting; determining the first set of compensation coefficients in the temperature compensation coefficient matrix according to the effective temperature value, and determining the second set of compensation coefficients in the current compensation coefficient matrix according to the effective current value; setting a compensation dead zone, and keeping the PWM parameters unchanged when the compensation value is within the dead zone; performing weighted fusion on the first set of compensation coefficients and the second set of compensation coefficients to obtain a comprehensive compensation coefficient; performing compensation calculation on the frequency value and duty ratio of the initial PWM wave according to the comprehensive compensation coefficient; generating an actual PWM control signal according to the compensated frequency value and duty ratio.
[0046] Next, the parameter acquisition module continuously acquires the electromagnetic field working state parameters and updates the sampling values of the coil temperature and coil current in each PWM cycle for the compensation and adjustment of the PWM control signal in the next cycle; then, the state encoding module encodes the electromagnetic field working state parameters into a second data packet, and the specific process is as follows: divide the state buffer area and the state processing area in the transmission buffer, where the state buffer area is used to store the working state parameters to be transmitted, and the state processing area is used to record the encoding and transmission status; write the collected electromagnetic field intensity, coil temperature and coil current into the state buffer area; convert the parameters in the state buffer area into 32-bit state codes based on the first-in-first-out (FIFO) principle, and only update the parameter values that have changed each time, where the upper 12 bits are used to store the electromagnetic field intensity value, the middle 10 bits are used to store the coil temperature value, and the lower 10 bits are used to store the coil current value; perform a check operation on the 32-bit state code through the cyclic redundancy check algorithm to generate an 8-bit check code, which is calculated using the same CRC-8 polynomial as the first data packet; call the frame format template to generate an 8-bit frame header identifier, where the upper 4 bits of the frame header identifier are fixed as 1010 for frame synchronization, and the lower 4 bits are a cyclic count value from 0 to 15 for detecting communication anomalies; assemble the 8-bit frame header identifier, 32-bit state code and 8-bit check code in sequence to generate a second data packet; write the second data packet into the area to be transmitted in the transmission buffer, update the write pointer and mark the encoding completion and the to-be-transmitted status in the state processing area; finally, the main control MCU transmits the second data packet to the receiving buffer of the display MCU through the bidirectional data transmission channel to complete the bidirectional information interaction.
[0047] Further, this embodiment also provides a collaborative control method for a ultra-thin induction cooker based on a dual-core MCU, including establishing a bidirectional data transmission channel between a display MCU and a main control MCU through a priority communication scheduling mechanism; collecting control instructions input by a user, encoding the control instructions into a first data packet, and the display MCU transmitting the first data packet to the main control MCU through the bidirectional data transmission channel; the main control MCU receiving and parsing the instruction code in the first data packet, matching a corresponding control strategy from a control strategy library according to the instruction code, and generating a pulse signal for controlling a heating coil; collecting electromagnetic field working state parameters, encoding the electromagnetic field working state parameters into a second data packet, and the main control MCU transmitting the second data packet to the display MCU through the bidirectional data transmission channel; the display MCU receiving and parsing the status code in the second data packet returned by the main control MCU, obtaining the electromagnetic field working state parameters, performing an abnormal state judgment, and sending an alarm signal to the user when an abnormal state is recognized.
[0048] In summary, the present invention adopts a dual-core architecture of a display MCU and a main control MCU, realizes system modular design through function decoupling, and significantly improves the scalability and flexibility of the control system; constructs a bidirectional data transmission channel based on SPI full-duplex communication, and ensures the reliability and security of data transmission through a strict handshaking mechanism, CRC check, and multiple verifications; innovatively designs a control mode identification bit, supports basic and scenario control modes, dynamically adjusts the PWM parameter template according to the cookware type and power level, and realizes precise and personalized heating control of the cooking scenario; establishes a multi-level threshold monitoring mechanism for electromagnetic field working state parameters, can capture abnormalities in real time and provide sound and light alarms, intelligent power adjustment, and even automatic protection according to different levels, and maximally guarantees the use safety.
[0049] Embodiment 2, referring to Figures 1 to 3 This is the second embodiment of the present invention. This embodiment provides a collaborative control system for a ultra-thin induction cooker based on a dual-core MCU. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0050] Based on the ultra-thin induction cooker collaborative control system of the present invention, the research team designed a system performance verification experiment. The experimental platform consists of two high-precision dual-core MCU controllers, a standardized kitchen cooking environment, and a professional data acquisition system. Three common cookwares were selected for the experiment: an aluminum alloy frying pan (diameter 28 cm), a cast iron soup pot (diameter 24 cm), and a stainless steel kettle (diameter 16 cm), aiming to comprehensively evaluate the control performance of the system under different cookwares.
[0051] In the basic control mode, the heating characteristics of different cookware were mainly investigated. Through precise measurement, the cast iron soup pot has the best temperature uniformity at the heating power levels of 1 - 3, with a gentle heating curve and a temperature rising rate of 1.8 - 2.2 °C per second. When the aluminum alloy frying pan is at the heating power levels of 7 - 9, the temperature response is more rapid, with a rising rate of 3.5 - 4.2 °C per second, but the temperature fluctuation is slightly larger, within the range of ±2.5 °C.
[0052] The experimental focus of the scenario control mode was on three cooking scenarios: soup making, stir - frying, and slow stewing. Taking the soup - making mode as an example, during the process of heating from room temperature of 20 °C to 95 °C, the temperature fluctuation was controlled within the range of ±2 °C, and the total heating time was approximately 14 - 15 minutes. The stir - frying mode simulated rapid high - temperature cooking. The system could raise the temperature of the cookware from room temperature to 200 °C within 45 - 50 seconds and adjust the temperature to the target temperature range of ±8 °C within 3 - 4 seconds.
[0053] To verify the abnormal detection and protection performance of the system, an extreme condition test was designed. In the abnormal coil temperature experiment, when the temperature reached the warning - level warning range (about 150 °C), the system could automatically reduce the heating power by one level within 0.8 seconds; if the temperature continued to rise to the emergency warning range (about 170 °C), the system would automatically shut down after a 15 - second countdown, effectively preventing safety risks.
[0054] To visually present the technical characteristics of the present invention, a technical comparison table was drawn up, as shown in Table 1:
[0055] Table 1 Technical Comparison of the Ultra - thin Induction Cooker Cooperative Control System
[0056]
[0057] The experimental results show that the ultra - thin induction cooker cooperative control system of the present invention has been significantly improved in terms of heating accuracy, response speed, and safety protection. Through the cooperative control of dual MCUs and multi - dimensional dynamic regulation, the system not only optimizes the cooking experience but also provides a more intelligent and safer cooking solution for users.
[0058] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.
Claims
1. A thin and ultra-thin induction cooker collaborative control system based on a dual-core MCU, characterized in that: It includes a display MCU, a main control MCU, and a communication link module; The communication link module includes an SPI communication interface and a data channel management module, and the data channel management module is used to establish a two-way data transmission channel between the display MCU and the main control MCU; The display MCU includes a touch panel, an instruction encoding module, an anomaly detection module, and an alarm prompt module. The touch panel collects control instructions input by the user, and the instruction encoding module encodes the control instructions into a first data packet. The display MCU transmits the first data packet to the main control MCU through the two-way data transmission channel; The anomaly detection module reads and parses the status code in the second data packet sent by the main control MCU to obtain the electromagnetic field working state parameters and make an anomaly state judgment; the alarm prompt module sends an alarm signal to the user when an anomaly state is recognized; The main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module, and a status encoding module. The instruction parsing module reads and parses the instruction code in the first data packet. The PWM control module determines the control mode according to the instruction code and generates a pulse signal for controlling the heating coil. The pulse signal changes the electromagnetic field working state parameters by adjusting the duty cycle and frequency; The parameter acquisition module real-time collects the electromagnetic field working state parameters, and the status encoding module encodes the electromagnetic field working state parameters into a second data packet. The main control MCU transmits the second data packet to the display MCU through the two-way data transmission channel to complete two-way information interaction; The working process of the PWM control module is as follows: Determine the control mode according to the control mode identification bit of the instruction code, and the control mode includes a basic control mode and a scenario control mode; Collect the impedance value of the current cookware and match the impedance value with the cookware type mapping table to determine the cookware type; According to the control mode and the cookware type, retrieve the corresponding PWM parameter template from the control strategy library; Perform interpolation calculation within the frequency range and duty cycle range specified by the PWM parameter template according to the power level data to obtain the frequency value and duty cycle value of the initial PWM wave; Collect the coil temperature and coil current, and compensate and adjust the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current to generate an actual PWM control signal; Output the actual PWM control signal to the heating coil through the IGBT drive circuit.
2. The ultra-thin induction cooker collaborative control system based on a dual-core MCU according to claim 1, wherein: The electromagnetic field working state parameters include electromagnetic field intensity, coil temperature, and coil current; The first data packet consists of a frame header identifier, an instruction code, and a check code, and the second data packet consists of a frame header identifier, a status code, and a check code.
3. The ultra-thin induction cooker collaborative control system based on a dual-core MCU according to claim 1, wherein: The working process of the data channel management module is as follows: Configure the display MCU as the master device and the main control MCU as the slave device, and connect the display MCU and the main control MCU through the SPI bus; Establish a transmit buffer and a receive buffer in the display MCU and the main control MCU, and the transmit buffer and the receive buffer adopt a circular queue structure; The display MCU sends a handshake request data packet to the master MCU, and the master MCU returns a handshake response data packet. The display MCU determines whether the handshake is successful according to the handshake response data packet; When the handshake is successful, an interrupt service program is started in the display MCU and the master MCU.
4. The ultra-thin induction cooker collaborative control system based on a dual-core MCU according to claim 1, characterized in that: The working process of the instruction encoding module includes: Divide an instruction buffer area in the transmission buffer, and write the control instruction into the instruction buffer area; Using an instruction mapping table, convert the control instructions in the instruction buffer area into instruction codes according to a unified encoding format; Perform a check operation on the instruction code through a cyclic redundancy check algorithm to generate a check code, and call a frame format template to generate a frame header identifier; Assemble the frame header identifier, the instruction code, and the check code in sequence to generate a first data packet.
5. The ultra-thin induction cooker collaborative control system based on a dual-core MCU according to claim 1, characterized in that: Compensating and adjusting the frequency value and duty cycle ratio of the initial PWM wave according to the coil temperature and the coil current includes: Establish a temperature compensation coefficient matrix and a current compensation coefficient matrix, divide the temperature range and current range into multiple sub-ranges, and each sub-range corresponds to a set of frequency compensation coefficients and duty cycle compensation coefficients; Collect the coil temperature and coil current within each PWM cycle, calculate the temperature effective value using a weighted average algorithm, and obtain the current effective value by least squares fitting; Determine the first set of compensation coefficients in the temperature compensation coefficient matrix according to the temperature effective value, and determine the second set of compensation coefficients in the current compensation coefficient matrix according to the current effective value; Perform weighted fusion on the first set of compensation coefficients and the second set of compensation coefficients to obtain a comprehensive compensation coefficient; Perform compensation calculation on the frequency value and duty cycle ratio of the initial PWM wave according to the comprehensive compensation coefficient; Generate an actual PWM control signal according to the compensated frequency value and duty cycle ratio.
6. The ultra-thin induction cooker collaborative control system based on a dual-core MCU according to claim 1 or 2, characterized in that: The working process of the anomaly detection module is as follows: Establish a threshold interval table for the electromagnetic field working state parameters. The threshold interval table includes a safe operation interval, a prompt-level warning interval, a warning-level warning interval, and an emergency-level warning interval. The threshold interval table is dynamically adjusted according to the changes of the control mode and power level; After receiving the second data packet, the anomaly detection module checks the integrity of the data packet and extracts the electromagnetic field working state parameters in the status code; Construct a sliding window for the electromagnetic field working state parameters according to the sampling period, and calculate the change characteristics of each parameter within the sliding window; Construct a multi-parameter state prediction model based on the parameter change characteristics, and calculate the predicted values of the electromagnetic field intensity, coil temperature, and coil current for the next sampling period respectively; Compare the parameter predicted values with the threshold interval table to generate an independent anomaly level identifier for each parameter; Judge the comprehensive anomaly level by combining the parameter weights, and send the comprehensive anomaly level to the alarm prompt module.
7. A cooperative control method for a super-thin induction cooker based on a dual-core MCU, based on the cooperative control system for a super-thin induction cooker based on a dual-core MCU according to any one of claims 1 to 6, characterized in that: It also includes, Establish a bidirectional data transmission channel between the display MCU and the master MCU through a priority communication scheduling mechanism; Collect the control instructions input by the user, encode the control instructions into a first data packet, and the display MCU transmits the first data packet to the master MCU through the bidirectional data transmission channel; The main control MCU receives and parses the instruction code in the first data packet, matches the corresponding control strategy from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil; Collect the electromagnetic field working state parameters, encode the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through the bidirectional data transmission channel; The display MCU receives and parses the status code in the second data packet returned by the main control MCU, obtains the electromagnetic field working state parameters, makes an abnormal state judgment, and sends an alarm signal to the user when an abnormal state is recognized.
Citation Information
Patent Citations
SPI (Serial Peripheral Interface) controller and communication method for SPI controller
CN104809094A
Electromagnetic oven
CN208170461U
Cookware detection circuit and cooking device
CN217659335U