An intelligent control faucet and a faucet body
Through multi-parameter coupling optimization of environmental interference suppression, gesture recognition, electromagnetic hysteresis compensation and residual magnetic elimination modules, the problems of low recognition accuracy and control stability of intelligent control faucets in complex environments are solved, and the intelligent control effect with high accuracy and high frequency is achieved.
Patent Information
- Application Number
- CN202510593432.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-05-09
AI Technical Summary
The existing intelligent control faucet has low gesture recognition accuracy in complex environments, insufficient electromagnetic hysteresis compensation, and residual magnetic interference affects control stability, making it difficult to adapt to the needs of high-precision and high-frequency intelligent control.
The environmental interference suppression module, gesture recognition processing module, electromagnetic hysteresis compensation module and residual magnetization elimination control module are adopted to dynamically adjust infrared compensation by integrating ambient light intensity and hand position information, and combining gesture trajectory waveform and dynamic response characteristics to compensate electromagnetic hysteresis in real time, designing a reverse pulse sequence to eliminate residual magnetism interference, and implementing multi-parameter coupling optimization control.
It improves the recognition stability and recognition accuracy under complex lighting, enhances the system's sensitivity and control stability, improves response efficiency, and achieves the improvement of multi-dimensional recognition accuracy and control stability.
Smart Images

Figure CN120143714B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solenoid valves, and in particular to an intelligent control faucet and a faucet body. Background Art
[0002] The technical field of solenoid valves includes devices that use electromagnetic force to control fluid flow and related technologies. The core content of this field involves the design of electromagnetic coils and valve body structures, and the movement of the valve core is driven by the on / off of the current to achieve the on / off or flow regulation of the fluid. At the system level, it covers electromagnetic drive mechanisms, sealing components, control circuits, and the linkage with other automation devices, and is widely used in the precise control of fluid media in industrial automation, household appliances, and public facilities.
[0003] Among them, an intelligent control faucet refers to a device that realizes automatic water flow adjustment based on solenoid valve drive technology combined with induction devices. The technical matters targeted by this theme cover the coordination of solenoid valve opening and closing control and water flow induction signals. Specifically, according to the solenoid valve drive device in the classification number F16K31 / 04, an infrared sensor is used to identify user gestures, a pressure sensor is used to detect the water flow state, and the opening and closing degree of the solenoid valve is adjusted based on a preset logic timing control unit, so as to complete the automatic management of the start and stop of the water flow and the size of the flow rate.
[0004] The prior art only relies on a single sensor for induction during infrared recognition and performs recognition by setting thresholds, lacking the ability of dynamic perception and compensation for environmental interference, and is prone to false triggering or induction failure in scenes with strong light irradiation and complex reflections, restricting the adaptation range of the use scenario. In the process of action recognition, trajectory consistency and dynamic response analysis are not introduced, resulting in problems such as fuzzy matching and misclassification during gesture recognition, reducing the system recognition accuracy. For electromagnetic hysteresis compensation, only a compensation threshold is set through a static model, and the real-time current change and valve core movement data are not combined, and the hysteresis non-linearity problems caused by different loads or temperature changes cannot be effectively addressed, affecting the valve core positioning accuracy and control stability. At the same time, in the aspect of residual magnetic interference processing, traditional solutions usually ignore the magnetic flux decay behavior at the moment of current cut-off and do not establish a reverse control mechanism for residual magnetism, resulting in the accumulation of initial errors in the device during continuous start-stop operations, and long-term affecting the repeated positioning accuracy and response consistency of the control system. The above problems are particularly obvious in high-precision and high-frequency control scenarios, restricting its application expansion ability in complex intelligent control occasions. Summary of the Invention
[0005] The purpose of the present invention is to solve the disadvantages existing in the prior art, and to propose an intelligent control faucet and a faucet body.
[0006] In order to achieve the above purpose, the present invention adopts the following technical solutions: An intelligent control faucet and a faucet body include:
[0007] The faucet is equipped with a control system, and the system includes:
[0008] The environmental interference suppression module integrates an ambient light sensor at the front end of the infrared emitter, real-time detects the interference intensity in the same band as the infrared signal, compares it with the preset reflection intensity reference, and dynamically adjusts the compensation ratio in combination with the hand position data obtained by the distance sensor to generate an infrared anti-interference calibration quantity;
[0009] The gesture recognition and processing module regulates the infrared drive current based on the infrared anti-interference calibration quantity, extracts the gesture motion trajectory through the reflection intensity waveform, analyzes the action consistency in combination with the dynamic response relationship, and generates the matching degree of the gesture trajectory;
[0010] The electromagnetic hysteresis compensation module sets a compensation sensitivity threshold according to the matching degree of the gesture trajectory, synchronously collects the instantaneous value of the drive current and the valve core displacement, compares the deviation between the theoretical displacement and the measured displacement, and performs dynamic compensation in combination with the coil temperature data to generate a hysteresis compensation adjustment quantity;
[0011] The multi-parameter coupling optimization module calls the hysteresis compensation adjustment quantity, fuses the coil temperature data, drive voltage fluctuation value, valve core acceleration data, and residual magnetism intensity data for multi-physical field collaborative operation, verifies the control stability by adjusting the pulse width modulation fundamental frequency and injecting a reverse demagnetization pulse sequence, and generates a collaborative optimization control reference value.
[0012] As a further solution of the present invention, the infrared anti-interference calibration quantity includes an interference intensity determination value, a compensation ratio coefficient, and a hand position mapping parameter; the matching degree of the gesture trajectory includes a trajectory matching degree, an action consistency index, and a dynamic response eigenvalue; the hysteresis compensation adjustment quantity includes a displacement deviation quantity, a temperature compensation coefficient, and a current response correction factor; the collaborative optimization control reference value includes a modulation fundamental frequency reference value, a reverse pulse sequence parameter, and a multi-physical field coupling factor.
[0013] As a further solution of the present invention, the environmental interference suppression module includes:
[0014] The interference monitoring sub-module obtains the light intensity data in the same band of the integrated ambient light sensor, calls the background light intensity value when the infrared emitter emits, compares the intensity difference between the interference signal and the background light, and judges the interference amplitude in combination with the light intensity reading value when the infrared signal is emitted to generate an infrared interference intensity coefficient;
[0015] The reflection reference determination sub-module, based on the infrared interference intensity coefficient, calls the reflection intensity reference value, collects the echo intensity of the current infrared reflection signal, and judges whether the deviation between the current echo intensity and the reference value exceeds the set threshold to obtain an infrared reflection offset value;
[0016] The compensation and calibration sub-module calls the spatial coordinate information of the hand position according to the infrared reflection offset value, identifies the change trend of the reflection offset at different positions, and adjusts the infrared compensation output power ratio according to the change trend to generate an infrared anti-interference calibration quantity.
[0017] As a further solution of the present invention, the gesture recognition and processing module includes:
[0018] The infrared regulation sub-module constructs an interference offset amplitude based on the infrared anti-interference calibration quantity, obtains the interference source intensity value and the original infrared reflection value, calls the interference offset amplitude and the original infrared reflection value to construct a drive current regulation coefficient, combines the calibration quantity reference interval to screen the reference interval value set, and generates a drive current regulation coefficient interval;
[0019] The trajectory extraction sub-module obtains the infrared emission pulse waveform intensity according to the drive current regulation coefficient interval, analyzes the time intensity point sequence of the reflection signal, constructs a trajectory time intensity curve, extracts the intensity change relationship between adjacent time nodes, and obtains a gesture path offset sequence;
[0020] The motion analysis sub-module extracts a trajectory change rate group value based on the gesture path offset sequence, screens the response consistent group value with reference to the dynamic response change rate reference group value, extracts the interval corresponding relationship between the offset amplitude and the path fitting offset threshold, and generates the coincidence degree of the gesture trajectory.
[0021] As a further solution of the present invention, the electromagnetic hysteresis compensation module includes:
[0022] The sensitivity setting sub-module obtains the coincidence degree of the gesture trajectory, matches the sensitivity adjustment coefficient according to the reliability, combines the adjustment coefficient and the set reference value to judge the sensitivity state, screens the compensation sensitivity threshold interval according to the state value, and generates a compensation sensitivity threshold;
[0023] The deviation calculation sub-module calls the compensation sensitivity threshold, collects the instantaneous drive current value and the spool displacement, matches the theoretical displacement value corresponding to the current drive current, analyzes the offset trend by combining the difference between the theoretical and measured displacements, determines the offset interval with reference to the change of the previous period offset value, and generates a deviation dynamic prediction analysis result;
[0024] The dynamic compensation sub-module calls the deviation dynamic prediction analysis result and the coil temperature data, adjusts the compensation gain according to the temperature interval, screens the adjustment value by matching the sensitivity threshold, determines the compensation range under dynamic conditions, and generates a hysteresis compensation adjustment quantity.
[0025] As a further solution of the present invention, the specific calculation formula for judging the sensitivity state by combining the adjustment coefficient and the set reference value is:
[0026] ;
[0027] Among them, represents the sensitivity state adjustment index value, represents the action reliability coefficient, represents the th sensitivity adjustment coefficient data, represents the th sensitivity reference value data, is the total amount of adjustment coefficient data, is the selected value in the th set reference value, is the average interference offset data within the corresponding time window for the th item, is the combined quantity of the reference value and the interference offset pair.
[0028] As a further solution of the present invention, the multi-parameter coupling optimization module includes:
[0029] The temperature-electricity offset adjustment sub-module obtains the hysteresis compensation adjustment amount, calls the coil temperature data and the driving voltage fluctuation value, determines the offset interval according to the offset situation of the temperature change rate and the voltage fluctuation amplitude, matches the set offset reference value and corrects the corresponding interval, and generates a temperature-electricity offset adjustment value;
[0030] The data fusion sub-module, based on the temperature-electricity offset adjustment value, calls the spool acceleration data and the remanence intensity data, constructs a collaborative structure according to the parameter trend matching relationship, forms parameter associations and performs induction processing to obtain a dynamic offset collaboration amount;
[0031] The frequency sequence control sub-module adjusts the timing structure of the injected reverse demagnetization pulse sequence according to the dynamic offset collaboration amount, performs comparison and screening in combination with the current pulse width modulation fundamental frequency, selects the regulation interval according to the waveform offset amplitude, and obtains a collaborative optimization control reference value.
[0032] As a further solution of the present invention, the specific calculation formula for selecting the regulation interval according to the waveform offset amplitude is:
[0033] ;
[0034] Among them, represents the dynamic offset regulation characteristic value, represents the total number of waveform sampling points participating, represents the th absolute pulse offset of the waveform sampling point, which is obtained from the offset amplitude set pre-calibrated by the system, represents the th time displacement value corresponding to the sampling point, represents the th offset of the waveform relative to the modulation fundamental frequency at the sampling point, Represents the weight coefficient of the nth sampling point in the regulation interval matching.
[0035] As a further solution of the present invention, the system further includes:
[0036] The residual magnetism elimination control module analyzes the decay waveform when the drive current is cut off based on the collaborative optimization control reference value, extracts the residual magnetism decay rate and the zeroing time to generate a reverse pulse sequence, and outputs a residual magnetism elimination control instruction;
[0037] The residual magnetism elimination control instruction includes decay waveform recognition parameters, residual magnetism decay rate, and zeroing time threshold;
[0038] The residual magnetism elimination control module includes:
[0039] The cut-off feature acquisition sub-module obtains the current decay data when the drive current is disconnected based on the collaborative optimization control reference value, detects the current amplitude change trend, time series, and slope parameters, identifies the decay form according to the change trend and slope characteristics, and generates a decay slope change rate value;
[0040] The rate and time extraction sub-module extracts the decay amplitude range and zeroing time interval based on the decay slope change rate value, combines the rate reference to determine the trend change characteristics, and generates a residual magnetism zeroing rate value;
[0041] The reverse pulse generation sub-module matches the amplitude and direction characteristics in the reverse current template according to the residual magnetism zeroing rate value, selects a pulse combination section with a matching time interval, and obtains a residual magnetism elimination control instruction.
[0042] A faucet body contains the intelligent control faucet as described above, including a connecting frame, the surface of the connecting frame is fixedly installed with a faucet body, both sides of the faucet body are rotatably connected with adjusting blocks, the surface of the faucet body is provided with a water outlet, and the top surface of the faucet body is fixedly installed with a sensor.
[0043] Compared with the prior art, the advantages and positive effects of the present invention are as follows:
[0044] In the present invention, by fusing the ambient light intensity and hand position information to dynamically adjust the infrared compensation ratio, the interference suppression ability is improved, the recognition stability under complex lighting is enhanced, the action consistency is extracted by combining the gesture trajectory waveform and dynamic response characteristics, the recognition accuracy is improved, the electromagnetic hysteresis is dynamically corrected based on the real-time current and displacement deviation combined with temperature factors to improve the action feedback accuracy, a stable control reference is constructed by multi-parameter coupling and multi-physical field data fusion to enhance the system sensitivity, and the residual magnetism interference is effectively eliminated by capturing the current decay waveform and designing a reverse pulse sequence, realizing multi-dimensional improvement of recognition accuracy, control stability, and response efficiency. Brief Description of the Drawings
[0045] Figure 1 It is a system flowchart of the present invention;
[0046] Figure 2 It is a system block diagram of the present invention;
[0047] Figure 3 It is a schematic perspective view of a faucet body.
[0048] In the figure: 1, connecting frame; 2, faucet body; 3, adjusting block; 4, water outlet; 5, sensor. Detailed Embodiment
[0049] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0050] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be understood as a limitation to the present invention. In addition, in the description of the present invention, the meaning of "a plurality of" is two or more, unless otherwise specifically defined.
[0051] Please refer to Figure 1 , an intelligent control faucet includes:
[0052] The environmental interference suppression module integrates an ambient light sensor at the front end of the infrared emitter, real-time detects the interference intensity in the same wavelength band as the infrared signal, compares it with the preset reflection intensity reference, and dynamically adjusts the compensation ratio in combination with the hand position data obtained by the distance sensor to generate an infrared anti-interference calibration quantity;
[0053] The gesture recognition and processing module regulates the infrared drive current based on the infrared anti-interference calibration quantity, extracts the gesture movement trajectory through the reflection intensity waveform, analyzes the action consistency in combination with the dynamic response relationship, and generates the matching degree of the gesture trajectory;
[0054] The electromagnetic hysteresis compensation module sets a compensation sensitivity threshold according to the matching degree of the gesture trajectory, synchronously collects the instantaneous value of the drive current and the spool displacement, compares the deviation between the theoretical displacement and the measured displacement, and performs dynamic compensation in combination with the coil temperature data to generate a hysteresis compensation adjustment quantity;
[0055] The multi-parameter coupling optimization module calls the hysteresis compensation adjustment amount, integrates coil temperature data, drive voltage fluctuation values, spool acceleration data, and residual magnetic field strength data for multi-physical field collaborative operations, verifies control stability by adjusting the pulse width modulation fundamental frequency and injecting reverse demagnetization pulse sequences, and generates a collaborative optimization control reference value;
[0056] Based on the collaborative optimization control reference value, the residual magnetic field elimination control module captures the decay waveform characteristics at the moment when the drive current is cut off, extracts the residual magnetic field decay rate and the time required to return to zero to design a reverse pulse sequence, and generates a residual magnetic field elimination control instruction.
[0057] The infrared anti-interference calibration amount includes an interference intensity determination value, a compensation ratio coefficient, and a hand position mapping parameter. The coincidence degree of the gesture trajectory includes a trajectory matching degree, an action consistency index, and a dynamic response eigenvalue. The hysteresis compensation adjustment amount includes a displacement deviation amount, a temperature compensation coefficient, and a current response correction factor. The collaborative optimization control reference value includes a modulation fundamental frequency reference value, a reverse pulse sequence parameter, and a multi-physical field coupling factor. The residual magnetic field elimination control instruction includes a decay waveform recognition parameter, a residual magnetic field decay rate, and a zeroing time threshold.
[0058] Please refer to Figure 2 , the environmental interference suppression module includes:
[0059] The interference monitoring sub-module obtains the same-band light intensity data of the integrated environmental light sensor, calls the background light intensity value when the infrared emitter emits, compares the intensity difference between the interference signal and the background light, and combines the light intensity reading value when the infrared signal is emitted to judge the interference amplitude, generating an infrared interference intensity coefficient;
[0060] After the interference monitoring sub-module obtains the same-band light intensity data of the integrated environmental light sensor, it first identifies the infrared emission band corresponding to the light intensity data, collects the background light intensity value as a reference benchmark when the infrared emitter is not turned on, then activates the infrared emitter and continuously records the signal intensity of the infrared receiving channel during its emission period, compares the difference between this signal intensity and the background light intensity benchmark to construct the intensity value of the interference signal, then calls the light intensity reading data when the infrared is emitted, compares it with the aforementioned interference signal intensity, and determines whether the intensity difference between the two reaches the set interference determination interval to identify the size of the interference amplitude. The determination logic sets a threshold based on a specific ratio of the infrared reading value, and divides the interference level accordingly. For example, when the infrared reading value is at a medium level, the corresponding threshold is set as a certain percentage of this value as the determination baseline. During the light intensity acquisition process, a short-period acquisition operation needs to be performed in combination with the high-speed sampling module to ensure the time continuity of the data. Throughout the process, the interference signal is correlated and compared with the reference intensity, thereby outputting the intensity index of the infrared interference in the current environment and generating an infrared interference intensity coefficient.
[0061] The reflection reference determination submodule calls the reflection intensity reference value based on the infrared interference intensity coefficient, collects the echo intensity of the current infrared reflection signal, determines whether the deviation between the current echo intensity and the reference value exceeds the set threshold, and obtains the infrared reflection offset value;
[0062] The reflection reference determination submodule uses the infrared interference intensity coefficient as a reference to retrieve the preset reflection intensity reference value, then collects the echo intensity sequence of the infrared reflection signal in the target scene, reads the signal intensity in the sequence point by point, and makes an error judgment on the intensity deviation between each signal point and the reference value. The echo data is offset identified by setting the deviation threshold interval. In this process, the reference value is determined by averaging the echo samples collected under the standard hand movement posture, which represents the average reflection intensity level under the condition of minimum interference. The deviation threshold set in the error judgment is set to a certain proportion interval according to the reference value. When the collected echo intensity data deviates significantly from the interval, it is identified as an offset abnormality. After continuously judging multiple points, the number of abnormalities is counted. If the abnormal points account for more than the set proportion of the total number of sampling points, it is considered that the current infrared signal echo has deviated from the normal range, thereby obtaining the infrared reflection offset value.
[0063] The compensation calibration submodule calls the spatial coordinate information of the hand position according to the infrared reflection offset value, identifies the change trend of the reflection offset under the different positions, adjusts the infrared compensation output power ratio according to the change trend, and generates the infrared anti-interference calibration value;
[0064] The compensation calibration submodule performs compensation adjustment according to the infrared reflection offset value, calls in the spatial coordinate information sequence of the current hand position, and identifies the reflection offset trend at different spatial positions by calculating the spatial distance between the current position and the preset reference posture. Then, the correspondence between different recorded spatial points and the offset intensity is called, and the change amplitude is extracted to identify the overall offset law. After identifying the regular characteristics, the corresponding power adjustment ratio is set according to the offset trend of each spatial point, and then the ratio is applied in the infrared transmission power output to dynamically adjust the output power so that the compensation power keeps a synchronous relationship with the offset change. In this process, the linear gain method is used to control the compensation ratio. When the change amplitude is in the middle range, it is set to the standard proportional amplification. Combined with the historical feedback echo intensity, the output range is further fine-tuned to finally complete a complete adjustment compensation, and the infrared anti-interference calibration amount is generated accordingly.
[0065] See also Figure 2 , the gesture recognition processing module includes:
[0066] The infrared regulation sub-module constructs the interference offset amplitude based on the infrared anti-interference calibration quantity, obtains the interference source intensity value and the original infrared reflection value, calls the interference offset amplitude and the original infrared reflection value to construct the drive current regulation coefficient, combines the calibration quantity reference interval to screen the reference interval value set, and generates the drive current regulation coefficient interval;
[0067] When the infrared regulation sub-module constructs the interference offset amplitude based on the infrared anti-interference calibration quantity, it is first necessary to set the corresponding calibration parameter categories according to different lighting conditions, such as outdoor sunlight, indoor multi-source lighting, background heat source interference, etc., and collect the change intervals of the original infrared reflection values in each scenario. For the heat source interference scenario, collect the radiation power value of the reflection area in the interference state through an infrared sensor, and establish the interference offset amplitude in combination with the infrared reflection voltage difference in the normal state. Then collect the radiation power of the interference source and the original infrared reflection voltage value, construct a proportional relationship between the two to express the linkage trend between the current change and the interference intensity, and then obtain the drive current change tendency under different interference degrees. Based on the interference offset amplitude and the original infrared reflection value, construct the regulation coefficient range. By setting the reference interval of the infrared anti-interference calibration quantity, for example, setting the drive current fluctuation range between 0.95 and 1.15 amperes as the control standard, exclude all values of the regulation coefficient that are not within this range, so as to screen out the data set that still maintains reflection stability under the influence of real interference, construct the regulation coefficient set that meets the calibration conditions, and finally generate the drive current regulation coefficient interval.
[0068] The trajectory extraction sub-module obtains the infrared emission pulse waveform intensity according to the drive current regulation coefficient interval, analyzes the time intensity point sequence of the reflection signal, constructs the trajectory time intensity curve, extracts the intensity change relationship between adjacent time nodes, and obtains the gesture path offset amount sequence;
[0069] The trajectory extraction sub-module generates the infrared emission pulse waveform intensity according to the drive current regulation coefficient interval. By setting different regulation coefficient values corresponding to a group of infrared emission voltages, multiple signal output intensity templates are formed. Collect the reflection waveforms of the corresponding pulse signals, and extract the change point sequence of the reflection signal intensity within the standard time interval. Sort and organize the signal amplitudes at each time node, extract the intensity change difference between every two adjacent time nodes, and construct a curve model reflecting the relationship between time and signal amplitude change in this way. Form a complete trajectory time intensity curve in the entire time series, and then judge the offset trend of the reflection trajectory according to the continuous intensity change direction between the point sequences. If the reflection signal continuously rises or falls within a certain period of time, it means that there is spatial movement in this section of the trajectory. Further extract the change relationships in all time periods, establish the movement modes in different directions, summarize the change structure of the trajectory points in the space plane, and integrate to obtain a two-dimensional path sequence mapped by the signal differences between multiple time nodes, and finally form the gesture path offset amount sequence.
[0070] The motion analysis sub-module extracts the trajectory change rate group values based on the gesture path offset sequence, screens the response consistent group values with reference to the dynamic response change rate reference group values, extracts the interval correspondence between the offset amplitude and the path fitting offset threshold, and generates the coincidence degree of the gesture trajectory;
[0071] After receiving the gesture path offset sequence, the motion analysis sub-module divides all continuous trajectory change segments in the offset path into equal time intervals, calculates the proportional relationship between the path length of the trajectory movement and the time used for each segment to obtain the trajectory change rate of each segment, and then compares the obtained trajectory change rate sequence with the preset dynamic response change rate reference value set one by one. The preset reference set delimits the threshold range according to the response time standard. For example, when the path offset change rate should be in the medium-speed reaction interval, the change rate values within this interval need to meet the delimited amplitude range. Only the data segments where all change rates meet this range are retained, and the corresponding relationship between the offset amplitude corresponding to these response consistent paths and the preset path fitting offset threshold is extracted. If the offset amplitude of a certain path segment is within the allowable interval range, it is included in the path group that conforms to the trajectory structure. All data paths that meet the dual conditions of response rate and offset amplitude in all groups are finally classified into the reliable trajectory set for outputting a quantitative expression representing the action response consistency, that is, the coincidence degree of the gesture trajectory.
[0072] Please refer to Figure 2 , the electromagnetic hysteresis compensation module includes:
[0073] The sensitivity setting sub-module obtains the coincidence degree of the gesture trajectory, matches the sensitivity adjustment coefficient according to the reliability level, combines the adjustment coefficient with the set reference value to judge the sensitivity state, and filters the compensation sensitivity threshold interval according to the state value to generate the compensation sensitivity threshold;
[0074] The specific calculation formula for judging the sensitivity state by combining the adjustment coefficient with the set reference value is:
[0075] ;
[0076] Among them, represents the sensitivity state adjustment index value, represents the action reliability coefficient, represents the th sensitivity adjustment coefficient data item, represents the th sensitivity reference value data item, is the total amount of adjustment coefficient data, is the selected value in the th set reference value, is the th average interference offset data within the corresponding time window, The number of combinations of the reference value and the interference offset pair;
[0077] Coefficient of action reliability Through the determination confidence calculation of the optical flow method recognition result in the gesture recognition system, the credibility is quantitatively scored according to the stability of the inter-frame velocity vector during recognition, and the scoring range is from 0 to 1. In the current detection, the recognition confidence is evaluated as 0.82; adjustment coefficient Is the trigger sensitivity coefficient fed back by the system in each gesture response, calculated based on the fluctuation amplitude of the sensor voltage output. The three groups of sampled data are 0.78, 0.81, and 0.79; reference value From the sensitivity standard value set before debugging, set as the average value of the three groups, 0.80; number of parameters , obtained from three independent measurement data;
[0078] In the reference value combination Set as the mean square response result after curve fitting of the system sensitivity. The current three groups of values are 0.80, 0.77, and 0.79; interference offset data Collected through the time-averaged offset of the infrared offset value in the heat source interference test. The current three groups of values are 0.04, 0.03, and 0.05, number of combinations ;
[0079] Perform piecewise operations on each item of the formula. First, calculate the numerator part:
[0080] ;
[0081] Multiply by the coefficient of action reliability:
[0082] ;
[0083] Divide by the number of samples:
[0084] ;
[0085] Then calculate the square root part:
[0086] ;
[0087] Take the square root after averaging:
[0088] ;
[0089] Take the absolute value of the difference between the results of the two parts:
[0090] ;
[0091] The result shows that the current sensitivity state adjustment index value is 0.81727. This value is used to determine whether the current sensitivity state deviates from the set reference range and serves as the basis for screening the compensation sensitivity threshold interval in the follow-up. The larger this value is, the higher the deviation degree of the current state from the reference. The derivation process between parameters can verify whether the sensitivity deviation is jointly caused by reliability or environmental interference. This index value is used to enter the next step of judging the compensation threshold distribution.
[0092] The deviation calculation sub-module calls the compensation sensitivity threshold, collects the instantaneous value of the driving current and the valve core displacement, corresponds the current driving current to the theoretical displacement value, analyzes the deviation trend by combining the difference between the theoretical and measured displacements, determines the deviation interval according to the change of the previous period deviation value, and generates the dynamic prediction analysis result of the deviation.
[0093] The deviation calculation sub-module calls the compensation sensitivity threshold generated in the previous step, collects the instantaneous value of the driving current and the corresponding valve core displacement at the current time point. Suppose the driving current reading at a certain moment is 2.4 amperes, and the measured valve core displacement value is 3.8 millimeters. According to the mapping relationship between the driving current and displacement in the system, the theoretical displacement corresponding to 2.4 amperes of current is 4.0 millimeters. Thus, the deviation value is obtained by comparing the difference between the measured value and the theoretical value, and then the deviation change trend is judged. The deviation at the current moment is compared with the deviation at the previous recorded moment. For example, if the deviation at the previous moment is 0.1 millimeter and the current deviation is 0.2 millimeter, it can be determined that the deviation trend is increasing. The current deviation change level is judged according to the deviation growth rate. If the increase amplitude meets the conditions of the fast deviation characteristic defined by the system, that is, the deviation increment exceeds a certain threshold within the specified time, it is determined that the current deviation is in the fast interval, and the dynamic prediction analysis result of the deviation is generated accordingly.
[0094] The dynamic compensation sub-module calls the dynamic prediction analysis result of the deviation and the coil temperature data, adjusts the compensation gain according to the temperature interval, matches the sensitivity threshold screening and adjustment value, determines the compensation range under dynamic conditions, and generates the hysteresis compensation adjustment amount.
[0095] The dynamic compensation sub-module calls the dynamic prediction analysis result of the deviation formed in the previous stage and the current collected coil temperature data, analyzes whether the current deviation state belongs to the fast deviation level, and reads the coil temperature value measured by the temperature sensor. If the current temperature record is 60 degrees Celsius, referring to the set temperature interval division standard, 60 degrees Celsius falls within the middle temperature interval. The compensation gain corresponding to the medium temperature state is set to 1.2 according to the empirical parameter library. Subsequently, the compensation sensitivity threshold interval generated in the sensitivity regulation stage is called. This interval is set between 0.3 and 0.5. The basic compensation value is extracted as 0.4 according to the median of the interval, and combined with the current gain value to determine the dynamic compensation adjustment value. This compensation value is mapped to the interval boundary under the numerical regulation rule to form a compensation range suitable for the temperature and deviation level conditions, and finally the hysteresis compensation adjustment amount is generated accordingly.
[0096] Please refer to Figure 2 , the multi-parameter coupling optimization module includes:
[0097] The temperature-electricity offset adjustment sub-module obtains the hysteresis compensation adjustment amount, calls the coil temperature data and the driving voltage fluctuation value, determines the offset interval according to the offset situation of the temperature change rate and the voltage fluctuation amplitude, matches the set offset reference value and corrects the corresponding interval, and generates a temperature-electricity offset adjustment value;
[0098] The temperature-electricity offset adjustment sub-module operates based on the hysteresis compensation adjustment amount. The hysteresis compensation adjustment amount is derived from the magnetic flux change characteristics in the demagnetization curve. The coil temperature data and the driving voltage fluctuation value are synchronously collected by the temperature control unit and the voltage monitoring module respectively within an interval of 0.1 second. During the process of the temperature change lasting from 65 degrees Celsius to 72 degrees Celsius, the recorded voltage change range is ±3.5 volts. The temperature change rate is extracted based on the change speed of the temperature data combined with the time series information. If the temperature change rate continuously remains above 1.6 degrees Celsius per second and the voltage fluctuation amplitude reaches above 3.2 volts at the same time, it is determined that there is a response offset phenomenon in the current sampling section. The time series index is extracted in the corresponding section and the hysteresis offset reference table is called. The reference value of the offset is set to 1.2 amperes under the above parameter conditions in this reference table. The adjustment is performed by the difference correction method between the average hysteresis response value and the reference value in the current section, and the temperature-electricity offset adjustment value is output. In a certain data, the adjustment value is 1.15 amperes, and this value is used for the amplitude calibration process in the subsequent reverse pulse design.
[0099] The data fusion sub-module, based on the temperature-electricity offset adjustment value, calls the spool valve acceleration data and the residual magnetic intensity data, constructs a collaborative structure according to the parameter trend matching relationship, forms parameter associations and performs induction processing to obtain a dynamic offset collaboration amount;
[0100] The data fusion sub-module processes multiple signal parameters based on the temperature-electricity offset adjustment value. The spool valve acceleration is monitored in real time by the displacement sensing module, and the acceleration changes are recorded at a frequency of 50 times per second. The data range is concentrated between 0.10 and 0.40 meters per square second. The remanence intensity signal reads data at a frequency of 20 times per second by the magnetic induction element, and the reading range is 0.08 to 0.15 Tesla. After the three types of data are aligned by the time stamp, trend comparison is performed. The matching logic is as follows: when the temperature-electricity offset adjustment value is in the rising stage, and the acceleration and remanence data respectively show synchronous fluctuation behaviors, the fluctuation determination condition is that the data curve directions are the same and there are more than 5 sampling points coinciding, then it is determined that there is a signal synergy trend. Under the condition of meeting the synergy trend, the three types of signals are classified into the fusion processing interval. After the data in this interval is normalized and mapped to a unified numerical interval, the average trend curve is calculated according to the mapped value. Finally, the extracted data aggregation result is used as the dynamic offset synergy amount, and this value is 0.76 in the current sample for subsequent frequency sequence control strategy module to call.
[0101] The frequency sequence control sub-module adjusts the timing structure of the injected reverse demagnetization pulse sequence according to the dynamic offset synergy amount, performs comparison and screening in combination with the current pulse width modulation fundamental frequency, and selects the regulation interval according to the waveform offset amplitude to obtain the synergy optimization control reference value;
[0102] The specific calculation formula for selecting the regulation interval according to the waveform offset amplitude is:
[0103] ;
[0104] Among them, represents the dynamic offset regulation characteristic value, represents the total number of waveform sampling points participating, represents the th pulse offset absolute amount of the waveform sampling point, which is obtained from the offset amplitude set calibrated in advance by the system, represents the th time displacement value corresponding to the sampling point, represents the th offset of the waveform relative to the modulation fundamental frequency at the sampling point, represents the th weight coefficient of the sampling point in the regulation interval matching;
[0105] The parameter acquisition method is as follows:
[0106] The waveform offset absolute amount : Monitor the difference between the current reverse demagnetization pulse amplitude and the reference amplitude in the same frequency band in the historical standard pulse library through the infrared sensor module at a frequency of 10 kHz. After normalization processing, extract the current amplitude offset, and take its absolute value as the absolute offset amount. If the measured amplitude at a certain sampling point is 0.74 A and the corresponding reference amplitude is 0.58 A, then the absolute offset amount is A.
[0107] Time displacement value : The sampling time interval is determined by the system internal timer to be 0.2 ms. The absolute time sequence of each point relative to the starting sampling is obtained by cumulative addition of the sampling point sequence time. The time displacement of the first sampling point is ms.
[0108] Fundamental frequency offset : Perform Fourier transform on the pulse response within the 1 MHz sampling range through the spectrum monitoring module to obtain the frequency distribution, and then extract the amplitude difference between the current modulation frequency and the center fundamental frequency. If the reference frequency is 25 kHz and the current frequency monitoring value is 23.6 kHz, then kHz.
[0109] Weight coefficient : According to the setting of the regulation strategy priority, different response weights are set for different waveform regions, and the weight range is set from 0.5 to 1.0, where the sampling points close to the center modulation section are assigned high weights. For the first sampling point, its weight is , and this value is obtained from the empirical adjustment coefficient table and is dynamically calculated according to the historical response accuracy and matching rate scoring function.
[0110] Substitute the above values, and the calculation for the first sampling point is:
[0111] ;
[0112] During the calculation , after substitution:
[0113] ;
[0114] Assume that a total of 5 sampling points are collected, and the other 4 sampling points are respectively collected as: A, ms, kHz, ;
[0115] A, ms, kHz, ;
[0116] A, ms, kHz, ;
[0117] A, ms, kHz, ;
[0118] Calculate successively: The second item: ;
[0119] The third item: ;
[0120] The fourth item: ;
[0121] The fifth item: ;
[0122] Final calculation:
[0123] ;
[0124] This result shows that the dynamic offset regulation eigenvalue is 0.0893. This value reflects the average offset coordination level of the current pulse regulation sequence in the current sampling period in the frequency sequence control. This value will be directly used for the regulation interval selection strategy and used as a basic parameter to obtain the collaborative optimization control reference value.
[0125] Please refer to Figure 2 , the residual magnetism elimination control module includes:
[0126] Based on the collaborative optimization control reference value, the cut-off feature acquisition sub-module obtains the current decay data of the drive current at the moment of disconnection, detects the current amplitude change trend, time series and slope parameters, identifies the decay form according to the change trend and slope features, and generates the decay slope change rate value;
[0127] Based on the collaborative optimization control reference value, first, a data sequence with a total length of 50 milliseconds before and after the moment when the driving current is disconnected is extracted from the current control system. Sampling is carried out at intervals of 0.1 millisecond to obtain 500 pairs of current amplitudes and corresponding time points. Subsequently, the continuous change trend between these data points is detected. An initial change slope set is constructed based on the amplitude difference and time difference between two adjacent data points. By identifying slope segments with consistent continuous directions, it is judged whether there is a mutation phenomenon in this segment, and it is marked according to the standard value of the slope mutation amplitude set in the system. Then, the time information of each segment is called, and the sequence with continuously decreasing amplitude is extracted for further processing. A combination set of amplitude difference and time difference of the current decrease segment is established. Combining the overall change amplitude and rate of this set, multiple estimated values of the instantaneous change rate are generated. Secondary difference detection is carried out on the above rate changes to identify the mutation point sequence, and based on this, it is judged whether the current is in a rapid decay state under interference. If the change amplitude exceeds the preset change critical standard of the system and lasts for a certain duration, this sequence is confirmed as a non-linear rapid decay behavior. Then, based on the response weights of different data channels under the collaborative optimization control reference value, the rate change results from different data sources are weighted and superimposed. The coordination coefficient of each sensor feedback signal in the control unit is called to uniformly correct the final slope change result. Finally, a representative change rate eigenvalue is output as the identification basis to obtain the decay slope change rate value.
[0128] Based on the decay slope change rate value, the decay amplitude range and the zeroing time interval are extracted. Combining the rate reference, the trend change characteristics are determined, and the residual magnet zeroing rate value is generated.
[0129] Based on the decay slope change rate value, the associated decay amplitude interval is extracted. The current values and time points corresponding to the starting point and the ending point during the decline process of the current signal are identified, and the amplitude difference and the duration of this segment are constructed. On this basis, its zeroing rate level is estimated. This rate result is compared with the standard rate value set in the system to judge whether the gap is within the allowable error range. If it exceeds the allowable interval, it is marked as an abnormal trend. Subsequently, the original current sequence is subjected to numerical smoothing processing. By performing a weighted average operation on the amplitudes of multiple adjacent sampling points, the influence of mutation interference is eliminated. The smoothing result is used to reconstruct the trend sequence of the zeroing process. In this trend, the starting boundaries of the amplitude change segment and the time segment are re-identified, the overall amplitude change amplitude and the corresponding time span are re-estimated, the zeroing rate level is updated in combination with the results, and then it is judged whether it conforms to the general characteristics of the zeroing behavior according to the corrected trend stability. Finally, the reconstructed rate level is used as the new output to generate the residual magnet zeroing rate value.
[0130] The reverse pulse generation sub-module matches the amplitude and direction characteristics in the reverse current template according to the residual magnet zeroing rate value, selects the pulse combination segment with a matching time interval, and obtains the residual magnet elimination control instruction.
[0131] According to the residual magnetism zeroing rate value, call the preset reverse current template library in the system. This template library contains current pulse paragraphs with different directions and amplitude levels, and each paragraph is attached with corresponding time range information. After obtaining the current residual magnetism polarity, select a pulse template group with the opposite direction, and then match the amplitude and time period of all candidate template segments according to the residual magnetism zeroing rate value. Compare the zeroing rate with the change rate level of each template segment, and screen out the paragraphs with smaller deviations and retain them as the candidate set. Further, according to the expected zeroing duration, eliminate the pulse segments whose duration is significantly shorter than the zeroing time period. Then, count the matching degree of the remaining candidate segments in terms of time coverage, and preferentially select the paragraphs with a higher coverage ratio for combination. By comparing the amplitude continuity and time connection between the pulse segments, check for discontinuous or inconsistent direction paragraphs. After completing the splicing of the matching paragraphs, record the start and end times and amplitude levels of each pulse segment in sequence, and combine them to construct a complete control signal sequence, and finally output the residual magnetism elimination control instruction.
[0132] A faucet body, containing the intelligent control faucet as described above, includes a connecting frame 1. A faucet body 2 is fixedly installed on the surface of the connecting frame 1. Adjusting blocks 3 are rotatably connected to both sides of the faucet body 2. An outlet 4 is opened on the surface of the faucet body 2. A sensor 5 is fixedly installed on the top surface of the faucet body 2.
[0133] From a structural perspective, the sensor 5 is signal-connected to the intelligent control faucet, that is, signal-connected to the so-called intelligent control system, so as to achieve intelligent control.
[0134] The above is only the preferred embodiment of the present invention, and does not limit the present invention in other forms. Any person skilled in the art may use the technical content disclosed above to make changes or modifications into equivalent embodiments with equivalent changes and apply them to other fields. However, as long as it does not depart from the technical solution content of the present invention, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention still fall within the protection scope of the technical solution of the present invention.
Claims
1. An intelligent control faucet, characterized in that: The faucet is equipped with a control system, and the system includes: The environmental interference suppression module integrates an ambient light sensor at the front end of the infrared emitter, real-time detects the interference intensity in the same band as the infrared signal, compares with the preset reflection intensity reference, and dynamically adjusts the compensation ratio in combination with the hand position data obtained by the distance sensor to generate an infrared anti-interference calibration quantity; The gesture recognition and processing module regulates the infrared drive current based on the infrared anti-interference calibration quantity, extracts the gesture motion trajectory through the reflection intensity waveform, analyzes the action consistency in combination with the dynamic response relationship, and generates the matching degree of the gesture trajectory; The electromagnetic hysteresis compensation module sets the compensation sensitivity threshold according to the matching degree of the gesture trajectory, synchronously collects the instantaneous value of the drive current and the spool displacement, compares the deviation between the theoretical displacement and the measured displacement, and performs dynamic compensation in combination with the coil temperature data to generate a hysteresis compensation adjustment quantity; The multi-parameter coupling optimization module calls the hysteresis compensation adjustment quantity, fuses the coil temperature data, drive voltage fluctuation value, spool acceleration data, and residual magnetic intensity data for multi-physical field collaborative operation, verifies the control stability by adjusting the pulse width modulation fundamental frequency and injecting the reverse demagnetization pulse sequence, and generates a collaborative optimization control reference value.
2. The intelligent control faucet according to claim 1, wherein: The infrared anti-interference calibration quantity includes an interference intensity determination value, a compensation ratio coefficient, and a hand position mapping parameter. The matching degree of the gesture trajectory includes a trajectory matching degree, an action consistency index, and a dynamic response eigenvalue. The hysteresis compensation adjustment quantity includes a displacement deviation quantity, a temperature compensation coefficient, and a current response correction factor. The collaborative optimization control reference value includes a modulation fundamental frequency reference value, a reverse pulse sequence parameter, and a multi-physical field coupling factor.
3. The intelligent control faucet according to claim 1, wherein: The environmental interference suppression module includes: The interference monitoring sub-module obtains the light intensity data in the same band of the integrated ambient light sensor, calls the background light intensity value when the infrared emitter emits, compares the intensity difference between the interference signal and the background light, and judges the interference amplitude in combination with the light intensity reading value when the infrared signal is emitted to generate an infrared interference intensity coefficient; The reflection reference determination sub-module, based on the infrared interference intensity coefficient, calls the reflection intensity reference value, collects the echo intensity of the current infrared reflection signal, and judges whether the deviation between the current echo intensity and the reference value exceeds the set threshold to obtain an infrared reflection offset value; The compensation calibration sub-module, according to the infrared reflection offset value, calls the spatial coordinate information of the hand position, identifies the change trend of the reflection offset at different positions, and adjusts the infrared compensation output power ratio according to the change trend to generate an infrared anti-interference calibration quantity.
4. The intelligent control faucet according to claim 3, characterized in that: The gesture recognition and processing module includes: The infrared regulation sub-module constructs an interference offset amplitude based on the infrared anti-interference calibration quantity, obtains the interference source intensity value and the original infrared reflection value, calls the interference offset amplitude and the original infrared reflection value to construct a drive current regulation coefficient, and generates a drive current regulation coefficient interval by screening the reference interval value set in combination with the calibration quantity reference interval; The trajectory extraction sub-module obtains the infrared emission pulse waveform intensity according to the drive current regulation coefficient interval, analyzes the time intensity point sequence of the reflection signal, constructs a trajectory time intensity curve, and extracts the intensity change relationship between adjacent time nodes to obtain a gesture path offset quantity sequence; The motion analysis sub-module extracts the trajectory change rate group values based on the gesture path offset sequence, screens the response consistent group values with reference to the dynamic response change rate reference group values, extracts the interval correspondence relationship between the offset amplitude and the path fitting offset threshold, and generates the coincidence degree of the gesture trajectory.
5. The intelligent control faucet according to claim 4, wherein: The electromagnetic hysteresis compensation module includes: The sensitivity setting sub-module obtains the coincidence degree of the gesture trajectory, matches the sensitivity adjustment coefficient according to the reliability, determines the sensitivity state by combining the adjustment coefficient and the set reference value, screens the compensation sensitivity threshold interval according to the state value, and generates the compensation sensitivity threshold; The deviation calculation sub-module calls the compensation sensitivity threshold, collects the instantaneous value of the drive current and the spool displacement, matches the theoretical displacement value corresponding to the current drive current, analyzes the offset trend by combining the difference between the theoretical and measured displacements, determines the offset interval with reference to the change of the offset value in the previous period, and generates the offset dynamic prediction analysis result; The dynamic compensation sub-module calls the offset dynamic prediction analysis result and the coil temperature data, adjusts the compensation gain according to the temperature interval, screens the adjustment value by matching the sensitivity threshold, determines the compensation range under dynamic conditions, and generates the hysteresis compensation adjustment amount.
6. The intelligent control faucet according to claim 5, characterized in that: The specific calculation formula for determining the sensitivity state by combining the adjustment coefficient and the set reference value is: ; Among them, represents the sensitivity state adjustment index value, represents the action reliability coefficient, represents the th sensitivity adjustment coefficient data, represents the th sensitivity reference value data, is the total amount of adjustment coefficient data, is the selected value in the th set reference value, is the th average interference offset data within the corresponding time window, is the combined quantity of the reference value and the interference offset pair.
7. The intelligent control faucet according to claim 5, wherein: The multi-parameter coupling optimization module includes: The temperature-electricity offset adjustment sub-module obtains the hysteresis compensation adjustment amount, calls the coil temperature data and the drive voltage fluctuation value, determines the offset interval according to the offset conditions of the temperature change rate and the voltage fluctuation amplitude, matches the set offset reference value and corrects the corresponding interval, and generates the temperature-electricity offset adjustment value; The data fusion sub-module is based on the temperature-electricity offset adjustment value, calls the spool acceleration data and the remanence intensity data, constructs a collaborative structure according to the parameter trend matching relationship, forms parameter correlation and performs inductive processing, and obtains the dynamic offset collaboration amount; The frequency sequence control sub-module adjusts the timing structure of the injected reverse demagnetization pulse sequence according to the dynamic offset collaboration amount, performs comparison and screening in combination with the current pulse width modulation fundamental frequency, selects the control interval according to the waveform offset amplitude, and obtains the collaborative optimization control reference value.
8. The intelligent control faucet according to claim 7, characterized in that: The specific calculation formula for selecting the control interval according to the waveform offset amplitude is: ; Among them, represents the dynamic offset regulation eigenvalue, represents the total number of waveform sampling points involved, represents the absolute pulse offset of the th waveform sampling point, which is derived from the offset amplitude set pre-calibrated by the system, represents the time displacement value corresponding to the th sampling point, represents the offset of the waveform relative to the modulation fundamental frequency at the th sampling point, represents the weight coefficient of the th sampling point in the regulation interval matching.
9. The intelligent control faucet according to claim 1, wherein: The system further includes: The remanence elimination control module analyzes the decay waveform when the drive current is cut off based on the collaborative optimization control reference value, extracts the remanence decay rate and the zeroing time to generate a reverse pulse sequence, and outputs a remanence elimination control instruction; The remanence elimination control instruction includes decay waveform recognition parameters, remanence decay rate, zeroing time threshold; The remanence elimination control module includes: The cut-off feature acquisition sub-module obtains the current decay data of the drive current at the moment of disconnection based on the collaborative optimization control reference value, detects the change trend of the current amplitude, time series and slope parameters, identifies the decay form according to the change trend and slope characteristics, and generates the decay slope change rate value; The rate and time extraction sub-module extracts the decay amplitude range and the zeroing time interval based on the decay slope change rate value, determines the trend change characteristics by combining the rate reference, and generates the remanence zeroing rate value; The reverse pulse generation sub-module matches the amplitude and direction characteristics in the reverse current template according to the residual magnetism zeroing rate value, selects the pulse combination segment with a matching time interval, and obtains the residual magnetism elimination control instruction.
Citation Information
Patent Citations
Ultra-low frequency implementation method of magneto-electric intelligent digital vibration velocity sensor
CN105181119A
Micro-gesture recognition method using near-infrared sensor
CN111475030A