Wine cabinet control method
By monitoring the status of the wine cabinet door and the ambient temperature, and combining ultrasonic radar and time-domain analysis, the wine cabinet sensor control system has achieved accurate distance measurement and gradual brightness change in different environments. This solves the problems of distance measurement accuracy drift and false triggering in existing technologies, and improves energy efficiency and interactive experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-19
- Publication Date
- 2026-04-10
AI Technical Summary
Existing wine cabinet sensor control systems suffer from drifting ranging accuracy under different ambient temperatures, making it impossible to distinguish between valid users and non-target objects, resulting in false light triggering and low energy efficiency.
The power supply to the ultrasonic radar module is controlled by monitoring the physical connection status between the telescopic probe and the signal contact plate. Real-time temperature data is obtained from the ambient temperature sensor for sound velocity calibration. Time-domain analysis is used to determine the dwell conditions of obstacles, and pulse width modulation is used to control the gradual change in brightness of the lighting system.
It achieves accurate distance measurement under different ambient temperatures, distinguishes between valid users and non-target objects, avoids accidental triggering of lights, improves energy efficiency, and enhances the human-computer interaction experience.
Smart Images

Figure CN121842903A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent household appliance control, in particular to a wine cabinet control method. BACKGROUND
[0002] With the development of smart home technology, wine cabinets have evolved from simple constant-temperature storage devices to home display terminals with display functions. In order to improve user experience, modern high-end wine cabinets are usually equipped with induction lighting systems that can automatically turn on the lights inside the cabinet when a user approaches, allowing the user to observe the internal wine through the door glass without opening the door, thereby avoiding fluctuations in the temperature and humidity inside the cabinet caused by frequent door opening.
[0003] Existing wine cabinet induction control schemes usually use infrared pyroelectric sensors or basic ultrasonic modules for distance triggering. However, such technical solutions have certain limitations in actual application. In terms of detection logic, existing technologies simply rely on a single distance threshold for determination, i.e., as long as an object is detected within the sensing range or the distance is less than the set value, the lighting is directly triggered on. This processing method lacks deep analysis of the behavior characteristics of the detected target and cannot distinguish between valid users with the intention of observing and irrelevant targets that pass quickly. For example, when a family pet runs, a robotic vacuum cleaner passes, or a family member simply passes by the wine cabinet, it will trigger the existing induction system to malfunction, causing the lights to be frequently and invalidly turned on, resulting in energy waste and light pollution that interferes with the user's normal life.
[0004] In addition, in terms of hardware control and environmental adaptability, the propagation speed of ultrasonic waves in air is greatly affected by environmental temperature. Existing wine cabinet control systems often use fixed sound speed parameters for calculation, without fully considering the differences in different environmental temperature scenarios such as wine cellars, constant-temperature rooms, or ordinary living rooms, resulting in drift in distance measurement accuracy and affecting the consistency of induction sensitivity. At the same time, some systems do not power off the sensors when the door is open, which not only increases unnecessary static power consumption but also may produce false echo data due to the close-range obstruction of the user's opening operation, affecting the logic stability of the system. In addition, traditional lighting driving methods mostly use direct on-off control, and the step change in light brightness can easily cause glare discomfort to the human eye, lacking a good human-machine interaction experience. SUMMARY
[0005] To overcome the shortcomings of the prior art, the present application provides a wine cabinet control method that solves the problem of drift in distance measurement accuracy due to lack of temperature compensation, and the problem of light mis-triggering and low energy efficiency caused by the inability of a single distance determination logic to distinguish between valid user residence and non-target object interference in different use scenarios.
[0006] In order to achieve the above object, the present application is realized by the following technical solutions: a wine cabinet control method, comprising the following steps:
[0007] S1: monitoring the physical connection loop on-off state between the telescopic probe and the signal contact sheet, controlling the power supply loop on-off of the ultrasonic wave radar module and the switching state of the lighting system according to the physical connection loop on-off state;
[0008] S2: when the ultrasonic wave radar module is in the power supply working state, acquiring the real-time environmental temperature data collected by the environmental temperature sensor, and calculating the calibrated sound speed value in the current environment according to the real-time environmental temperature data;
[0009] S3: controlling the ultrasonic wave radar module to emit an ultrasonic wave beam and receive a reflected echo, recording the flight time of the ultrasonic wave signal, and calculating the real-time distance of the obstacle in the detection area in combination with the calibrated sound speed value;
[0010] S4: performing time domain analysis on the continuously acquired real-time distance to determine whether the obstacle meets the preset effective user residence condition; the effective user residence condition includes that the distance change amplitude of the obstacle is within a preset tolerance range and the continuous residence time exceeds a preset time threshold;
[0011] S5: when it is determined that the effective user residence condition is met, controlling the lighting system to perform a brightness gradual opening operation; when it is determined that the obstacle leaves the detection area, controlling the lighting system to perform an extinguishing operation.
[0012] Preferably, the S1 specifically comprises:
[0013] When it is monitored that the physical connection loop is in the on state, it is determined that the door body is in the closed state, the power supply loop of the ultrasonic wave radar module is closed, and the ultrasonic wave radar module enters the monitoring mode;
[0014] When it is monitored that the physical connection loop is in the off state, it is determined that the door body is in the open state, the power supply loop of the ultrasonic wave radar module is disconnected, and a control instruction is directly output to drive the lighting system to open at a constant brightness.
[0015] Preferably, in the S2, the calibrated sound speed value in the current environment specifically comprises:
[0016] A linear correction model is used to establish a functional relationship between the calibrated sound speed value and the real-time environmental temperature data;
[0017] The air sound speed constant at zero degrees Celsius under standard atmospheric pressure is added to the product of the correction coefficient of the sound speed changing with the temperature and the real-time environmental temperature data to obtain the calibrated sound speed value.
[0018] Preferably, in the S3, the calculating the real-time distance of the obstacle in the detection area specifically comprises:
[0019] multiplying the calibrated sound speed value by the time of flight to obtain a total round-trip distance of the ultrasonic wave signal;
[0020] dividing the total round-trip distance by two to obtain the real-time distance of the obstacle relative to the ultrasonic radar module.
[0021] Preferably, the S4 specifically comprises:
[0022] comparing the real-time distance with a preset sensing threshold value;
[0023] if the real-time distance is less than or equal to the preset sensing threshold value, starting a resident verification timer and locking the real-time distance at the current time as an initial reference distance;
[0024] during the running of the resident verification timer, continuously collecting subsequent real-time distances and calculating the displacement deviation absolute value of the subsequent real-time distance relative to the initial reference distance.
[0025] Preferably, judging whether the obstacle meets a preset valid user resident condition specifically comprises:
[0026] if the displacement deviation absolute value exceeds a preset displacement tolerance threshold value or the real-time distance is greater than the preset sensing threshold value before the cumulative timing duration of the resident verification timer reaches the preset time threshold value, determining that it is an environmental interference signal and resetting the resident verification timer;
[0027] if the displacement deviation absolute value always remains within the preset displacement tolerance threshold value range when the cumulative timing duration of the resident verification timer reaches the preset time threshold value, determining that it meets the valid user resident condition.
[0028] Preferably, the preset displacement tolerance threshold value is configured to cover the natural center of gravity swing amplitude when a human body stands, and is less than the distance change amplitude generated when a non-target object quickly crosses the detection area.
[0029] Preferably, in the S5, the controlling the lighting system to perform a brightness gradual increase opening operation specifically comprises:
[0030] outputting a pulse width modulation signal to drive the lighting system;
[0031] according to a preset brightness and duty cycle mapping table, gradually increasing the duty cycle of the pulse width modulation signal in a non-linear manner until a maximum working duty cycle is reached, so that the brightness of the lighting system presents an exponential rising trend.
[0032] Preferably, S5 further includes:
[0033] After the lighting system reaches the maximum duty cycle, if a signal from S4 indicating that the obstacle has left the detection area is received, a delay shutdown timer is started.
[0034] Within the preset delay duration of the delay shutdown timer, the duty cycle of the pulse width modulation signal is kept constant.
[0035] Preferably, in step S5, controlling the lighting system to perform an extinguishing operation specifically includes:
[0036] When the delay-off timer reaches the preset delay duration, the duty cycle of the pulse width modulation signal is gradually reduced to zero in a non-linear manner according to the brightness and duty cycle mapping table, so that the brightness of the lighting system exhibits an exponential decreasing trend.
[0037] In summary, this application includes at least one of the following beneficial technical effects:
[0038] 1. This invention achieves hardware-level linkage control between door opening and closing and ultrasonic radar power supply by monitoring the physical circuit state formed by the telescopic probe and the signal contact piece. When the door is detected to be open, the system physically cuts off the power supply to the radar module and directly forces the lighting to turn on. This avoids signal interference and misjudgment caused by the user's close-range limb movement when opening the door to get wine. On the other hand, it eliminates the static power consumption and heat accumulation of the radar module during non-monitoring periods, effectively extending the service life of the sensor.
[0039] 2. This invention introduces ambient temperature parameters to compensate for ultrasonic ranging models in real time, and establishes a dynamic correlation mechanism between sound speed and temperature. By collecting real-time ambient temperature data and correcting the sound wave propagation speed, the influence of medium density differences caused by ambient temperature changes on ranging accuracy is eliminated. This ensures that the system can obtain accurate target distance data whether the wine cabinet is placed in a low-temperature wine cellar or a normal-temperature living room, thus ensuring the benchmark stability of subsequent judgment logic.
[0040] 3. This invention employs an anti-interference recognition algorithm based on time-domain feature analysis, setting dual judgment conditions including displacement tolerance and dwell time. By analyzing the spatial stability of the target within a preset time window, it can accurately distinguish between users observing in a state of slight movement and interference sources such as pets or robot vacuum cleaners that quickly pass through the detection area. This effectively solves the problem that the single distance triggering method is susceptible to transient signal interference, ensuring that the lighting system only starts when a valid interaction intention is recognized. Attached Figure Description
[0041] Figure 1 This is a flowchart of the method in this application;
[0042] Figure 2 This is the system architecture diagram of this application;
[0043] Figure 3 This is a frontal perspective view of this application;
[0044] Figure 4 This is a side perspective view of this application;
[0045] Figure 5 This is a schematic diagram of the cabinet door unfolding as per this application;
[0046] Figure 6 for Figure 5 Enlarged view of point A in the middle. Detailed Implementation
[0047] Example:
[0048] Please see the appendix Figure 3 To be continued Figure 6 The wine cabinet in this embodiment includes a cabinet body and a door body.
[0049] The telescopic probe is installed on the lower edge of the door hinge side, and the signal contact piece is installed at the corresponding position below the door frame. When the door is closed, the telescopic probe is retracted under pressure, making contact with the signal contact piece and connecting the circuit; when the door is open, the telescopic probe extends and separates from the signal contact piece.
[0050] The ultrasonic radar module is installed in the air intake grille or kick plate area at the bottom of the wine cabinet, with the detection surface facing the front of the cabinet. This position avoids the door handle and viewing window area, and mainly detects the movement of the lower body, reducing false triggering caused by upper limb movements.
[0051] Please see the appendix Figure 1 This invention provides a wine cabinet control method, comprising the following steps:
[0052] S1: The main control module monitors the continuity of the physical connection circuit between the telescopic probe and the signal contact piece; when the physical connection circuit is in the conducting state, it determines that the door is in the closed state, and the main control module controls the ultrasonic radar module to power on and enter the monitoring mode; when the physical connection circuit is in the disconnected state, it determines that the door is in the open state, the main control module cuts off the power supply to the ultrasonic radar module, and outputs a command to control the lighting system to turn on.
[0053] S2: In monitoring mode, the main control module acquires real-time ambient temperature data collected by the ambient temperature sensor; based on the real-time ambient temperature data, the main control module calculates the calibrated sound velocity value under the current environment through the sound velocity-temperature correlation model, and establishes the ranging reference parameters under the current physical environment.
[0054] S3: The main control module controls the ultrasonic radar module to emit ultrasonic beams toward the detection area and receives the reflected echoes; the main control module records the flight time of the ultrasonic signal and, in combination with the calibrated sound velocity value obtained in step S2, calculates the real-time distance of the obstacle in the detection area relative to the wine cabinet system.
[0055] S4: The main control module performs high-order kinematic time-domain analysis on the real-time distance data continuously acquired in step S3; the main control module first performs background subtraction to filter out fixed environmental interference, and then calculates the radial moving velocity of the obstacle relative to the detection source and its rate of change; only when the obstacle is detected to have a negative velocity pointing towards the wine cabinet and a deceleration approach characteristic with the absolute value gradually decreasing is it determined to be a target with observation intention, and the dwell stability verification is initiated; if the target displacement remains within the tolerance range within the preset time window, it is determined to be a valid user dwell;
[0056] S5: When step S4 determines that a valid user is present, the main control module activates the distance-brightness coupling control mode; the main control module dynamically adjusts the PWM duty cycle of the lighting system according to the real-time distance of the obstacle using a preset inverse mapping function, so that the brightness of the light automatically increases as the user gets closer and automatically softens as the distance increases, realizing follow-up interactive lighting; when the obstacle is detected to leave the sensing area, the lighting system is controlled to perform nonlinear gradual dimming and extinguishing after maintaining a preset delay time.
[0057] In step S1, the main control module determines the opening and closing state of the door by monitoring the electrical characteristics of the physical connection circuit formed by the telescopic probe and the signal contact piece, and performs logical control on the power supply circuit of the ultrasonic radar module and the drive circuit of the lighting system accordingly.
[0058] Specifically, the telescopic probe is located on the lower part of the hinge side of the door, and its interior contains a spring-loaded reset component and conductive contacts. The signal contact piece is located on the corresponding position of the door frame within the housing and is electrically connected to the signal detection terminal of the main control module. The on / off state of the physical connection circuit directly maps to the mechanical position of the door. This detection process specifically includes the following steps:
[0059] Loop signal acquisition and status determination. The general-purpose input / output port of the main control module is configured in detection mode. This port is connected to the positive power supply via a pull-up resistor and then to the signal contact. When the door is open, the telescopic probe is physically separated from the signal contact, the physical connection loop is open, and the main control module detects a high-level signal, determining that the door is open. When the door is closed, the telescopic probe presses against the signal contact under the action of the elastic reset element, the physical connection loop is closed, pulling the detection port low to ground level, and the main control module detects a low-level signal, determining that the door is closed. The specific implementation of the above GPIO port configuration and level detection circuit is well known to those skilled in the art and will not be described in detail here.
[0060] Power supply strategy execution based on gate state. This step aims to address the issues of lifespan degradation and ineffective detection caused by prolonged power-on of ultrasonic sensors.
[0061] When the door is determined to be open, the main control module executes a lighting priority strategy. The main control module sends a disconnect command to the electronic switch unit connected to the power supply path of the ultrasonic radar module, physically cutting off the power supply to the ultrasonic radar module and causing it to completely stop working. Simultaneously, the main control module sends a forced-on command to the lighting system, driving the lights inside the cabinet to operate at a constant high brightness. This design utilizes the physical action of the door opening as an interrupt signal, avoiding data oscillations and misjudgments caused by the ultrasonic radar detecting very close movement of the user when opening the cabinet door, and also reducing system standby power consumption.
[0062] When the door is determined to be closed, the main control module executes the intelligent monitoring strategy. The main control module sends a closing command to the electronic switch unit, powering on the ultrasonic radar module. After power-on, the ultrasonic radar module performs a self-test and initialization procedure, loads the preset transmission frequency and gain parameters, and sends a ready signal back to the main control module. Upon receiving the ready signal, the main control module initiates the subsequent monitoring mode.
[0063] The electronic switching unit includes metal-oxide-semiconductor field-effect transistors or relays, which are connected in series between the DC power supply and the power input terminal of the ultrasonic radar module. By controlling the on / off state of the radar through hardware circuitry, rather than solely through software instructions to put the radar into sleep mode, the static power consumption of the sensor in a metastable state can be completely eliminated, and the aging of electronic components caused by heat buildup from prolonged power-on can be prevented.
[0064] In steps S2 and S3, the main control module executes an environmental parameter compensation algorithm. By establishing a dynamic sound velocity calculation model, it eliminates the impact of changes in medium propagation velocity caused by environmental temperature differences on ranging accuracy. This process specifically includes the following steps:
[0065] Ambient temperature data acquisition and preprocessing. The main control module reads the real-time temperature signal output by the ambient temperature sensor through the communication interface. The ambient temperature sensor is located on the surface of the cabinet outside the air inlet grille or the rear heat dissipation area.
[0066] To ensure that the temperature data at this location accurately reflects the ambient temperature of the external space, this embodiment employs a thermal insulation and active airflow sampling design in its installation structure. Specifically, the ambient temperature sensor is not directly attached to the metal wall of the wine cabinet, but is suspended and fixed in the inner gap of the air inlet grille via an insulated bracket made of a low thermal conductivity material (such as ABS plastic or rubber).
[0067] The technical basis for this placement is as follows: when the wine cabinet is in cooling or standby ventilation mode, the bottom cooling fan creates a negative pressure area at the air inlet, drawing in ambient air through forced convection. The ambient temperature sensor, positioned along the main path of this airflow, can preferentially sense the temperature of the flowing fresh outside air. Simultaneously, the aforementioned insulation bracket physically cuts off the heat conduction path from the interior of the cabinet through the metal casing to the sensor, and the sensor maintains a preset safe distance (e.g., greater than 30 cm) from high heat sources such as the compressor. This "suspended insulation + airflow sampling" structural design eliminates the coupling interference between conductive and radiative heat from the cabinet, ensuring that the collected data represents the ambient temperature of the external space where the wine cabinet is located, rather than the internal cooling temperature or the temperature of localized hot spots generated by the compressor operation.
[0068] The main control module performs digital filtering on the acquired raw temperature signal to remove high-frequency noise interference, obtaining a stable real-time ambient temperature value, denoted as . The hardware selection of the temperature sensor and the specific implementation of the analog-to-digital conversion circuit are well-known technologies to those skilled in the art, and will not be elaborated here.
[0069] A sound velocity-temperature correlation model is constructed, and the calibrated sound velocity is calculated. The main control module's internal memory contains a pre-installed air sound velocity correction algorithm. Since the propagation speed of ultrasound in a gaseous medium is positively correlated with the medium's thermodynamic temperature, the main control module uses real-time ambient temperature values... The calibrated sound velocity value under the current physical environment is calculated using a linear approximation model. .
[0070] Calibrate sound velocity value The calculation logic satisfies the following mathematical relationship: the air speed constant at 0 degrees Celsius under standard atmospheric pressure is used as the reference velocity. The value is set to 331.4 m / s; the correction factor β for the speed of sound changing with temperature is set to 0.607 m / (s·°C). The main control module will display the real-time ambient temperature value. Multiply by the correction factor β, and then multiply the product by the reference speed. Add them together to obtain the calibrated sound velocity value. This calculation process is not limited to linear models. When computational resources permit, the main control module can also employ a higher-order polynomial model that includes humidity parameters for more refined compensation. Through this step, the system can automatically adapt to different usage scenarios such as constant-temperature wine cellars, ordinary living rooms, or high-temperature environments, ensuring the consistency of the ranging benchmark.
[0071] Ultrasonic time-of-flight measurement. The main control module sends a trigger command to the ultrasonic radar module, driving the ultrasonic probe to emit a pulse beam of the original frequency towards the detection area. Simultaneously, the main control module starts its internal high-precision hardware timer. When the receiver of the ultrasonic radar module detects that the amplitude of the reflected echo signal exceeds a preset noise threshold level, an interrupt signal is generated to stop the timer. The main control module reads the timer's count value to obtain the round-trip flight time of the ultrasonic signal from transmission to reception, which is recorded as... .
[0072] Real-time physical distance calculation. The main control module calculates the distance based on the acquired calibrated sound velocity value. With the acquired flight time Calculate the real-time distance of the obstacle relative to the detection source. The specific calculation logic is as follows: The calibrated sound velocity value... With flight time Multiplying the results gives the total round-trip distance of the ultrasound waves. Dividing this total distance by 2 gives the real-time distance in one direction. The main control module will calculate the real-time distance. The data is stored in the data buffer and used as the input data source for subsequent behavioral feature recognition logic.
[0073] In order to ensure the accuracy of the detection results and eliminate non-target interference during step S3, this embodiment strictly defines the physical space and filters the logical signals of the "detection area".
[0074] Specifically, the ultrasonic radar module is embedded in the outer surface of the top frame or the side frame of the handle of the door. The pointing axes of its ultrasonic transmitting and receiving probes are perpendicular to the plane of the door and face the free space outside the wine cabinet. Physically, the rear end of the mounting slot for the ultrasonic radar module is equipped with sound-absorbing damping material, and the front end of the probe is designed with a directional acoustic waveguide. This physical design confines the main lobe of the ultrasonic beam within a hemispherical or conical space directly in front of the wine cabinet, completely blocking the leakage of ultrasonic waves into the internal cavity of the wine cabinet from the physical propagation path, thus physically excluding fixed objects such as wine racks, bottles, and partitions inside the wine cabinet from the detection area.
[0075] In terms of logic parameter settings, the main control module defines an effective detection sector. This effective detection sector consists of a horizontal detection angle, a vertical detection angle, and an effective distance range. The horizontal detection angle is set to cover the range of human shoulder width (e.g., 30 to 45 degrees to the left and right), while the vertical detection angle is limited to avoid interference from ground reflection waves (e.g., a downward tilt angle of less than 60 degrees).
[0076] More importantly, the main control module uses time-of-flight distance gating technology to define the logical detection area when processing the echo signal. The main control module has a preset minimum blind zone threshold and a maximum background threshold.
[0077] After the main control module receives the reflected echo and calculates the original distance data, it first performs a spatial validity check. For signals with a calculated distance less than the minimum blind zone threshold, the system determines that they are dust obstructing the probe surface or near-field noise and filters them out. For signals with a distance greater than the maximum background threshold, the system determines that they are activity on a distant background wall or in a non-interactive area and ignores them as well. Only signals falling within the closed interval between the minimum blind zone threshold and the maximum background threshold are recognized as valid obstacle echoes from within the "detection area". By combining physical pointing limitation with logical distance gating, this invention clearly defines the user interaction space located outside the wine cabinet door as the detection area, effectively solving the technical problem of abnormal constant lighting caused by misdetection of objects inside the wine cabinet.
[0078] In step S4, the main control module performs time-domain analysis on the real-time distance data in the buffer queue. By constructing a dual-determination model that includes spatial displacement constraints and time dwell constraints, it distinguishes between valid users with the intention to linger and non-target objects that have passed through the detection area. This process specifically includes the following steps:
[0079] Environmental background filtering and trigger determination. The main control module first performs initial background learning on the detection environment, and then compares the real-time distance with the preset sensing threshold and background data.
[0080] To address the issue of fixed objects around the wine cabinet (such as adjacent furniture, decorative paintings, etc.) being mistakenly identified as valid users due to their long-term presence within the detection range, this embodiment introduces a static background suppression mechanism. In the initial stage (e.g., within the first 2 seconds) when step S1 determines that the door is closed and the system enters monitoring mode, the main control module marks the collected average distance data as "ambient background distance."
[0081] During subsequent monitoring, the main control module performs a "valid entry" check: only when the detected "real-time distance" is less than or equal to the preset sensing threshold (e.g., 1.0 meter), and the absolute value of the difference between the "real-time distance" and the "ambient background distance" exceeds the preset "background separation threshold" (e.g., 0.2 meter), does the main control module determine that a new target has entered the detection area.
[0082] If the real-time distance is less than the sensing threshold but the deviation from the ambient background distance is extremely small (i.e., within the background separation threshold range), the main control module treats it as a fixed environmental obstacle, does not trigger subsequent logic, and maintains a standby monitoring state. Only after the above "valid entry" conditions are met will the main control module start the dwell verification timer and lock the real-time distance acquired at the current moment as the initial reference distance.
[0083] Continuous sampling and spatial stability analysis. (Dwelling calibration timer) During the monitoring period after startup, the main control module continues to acquire the current real-time distance. And calculate its distance relative to the initial reference. The main control module determines whether the absolute value of the displacement deviation is within the preset displacement tolerance threshold. Within the range.
[0084] Displacement tolerance threshold The value is set based on the natural sway of the human body's center of gravity when standing, for example, 0.1 meters. The determination logic follows the mathematical relationship: Calculate the current real-time distance. Distance from initial reference The absolute value of the difference, if the absolute value is less than or equal to the displacement tolerance threshold. If the target is found to be in a spatially stable state, then the technical significance of this step is that when an effective user observes the wine cabinet, although their body may sway slightly, the overall distance change remains within a small range; while interference sources such as pets or robot vacuum cleaners typically move laterally across the detection area at a certain speed, and their distance relative to the probe will exhibit monotonous rapid changes or instantaneous jumps, thus exceeding the displacement tolerance threshold. Restrictions.
[0085] Dwell time verification and status output. The main control module continuously monitors whether the above spatial stability conditions are met and accumulates the duration for which the conditions are met. If, at any sampling time, the target's displacement deviation exceeds the displacement tolerance threshold... If the target signal is lost, the main control module determines that the current signal is transient interference and immediately resets the resident verification timer. And clear the initial reference distance No lighting action is triggered.
[0086] Only if the target continuously satisfies the spatial stability condition and the resident check timer remains Cumulative time Reaching the preset dwell time threshold Only then does the main control module confirm that the current target is a valid user retention. Retention time threshold. The system is configured to filter out the time required for a normal walking speed to pass through the detection area, for example, 0.8 seconds. Once a detection is established, the main control module outputs a valid trigger signal to the lighting control logic and locks the current state until the target leaves. Through the above logic, this embodiment achieves the filtering of specific biological behavioral characteristics at the algorithm level, avoiding false lighting caused by non-interactive behaviors such as pedestrians or pets running.
[0087] In step S5, the main control module drives the lighting system by modulating the duty cycle of the output electrical signal based on the output result of the front-end behavior recognition logic, thereby achieving a gradual brightness change effect that conforms to the visual adaptation characteristics of the human eye. This process specifically includes the following steps:
[0088] Pulse Width Modulation (PWM) Signal Generation and Gradual Brightness Control. When the behavioral feature recognition logic outputs a valid user dwell signal, the main control module activates its internal PWM generator. The main control module sets the frequency of the PWM signal to a value higher than the human eye's flicker fusion frequency, for example, above 1kHz, to avoid visual flicker. Subsequently, the main control module executes the gradual brightness logic, progressively increasing the duty cycle of the PWM signal from the initial 0% to the preset maximum operating duty cycle.
[0089] During this process, the rate of increase of the duty cycle is determined by a preset ramp-up time parameter. The main control module increases the duty cycle by a fixed step value in each PWM cycle or at fixed time intervals. This linear adjustment process causes the average current flowing through the LEDs in the lighting system to increase linearly with time, thus achieving a smooth transition of light brightness from off to full brightness, avoiding the glare discomfort caused by abrupt lighting changes. The specific topology of the PWM drive circuit is described below.
[0090] Status maintenance and departure delay determination. When the light brightness reaches the maximum operating duty cycle, if the main control module continues to detect a valid user presence signal, it maintains a constant PWM output duty cycle to keep the wine cabinet lit. When the main control module receives a target departure signal, i.e., the real-time distance is greater than the sensing threshold, it does not immediately turn off the lighting, but instead starts a delay shutdown timer.
[0091] Within the preset delay duration of the timer's shutdown, the main control module maintains the current lighting brightness unchanged. The purpose of this delay logic is twofold: firstly, to prevent light flickering caused by users briefly adjusting their position or being momentarily blocked during viewing; and secondly, to provide ambient lighting for users when they leave the wine cabinet, thus enhancing the interactive experience.
[0092] Brightness Dimming and Standby Reset. When the delay timer reaches its preset duration, the main control module executes the dimming logic. Following a preset descent slope, the main control module gradually reduces the duty cycle of the PWM signal from its current maximum operating duty cycle to 0%. When the duty cycle reaches 0%, the main control module stops outputting the PWM signal and disables the power enable of the lighting driver circuit, returning the system to a low-power standby monitoring state, awaiting the next gate status change or radar trigger signal.
Claims
1. A wine cabinet control method, characterized in that, Includes the following steps: S1: Monitor the on / off status of the physical connection circuit between the telescopic probe and the signal contact piece, and control the on / off status of the power supply circuit of the ultrasonic radar module and the switching status of the lighting system according to the on / off status of the physical connection circuit. S2: When the ultrasonic radar module is powered on, it acquires real-time ambient temperature data collected by the ambient temperature sensor and calculates the calibrated sound velocity value under the current environment based on the real-time ambient temperature data. S3: Control the ultrasonic radar module to emit ultrasonic beams and receive reflected echoes, record the flight time of ultrasonic signals, and calculate the real-time distance of obstacles in the detection area by combining the calibrated sound speed value; S4: Perform time-domain analysis on the continuously acquired real-time distances to determine whether the obstacles meet the preset effective user dwell conditions; the effective user dwell conditions include that the distance change of the obstacles is within a preset tolerance range and the continuous dwell time exceeds a preset time threshold. S5: When it is determined that the valid user stay conditions are met, control the lighting system to perform a gradual brightness turn-on operation; when it is determined that the obstacle leaves the detection area, control the lighting system to perform an turn-off operation.
2. The wine cabinet control method according to claim 1, characterized in that, S1 specifically includes: When the physical connection circuit is detected to be in a conductive state, it is determined that the door is in a closed state, and the power supply circuit of the ultrasonic radar module is controlled to close, so that the ultrasonic radar module enters the monitoring mode. When the physical connection circuit is detected to be disconnected, it is determined that the door is open, the power supply circuit of the ultrasonic radar module is disconnected, and a control command is directly output to drive the lighting system to turn on at a constant brightness.
3. The wine cabinet control method according to claim 1, characterized in that, In step S2, calculating the calibrated sound velocity value under the current environment specifically includes: A linear correction model is used to establish the functional relationship between the calibrated sound velocity value and the real-time ambient temperature data. The calibrated sound speed value is obtained by adding the constant of air speed at zero degrees Celsius under standard atmospheric pressure, the correction factor for the change of sound speed with temperature, and the product of the real-time ambient temperature data.
4. The wine cabinet control method according to claim 1, characterized in that, In step S3, calculating the real-time distance to obstacles within the detection area specifically includes: Multiplying the calibrated sound velocity value by the flight time yields the total round-trip distance of the ultrasonic signal. Divide the total round trip distance by two to obtain the real-time distance of the obstacle relative to the ultrasonic radar module.
5. The wine cabinet control method according to claim 1, characterized in that, S4 specifically includes: The real-time distance is compared with a preset sensing threshold; If the real-time distance is less than or equal to the preset sensing threshold, then the dwell verification timer is started, and the real-time distance at the current moment is locked as the initial reference distance; During the operation of the dwell timer, the subsequent real-time distances are continuously collected, and the absolute value of the displacement deviation of the subsequent real-time distances relative to the initial reference distance is calculated.
6. The wine cabinet control method according to claim 5, characterized in that, Determining whether the obstacle meets the preset valid user dwell conditions specifically includes: If the absolute value of the displacement deviation exceeds the preset displacement tolerance threshold, or the real-time distance is greater than the preset sensing threshold, before the cumulative timing duration of the dwell timer reaches the preset time threshold, it is determined to be an environmental interference signal, and the dwell timer is reset. If the absolute value of the displacement deviation remains within the preset displacement tolerance threshold range when the cumulative duration of the dwell verification timer reaches the preset time threshold, then it is determined that the valid user dwell condition is met.
7. The wine cabinet control method according to claim 6, characterized in that, The preset displacement tolerance threshold is configured to cover the natural center of gravity swing amplitude when a human is standing, and is less than the distance change amplitude caused when a non-target object rapidly crosses the detection area laterally.
8. The wine cabinet control method according to claim 1, characterized in that, In step S5, controlling the lighting system to perform a gradual brightness activation operation specifically includes: The output pulse width modulation signal drives the lighting system; According to the preset brightness and duty cycle mapping table, the duty cycle of the pulse width modulation signal is gradually increased in a non-linear manner until the maximum working duty cycle is reached, so that the brightness of the lighting system exhibits an exponential upward trend.
9. The wine cabinet control method according to claim 8, characterized in that, The S5 also includes: After the lighting system reaches the maximum duty cycle, if a signal from S4 indicating that the obstacle has left the detection area is received, a delay shutdown timer is started. Within the preset delay duration of the delay shutdown timer, the duty cycle of the pulse width modulation signal is kept constant.
10. The wine cabinet control method according to claim 9, characterized in that, In step S5, controlling the lighting system to perform an extinguishing operation specifically includes: When the delay-off timer reaches the preset delay duration, the duty cycle of the pulse width modulation signal is gradually reduced to zero in a non-linear manner according to the brightness and duty cycle mapping table, so that the brightness of the lighting system exhibits an exponential decreasing trend.