Smart home appliance and light sensing control method, device and storage medium thereof

By setting up photosensitive components in smart home appliances to obtain and filter out stroboscopic interference signals, the problem of frequent control of smart home appliances caused by stroboscopic interference is solved, the user experience is improved and energy consumption is reduced.

CN115696693BActive Publication Date: 2025-08-26NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110839452.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-23
Publication Date
2025-08-26
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

Existing smart home appliances are frequently controlled due to the presence of stroboscopic interference signals in the collected ambient brightness signals, which affects the user experience and increases energy consumption.

Method used

By setting up photosensitive components on smart home appliances, photoelectric signals are obtained to determine whether they contain stroboscopic interference signals. When stroboscopic interference is determined, the interference signals are filtered out from the photoelectric signals and then light sensing control is performed.

Benefits of technology

It effectively avoids frequent control of smart home appliances caused by stroboscopic interference, improves user experience and reduces energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696693B_ABST
    Figure CN115696693B_ABST
Patent Text Reader

Abstract

The present invention discloses a smart home appliance and a method, device, and storage medium for controlling light sensing thereof. The method is applied to a smart home appliance equipped with a photosensitive component and includes: obtaining a photoelectric signal collected by the photosensitive component, the photoelectric signal representing ambient brightness; determining whether the photoelectric signal contains a stroboscopic interference signal; if the photoelectric signal contains a stroboscopic interference signal, filtering the stroboscopic interference signal from the photoelectric signal; and performing light sensing control on the smart home appliance based on the photoelectric signal after filtering out the stroboscopic interference signal. Since light sensing control of the smart home appliance is performed based on the photoelectric signal after filtering out the stroboscopic interference signal, frequent control of the smart home appliance due to stroboscopic interference can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home appliances, and in particular to a smart home appliance and a light sensing control method, device, and storage medium thereof. Background Art

[0002] Currently, most smart home appliances feature light-sensing control, which adjusts their operating data based on ambient brightness, such as adjusting the brightness of the smart appliance's lights. Prior art uses ambient brightness signals collected by photosensors to directly control smart home appliances. However, due to the flickering nature of indoor lights, the collected ambient brightness signals contain flicker interference. Light-sensing control based on directly collected ambient brightness signals results in frequent control of smart appliances, which not only impairs user experience but also increases energy consumption. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to overcome the defect in the prior art of using directly collected ambient brightness signals for light sensing control, which causes smart home appliances to be frequently controlled due to the presence of stroboscopic interference signals in the collected ambient brightness signals. The present invention provides a smart home appliance and its light sensing control method, device, and storage medium.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] In a first aspect, a light sensing control method for a smart home appliance is provided, wherein the smart home appliance is provided with a light sensing component, and the light sensing control method comprises:

[0006] Acquiring a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents the ambient brightness;

[0007] Determining whether the photoelectric signal contains a stroboscopic interference signal;

[0008] When it is determined that the photoelectric signal contains a stroboscopic interference signal, filtering out the stroboscopic interference signal from the photoelectric signal;

[0009] The smart home appliance is light-sensing controlled according to the photoelectric signal after the stroboscopic interference signal is filtered out.

[0010] Optionally, determining whether the photoelectric signal includes a stroboscopic interference signal includes:

[0011] 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;

[0012] When it is determined that a preset waveform exists in the photoelectric signal, determining that the photoelectric signal contains a stroboscopic interference signal;

[0013] When it is determined that the preset waveform does not exist in the photoelectric signal, it is determined that the photoelectric signal does not contain a stroboscopic interference signal.

[0014] Optionally, determining whether the photoelectric signal includes a stroboscopic interference signal includes:

[0015] determining whether the photoelectric signal contains a fluctuation component of a preset frequency, where the preset frequency is determined according to the frequency of the stroboscopic interference signal;

[0016] In the case where it is determined that the photoelectric signal includes a fluctuation component of a preset frequency, determining that the photoelectric signal includes a stroboscopic interference signal;

[0017] When it is determined that the photoelectric signal does not include a fluctuation component of a preset frequency, it is determined that the photoelectric signal does not include a stroboscopic interference signal.

[0018] Optionally, determining whether the photoelectric signal includes a fluctuation component of a preset frequency includes:

[0019] Sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;

[0020] When the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold, stopping the timing;

[0021] determining the frequency of the fluctuation component according to the timing duration;

[0022] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0023] Optionally, the smart home appliance includes a DC filtering circuit and a zero-crossing detection circuit, wherein the DC filtering circuit is used to filter out the DC component in the photoelectric signal and output the photovoltage signal after the DC component is filtered out to the zero-crossing detection circuit, and the zero-crossing detection circuit is used to output a zero-crossing signal when detecting that the amplitude of the photoelectric signal after the DC component is filtered out is zero;

[0024] Determining whether the photoelectric signal includes a fluctuation component of a preset frequency includes:

[0025] When the zero-crossing signal is collected, starting timing;

[0026] When the zero-crossing signal is collected again, the timing is stopped;

[0027] determining the frequency of the fluctuation component according to the timing duration;

[0028] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0029] Optionally, performing light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal includes:

[0030] The photoelectric signal is sampled 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;

[0031] Calculating an average value of the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out;

[0032] The smart home appliance is light-sensing controlled according to the average value.

[0033] Optionally, the smart home appliance includes a lighting lamp;

[0034] The method performs light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal, comprising:

[0035] The brightness of the lighting lamp is adjusted according to the photoelectric signal after the stroboscopic interference signal is filtered out.

[0036] Optionally, the photoelectric signal is a photovoltage signal or a photocurrent signal.

[0037] In a second aspect, a light sensing control device for a smart home appliance is provided, wherein the smart home appliance is provided with a light sensing component, and the light sensing control device comprises:

[0038] An acquisition module, configured to acquire a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents ambient brightness;

[0039] A determination module, configured to determine whether the photoelectric signal contains a stroboscopic interference signal;

[0040] a filtering module, configured to filter out the stroboscopic interference signal from the photoelectric signal when it is determined that the photoelectric signal contains a stroboscopic interference signal;

[0041] The control module is used to perform light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal.

[0042] Optionally, the determination module is specifically used to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that a preset waveform exists in the photoelectric signal; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that no preset waveform exists in the photoelectric signal; the preset waveform is determined based on the photovoltage waveform of the stroboscopic interference signal.

[0043] Optionally, the determination module is specifically used to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that the photoelectric signal contains a fluctuating component of a preset frequency; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that the photoelectric signal does not contain a fluctuating component of a preset frequency; the preset frequency is determined according to the frequency of the stroboscopic interference signal.

[0044] Optionally, when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is configured to:

[0045] Sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;

[0046] When the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold, stopping the timing;

[0047] determining the frequency of the fluctuation component according to the timing duration;

[0048] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0049] Optionally, the smart home appliance includes a DC filtering circuit and a zero-crossing detection circuit, wherein the DC filtering circuit is used to filter out the DC component in the photoelectric signal and output the photovoltage signal after the DC component is filtered out to the zero-crossing detection circuit, and the zero-crossing detection circuit is used to output a zero-crossing signal when detecting that the amplitude of the photoelectric signal after the DC component is filtered out is zero;

[0050] When determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is used to:

[0051] When the zero-crossing signal is collected, starting timing;

[0052] When the zero-crossing signal is collected again, the timing is stopped;

[0053] determining the frequency of the fluctuation component according to the timing duration;

[0054] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0055] Optionally, the control module includes:

[0056] a sampling unit, configured to sample the photoelectric signal 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;

[0057] a calculation unit, configured to calculate an average value of the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out;

[0058] A control unit is used to perform light sensing control on the smart home appliance according to the average value.

[0059] Optionally, the smart home appliance includes a lighting lamp;

[0060] The control module is specifically configured to adjust the brightness of the lighting lamp according to the photoelectric signal after filtering out the stroboscopic interference signal.

[0061] Optionally, the photoelectric signal is a photovoltage signal or a photocurrent signal.

[0062] In a third aspect, a smart home appliance is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the light sensing control method for the smart home appliance described in any one of the above items is implemented.

[0063] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the light sensing control method of the smart home appliance described in any one of the above items is implemented.

[0064] The positive progressive effect of the present invention is that in the embodiment of the present invention, the smart home appliances are light-sensitively controlled based on the photoelectric signal after the stroboscopic interference signal is filtered out, thereby avoiding the smart home appliances being frequently controlled due to stroboscopic interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 is a flow chart of a light sensing control method for a smart home appliance provided by an exemplary embodiment of the present invention;

[0066] Figure 2a is a circuit diagram of a sampling circuit used in a light sensing control method for a smart home appliance provided by an exemplary embodiment of the present invention;

[0067] Figure 2b is a circuit diagram of another sampling circuit used in a light sensing control method for smart home appliances provided by an exemplary embodiment of the present invention;

[0068] Figure 3a is a schematic diagram of a photoelectric signal collected by a smart home appliance and superimposed with a fluctuation component, provided by an exemplary embodiment of the present invention;

[0069] Figure 3b 1 is a waveform and sampling point diagram of a stroboscopic interference signal provided by an exemplary embodiment of the present invention;

[0070] Figure 3c 1 is a waveform and sampling point diagram of another stroboscopic interference signal provided by an exemplary embodiment of the present invention;

[0071] Figure 3d 1 is a waveform and sampling point diagram of another stroboscopic interference signal provided by an exemplary embodiment of the present invention;

[0072] Figure 4 1 is a schematic diagram of a module of a light sensing control device for a smart home appliance provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0073] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0074] The interference of light source flicker problem is widely present in indoor lighting such as fluorescent lamps, LED (light-emitting diode) lighting and dimmable lighting. Therefore, if the above indoor lighting is turned on indoors, when using light sensors to control smart home appliances, even if the ambient brightness does not change, the flicker problem of the indoor lighting will cause the sampling value of the ambient brightness to fluctuate greatly, resulting in frequent control of smart home appliances. Taking the use of light sensors to control the lighting of smart home appliances as an example, the brightness of the lighting of smart home appliances will be frequently adjusted, and the brightness will flicker. On the one hand, the user experience is not good, and on the other hand, it will increase the energy consumption of smart home appliances.

[0075] In view of the above problems, an embodiment of the present invention provides a light sensing control method for smart home appliances. Figure 1 This is a flowchart of a light sensing control method for a smart home appliance provided by an exemplary embodiment of the present invention. The method is applied to the smart home appliance. Specifically, the following steps can be performed by the controller of the smart home appliance. The smart home appliance is equipped with a light sensing component. The number of light sensing components can be one or more. The embodiment of the present invention does not specifically limit the number of light sensing components. Figure 1 , the method comprises the following steps:

[0076] Step 101: Acquire a photoelectric signal collected by a photosensitive component, where the photoelectric signal represents ambient brightness.

[0077] The photosensitive component includes a photosensor and a sampling circuit, which is used to collect data (photocurrent signal) on the ambient brightness. The photoelectric signal representing the ambient brightness can be a photovoltage signal or a photocurrent signal. In the embodiments of the present invention, the photoelectric signal is a photovoltage signal as an example to describe the light sensing control process of smart home appliances. The photosensor can be, but is not limited to, an ambient light sensor or a photosensor.

[0078] Figure 2a This is a circuit diagram of a sampling circuit used in a light-sensing control method for a smart home appliance provided by an exemplary embodiment of the present invention. 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 the output end of the photosensitive element U, one end of the second resistor R2, and one end of the capacitor C, respectively. The other end of the first resistor R1 and the other end of the capacitor C are both grounded. The other end of the second resistor R2 is connected to a controller included in the smart home appliance.

[0079] The photosensor converts the ambient light signal into a photocurrent signal, and the sampling circuit converts the photocurrent signal output by the photosensitive element U into a photovoltage signal, and outputs it to the controller so that the controller can determine whether the photovoltage signal contains a twice-stroboscopic interference signal and execute the light sensing control operation of the smart home appliance.

[0080] Figure 2b This is a circuit diagram of another sampling circuit used in the light sensing control method of a smart home appliance provided by an exemplary embodiment of the present invention. The sampling circuit includes a first resistor R1 and an RC filter branch 31. The RC filter branch includes a third resistor R3 and a capacitor C. One end of the first resistor R1 is connected to the output end of the photosensitive element U and one end of 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 the controller included in the smart home appliance. The other end of the capacitor C is grounded. The cutoff frequency of the RC filter branch needs to be greater than the known stroboscopic frequency of common indoor lighting (for example, 120Hz). When there is light source stroboscopic interference, especially when the light source stroboscopic interference causes large fluctuations, the light source stroboscopic interference can be effectively reduced after filtering. The size of the capacitor will affect the response time of changes in ambient light data, so the capacitor should not be selected to be too large.

[0081] For some indoor lighting fixtures with significant flicker, the amplitude of the flicker can often reach more than half of the effective sampled value. This significant interference amplitude, coupled with the fact that sampling timing deviates due to program runtime differences, can cause offset errors that can fluctuate the average value. In this embodiment of the present invention, filtering the data after sampling through an RC filter branch effectively reduces fluctuations in the photovoltage signal caused by light source flicker.

[0082] The controller included in the smart home appliance may be, but is not limited to, an MCU (Microcontroller Unit), a PLC (Programmable Logic Controller), or a SOC (System on Chip).

[0083] Step 102: Determine whether the photoelectric signal contains a stroboscopic interference signal.

[0084] If the judgment result of step 102 is yes, it means that the photoelectric signal contains a stroboscopic interference signal, and then step 103 is executed; if the judgment result of step 103 is yes, it means that the photoelectric signal does not contain a stroboscopic interference signal, and then step 105 is executed to perform light sensing control on the smart home appliance according to the collected photovoltage signal.

[0085] The photoelectric signal generated by natural light is a DC signal, and its amplitude does not fluctuate periodically. Therefore, in the absence of stroboscopic interference signals, the collected photoelectric signal is roughly a DC stable voltage. However, if indoor lighting with stroboscopic light sources is turned on, such as Figure 3a As shown in Figure 1, the photoelectric signal collected by the smart home appliance will be superimposed with a fluctuating component due to the frequency flicker of the light source. The detected waveform shows that the superimposed stroboscopic interference signal is a sine wave or cosine wave with a basically fixed frequency and amplitude.

[0086] In one embodiment, whether the photoelectric signal contains a stroboscopic interference signal is determined by measuring whether a preset waveform exists in the waveform of the photoelectric signal. The number of preset waveforms can be one or more, and the preset waveform is determined based on the photovoltage waveform of the stroboscopic interference signal.

[0087] In one embodiment, based on the principles of indoor lighting, for indoor lighting such as fluorescent lamps and fluorescent lamps that are directly powered by AC, their brightness reaches its maximum at the peaks and troughs of the power grid, and is lowest near the zero point of the power grid. Since the power grid voltage is an AC sinusoidal waveform of 50Hz or 60Hz, it can be seen that the frequency of change in the brightness of the light source of the indoor lighting is about twice the frequency of the power grid.

[0088] For LED indoor lighting powered by a RC step-down method, the flicker interference problem is mainly caused by the ripple on the DC output of the switching power supply. After rectification and filtering, the frequency of the flicker interference signal is about twice the grid frequency.

[0089] Therefore, the flickering problem of indoor lighting sources causes a stroboscopic interference signal in the sampled data, or photoelectric signal, as a sine or cosine wave with a fixed frequency and amplitude. By detecting whether the photoelectric signal contains a fluctuating component with a preset frequency, the presence of the stroboscopic interference signal in the photoelectric signal collected by the photosensitive component can be determined. The preset frequency is determined based on the frequency of the stroboscopic interference signal.

[0090] In one embodiment, to determine whether a photoelectric signal contains a fluctuating component of a preset frequency, after sampling the photoelectric signal for the first time, a timer is started. The photoelectric signal is then continuously sampled, and the timer is stopped if the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold. The photoelectric signal generated by natural light is a DC quantity, and its amplitude does not fluctuate periodically. Under normal circumstances, ambient brightness does not fluctuate significantly within a second. Therefore, in the absence of stroboscopic interference, the amplitude of the collected photoelectric signal remains essentially unchanged, and the timer duration is close to zero. In the presence of stroboscopic interference, the detected photoelectric signal also fluctuates periodically because the frequency of indoor lighting flickers periodically. Therefore, if the timer duration t is not zero, the timer duration t is determined to be 1 / 2 of the stroboscopic period T of the stroboscopic interference signal. Based on this timer duration t, the frequency f of the fluctuating component can be determined, where f = 1 / (2*t) = 1 / T. If the difference between the frequency of the fluctuating component and the preset frequency is less than the difference threshold, it is determined that the photoelectric signal contains a fluctuating component of the preset frequency, and the presence of light source stroboscopic interference is determined. The preset frequency is determined based on the power grid frequency.

[0091] For example, assuming that the amplitude of the photoelectric signal at the first sampling point is V1, the photoelectric signal is sampled in real time and the amplitude V of the real-time sampled photoelectric signal (the photoelectric signal at the second sampling point) is determined. The real-time sampling values ​​V and V1 are compared. When the real-time sampling value is equal to or close to V1, that is, |V1-V|<ΔV, the timing is stopped.

[0092] Among them, ΔV is the allowable deviation when judging the stroboscopic period, which can be set according to actual needs.

[0093] The first sampling point may be at any position in the period of the sinusoidal component of the photoelectric signal, see Figure 3b , when the subsequent sampling value V approaches V1, the timing duration t between V1 and V is 1 / 2 of the period of the sinusoidal component.

[0094] Assuming that the grid frequency is 50 Hz or 60 Hz, that is, the preset frequency is 50 Hz or 60 Hz, when the period T of the measured fluctuation component is equal to or close to 100 mS or 83 mS or an integer multiple thereof, it is considered that the frequency of the fluctuation component is 100 Hz or 120 Hz, which is twice the grid frequency. It is determined that the photoelectric signal contains a stroboscopic interference signal and needs to be subjected to interference filtering, then step 103 is executed.

[0095] In one embodiment, when ΔV is set too small and the sampling frequency is high, see Figure 3c , the timing duration t between the sampled V1 and V will be t=M*T1 or t=M*T2, where T1 or T2 represents the frequency of the fluctuation component, for example, T1 and T2 are 1 / 2 of the 50 Hz and 60 Hz periods, i.e., 100 mS and 83 mS. If the measured timing duration t=M*T1 or t=M*T2 relationship holds true, it is determined that the photoelectric signal contains a stroboscopic interference signal and interference filtering processing is required, then step 103 is executed.

[0096] In one embodiment, the timing duration is determined based on the sampling points of V1=0 and V=0. Specifically, when determining the frequency of the fluctuation component, it is implemented with the help of a DC filter circuit and a zero-crossing detection circuit. The photoelectric signal collected by the sampling circuit is input into the DC filter circuit to filter out the DC component therein, and the output result of the DC filter circuit is input into the zero-crossing detection circuit. The zero-crossing detection circuit is used to detect that the output result of the DC filter circuit is 0, that is, when the amplitude of the photoelectric signal after filtering out the DC component is zero, it outputs a zero-crossing signal. After the zero-crossing signal is collected, the timing is started, and after the zero-crossing signal is collected again, the timing is stopped. The frequency of the fluctuation component is determined based on the timing duration. The specific implementation method of determining the frequency of the fluctuation component based on the timing duration and determining whether a stroboscopic interference signal is included is similar to the above embodiment and will not be repeated here.

[0097] Photoelectric signal In any of the above embodiments, multiple sampling can be performed when determining the frequency of the fluctuation component. If, among the frequencies of the fluctuation components calculated multiple times, the difference between the frequency of the fluctuation component of a preset number of times and the preset frequency is less than the difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency, that is, there is a stroboscopic interference signal.

[0098] After multiple acquisitions, data fluctuations caused by fluctuations in ambient brightness, sensor power supply voltage, or shadows caused by objects shaking around the light source can be eliminated, such as fluctuations caused by the waving function. The frequency of data fluctuations caused by such interference is not fixed, so as to avoid misidentifying the frequency of the above random interference as stroboscopic interference during the stroboscopic interference detection process.

[0099] Step 103: Filter out the stroboscopic interference signal from the photoelectric signal.

[0100] In one embodiment, after the frequency containing the stroboscopic interference has been measured, a stable sampling value (DC component) can be obtained by sampling the photoelectric signal multiple times and calculating its average value within a stroboscopic period, that is, the photoelectric signal after filtering out the stroboscopic interference signal. This is because, see Figure 3dThe positive and negative half-cycle interferences caused by the stroboscopic interference signal will cancel each other out after averaging, so the average value obtained is the DC component of the photoelectric signal, which represents the ambient brightness after the stroboscopic interference signal is filtered out. According to the Nyquist sampling theorem, after determining the frequency of the stroboscopic interference signal in the sampled data (stroboscopic frequency = 1 / T), the amplitude of the photoelectric signal is sampled multiple times at a sampling frequency greater than 2f (target sampling frequency), with the number of sampling times being an even number. The average value of the sampled data obtained from the multiple samplings is calculated, and the calculation result represents the photoelectric signal after the stroboscopic interference signal is filtered out, that is, the calculation result is the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out. The deviations of the positive and negative half-cycles of the sinusoidal component of the stroboscopic interference will cancel each other out, so the average value obtained is the sampling value corresponding to the stable ambient light data. To address the stroboscopic interference problem, based on the fact that the stroboscopic fluctuation is a sine wave with a fixed frequency, the fluctuation frequency is used as the sampling period, and the average value of the sampling period is calculated for integer multiples, thereby eliminating the stroboscopic problem. Here, it is necessary to ensure that the number of sampling points satisfies the Nyquist sampling theorem, that is, the sampling frequency must be greater than twice the frequency of the stroboscopic interference signal.

[0101] In one embodiment, for stroboscopic interference, the data fluctuations caused by stroboscopic interference can be eliminated by fixing the sampling period. For example, after determining the frequency of the stroboscopic interference signal, an odd multiple of half its period is used as the sampling period (i.e., 1, 3, 5, etc. times of the half period are used as the sampling period). This ensures 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 phases can be offset to eliminate the sampling value fluctuations caused by stroboscopic interference. By setting the sampling period to an odd multiple of half the stroboscopic interference period T of the light source, the period setting is more flexible and there are no special requirements for the main loop of the program and interrupt processing. As for stroboscopic interference, the fluctuations caused by interference can be eliminated by taking a number from each positive and negative period.

[0102] Step 104: Perform light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal.

[0103] In one embodiment, the smart home appliance includes a lighting lamp, and light-sensing control of the smart home appliance includes light-sensing control of the lighting lamp, that is, adjusting the brightness of the lighting lamp according to the photoelectric signal after the stroboscopic interference signal is filtered out. Since the stroboscopic interference signal is filtered out of the photoelectric signal, the brightness of the lighting lamp is adjusted according to the photoelectric signal after the stroboscopic interference signal is filtered out. The lighting lamp will not be adjusted frequently and its brightness will not fluctuate.

[0104] Corresponding to the aforementioned embodiment of the light-sensing control method for smart home appliances, the present invention also provides an embodiment of a light-sensing control device for smart home appliances.

[0105] Figure 4This is a schematic diagram of a module of a light-sensing control device for a smart home appliance provided by an exemplary embodiment of the present invention. The light-sensing control device is applied to a smart home appliance. The light-sensing control device can be deployed on a controller of the smart home appliance. The smart home appliance is provided with a light-sensitive component, including:

[0106] An acquisition module 41 is configured to acquire a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents ambient brightness;

[0107] A determination module 42 is configured to determine whether the photoelectric signal contains a stroboscopic interference signal;

[0108] a filtering module 43, configured to filter out the stroboscopic interference signal from the photoelectric signal when determining that the photoelectric signal contains a stroboscopic interference signal;

[0109] The control module 44 is configured to perform light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal.

[0110] Optionally, the determination module is specifically used to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that a preset waveform exists in the photoelectric signal; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that no preset waveform exists in the photoelectric signal; the preset waveform is determined based on the photovoltage waveform of the stroboscopic interference signal.

[0111] Optionally, the determination module is specifically used to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that the photoelectric signal contains a fluctuating component of a preset frequency; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that the photoelectric signal does not contain a fluctuating component of a preset frequency; the preset frequency is determined according to the frequency of the stroboscopic interference signal.

[0112] Optionally, when determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is configured to:

[0113] Sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing;

[0114] When the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold, stopping the timing;

[0115] determining the frequency of the fluctuation component according to the timing duration;

[0116] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0117] Optionally, the smart home appliance includes a DC filtering circuit and a zero-crossing detection circuit, wherein the DC filtering circuit is used to filter out the DC component in the photoelectric signal and output the photovoltage signal after the DC component is filtered out to the zero-crossing detection circuit, and the zero-crossing detection circuit is used to output a zero-crossing signal when detecting that the amplitude of the photoelectric signal after the DC component is filtered out is zero;

[0118] When determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is used to:

[0119] When the zero-crossing signal is collected, starting timing;

[0120] When the zero-crossing signal is collected again, the timing is stopped;

[0121] determining the frequency of the fluctuation component according to the timing duration;

[0122] If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, it is determined that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency.

[0123] Optionally, the control module includes:

[0124] a sampling unit, configured to sample the photoelectric signal 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;

[0125] a calculation unit, configured to calculate an average value of the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out;

[0126] A control unit is used to perform light sensing control on the smart home appliance according to the average value.

[0127] Optionally, the smart home appliance includes a lighting lamp;

[0128] The control module is specifically configured to adjust the brightness of the lighting lamp according to the photoelectric signal after filtering out the stroboscopic interference signal.

[0129] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present invention. A person of ordinary skill in the art can understand and implement the present invention without inventive work.

[0130] An embodiment of the present invention further provides a smart home appliance, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the light sensor control method for a smart home appliance provided in any of the above embodiments. Examples of the smart home appliance include a range hood, a stove, and an oven.

[0131] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method provided in any of the above embodiments is implemented.

[0132] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0133] In a possible implementation manner, the embodiment of the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute a method for implementing any of the above embodiments.

[0134] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on the remote device.

[0135] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.

Claims

1. A light sensing control method for smart home appliances, characterized in that: The smart home appliance is provided with a photosensitive component, and the photosensitive control method includes: Acquiring a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents the ambient brightness; Determining whether the photoelectric signal contains a stroboscopic interference signal; When it is determined that the photoelectric signal contains a stroboscopic interference signal, filtering out the stroboscopic interference signal from the photoelectric signal; Performing light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal; Determining whether the photoelectric signal includes a stroboscopic interference signal includes: determining whether the photoelectric signal contains a fluctuation component of a preset frequency, where the preset frequency is determined according to the frequency of the stroboscopic interference signal; In the case where it is determined that the photoelectric signal includes a fluctuation component of a preset frequency, determining that the photoelectric signal includes a stroboscopic interference signal; In the case of determining that the photoelectric signal does not include a fluctuation component of a preset frequency, determining that the photoelectric signal does not include a stroboscopic interference signal; Determining whether the photoelectric signal includes a fluctuation component of a preset frequency includes: Sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing; When the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold, stopping the timing; determining the frequency of the fluctuation component according to the timing duration; If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, determining that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, determining that the photoelectric signal does not contain a fluctuation component of the preset frequency; The method performs light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal, comprising: The photoelectric signal is sampled 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 the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out; The smart home appliance is light-sensing controlled according to the average value.

2. A light sensing control method for smart home appliances, characterized in that: The smart home appliance is provided with a photosensitive component, and the photosensitive control method includes: Acquiring a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents the ambient brightness; Determining whether the photoelectric signal contains a stroboscopic interference signal; When it is determined that the photoelectric signal contains a stroboscopic interference signal, filtering out the stroboscopic interference signal from the photoelectric signal; Performing light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal; Determining whether the photoelectric signal includes a stroboscopic interference signal includes: determining whether the photoelectric signal contains a fluctuation component of a preset frequency, where the preset frequency is determined according to the frequency of the stroboscopic interference signal; In the case where it is determined that the photoelectric signal includes a fluctuation component of a preset frequency, determining that the photoelectric signal includes a stroboscopic interference signal; In the case of determining that the photoelectric signal does not include a fluctuation component of a preset frequency, determining that the photoelectric signal does not include a stroboscopic interference signal; The smart home appliance includes a DC filter circuit and a zero-crossing detection circuit, wherein the DC filter circuit is used to filter out the DC component in the photoelectric signal and output the photovoltage signal after the DC component is filtered out to the zero-crossing detection circuit, and the zero-crossing detection circuit is used to output a zero-crossing signal when detecting that the amplitude of the photoelectric signal after the DC component is filtered out is zero; Determining whether the photoelectric signal includes a fluctuation component of a preset frequency includes: When the zero-crossing signal is collected, starting timing; When the zero-crossing signal is collected again, the timing is stopped; determining the frequency of the fluctuation component according to the timing duration; If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, determining that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, determining that the photoelectric signal does not contain a fluctuation component of the preset frequency; The method performs light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal, comprising: The photoelectric signal is sampled 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 the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out; The smart home appliance is light-sensing controlled according to the average value.

3. The light sensing control method for smart home appliances according to claim 1 or 2, characterized in that: The smart home appliance includes a lighting lamp; The method performs light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal, comprising: The brightness of the lighting lamp is adjusted according to the photoelectric signal after the stroboscopic interference signal is filtered out.

4. The light sensing control method for smart home appliances according to claim 1 or 2, characterized in that: The photoelectric signal is a photovoltage signal or a photocurrent signal.

5. A light sensing control device for smart home appliances, characterized in that: The smart home appliance is provided with a photosensitive component, and the photosensitive control device includes: An acquisition module, configured to acquire a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents ambient brightness; A determination module, configured to determine whether the photoelectric signal contains a stroboscopic interference signal; a filtering module, configured to filter out the stroboscopic interference signal from the photoelectric signal when it is determined that the photoelectric signal contains a stroboscopic interference signal; A control module, configured to perform light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal; The determining module is specifically configured to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that the photoelectric signal contains a fluctuation component of a preset frequency; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency; the preset frequency is determined according to the frequency of the stroboscopic interference signal; When determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is used to: Sampling the photoelectric signal, determining the amplitude of a first sampling point and starting timing; When the difference between the amplitude at the second sampling point and the amplitude at the first sampling point is less than a difference threshold, stopping the timing; determining the frequency of the fluctuation component according to the timing duration; If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, determining that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, determining that the photoelectric signal does not contain a fluctuation component of the preset frequency; The control module includes: a sampling unit, configured to sample the photoelectric signal 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; a calculation unit, configured to calculate an average value of the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out; A control unit is used to perform light sensing control on the smart home appliance according to the average value.

6. A light sensing control device for smart home appliances, characterized in that: The smart home appliance is provided with a photosensitive component, and the photosensitive control device includes: An acquisition module, configured to acquire a photoelectric signal collected by the photosensitive component, wherein the photoelectric signal represents ambient brightness; A determination module, configured to determine whether the photoelectric signal contains a stroboscopic interference signal; a filtering module, configured to filter out the stroboscopic interference signal from the photoelectric signal when it is determined that the photoelectric signal contains a stroboscopic interference signal; A control module, configured to perform light sensing control on the smart home appliance according to the photoelectric signal after filtering out the stroboscopic interference signal; The determining module is specifically configured to determine that the photoelectric signal contains a stroboscopic interference signal when it is determined that the photoelectric signal contains a fluctuation component of a preset frequency; and to determine that the photoelectric signal does not contain a stroboscopic interference signal when it is determined that the photoelectric signal does not contain a fluctuation component of the preset frequency; the preset frequency is determined according to the frequency of the stroboscopic interference signal; The smart home appliance includes a DC filter circuit and a zero-crossing detection circuit, wherein the DC filter circuit is used to filter out the DC component in the photoelectric signal and output the photovoltage signal after the DC component is filtered out to the zero-crossing detection circuit, and the zero-crossing detection circuit is used to output a zero-crossing signal when detecting that the amplitude of the photoelectric signal after the DC component is filtered out is zero; When determining whether the photoelectric signal contains a fluctuation component of a preset frequency, the determination module is used to: When the zero-crossing signal is collected, starting timing; When the zero-crossing signal is collected again, the timing is stopped; determining the frequency of the fluctuation component according to the timing duration; If the difference between the frequency of the fluctuation component and the preset frequency is less than a difference threshold, determining that the photoelectric signal contains a fluctuation component of the preset frequency; otherwise, determining that the photoelectric signal does not contain a fluctuation component of the preset frequency; The control module includes: a sampling unit, configured to sample the photoelectric signal 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; a calculation unit, configured to calculate an average value of the sampled data obtained by multiple samplings, wherein the average value represents the amplitude of the photoelectric signal after the stroboscopic interference signal is filtered out; A control unit is used to perform light sensing control on the smart home appliance according to the average value.

7. The light sensing control device for smart home appliances according to claim 5 or 6, characterized in that: The smart home appliance includes a lighting lamp; The control module is specifically configured to adjust the brightness of the lighting lamp according to the photoelectric signal after filtering out the stroboscopic interference signal.

8. The light sensing control device for smart home appliances according to claim 5 or 6, characterized in that: The photoelectric signal is a photovoltage signal or a photocurrent signal.

9. A smart home appliance comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the light sensing control method for the smart home appliance according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the light sensing control method for a smart home appliance according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Intelligent household electrical appliance and light sensation control device thereof

    CN215599555U

  • Intelligent household electrical appliance and light sensation control device thereof

    CN216162899U