A dielectric constant self-compensating type oiler oil level sensor and application thereof

By using a dielectric constant self-compensating oil level sensor for fryers, and employing a dual-electrode structure and digital notch filtering technology, the problems of dielectric constant drift due to oil aging and power frequency interference are solved, enabling accurate oil level detection under high-temperature conditions and meeting the requirements for food safety and convenient maintenance.

CN123154994APending Publication Date: 2026-11-24BOUNDLESS (HEFEI) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611393209.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing oil level detection technologies for fryers cannot achieve continuous and accurate oil level monitoring in high-temperature environments, and there are issues such as oil aging dielectric constant drift, power frequency interference, and food safety problems.

Method used

The oil level sensor for the fryer adopts a dielectric constant self-compensating type. It measures the dielectric constant of the oil in real time through a dual-electrode structure. Combined with temperature compensation and digital notch filtering technology, it eliminates power frequency interference, ensuring measurement accuracy and stability while meeting food safety requirements.

Benefits of technology

It achieves a significant improvement in oil level measurement accuracy, reducing the maximum error to less than 1%. The sensor structure is resistant to high temperatures and easy to clean, has strong anti-interference capabilities, meets food safety standards, and is easy to install.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123154994A_ABST
    Figure CN123154994A_ABST
Patent Text Reader

Abstract

This invention relates to the field of sensor technology and discloses a dielectric constant self-compensating oil level sensor for fryers and its application. The sensor includes a mounting and acquisition module and a data processing and control module connected by communication. The mounting and acquisition module includes a mounting tube and an insulating tube coaxially sleeved at one end of the mounting tube. A main electrode and a reference electrode are sequentially sleeved inside the insulating tube, and an electrical isolation gasket is provided between the main electrode and the reference electrode. The oil level sensor provided by this invention can achieve continuous and accurate oil level detection in high-temperature frying environments, effectively overcoming the problem of dielectric constant drift caused by oil aging. It also effectively solves the problem of leakage interference from the heating element, realizing high-precision, strong anti-interference, and maintenance-free continuous oil level monitoring and oil temperature measurement integration, which has practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sensor technology, specifically to a dielectric constant self-compensating oil level sensor for fryers and its application. Background Technology

[0002] Commercial kitchen fryers require precise monitoring of the oil level in the fryer during operation to ensure food safety, prevent the heating element from burning out, and optimize oil change cycles. Currently, mainstream oil level detection solutions in the industry include mechanical float switches, photoelectric level switches, weighing sensors, and ultrasonic level gauges. However, these solutions have limitations such as the tendency for moving parts to jam, false alarms due to oil buildup, susceptibility to vibration and deformation, and signal attenuation due to high-temperature oil vapor. These limitations make it difficult to simultaneously meet the multiple requirements of fryers, including high temperatures, oil contamination, continuous monitoring, and food contact safety.

[0003] Capacitive level detection technology has been widely used in industrial level measurement, but its direct application in frying machines still faces several technical challenges. This is because the dielectric constant of edible oil increases with aging during repeated high-temperature heating. Traditional single-electrode capacitive level gauges cannot distinguish between "oil level change" and "dielectric constant drift," leading to a positive deviation in the measured value as the oil ages, with extreme errors exceeding 15%. Simultaneously, the operating temperature of frying machines (approximately 200°C) exceeds the rated range of most commercial sensors, and sensor materials must comply with FDA or EU1935 / 2004 food contact regulations, making conventional insulating materials such as epoxy resin and PVC unsuitable. Furthermore, when the heating element is powered by AC220V / 50Hz, the distributed capacitance between it and the sensor generates capacitive leakage coupling. Combined with ground loop interference caused by poor grounding and harmonic components introduced by SCR power regulation, these factors superimpose 50Hz power frequency and its harmonics onto the measurement signal, causing periodic fluctuations in the capacitance measurement value and severely affecting detection accuracy and stability.

[0004] Therefore, there is an urgent need to design a novel oil level detection sensor for fryers that can simultaneously address issues such as dielectric constant drift due to oil aging, high-temperature adaptability, power frequency interference suppression, and food contact safety. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a dielectric constant self-compensating oil level sensor for fryers and its application. The aim is to provide a capacitive sensor capable of continuous and accurate oil level detection in high-temperature (200℃) fryer environments, effectively overcoming the dielectric constant drift problem caused by oil aging. It also solves the problem of leakage interference from heating elements and meets food contact safety requirements while featuring a structural design that facilitates cleaning and maintenance.

[0006] The present invention solves the technical problem by adopting the following technical solution:

[0007] A dielectric constant self-compensating oil level sensor for a deep fryer includes an installation and acquisition module and a data processing and control module connected by communication. The installation and acquisition module includes an installation tube and an insulating tube coaxially sleeved at one end of the installation tube. A main electrode and a reference electrode are sequentially sleeved inside the insulating tube, and an electrical isolation gasket is provided between the main electrode and the reference electrode.

[0008] The data processing control module includes a capacitance detection unit and a main control unit, and the main electrode and the reference electrode are respectively connected to the first input terminal and the second input terminal of the capacitance detection unit.

[0009] The capacitance detection module is configured to collect data from the main electrode and the reference electrode and output the capacitance values ​​of the main electrode and the reference electrode.

[0010] The main control unit is configured to receive the main electrode capacitance value and the reference electrode capacitance value, process them, and output the current oil level data.

[0011] Preferably, an active shielding layer is provided on the outer surface of the insulating tube;

[0012] The capacitance detection unit is also configured to output a shielded drive signal to the active shielding layer to eliminate parasitic capacitance and external electromagnetic interference.

[0013] Preferably, the mounting tube and the insulating tube are made of metal materials, the insulating tube is made of high dielectric constant ceramic material, and the electrical isolation gasket is made of polytetrafluoroethylene material;

[0014] The mounting tube is inserted through the wall of the fryer pot and is electrically connected to the wall of the fryer pot to form a reference ground.

[0015] Preferably, the mounting tube is L-shaped, with its horizontal section passing through the wall of the fryer pot and electrically connected to each other;

[0016] The insulating tube is fitted onto the end of the vertical section of the mounting tube.

[0017] Preferably, it also includes a temperature sensing unit attached to the bottom of the insulating tube or mounted on the outside of the tube;

[0018] The main control unit is also configured to receive the data collected by the temperature sensing unit and perform temperature compensation on the dielectric constant of the oil.

[0019] Preferably, the main control unit is configured to receive, process, and output the current oil level data of the main electrode capacitance value and the reference electrode capacitance value, specifically including:

[0020] The real-time capacitance value C_ref of the reference electrode and the real-time capacitance value C_main of the main electrode are collected by the capacitance detection module and substituted into the formula.

[0021] εr_oil=(C_ref-C_ref0) / (k_ref×L_ref)

[0022] Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length;

[0023] Substituting the current dielectric constant εr_oil of the oil into the capacitance-level relationship model of the main electrode

[0024] h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)]

[0025] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_air is the air dielectric constant.

[0026] Preferably, the main control unit is further configured to perform power frequency interference suppression processing on the signal input from the received capacitance detection module, specifically including sequential power frequency tracking, digital notch filtering, and moving average filtering.

[0027] The power frequency tracking process includes performing power frequency tracking on the output signal of the capacitor detection module to obtain a real-time estimate of the current power frequency fundamental frequency.

[0028] The digital notch filtering process includes constructing a digital notch filter based on the power frequency fundamental frequency f0, and performing at least one stage of power frequency notch filtering on the output signal of the capacitance detection module.

[0029] The moving average filtering process includes moving average calculation with a window length that is an integer multiple of the power frequency period T0 = 1 / f0, to further suppress residual power frequency components.

[0030] This invention also provides a method for detecting the oil level in a deep fryer, using the sensor described above, and comprising the following steps:

[0031] The main electrode capacitance signal C_main, the reference electrode capacitance C_ref, and the oil temperature value T_oil were collected respectively.

[0032] The collected capacitance signal is subjected to zero-crossing detection or adaptive phase-locked loop tracking to obtain a real-time estimate of the current power frequency fundamental frequency f0.

[0033] Based on the current power frequency f0, a cascaded digital notch filter is constructed to sequentially process the signal with 50Hz fundamental notch, 150Hz third harmonic notch and 250Hz fifth harmonic notch. Each notch filter adopts an infinite impulse response dual second-order structure, and its notch frequency is adaptively adjusted according to the power frequency tracking result.

[0034] For the signal after cascaded notch filtering, the window length L=f is an integer multiple of the power frequency period T0=1 / f0. s The moving average is calculated using ×T0×M, where M is a positive integer and f s The sampling rate and window length adaptively track the changes in the power frequency cycle to ensure that the power frequency components and their harmonics are completely canceled out during the averaging process.

[0035] Substitute the processed reference electrode capacitance C_ref into the formula.

[0036] εr_oil=(C_ref-C_ref0) / (k_ref×L_ref)

[0037] Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length;

[0038] The dielectric constant εr_oil of the current oil product is corrected by a temperature coefficient based on the oil temperature T_oil;

[0039] Substituting the corrected current oil dielectric constant εr_oil into the capacitance-level relationship model of the main electrode

[0040] h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)]

[0041] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_air is the air dielectric constant.

[0042] The present invention also provides an electronic device, comprising:

[0043] At least one processor; and

[0044] A memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores instructions that can be executed by the at least one processor, which enables the at least one processor to perform the aforementioned oil level detection method for a deep fryer.

[0046] The present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the aforementioned oil level detection method for a deep fryer.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] This invention utilizes a dual-electrode structure to measure the dielectric constant of oil in real time, achieving automatic compensation for dielectric constant drift caused by oil aging. This ensures that the accuracy of oil level measurement is unaffected by the oil's usage time, significantly reducing the maximum measurement error from over 15% in traditional methods to less than 1%. Furthermore, the metallization layer on the outer surface of the ceramic tube is driven by the shielding drive signal of the capacitance-to-digital converter, maintaining the metallization layer at the same potential as the sensor electrodes. This eliminates the influence of parasitic capacitance to ground on the sensor electrodes at its source and effectively shields the weak capacitance signal from external electromagnetic fields, ensuring the stability and consistency of capacitance measurements in the high-oil, high-interference working environment of a fryer. In addition, the sensor's oil-contact portion employs a full-metal, full-ceramic structure made of 316L stainless steel and alumina ceramic, containing no organic materials. It can withstand high-temperature working environments up to 200℃, and all oil-contact materials are food-grade, complying with FDA and EU1935 / 2004 food contact safety standards. The probe surface is smooth, without dead corners or moving parts, and can withstand CIP online cleaning. The signal processing circuit is physically isolated from the high-temperature oil area by an L-shaped mounting tube and installed on the outer wall of the pot at room temperature, further ensuring the long-term operational stability of the electronic components. Regarding anti-interference, this invention effectively suppresses the 50Hz fundamental wave and its harmonic interference generated by leakage coupling of the heating tube without increasing hardware costs, achieving an interference suppression ratio of over 40dB. This ensures the measurement stability of the sensor in scenarios where the heating tube is deployed close to the wall. Furthermore, the L-shaped sidewall through-wall installation method only requires a φ16mm circular hole in the pot wall, allowing installation without altering the existing pot structure. The junction box is located on the outer wall of the pot, facilitating wiring and daily maintenance. The sensor incorporates a platinum resistance temperature sensor, effectively providing the temperature data required for dielectric constant temperature compensation. This invention achieves significant breakthroughs in measurement accuracy, high-temperature adaptability, food safety, anti-interference capability, ease of installation, and functional integration, effectively solving several long-standing technical problems in existing fryer oil level detection technologies.

[0049] Other outstanding substantive features and significant advancements of this invention compared to the prior art are further described in detail in the Embodiments section. Attached Figure Description

[0050] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0051] Figure 1 This is a block diagram of the self-compensating dielectric constant oil level sensor system for a deep fryer, as shown in Example 1.

[0052] Figure 2 This is a schematic diagram of the structure of the self-compensating dielectric constant oil level sensor for a deep fryer, as shown in Example 1. Detailed Implementation

[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0054] It should be noted that certain names are used in the specification and claims to refer to specific components. It should be understood that those skilled in the art may use different names to refer to the same component. This specification and claims do not distinguish components based on differences in name, but rather on substantial differences in function. As used in this specification and claims, "comprising" or "including" is an open-ended term and should be interpreted as "comprising but not limited to" or "including but not limited to". The embodiments described in the Detailed Description section are preferred embodiments of the present invention and are not intended to limit the scope of the invention.

[0055] Furthermore, those skilled in the art will recognize that various aspects of the present invention can be implemented as a system, method, or computer program product. Therefore, various aspects of the present invention can be specifically implemented in a combination of hardware and software, collectively referred to herein as a "circuit," "module," or "system." Additionally, in some embodiments, various aspects of the present invention can also be implemented as a computer program product contained in one or more microcontroller-readable media, the microcontroller-readable medium containing microcontroller-readable program code.

[0056] Example 1

[0057] like Figure 1-2 As shown, this embodiment provides a dielectric constant self-compensating oil level sensor for a deep fryer, including an installation and acquisition module and a data processing and control module connected by communication. The installation and acquisition module includes an installation tube 1 and an insulating tube 2 coaxially sleeved at one end of the installation tube 1. A main electrode 3 and a reference electrode 4 are sequentially sleeved inside the insulating tube 2, and an electrical isolation gasket 5 is provided between the main electrode 3 and the reference electrode 4.

[0058] In this embodiment, the mounting tube 1 and the insulating tube 2 are made of metal materials, the insulating tube 2 is made of high dielectric constant ceramic material, and the electrical isolation gasket 5 is made of polytetrafluoroethylene material;

[0059] In this embodiment, the oil level sensor also includes a temperature sensing unit 7 attached to the bottom of the insulating tube 2 or mounted on the outside of the tube 1. This temperature sensor can be a PT1000 or PT100 thin-film platinum resistance element.

[0060] Accordingly, the main control unit is also configured to receive the data collected by the temperature sensing unit 7 and perform temperature compensation on the dielectric constant of the oil.

[0061] In this embodiment, the mounting tube 1 is L-shaped, with its horizontal section passing through the fryer pot wall 8 and electrically connected to it; the insulating tube 2 is fitted onto the end of the vertical section of the mounting tube 1. Generally, the mounting tube 1 can be made of 316L stainless steel, and the insulating tube 2 is made of alumina (Al2O3) ceramic or zirconium oxide (ZrO2) ceramic, with a wall thickness of 1mm to 5mm. The mounting tube 1 passes through the fryer pot wall 8 and is electrically connected to the fryer pot wall 8 to form a reference ground. Specifically, the horizontal section of the mounting tube 1 passes through the side wall of the fryer, is fixed by a through-wall sealing nut, and is electrically connected (GND) to the pot wall. Generally, the horizontal section of the mounting tube 1 is about 50mm long, and its vertical section extends into the pot, with its end connected to the insulating tube 2.

[0062] In this embodiment, the length of the main electrode 3 covers the oil level detection range (e.g., 200 mm), forming a capacitive liquid level detection sensitive structure with the L-shaped mounting tube 1 or the pot wall. The reference electrode 4 is located below the main electrode 3 and is always immersed in the oil, being sensitive only to the dielectric constant.

[0063] In this embodiment, the data processing control module includes a capacitance detection unit and a main control unit, wherein the main electrode 3 and the reference electrode 4 are respectively connected to the first input terminal and the second input terminal of the capacitance detection unit;

[0064] In this embodiment, an active shielding layer 6 is provided on the outer surface of the insulating tube 2;

[0065] The corresponding capacitance detection unit is also configured to output a shielded drive signal to the active shielding layer 6 to eliminate parasitic capacitance and external electromagnetic interference.

[0066] In this embodiment, the capacitance detection module is configured to acquire data from the main electrode 3 and the reference electrode 4 and output the capacitance values ​​of the main electrode 3 and the reference electrode 4. This capacitance detection module typically uses a capacitance-to-digital converter, such as the FDC1004, with parameters generally selected as 16-bit resolution, 0.5fF detection accuracy, and 4 input channels. Channel CH0 is connected to the main electrode 3 to measure the capacitance related to the oil level; channel CH1 is connected to the reference electrode 4 to measure the capacitance related to the oil's dielectric constant; and channel SHIELD0 is connected to the insulating tube 2, i.e., the metallized shielding layer 6 on the outer surface of the ceramic tube, providing active shielding drive.

[0067] In this embodiment, the main control unit is configured to receive, process, and output the current oil level data from the capacitance values ​​of the main electrode 3 and the reference electrode 4. In this embodiment, the main control unit can be an STM32G030F6P6 microcontroller with a Cortex-M0+ core and a 64MHz clock frequency. It reads the capacitance value of the FDC1004 via I²C and the PT1000 / PT100 temperature signal via ADC, simultaneously performing dielectric constant temperature compensation and independent oil temperature output. This microcontroller can execute a dual-channel εr compensation algorithm and output the oil level and oil temperature data via UART / I²C / analog output.

[0068] In this embodiment, the sensor is used in conjunction with a junction box. The junction box is made of cast aluminum or ABS material and is fixed to the end of the horizontal section of the L-shaped mounting tube 1 on the outer wall of the pot. The junction box contains a data processing and control module and is connected to the main control board of the fryer.

[0069] In this embodiment, the main control unit is configured to receive, process, and output the current oil level data from the main electrode 3 and the reference electrode 4, specifically including:

[0070] The real-time capacitance value C_ref of the reference electrode 4 and the real-time capacitance value C_main of the main electrode 3 are collected by the capacitance detection module and substituted into the formula.

[0071] εr_oil=(C_ref-C_ref0) / (k_ref×L_ref)

[0072] Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length;

[0073] Substituting the current dielectric constant εr_oil of the oil into the capacitance-level relationship model of the main electrode 3

[0074] h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)]

[0075] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_ai is the air dielectric constant.

[0076] In this embodiment, the main control unit is also configured to perform power frequency interference suppression processing on the signal input from the received capacitance detection module, specifically including power frequency tracking, digital notch filtering, and moving average filtering processing performed sequentially.

[0077] The power frequency tracking process includes performing power frequency tracking on the output signal of the capacitor detection module to obtain a real-time estimate of the current power frequency fundamental frequency.

[0078] The digital notch filtering process includes constructing a digital notch filter based on the power frequency fundamental frequency f0, and performing at least one stage of power frequency notch filtering on the output signal of the capacitance detection module.

[0079] The moving average filtering process includes moving average calculation with a window length that is an integer multiple of the power frequency period T0 = 1 / f0, to further suppress residual power frequency components.

[0080] The power supply parameters provided by the oil level sensor in this embodiment are: DC 12-24V wide-range input, AMS1117-3.3LDO regulated to 3.3V, and front-end TVS (SMBJ12A) surge protection setting. The following further illustrates the specific working process of this sensor:

[0081] After the sensor is powered on, it enters the main loop and executes once every 10ms:

[0082] Read CH0 (main electrode capacitance C_main) and CH1 (reference electrode capacitance C_ref) of FDC1004 via I²C, and read the PT1000 / PT100 temperature value T_oil via ADC;

[0083] The collected capacitance signal is subjected to zero-crossing detection or adaptive phase-locked loop tracking to obtain a real-time estimate of the current power frequency fundamental frequency f0, which is used for subsequent adaptive adjustment of notch filter parameters.

[0084] Based on the current power frequency f0, a cascaded digital notch filter is constructed to sequentially process the signal with 50Hz fundamental notch, 150Hz third harmonic notch, and 250Hz fifth harmonic notch. Each notch filter adopts an infinite impulse response dual second-order structure, and its notch frequency is adaptively adjusted according to the power frequency tracking result.

[0085] For the signal after cascaded notch filtering, the window length L=f is an integer multiple of the power frequency period T0=1 / f0. s The moving average is calculated using ×T0×M, where M is a positive integer and f s The sampling rate is set to a window length that adaptively tracks the power frequency cycle to ensure that the power frequency components and their harmonics are completely canceled out during the averaging process.

[0086] The real-time dielectric constant εr_oil of the current oil product is calculated using the reference electrode capacitance C_ref;

[0087] εr_oil is corrected for temperature coefficient based on oil temperature T_oil;

[0088] Substitute εr_oil into the main electrode capacitance-oil level relationship model to calculate the current oil level height h and percentage;

[0089] Send data frames in the format 'OIL:xxx,TEMP:xxx,DIEL:x.xx' via UART, and simultaneously update the analog output and alarm output.

[0090] Further examples illustrate the specific processes involved in power frequency tracking, digital notch filtering, and moving average filtering:

[0091] Since the power grid frequency may fluctuate within a certain range (49.5Hz~50.5Hz), fixed-frequency notch filters may experience a decrease in suppression effectiveness due to frequency mismatch. This invention employs adaptive frequency tracking to ensure that the notch filter frequency is always aligned with the actual power frequency.

[0092] After low-pass pre-filtering the capacitor sampling sequence, the crossover time between the signal and zero level is detected, and the time interval Δt between adjacent zero-crossing points is calculated. Then, the current power frequency period T0 = 2 × Δt, and the frequency f0 = 1 / T0. The frequency estimate is updated every 10 complete periods, and a first-order low-pass filter is used for smoothing.

[0093] f0_avg[n]=α×f0_avg[n-1]+(1-α)×f0[n]

[0094] Where α is the smoothing factor, which is set to 0.85.

[0095] Taking the fundamental notch filter as an example, it adopts an infinite impulse response double second-order structure, and its transfer function is:

[0096] H(z) = [1 - 2cos(ω0)z] -1 +z -2 ] / [1-2r·cos(ω0)z -1 +r²z -2 ]

[0097] Where ω0 = 2πf0 / f s To normalize the notch angle frequency, f s is the sampling rate, and r is the notch filter bandwidth control factor.

[0098] For example, sampling rate f s =1000Hz, power frequency f0=50Hz:

[0099] Fundamental wave notch filter: ω0 = 2π × 50 / 1000 = 0.1π, take r = 0.95;

[0100] Third harmonic notch filter: ω3 = 2π × 150 / 1000 = 0.3π, take r = 0.92;

[0101] Fifth harmonic notch filter: ω5 = 2π × 250 / 1000 = 0.5π, take r = 0.92;

[0102] The cascade sequence is fundamental frequency first, then harmonic frequency. Each notch filter processes the signal sequentially, with the output of the previous stage serving as the input of the next. The cascade transfer function is the product of the transfer functions of each notch filter.

[0103] H_cascade(z)=H1(z)×H3(z)×H5(z)

[0104] When the frequency tracking module detects that the power frequency fluctuation exceeds ±0.2Hz, it automatically reduces the r value from 0.98 to 0.92 to widen the notch bandwidth and adapt to frequency changes; when the frequency stabilizes, it gradually restores r to 0.98 to improve the fidelity of useful signals.

[0105] The residual power frequency component in the signal after cascaded notch filtering has been significantly attenuated. To further improve the signal-to-noise ratio, a power frequency periodic moving average filter is used.

[0106] Window length L=f s ×T0×M, where: f s =1000Hz (sampling rate), T0=1 / f0 (current power frequency cycle, approximately 20ms), M=1~5 (cycle multiplier)

[0107] Moving average calculation formula:

[0108] y_avg[n]=(1 / L)×Σy[nk], k=0 to L-1

[0109] The parameter selection principle is that when a fast response is required (such as oil level change detection), M=1 and the response time is 20ms.

[0110] When it is necessary to suppress disturbances to the greatest extent (such as steady-state measurement), take M=3~5, and the response time is 60ms~100ms;

[0111] In this typical embodiment, the system defaults to M=3, achieving a balance between response speed and anti-interference capabilities.

[0112] The oil level sensor in this embodiment typically undergoes two calibrations before leaving the factory:

[0113] First, record C_air_ref and C_air_main in the dry, empty pot state and store them in Flash; then, after injecting known oil to the full oil level and heating to the working temperature, record C_oil_ref and C_oil_main, calculate the geometric coefficients based on the known full oil level height, and store them in Flash.

[0114] Generally, once calibrated, the sensor does not require repeated calibration during normal use, as the dual-electrode compensation algorithm automatically adapts to oil aging and replacement.

[0115] The technical parameters of the oil level sensor in this embodiment are generally as follows:

[0116] Operating temperature -20℃~+200℃, detection range customizable, resolution <0.5mm, accuracy ±1%FS, response time <100ms, power supply voltage DC12-24V, power consumption <0.5W, food contact material 316 stainless steel + Al2O3 ceramic.

[0117] Example 2

[0118] This embodiment provides a method for detecting the oil level in a deep fryer, using the sensor described in Embodiment 1, and includes the following steps:

[0119] The main electrode capacitance signal C_main, the reference electrode capacitance C_ref, and the oil temperature value T_oil were collected respectively.

[0120] The collected capacitance signal is subjected to zero-crossing detection or adaptive phase-locked loop tracking to obtain a real-time estimate of the current power frequency fundamental frequency f0.

[0121] Based on the current power frequency f0, a cascaded digital notch filter is constructed to sequentially process the signal with 50Hz fundamental notch, 150Hz third harmonic notch and 250Hz fifth harmonic notch. Each notch filter adopts an infinite impulse response dual second-order structure, and its notch frequency is adaptively adjusted according to the power frequency tracking result.

[0122] For the signal after cascaded notch filtering, the window length L=f is an integer multiple of the power frequency period T0=1 / f0. s The moving average is calculated using ×T0×M, where M is a positive integer and f s The sampling rate and window length adaptively track the changes in the power frequency cycle to ensure that the power frequency components and their harmonics are completely canceled out during the averaging process.

[0123] Substitute the processed reference electrode capacitance C_ref into the formula.

[0124] εr_oil=(C_ref-C_ref0) / (k_ref×L_ref)

[0125] Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length;

[0126] The dielectric constant εr_oil of the current oil product is corrected by a temperature coefficient based on the oil temperature T_oil;

[0127] Substituting the corrected current oil dielectric constant εr_oil into the capacitance-level relationship model of the main electrode

[0128] h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)]

[0129] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_air is the air dielectric constant.

[0130] Example 3

[0131] This embodiment provides an electronic device, including:

[0132] At least one processor; and

[0133] A memory communicatively connected to the at least one processor; wherein,

[0134] The memory stores instructions that can be executed by the at least one processor, which enables the at least one processor to perform the oil level detection method for a deep fryer as described in Embodiment 2.

[0135] Example 4

[0136] This embodiment provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the oil level detection method for a deep fryer as described in Embodiment 2.

[0137] Various implementations of the systems and techniques described in the above embodiments can be implemented in digital electronic circuit systems, integrated circuit systems, application-specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0138] These computational programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0139] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0140] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0141] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0142] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0143] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A dielectric constant self-compensating oil level sensor for a deep fryer, characterized in that, The system includes an installation and acquisition module and a data processing and control module for communication connection. The installation and acquisition module includes an installation tube and an insulating tube coaxially sleeved at one end of the installation tube. A main electrode and a reference electrode are sequentially sleeved inside the insulating tube, and an electrical isolation gasket is provided between the main electrode and the reference electrode. The data processing control module includes a capacitance detection unit and a main control unit, and the main electrode and the reference electrode are respectively connected to the first input terminal and the second input terminal of the capacitance detection unit. The capacitance detection module is configured to collect data from the main electrode and the reference electrode and output the capacitance values ​​of the main electrode and the reference electrode. The main control unit is configured to receive the main electrode capacitance value and the reference electrode capacitance value, process them, and output the current oil level data.

2. The dielectric constant self-compensating oil level sensor for a deep fryer according to claim 1, characterized in that, An active shielding layer is provided on the outer surface of the insulating tube; The capacitance detection unit is also configured to output a shielded drive signal to the active shielding layer to eliminate parasitic capacitance and external electromagnetic interference.

3. The dielectric constant self-compensating oil level sensor for a deep fryer according to claim 1, characterized in that, The mounting tube and the insulating tube are made of metal materials, the insulating tube is made of high dielectric constant ceramic material, and the electrical isolation gasket is made of polytetrafluoroethylene material; The mounting tube is inserted through the wall of the fryer pot and is electrically connected to the wall of the fryer pot to form a reference ground.

4. The dielectric constant self-compensating oil level sensor for a fryer according to claim 3, characterized in that, The mounting tube is L-shaped, and its horizontal section passes through the wall of the fryer pot and is electrically connected to each other. The insulating tube is fitted onto the end of the vertical section of the mounting tube.

5. The dielectric constant self-compensating oil level sensor for a fryer according to claim 1, characterized in that, It also includes a temperature sensing unit attached to the bottom of the insulating tube or mounted on the outside of the tube. The main control unit is also configured to receive the data collected by the temperature sensing unit and perform temperature compensation on the dielectric constant of the oil.

6. The dielectric constant self-compensating oil level sensor for a fryer according to claim 1, characterized in that, The main control unit is configured to receive, process, and output the current oil level data from the main electrode capacitance value and the reference electrode capacitance value, specifically including: The real-time capacitance value C_ref of the reference electrode and the real-time capacitance value C_main of the main electrode are collected by the capacitance detection module and substituted into the formula. εr_oil=(C_ref-C_ref0) / (k_ref×L_ref) Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length; Substituting the current dielectric constant εr_oil of the oil into the capacitance-level relationship model of the main electrode h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_air is the air dielectric constant.

7. A dielectric constant self-compensating oil level sensor for a fryer according to claim 6, characterized in that, The main control unit is also configured to perform power frequency interference suppression processing on the signal input from the received capacitance detection module, specifically including sequential power frequency tracking, digital notch filtering, and moving average filtering. The power frequency tracking process includes performing power frequency tracking on the output signal of the capacitor detection module to obtain a real-time estimate of the current power frequency fundamental frequency. The digital notch filtering process includes constructing a digital notch filter based on the power frequency fundamental frequency f0, and performing at least one stage of power frequency notch filtering on the output signal of the capacitance detection module. The moving average filtering process includes moving average calculation with a window length that is an integer multiple of the power frequency period T0 = 1 / f0, to further suppress residual power frequency components.

8. A method for detecting the oil level in a deep fryer, characterized in that, Using the sensor as described in any one of claims 1 to 8, the method includes the following steps: The main electrode capacitance signal C_main, the reference electrode capacitance C_ref, and the oil temperature value T_oil were collected respectively. The collected capacitance signal is subjected to zero-crossing detection or adaptive phase-locked loop tracking to obtain a real-time estimate of the current power frequency fundamental frequency f0. Based on the current power frequency f0, a cascaded digital notch filter is constructed to sequentially process the signal with 50Hz fundamental notch, 150Hz third harmonic notch and 250Hz fifth harmonic notch. Each notch filter adopts an infinite impulse response dual second-order structure, and its notch frequency is adaptively adjusted according to the power frequency tracking result. The signal processed by the cascade notch filter is sliding average calculated with the window length L=f s ×T0×M, where M is a positive integer, f s is the sampling rate, and the window length adaptively tracks the variation of the power frequency cycle to ensure that the power frequency component and its harmonics are completely cancelled in the average process. Substitute the processed reference electrode capacitance C_ref into the formula. εr_oil=(C_ref-C_ref0) / (k_ref×L_ref) Calculate and output the current oil dielectric constant εr_oil, where C_ref0 is the air-oil reference capacitance, k_ref is the reference electrode sensitivity per unit length, and L_ref is the reference electrode length; The dielectric constant εr_oil of the current oil is corrected by a temperature coefficient based on the oil temperature T_oil; Substituting the corrected current oil dielectric constant εr_oil into the capacitance-level relationship model of the main electrode h=[C_main-C_main0-k_main×εr_air×L_main] / [k_main×(εr_oil-εr_air)] Calculate and output the current oil level height h, where C_main0 is the air-oil reference capacitance, k_main is the sensitivity per unit length of the main electrode, L_main is the length of the main electrode, and εr_air is the air dielectric constant.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the oil level detection method for a deep fryer as described in claim 8.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to execute the oil level detection method for a deep fryer as described in claim 9.