CN115696693A - Intelligent household appliance and light sensation control method, device and storage medium thereof - Google Patents

Intelligent household appliance and light sensation control method, device and storage medium thereof Download PDF

Info

Publication number
CN115696693A
CN115696693A CN202110839452.9A CN202110839452A CN115696693A CN 115696693 A CN115696693 A CN 115696693A CN 202110839452 A CN202110839452 A CN 202110839452A CN 115696693 A CN115696693 A CN 115696693A
Authority
CN
China
Prior art keywords
signal
photoelectric signal
photoelectric
frequency
intelligent household
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110839452.9A
Other languages
Chinese (zh)
Inventor
成卫松
李光强
刘畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Fotile Kitchen Ware Co Ltd
Original Assignee
Ningbo Fotile Kitchen Ware Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Fotile Kitchen Ware Co Ltd filed Critical Ningbo Fotile Kitchen Ware Co Ltd
Priority to CN202110839452.9A priority Critical patent/CN115696693A/en
Publication of CN115696693A publication Critical patent/CN115696693A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses an intelligent household appliance, a light sensation control method and device thereof, and a storage medium. The method is applied to intelligent household appliances, wherein the intelligent household appliances are provided with photosensitive assemblies, and the method comprises the following steps: acquiring a photoelectric signal acquired by the photosensitive component, wherein the photoelectric signal represents the ambient brightness; determining whether a strobe interference signal is included in the optoelectronic signal; in the case that the photoelectric signal is determined to contain a stroboscopic interference signal, filtering the stroboscopic interference signal from the photoelectric signal; and carrying out light sensing control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered. Because the photoelectric signal based on after filtering stroboscopic interference signal carries out light sense control to intelligent household electrical appliances to can avoid because of the intelligent household electrical appliances that the stroboscopic interference leads to are controlled frequently.

Description

Intelligent household appliance and light sensation control method, device and storage medium thereof
Technical Field
The invention relates to the technical field of intelligent household appliances, in particular to an intelligent household appliance, a light sensation control method and a light sensation control device of the intelligent household appliance and a storage medium of the intelligent household appliance.
Background
At present, most of intelligent household appliances have a light sensation control function, namely, the operation data of the intelligent household appliances are adjusted according to the ambient brightness, for example, the brightness of an illuminating lamp on the intelligent household appliance is adjusted. Among the prior art, the ambient brightness signal through photosensitive element collection directly carries out light sense control to intelligent household electrical appliances, because the stroboscopic problem of indoor lighting lamp causes the ambient brightness signal of collection to have stroboscopic interference signal, carries out light sense control based on the ambient brightness signal of direct collection, can make intelligent household electrical appliances frequently controlled, and user experience is not good on the one hand, and on the other hand can increase the energy consumption of intelligent household electrical appliances.
Disclosure of Invention
The invention provides an intelligent household appliance, a light sensation control method and a light sensation control device of the intelligent household appliance, and a storage medium of the intelligent household appliance, and aims to overcome the defects that in the prior art, a directly acquired ambient brightness signal is adopted for light sensation control, and the intelligent household appliance is frequently controlled due to stroboscopic interference signals existing in the acquired ambient brightness signal.
The invention solves the technical problems through the following technical scheme:
in a first aspect, a light sensation control method for an intelligent household appliance is provided, wherein a photosensitive assembly is arranged on the intelligent household appliance, and the light sensation control method comprises the following steps:
acquiring a photoelectric signal acquired by the photosensitive component, wherein the photoelectric signal represents the ambient brightness;
determining whether a strobe interference signal is included in the optoelectronic signal;
in the case that the photoelectric signal is determined to contain a stroboscopic interference signal, filtering the stroboscopic interference signal from the photoelectric signal;
and carrying out light sensing control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered.
Optionally, determining whether the photoelectric signal contains a strobe interference signal includes:
determining whether a preset waveform exists in the waveform of the photoelectric signal, wherein the preset waveform is determined according to the photovoltage waveform of the stroboscopic interference signal;
under the condition that the photoelectric signal is determined to have a preset waveform, determining that the photoelectric signal contains a stroboscopic interference signal;
determining that no strobe interference signal is included in the optoelectronic signal if it is determined that a preset waveform is not present in the optoelectronic signal.
Optionally, determining whether the photoelectric signal contains a strobe interference signal includes:
determining whether the photoelectric signal contains a fluctuation component of a preset frequency, wherein the preset frequency is determined according to the frequency of a stroboscopic interference signal;
under the condition that the photoelectric signal is determined to contain a fluctuation component of a preset frequency, determining that the photoelectric signal contains a stroboscopic interference signal;
and under the condition that the photoelectric signal is determined not to contain the fluctuation component of the preset frequency, determining that the photoelectric signal does not contain the stroboscopic interference signal.
Optionally, determining whether the photoelectric signal contains a fluctuation component of a preset frequency includes:
sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;
stopping timing under the condition that the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the intelligent household appliance includes a dc filter circuit and a zero-crossing detection circuit, the dc filter circuit is configured to filter a dc component in the photovoltaic signal and output the photovoltaic signal after the dc component is filtered to the zero-crossing detection circuit, and the zero-crossing detection circuit is configured to output a zero-crossing signal when it is detected that the amplitude of the photovoltaic signal after the dc component is filtered is zero;
determining whether the photoelectric signal contains a fluctuation component of a preset frequency, including:
starting timing under the condition of acquiring the zero-crossing signal;
stopping timing under the condition that the zero-crossing signal is collected again;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the photosensitive control is performed on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered, including:
sampling the photoelectric signal for multiple times at a target sampling frequency or a target sampling period; wherein the target sampling frequency is greater than twice the frequency of the stroboscopic interference signal, and the target sampling period is an odd multiple of half the period of the stroboscopic interference signal;
calculating an average value of sampling data obtained by multiple times of sampling, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered;
and carrying out light sensing control on the intelligent household appliance according to the average value.
Optionally, the smart appliance comprises a lighting lamp;
according to the filtering photoelectric signal after the stroboscopic interference signal is right intelligence household electrical appliances carry out light sense control, include:
and adjusting the brightness of the illuminating lamp according to the photoelectric signal after the stroboscopic interference signal is filtered.
Optionally, the photo-electric signal is a photo-voltage signal or a photo-current signal.
The second aspect provides a light sense controlling means of intelligence household electrical appliances, be equipped with photosensitive assembly on the intelligence household electrical appliances, light sense controlling means includes:
the acquisition module is used for acquiring photoelectric signals acquired by the photosensitive assembly, and the photoelectric signals represent ambient brightness;
a determining module, configured to determine whether a strobe interference signal is included in the photoelectric signal;
the filtering module is used for filtering the stroboscopic interference signal from the photoelectric signal under the condition that the stroboscopic interference signal is determined to be contained in the photoelectric signal;
and the control module is used for carrying out light sense control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered.
Optionally, the determining module is specifically configured to determine that a strobe interference signal is included in the photoelectric signal when it is determined that a preset waveform exists in the photoelectric signal; under the condition that the photoelectric signal is determined not to have the preset waveform, determining that the photoelectric signal does not contain a stroboscopic interference signal; the preset waveform is determined according to a photovoltage waveform of a strobe interference signal.
Optionally, the determining module is specifically configured to determine that the photoelectric signal includes a strobe interference signal when it is determined that the photoelectric signal includes a fluctuating component of a preset frequency; under the condition that the fluctuation component of the preset frequency is determined not to be contained in the photoelectric signal, determining that a stroboscopic interference signal is not contained in the photoelectric signal; the preset frequency is determined according to the frequency of the stroboscopic interference signal.
Optionally, when determining whether the photoelectric signal contains a fluctuating component of a preset frequency, the determining module is configured to:
sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;
stopping timing under the condition that the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the intelligent household appliance includes a dc filter circuit and a zero-crossing detection circuit, the dc filter circuit is configured to filter a dc component in the photovoltaic signal and output the photovoltaic signal after the dc component is filtered to the zero-crossing detection circuit, and the zero-crossing detection circuit is configured to output a zero-crossing signal when it is detected that the amplitude of the photovoltaic signal after the dc component is filtered is zero;
when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determining module is used for:
starting timing under the condition of acquiring the zero-crossing signal;
stopping timing under the condition of acquiring the zero-crossing signal again;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the control module comprises:
the sampling unit is used for sampling the photoelectric signal for multiple times at a target sampling frequency or a target sampling period; wherein the target sampling frequency is greater than twice the frequency of the stroboscopic interference signal, and the target sampling period is an odd multiple of half the period of the stroboscopic interference signal;
the calculating unit is used for calculating the average value of the sampling data obtained by multiple times of sampling, and the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered;
and the control unit is used for carrying out light sense control on the intelligent household appliance according to the average value.
Optionally, the smart appliance comprises a lighting lamp;
the control module is specifically used for adjusting the brightness of the illuminating lamp according to the photoelectric signal after the stroboscopic interference signal is filtered.
Optionally, the photo-electric signal is a photo-voltage signal or a photo-current signal.
In a third aspect, an intelligent household appliance is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the light sensation control method of the intelligent household appliance is implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the light sensing control method for an intelligent household appliance.
The positive progress effects of the invention are as follows: in the embodiment of the invention, the light sensation control is carried out on the intelligent household appliance based on the photoelectric signal after the stroboscopic interference signal is filtered, so that the intelligent household appliance can be prevented from being frequently controlled due to stroboscopic interference.
Drawings
Fig. 1 is a flowchart of a light sensation control method for an intelligent household appliance according to an exemplary embodiment of the present invention;
fig. 2a is a circuit diagram of a sampling circuit used in a light sensing control method for an intelligent household appliance according to an exemplary embodiment of the present invention;
fig. 2b is a circuit diagram of another sampling circuit adopted in the light sensation control method for an intelligent household appliance according to an exemplary embodiment of the present invention;
fig. 3a is a schematic diagram of a photoelectric signal collected by an intelligent appliance according to an exemplary embodiment of the present invention, where the photoelectric signal is superimposed with a fluctuation component;
fig. 3b is a schematic diagram of a waveform and sampling points of a strobe interference signal according to an exemplary embodiment of the present invention;
fig. 3c is a schematic diagram of waveforms and sampling points of another strobe interference signal provided in an exemplary embodiment of the present invention;
fig. 3d is a schematic diagram of a waveform and sampling points of another strobe interference signal according to an exemplary embodiment of the present invention;
fig. 4 is a block diagram of a light-sensing control device of an intelligent home appliance according to an exemplary embodiment of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
The interference of light source stroboscopic problem exists widely in the fluorescent lamp, LED (emitting diode) light and the indoor light such as the light of can adjusting luminance, consequently if indoor above-mentioned indoor light of having opened, at the in-process of using light sense control intelligence household electrical appliances, even if ambient brightness does not change, also can be because of the stroboscopic problem of indoor light, it is great to cause the sample value fluctuation of ambient brightness, the phenomenon of frequent control intelligence household electrical appliances appears, use the light of light sense control intelligence household electrical appliances as an example, the luminance that can make the light of intelligence household electrical appliances is frequently adjusted, the luminance is neglected and dim, user experience is not good on the one hand, on the other hand can increase the energy consumption of intelligence household electrical appliances.
Based on the above problems, an embodiment of the present invention provides a light sensing control method for an intelligent household appliance, and fig. 1 is a flowchart of the light sensing control method for an intelligent household appliance according to an exemplary embodiment of the present invention, where the method is applied to an intelligent household appliance, and specifically, the following steps may be executed by a controller of the intelligent household appliance, photosensitive assemblies are deployed on the intelligent household appliance, the number of the photosensitive assemblies may be 1 or more, and the number of the photosensitive assemblies in the embodiment of the present invention is not particularly limited. Referring to fig. 1, the method comprises the steps of:
step 101, acquiring a photoelectric signal acquired by a photosensitive assembly, wherein the photoelectric signal represents ambient brightness.
The photosensitive assembly comprises a photosensitive element and a sampling circuit and is used for collecting data (light current signals) of ambient brightness, and the photoelectric signals representing the ambient brightness can be light voltage signals or light current signals. The light sensitive element may be, but is not limited to, an ambient light sensor or a light sensitive sensor.
Fig. 2a is a circuit diagram of a sampling circuit adopted in the light sensing control method for an intelligent household appliance according to an exemplary embodiment of the present invention, where the sampling circuit includes a first resistor R1, a second resistor R2, and a capacitor C, one end of the first resistor R1 is connected to an output end of the photosensitive element U, one end of the second resistor R2, and one end of the capacitor C, the other end of the first resistor R1 and the other end of the capacitor C are both grounded, and the other end of the second resistor R2 is connected to a controller included in the intelligent household appliance.
The photosensitive element converts the ambient light signal into a photocurrent signal, the sampling circuit converts the photocurrent signal output by the photosensitive element U into a photovoltage signal and outputs the photovoltage signal to the controller, and the controller judges whether the photovoltage signal contains a double-frequency stroboscopic interference signal and executes the light sensation control operation of the intelligent household appliance.
Fig. 2b is a circuit diagram of another sampling circuit adopted in the light sensation control method for an intelligent household appliance according to an exemplary embodiment of the present invention, where the sampling circuit includes a first resistor R1 and an RC filtering branch 31, the RC filtering branch includes a third resistor R3 and a capacitor C, one end of the first resistor R1 is connected to an output end of the photosensitive element U and one end of the third resistor R3, respectively, the other end of the first resistor R1 is grounded, the other end of the third resistor R3 is connected to one end of the capacitor C and a controller included in the intelligent household appliance, and the other end of the capacitor C is grounded. The cutoff frequency of the RC filtering branch circuit needs to be larger than the stroboscopic frequency (for example, 120 Hz) of the known common indoor illuminating lamp, when the stroboscopic interference of the light source exists, particularly the stroboscopic interference of the light source brings the condition of great fluctuation, and after filtering, the stroboscopic interference of the light source can be effectively reduced. The size of the capacitor affects the response time of ambient light data changes, so the capacitor should not be selected to be too large.
For some indoor illuminating lamps with serious stroboflash, the amplitude value caused by the stroboflash can often reach more than half of the effective sampling value, the interference amplitude value caused by the stroboflash is very large, and when the deviation occurs due to the program running time difference at the sampling time point, the deviation error caused can bring fluctuation to the average value. In the embodiment of the invention, after data sampling, the fluctuation of the light voltage signal caused by light source stroboscopic can be effectively reduced through the filtering of the RC filtering branch circuit.
The Controller included in the intelligent appliance may be, but is not limited to, an MCU (micro Controller Unit), a PLC (Programmable Logic Controller), or an SOC (System on Chip).
Step 102, determining whether the photoelectric signal contains a strobe interference signal.
If the determination result in step 102 is yes, it indicates that the photoelectric signal includes a strobe interference signal, then step 103 is executed; if the determination result in the step 103 is yes, it indicates that the photoelectric signal does not include a strobe interference signal, then step 105 is performed, and the intelligent household appliance is subjected to light sensing control according to the collected photoelectric voltage signal.
The photoelectric signal formed by natural light is direct current, and the amplitude value of the photoelectric signal does not form periodic fluctuation, so that the collected photoelectric signal is approximately direct current stable voltage under the condition of no stroboscopic interference signal. And if indoor open exist the stroboscopic indoor light of light source, as shown in fig. 3a, can be because light source frequency scintillation problem stack a fluctuating component among the photoelectric signal that intelligent household electrical appliances gathered. From the detected waveform, it can be known that the frequency of the superimposed strobe interference signal is a sine wave or a cosine wave with a substantially fixed frequency and a substantially fixed amplitude.
In one embodiment, whether the strobe interference signal is included in the photoelectric signal is determined by measuring whether a preset waveform exists in the waveform of the photoelectric signal. The number of the preset waveforms may be one or more, and the preset waveforms are determined according to the optical voltage waveform of the strobe interference signal.
In one embodiment, according to the principle of indoor lighting lamps, for indoor lighting lamps such as fluorescent lamps and fluorescent lamps which are directly powered by alternating current, the brightness of the indoor lighting lamps reaches the maximum at the wave crest and the wave trough of a power grid, and the brightness of the indoor lighting lamps is the lowest near the zero point of the power grid, and the frequency of the change of the brightness of the light source of the indoor lighting lamps is about twice of the frequency of the power grid due to the fact that the voltage of the power grid is an alternating current sine waveform of 50Hz or 60 Hz.
For the LED indoor illuminating lamp powered by a resistance-capacitance voltage reduction mode, the stroboscopic interference problem is mainly caused by ripples on direct current output of a switching power supply, and after rectification and filtering, the frequency of stroboscopic interference signals is about twice of the frequency of a power grid.
Therefore, the stroboscopic problem of the light source of the indoor illuminating lamp is solved for the sampling data, namely the photoelectric signal, and the brought stroboscopic interference signal is a sine wave or a cosine wave with fixed frequency and amplitude. Whether the photoelectric signal collected by the photosensitive assembly has the stroboscopic interference signal can be determined by detecting whether the photoelectric signal contains the fluctuation component of the preset frequency. The predetermined frequency is determined according to the frequency of the strobe interference signal.
In one embodiment, when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the photoelectric signal is sampled for the first time, timing is started, then the photoelectric signal is continuously sampled, and timing is stopped when the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value. The photoelectric signal that the natural light formed is direct current quantity, and its amplitude can not form periodic fluctuation, and ambient brightness can not have big fluctuation in 1 second under normal condition, consequently under the condition of not having the stroboscopic interference, the amplitude of the photoelectric signal of collection is unchangeable basically, and the timing duration can be close to 0. Under the condition that the stroboscopic interference exists, the detected photoelectric signal also fluctuates periodically because the frequency flicker of the indoor illuminating lamp changes periodically, therefore, if the timing duration T is not 0, the timing duration T is determined to be 1/2 of the stroboscopic period T of the stroboscopic interference signal, the frequency f of the fluctuation component can be determined according to the timing duration T, f = 1/(2 × T) =1/T, and if the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value, the fluctuation component containing the preset frequency in the photoelectric signal is determined, and the existence of the light source stroboscopic interference can be determined. The preset frequency is determined according to the power grid frequency.
For example, assume that the amplitude of the photoelectric signal of the first sampling point is V 1 Sampling the photoelectric signal in real time, determining the amplitude V of the sampled photoelectric signal, comparing the sampled values V and V 1 When the value of the real-time sample is equal to or close to V 1 At time, | V 1 -V|<And Δ V, stopping timing.
Wherein, Δ V is an allowable deviation amount when determining the strobe period, and can be set according to actual requirements.
The first sample point may be at any position of the sinusoidal component period in the photoelectric signal, see fig. 3b, when the subsequent sample value V approaches V 1 When, V 1 And V is 1/2 of the period of the sinusoidal component.
Assuming that the grid frequency is 50Hz or 60Hz, that is, the preset frequency is 50Hz or 60Hz, and the period T of the measured fluctuation component is equal to or close to 100mS or 83mS or an integral multiple thereof, the frequency of the fluctuation component is considered to be 100Hz or 120Hz, which is twice the grid frequency, and it is determined that the photoelectric signal includes a strobe interference signal, and interference filtering processing needs to be performed on the strobe interference signal, step 103 is performed.
In one embodiment, where Δ V is set too small and the sampling frequency is large, as shown in FIG. 3c, sampled V may occur 1 And the timing time length T between V is T = M T 1 Or T = M T 2 Wherein, T 1 Or T 2 Respectively expressed as frequency of fluctuating component, e.g. T 1 And T 2 Is 1/2 of 50Hz and 60Hz period, i.e. 100mS and 83mS, if the measured timing time is T = M T 1 Or T = M T 2 If the relation is established, it is determined that the photoelectric signal includes a strobe interference signal, and interference filtering processing needs to be performed on the strobe interference signal, then step 103 is performed.
In one embodiment, according to V 1 The sampling points of =0 and V =0 determine the timing length. Specifically, when the frequency of the fluctuating component is determined, the frequency of the fluctuating component is determined by means of a direct current filter circuit and a zero-crossing detection circuit, wherein the photoelectric signal acquired by a sampling circuit is input into the direct current filter circuit to filter out a direct current component in the photoelectric signal, the output result of the direct current filter circuit is input into the zero-crossing detection circuit, the zero-crossing detection circuit is used for outputting a zero-crossing signal when detecting that the output result of the direct current filter circuit is 0, namely the amplitude of the photoelectric signal after the direct current component is filtered out is zero, timing is started after the zero-crossing signal is acquired, timing is stopped after the zero-crossing signal is acquired again, and the frequency of the fluctuating component is determined according to the timing duration. Determining the frequency of the fluctuating component and determining whether the frequency is contained or not according to the timing durationThe specific implementation of the glitch signal is similar to the above embodiments, and is not described herein again.
In any of the above embodiments, when determining the frequency of the fluctuation component, the photoelectric signal may be sampled for multiple times, and if a difference between the frequency of the fluctuation component that is calculated for multiple times and a preset frequency is smaller than a difference threshold, it is determined that the photoelectric signal includes the fluctuation component of the preset frequency, that is, a strobe interference signal.
Through multiple acquisition, the data fluctuation caused by the fact that the environment brightness fluctuates, the power supply voltage of the sensor fluctuates or objects around the daylight opening shake to cause shadows and the like can be eliminated, if the data fluctuation caused by the hand waving function fluctuates, the frequency of the data fluctuation caused by the interference is not fixed, and therefore the frequency of the random interference is prevented from being mistakenly identified as the stroboscopic interference in the stroboscopic interference detection process.
And 103, filtering the stroboscopic interference signal from the photoelectric signal.
In one embodiment, after the frequency containing the strobe interference has been measured, a stable sampling value (dc component) can be obtained by averaging the sampled values of the photo-electric signal after a plurality of times of sampling within a strobe period, i.e. the photo-electric signal after the strobe interference signal is filtered. This is because, referring to fig. 3d, the positive and negative half-cycle interferences formed by the strobe interference signal cancel each other out after averaging, and therefore the averaged value is the dc component of the photoelectric signal, and the dc component represents the ambient brightness after filtering the strobe interference signal. According to the nyquist sampling law, after the frequency (strobe frequency = 1/T) of strobe interference signals in sampling data is determined, the amplitude of the photoelectric signals is sampled for multiple times at the sampling frequency (target sampling frequency) larger than 2f, the sampling times are even times, the average value of the sampling data obtained by the multiple sampling is calculated, and the calculation result represents the photoelectric signals after the strobe interference signals are filtered, namely the amplitude of the photoelectric signals after the strobe interference signals are filtered. The deviations of the positive period and the negative half period of the sine component of the stroboscopic interference can be mutually offset, so that the obtained average value is the sampling value corresponding to the stable ambient light data. Aiming at the problem of stroboscopic interference, the fluctuation based on stroboscopic is a sine wave with fixed frequency, the fluctuation frequency is used as a sampling period, and the period of integral multiple is sampled to obtain an average value, so that the problem of stroboscopic interference can be solved. Here, it is necessary to ensure that the number of sampling points satisfies the nyquist sampling law, that is, the sampling frequency needs to be greater than 2 times the frequency of the strobe interference signal.
In one embodiment, for the strobe interference, the data fluctuation caused by the strobe interference can be eliminated in a fixed sampling period mode. For example, after the frequency of the stroboscopic interference signal is determined, if an odd multiple of a half of the period of the stroboscopic interference signal is used as the sampling period (i.e., 1, 3, 5, etc. times of the half period is used as the sampling period), it can be ensured that two adjacent sampling values are respectively located in the positive half period and the negative half period of the interference waveform, so that the positive and negative values can be cancelled out to eliminate the sampling value fluctuation caused by stroboscopic interference. By setting the sampling period to be odd times of half of the light source stroboscopic interference period T, the adopted period is more flexible, and no special requirements are made on program main cycle and interrupt processing. And the stroboscopic interference can eliminate the fluctuation caused by the interference by respectively taking one number from the positive period and the negative period.
And 104, carrying out light sensing control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered.
In one embodiment, intelligence household electrical appliances include the light, carry out light sense control to intelligence household electrical appliances including carrying out light sense control to the light, also adjust the luminance of light according to the photoelectric signal after the filtering stroboscopic interference signal, because the stroboscopic interference signal has been filtered among the photoelectric signal, adjust the luminance of light according to the photoelectric signal of having filtered stroboscopic interference signal, frequent regulation can not appear in the light, its luminance can not be neglected.
Corresponding to the embodiment of the light sensation control method of the intelligent household appliance, the invention also provides an embodiment of a light sensation control device of the intelligent household appliance.
Fig. 4 is a schematic block diagram of a light-sensing control device for an intelligent home appliance according to an exemplary embodiment of the present invention, where the light-sensing control device is applied to the intelligent home appliance, the light-sensing control device may be disposed on a controller of the intelligent home appliance, and the intelligent home appliance is provided with a photosensitive component, and includes:
an obtaining module 41, configured to obtain a photoelectric signal acquired by the photosensitive component, where the photoelectric signal represents ambient brightness;
a determining module 42, configured to determine whether a strobe interference signal is included in the photoelectric signal;
a filtering module 43, configured to filter a stroboscopic interference signal from the photoelectric signal if it is determined that the stroboscopic interference signal is included in the photoelectric signal;
and the control module 44 is configured to perform light sensing control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered out.
Optionally, the determining module is specifically configured to determine that a strobe interference signal is included in the photoelectric signal when it is determined that a preset waveform exists in the photoelectric signal; determining that no strobe interference signal is contained in the photoelectric signal under the condition that no preset waveform exists in the photoelectric signal; the preset waveform is determined according to a photovoltage waveform of a strobe interference signal.
Optionally, the determining module is specifically configured to determine that the photoelectric signal includes a strobe interference signal when it is determined that the photoelectric signal includes a fluctuating component of a preset frequency; under the condition that the photoelectric signal is determined not to contain a fluctuation component of a preset frequency, determining that the photoelectric signal does not contain a stroboscopic interference signal; the preset frequency is determined according to the frequency of the stroboscopic interference signal.
Optionally, when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determining module is configured to:
sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;
stopping timing under the condition that the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the intelligent household appliance includes a dc filter circuit and a zero-crossing detection circuit, the dc filter circuit is configured to filter a dc component in the photovoltaic signal and output the photovoltaic signal after the dc component is filtered to the zero-crossing detection circuit, and the zero-crossing detection circuit is configured to output a zero-crossing signal when it is detected that the amplitude of the photovoltaic signal after the dc component is filtered is zero;
when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determining module is configured to:
starting timing under the condition of acquiring the zero-crossing signal;
stopping timing under the condition of acquiring the zero-crossing signal again;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
Optionally, the control module comprises:
the sampling unit is used for sampling the photoelectric signal for multiple times at a target sampling frequency or a target sampling period; wherein the target sampling frequency is greater than twice the frequency of the stroboscopic interference signal, and the target sampling period is an odd multiple of half the period of the stroboscopic interference signal;
the calculating unit is used for calculating an average value of sampling data obtained by multiple times of sampling, and the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered;
and the control unit is used for carrying out light sense control on the intelligent household appliance according to the average value.
Optionally, the smart appliance comprises a lighting lamp;
the control module is specifically used for adjusting the brightness of the illuminating lamp according to the photoelectric signal after the stroboscopic interference signal is filtered.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiment of the invention also provides an intelligent household appliance, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the light sensation control method of the intelligent household appliance provided by any one of the embodiments is realized. The intelligent household appliance can be a range hood, a cooking bench, an oven and the like.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the embodiment of the present invention may also be implemented in a form of a program product, which includes program code for causing a terminal device to execute a method implementing any of the above-mentioned embodiments when the program product runs on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (18)

1. The light sensation control method of the intelligent household appliance is characterized in that a photosensitive assembly is arranged on the intelligent household appliance, and the light sensation control method comprises the following steps:
acquiring a photoelectric signal acquired by the photosensitive component, wherein the photoelectric signal represents the ambient brightness;
determining whether a strobe interference signal is included in the optoelectronic signal;
in the case that the photoelectric signal is determined to contain a stroboscopic interference signal, filtering the stroboscopic interference signal from the photoelectric signal;
and carrying out light sensing control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered.
2. The method as claimed in claim 1, wherein the determining whether the photoelectric signal includes a strobe interference signal comprises:
determining whether a preset waveform exists in the waveform of the photoelectric signal, wherein the preset waveform is determined according to the photovoltage waveform of the stroboscopic interference signal;
under the condition that the photoelectric signal is determined to have a preset waveform, determining that the photoelectric signal contains a stroboscopic interference signal;
determining that no strobe interference signal is included in the optoelectronic signal if it is determined that a preset waveform is not present in the optoelectronic signal.
3. The method as claimed in claim 1, wherein the determining whether the photoelectric signal includes a strobe interference signal comprises:
determining whether the photoelectric signal contains a fluctuation component of a preset frequency, wherein the preset frequency is determined according to the frequency of a stroboscopic interference signal;
under the condition that the photoelectric signal is determined to contain a fluctuation component of a preset frequency, determining that the photoelectric signal contains a stroboscopic interference signal;
and under the condition that the photoelectric signal is determined not to contain the fluctuation component of the preset frequency, determining that the photoelectric signal does not contain the stroboscopic interference signal.
4. The light sensation control method of an intelligent household appliance according to claim 3, wherein determining whether the photoelectric signal contains a fluctuation component of a preset frequency comprises:
sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;
stopping timing under the condition that the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
5. The light sensation control method of an intelligent household appliance according to claim 3, wherein the intelligent household appliance comprises a direct current filter circuit and a zero-crossing detection circuit, the direct current filter circuit is used for filtering a direct current component in the photoelectric signal and outputting a photovoltaic signal after the direct current component is filtered to the zero-crossing detection circuit, and the zero-crossing detection circuit is used for outputting a zero-crossing signal when the amplitude of the photoelectric signal after the direct current component is filtered is detected to be zero;
determining whether the photoelectric signal contains a fluctuation component of a preset frequency, including:
starting timing under the condition of acquiring the zero-crossing signal;
stopping timing under the condition of acquiring the zero-crossing signal again;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
6. The light sensation control method of the intelligent household appliance according to claim 1, wherein the light sensation control of the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered comprises:
sampling the photoelectric signal for multiple times at a target sampling frequency or a target sampling period; wherein the target sampling frequency is greater than twice the frequency of the stroboscopic interference signal, and the target sampling period is an odd multiple of half the period of the stroboscopic interference signal;
calculating an average value of sampling data obtained by multiple times of sampling, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered;
and carrying out light sensation control on the intelligent household appliance according to the average value.
7. The light sensation control method of the intelligent household appliance according to claim 1, wherein the intelligent household appliance comprises an illuminating lamp;
according to the filtering photoelectric signal after the stroboscopic interference signal is right intelligence household electrical appliances carry out light sense control, include:
and adjusting the brightness of the illuminating lamp according to the photoelectric signal after the stroboscopic interference signal is filtered.
8. The light sensation control method of an intelligent household appliance according to claim 1, wherein the photoelectric signal is a photo-voltage signal or a photo-current signal.
9. The utility model provides a light sense controlling means of intelligence household electrical appliances, a serial communication port, be equipped with photosensitive assembly on the intelligence household electrical appliances, light sense controlling means includes:
the acquisition module is used for acquiring photoelectric signals acquired by the photosensitive assembly, and the photoelectric signals represent ambient brightness;
a determining module, configured to determine whether a strobe interference signal is included in the photoelectric signal;
the filtering module is used for filtering a stroboscopic interference signal from the photoelectric signal under the condition that the stroboscopic interference signal is determined to be contained in the photoelectric signal;
and the control module is used for carrying out light sense control on the intelligent household appliance according to the photoelectric signal after the stroboscopic interference signal is filtered.
10. The light sensation control device of an intelligent household appliance according to claim 9, wherein the determining module is specifically configured to determine that the photoelectric signal contains a strobe interference signal when it is determined that a preset waveform exists in the photoelectric signal; under the condition that the photoelectric signal is determined not to have the preset waveform, determining that the photoelectric signal does not contain a stroboscopic interference signal; the preset waveform is determined according to a photovoltage waveform of a strobe interference signal.
11. The light sensation control device of an intelligent household appliance according to claim 10, wherein the determining module is specifically configured to determine that the photoelectric signal includes a strobe interference signal when it is determined that the photoelectric signal includes a fluctuation component of a preset frequency; under the condition that the photoelectric signal is determined not to contain a fluctuation component of a preset frequency, determining that the photoelectric signal does not contain a stroboscopic interference signal; the preset frequency is determined according to the frequency of the stroboscopic interference signal.
12. The light sensation control device of an intelligent household appliance according to claim 11, wherein when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determining module is configured to:
sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;
stopping timing under the condition that the difference value between the amplitude of the second sampling point and the amplitude of the first sampling point is smaller than a difference threshold value;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
13. The light sensation control method of an intelligent household appliance according to claim 11, wherein the intelligent household appliance comprises a dc filter circuit and a zero-crossing detection circuit, the dc filter circuit is configured to filter a dc component in the photovoltaic signal and output a photovoltaic signal after the dc component is filtered to the zero-crossing detection circuit, and the zero-crossing detection circuit is configured to output a zero-crossing signal when the amplitude of the photovoltaic signal after the dc component is filtered is detected to be zero;
when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determining module is configured to:
starting timing under the condition of acquiring the zero-crossing signal;
stopping timing under the condition that the zero-crossing signal is collected again;
determining the frequency of the fluctuation component according to the timing duration;
determining a fluctuation component containing a preset frequency in the photoelectric signal under the condition that the difference value between the frequency of the fluctuation component and the preset frequency is smaller than a difference threshold value; otherwise, determining that the photoelectric signal does not contain a fluctuation component of a preset frequency.
14. The light sensation control method of the intelligent household appliance according to claim 9, wherein the control module comprises:
the sampling unit is used for sampling the photoelectric signal for multiple times at a target sampling frequency or a target sampling period; wherein the target sampling frequency is greater than twice the frequency of the stroboscopic interference signal, and the target sampling period is an odd multiple of half the period of the stroboscopic interference signal;
the calculating unit is used for calculating an average value of sampling data obtained by multiple times of sampling, and the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered;
and the control unit is used for carrying out light sense control on the intelligent household appliance according to the average value.
15. The light sensation control device of the intelligent household electrical appliance according to claim 9, wherein the intelligent household electrical appliance comprises an illuminating lamp;
the control module is specifically used for adjusting the brightness of the illuminating lamp according to the photoelectric signal after the stroboscopic interference signal is filtered.
16. The light sensation control device of an intelligent household electrical appliance according to claim 9, wherein the photoelectric signal is a photo-voltage signal or a photo-current signal.
17. An intelligent household appliance, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the light sensation control method of the intelligent household appliance according to any one of claims 1 to 8 when executing the computer program.
18. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the light sensation control method of an intelligent home appliance according to any one of claims 1 to 8.
CN202110839452.9A 2021-07-23 2021-07-23 Intelligent household appliance and light sensation control method, device and storage medium thereof Pending CN115696693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839452.9A CN115696693A (en) 2021-07-23 2021-07-23 Intelligent household appliance and light sensation control method, device and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839452.9A CN115696693A (en) 2021-07-23 2021-07-23 Intelligent household appliance and light sensation control method, device and storage medium thereof

Publications (1)

Publication Number Publication Date
CN115696693A true CN115696693A (en) 2023-02-03

Family

ID=85044123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839452.9A Pending CN115696693A (en) 2021-07-23 2021-07-23 Intelligent household appliance and light sensation control method, device and storage medium thereof

Country Status (1)

Country Link
CN (1) CN115696693A (en)

Similar Documents

Publication Publication Date Title
US8536799B1 (en) Dimmer detection
EP2961248A1 (en) Method and apparatus for automatically controlling state indicator of terminal device
CN102573214B (en) LED drive circuit and LED light device
Gao et al. Dynamic illuminance measurement and control used for smart lighting with LED
TW202033055A (en) Voltage conversion system and method used for TRIAC drive
CN203219550U (en) Projector luminance and ambient light regulating system based on single chip microcomputer
CN104330750A (en) Method and system for testing twinkling characteristics of LED (light emitting diode) light source and drive power source thereof
CN216162899U (en) Intelligent household appliance and light-sensing control device thereof
CN104837266A (en) LED daylight induction lamp intelligent control apparatus and method
CN115696693A (en) Intelligent household appliance and light sensation control method, device and storage medium thereof
CN105491759A (en) Indoor illumination energy-saving control device and energy-saving control method
CN205264963U (en) Intelligent switch socket
CN215599555U (en) Intelligent household appliance and light-sensing control device thereof
CN204889873U (en) Dust catcher controller can throw light on
CN203015202U (en) Energy-saving device for automatically controlling lighting equipment
CN208445797U (en) A kind of light adjusting circuit for realizing a variety of dimming modes
CN105054865A (en) Dust collector controller capable of illuminating
CN205754992U (en) A kind of online regulator control system of standby indicating lamp
CN205040067U (en) Place inductor of LED lamps and lanterns detectable natural light in can in
CN210835282U (en) Infrared induction processing system for continuously detecting human body movement data
CN205491330U (en) LED life -span is detected and invariable illuminance control system
CN107911905B (en) Human infrared receiving and processing circuit and processing method thereof
JP6258024B2 (en) Lighting system and control device
CN209688934U (en) Intelligent controlled ventilator and side-suction type intelligent controlled ventilator
CN205648125U (en) Intelligence house lighting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination