A light control module installed inside a lamp body and implementation method thereof
By setting up a first-channel and two-channel light sensing circuit in the light control module, combining chips and circuit components, the interference problem of the light control module on its own light and external light is solved, and more stable light sensing control is achieved, and anti-interference is enhanced. ability.
Patent Information
- Application Number
- CN202110953980.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-08-19
AI Technical Summary
The light control modules of existing light sensing lamps are easily affected by their own light fluctuations and sudden changes in the external ambient light, resulting in poor anti-interference ability.
Design a light control module including one-channel and two-channel photosensitive circuits, monitor the LED light source and natural light changes through photosensitive diodes Q1 and Q2, and use chip U1 to judge the reading changes, and combine resistors and capacitors to perform current limiting and high-frequency noise. Filter, the readings are processed by algorithms to distinguish light source changes.
Effectively distinguishing LED light sources from natural light changes, enhancing the anti-interference ability of the light-sensitive lamp and improving stability in night and external environment changes.
Smart Images

Figure CN113597069B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of light sensing control, and in particular relates to a light control module installed inside a lamp body and an implementation method thereof. Background Art
[0002] At present, the light-sensing lamps and light-control modules on the market usually use a single photodiode to detect changes in ambient light. When the light-control module is placed inside the lamp body, it is easily affected by its own light fluctuations, causing the light-sensing lamp to turn on and off constantly at night.
[0003] At the same time, when the external ambient light changes suddenly, the light control module is easily affected and has poor resistance to external interference. Therefore, the existing technology has the following deficiencies:
[0004] 1. The light control module inside the lamp body is easily affected by its own light fluctuations;
[0005] 2. Poor ability to resist external interference and easily affected by sudden changes in external light. Summary of the invention
[0006] The purpose of the present invention is to provide a light control module installed inside a lamp body to solve the problems mentioned in the above background technology. The light control module installed inside a lamp body provided by the present invention has the characteristic of being able to filter the influence of the spontaneous light fluctuation of the lamp.
[0007] Another object of the present invention is to provide a method for implementing a light control module installed inside a lamp body.
[0008] To achieve the above objectives, the present invention provides the following technical solutions: a light control module installed inside a lamp body, comprising a one-channel light sensing circuit, a two-channel light sensing circuit and a light control circuit, wherein the one-channel light sensing circuit and the two-channel light sensing circuit are respectively connected to the light control circuit.
[0009] In order to monitor the changes of LED light sources, the present invention further provides a one-channel light sensing circuit including a photosensitive diode Q1, the positive electrode of the photosensitive diode Q1 is connected to a 5V power supply, and the negative electrode of the photosensitive diode Q1 is connected to a light control circuit; the light-sensitive wavelength range of the photosensitive diode Q1 is 312nm-1050nm.
[0010] In order to limit current, divide voltage and filter high-frequency noise, in the present invention, further, the cathode of the photodiode Q1 is connected to the resistor R4 and the capacitor C3, and the other ends of the resistor R4 and the capacitor C3 are connected to GND.
[0011] In order to monitor the changes in natural light, the present invention further provides a two-channel light sensing circuit including a photodiode Q2, the positive electrode of the photodiode Q2 is connected to a 5V power supply, the negative electrode of the photodiode Q2 is connected to a light control circuit, and the light-sensitive wavelength range of the photodiode Q2 is the full spectrum.
[0012] In order to limit current, divide voltage and filter high-frequency noise, in the present invention, further, the cathode of the photodiode Q2 is connected to the resistor R5 and the capacitor C4, and the other ends of the resistor R5 and the capacitor C4 are connected to GND.
[0013] In order to judge the reading changes of the one-channel light sensing circuit and the two-channel light sensing circuit, the 9th pin of the chip U1 is responsible for controlling the light on and off. In the present invention, the light control circuit includes a chip U1, the 1st pin of the chip U1 is connected to GND, the 2nd pin of the chip U1 is connected to a 5V power supply, the 15th pin of the chip U1 is connected to the one-channel light sensing circuit, the 14th pin of the chip U1 is connected to the two-channel light sensing circuit, and the 9th pin of the chip U1 is the PWM signal output terminal.
[0014] In order to filter high-frequency noise, in the present invention, capacitors C1 and C2 are further connected between pin 1 and pin 2 of the chip U1.
[0015] In the present invention, the method for implementing the light control module installed inside the lamp body further comprises the following steps:
[0016] (i) Chip U1 reads the value of photodiode Q1 every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average of the remaining 20 data, which is defined as the current channel value CH01;
[0017] (ii) Chip U1 reads the value of photodiode Q2 every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average of the remaining 20 data, which is defined as the current second channel value CH02;
[0018] (III) Define the threshold for lighting. When CH01<10, the chip U1 determines that the current external environment is dark. At this time, the 9th pin of the chip U1 outputs a high level and the control light is turned on.
[0019] (IV) Define the current difference N_HEX=CH02-CH01, and define the current ratio
[0020] N_RTIO = CH01 / CH02;
[0021] (5). The chip U1 obtains a set of current differences N_HEX and current ratios N_RTIO every 1 minute. Two arrays with a length of 60 are set. The current difference N_HEX is assigned to the first array, and the current ratio N_RTIO is assigned to the second array. When the arrays are not full, the average difference S_HEX is defined as the sum of all elements in the first array divided by the number of elements in the first array, and the average ratio S_RTIO is defined as the sum of all elements in the second array divided by the number of elements in the second array. When the arrays are full, the average difference S_HEX is defined as the sum of all elements in the first array divided by 60, and the average ratio S_RTIO is defined as the sum of all elements in the second array divided by 60. The filling of the arrays is executed according to the principle of first in first out.
[0022] (6). Define a difference threshold H_HEX and a ratio threshold H_RTIO.
[0023] (7). When the lamp is in the lit state, when both N_HEX - S_HEX > H_HEX and N_RTIO - S_RTIO < H_RTIO are satisfied, the 9th pin of the chip U1 outputs a low level to control the lamp to turn off.
[0024] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0025] The present invention provides a first-channel light sensing circuit and a second-channel light sensing circuit. By judging the reading changes of the first-channel light sensing circuit and the second-channel light sensing circuit through the light control circuit, the changes between the LED light source and natural light are effectively distinguished, the anti-interference ability of the photosensitive lamp is enhanced, and it has good economic benefits and application prospects. Description of the Drawings
[0026] Figure 1 is the system block diagram of the present invention;
[0027] Figure 2 is the circuit diagram of the present invention;
[0028] Figure 3 is the circuit diagram of the first-channel light sensing circuit of the present invention;
[0029] Figure 4 is the circuit diagram of the second-channel light sensing circuit of the present invention;
[0030] Figure 5 is the circuit diagram of the light control circuit of the present invention;
[0031] In the figure: 1. Light control circuit; 2. First-channel light sensing circuit; 3. Second-channel light sensing circuit. Detailed Embodiments
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] Example 1
[0034] See also Figure 1-5 The present invention provides the following technical solution: a light control module installed inside a lamp body, comprising a one-channel light sensing circuit 2, a two-channel light sensing circuit 3 and a light control circuit 1, wherein the one-channel light sensing circuit 2 and the two-channel light sensing circuit 3 are respectively connected to the light control circuit 1.
[0035] Specifically, a one-channel light sensing circuit 2 includes a photodiode Q1, the positive electrode of the photodiode Q1 is connected to a 5V power supply, the negative electrode of the photodiode Q1 is connected to a light control circuit, and the light-sensitive wavelength range of the photodiode Q1 is 312nm-1050nm, which is the visible range of the human eye.
[0036] By adopting the above technical solution, the change of the LED light source is monitored by the photosensitive diode Q1.
[0037] Specifically, the cathode of the photodiode Q1 is also connected to the resistor R4 and the capacitor C3, and the other ends of the resistor R4 and the capacitor C3 are connected to GND.
[0038] By adopting the above technical solution, the resistor R4 is connected in series with the photodiode Q1 to play the role of current limiting and voltage dividing; the capacitor C3 is connected in parallel with the resistor R4 to play the role of filtering high-frequency noise.
[0039] Specifically, the two-channel light sensing circuit 3 includes a photosensitive diode Q2, the positive electrode of the photosensitive diode Q2 is connected to a 5V power supply, the negative electrode of the photosensitive diode Q2 is connected to a light control circuit, and the light-sensitive wavelength range of the photosensitive diode Q2 is the full spectrum.
[0040] By adopting the above technical solution, the change of natural light is monitored by the photodiode Q2.
[0041] Specifically, the cathode of the photodiode Q2 is also connected to the resistor R5 and the capacitor C4, and the other ends of the resistor R5 and the capacitor C4 are connected to GND.
[0042] By adopting the above technical solution, the resistor R5 is connected in series with the photodiode Q2 to play the role of current limiting and voltage dividing; the capacitor C4 is connected in parallel with the resistor R5 to play the role of filtering high-frequency noise.
[0043] Specifically, the light control circuit 1 includes a chip U1, pin 1 of the chip U1 is connected to GND, pin 2 of the chip U1 is connected to a 5V power supply, pin 15 of the chip U1 is connected to the cathode of the photodiode Q1, pin 14 of the chip U1 is connected to the cathode of the photodiode Q2, and pin 9 of the chip U1 is a PWM signal output terminal.
[0044] By adopting the above technical solution, the light control circuit 1 is used to judge the reading changes of the one-channel light sensing circuit 2 and the two-channel light sensing circuit 3, and the 9th pin of the chip U1 is used to control the on and off of the lamp. When the 9th pin of the chip U1 outputs a high level, the lamp is on, and when the 9th pin of the chip U1 outputs a low level, the lamp is off.
[0045] Specifically, capacitors C1 and C2 are connected between pin 1 and pin 2 of chip U1.
[0046] By adopting the above technical solution, the capacitor C1 and the capacitor C2 play a role in filtering high-frequency noise.
[0047] Example 2
[0048] Furthermore, the method for implementing a light control module installed inside a lamp body according to the present invention comprises the following steps:
[0049] (i) Chip U1 reads the value of photodiode Q1 every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average of the remaining 20 data, which is defined as the current channel value CH01;
[0050] (ii) Chip U1 reads the value of photodiode Q2 every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average of the remaining 20 data, which is defined as the current second channel value CH02;
[0051] (III) Define the threshold for lighting. When CH01<10, the chip U1 determines that the current external environment is dark. At this time, the 9th pin of the chip U1 outputs a high level and the control light is turned on.
[0052] (iv) define the current difference N_HEX=CH02-CH01, define the current ratio N_RTIO=CH01 / CH02;
[0053] (5). The chip U1 obtains a set of current difference N_HEX and current ratio N_RTIO every 1 minute. Two arrays with a length of 60 are set. The current difference N_HEX is assigned to the first array, and the current ratio N_RTIO is assigned to the second array. When the arrays are not full, the average difference S_HEX is defined as the sum of all elements in the first array divided by the number of elements in the first array, and the average ratio S_RTIO is defined as the sum of all elements in the second array divided by the number of elements in the second array; when the arrays are full, the average difference S_HEX is defined as the sum of all elements in the first array divided by 60, and the average ratio S_RTIO is defined as the sum of all elements in the second array divided by 60. The filling of the arrays is performed according to the principle of first in first out;
[0054] (6). Define a difference threshold H_HEX and a ratio threshold H_RTIO;
[0055] (7). Since the wavelength range of the LED light source is roughly the same as the photosensitive wavelength range of the photosensitive sensor Q1, and the wavelength range of sunlight is roughly the same as the photosensitive wavelength range of the photosensitive sensor Q2, when there is an influence of the LED light source in the surrounding environment, the change values of CH01 and CH02 are roughly equal. Correspondingly, the value of H_HEX is also roughly equal, and the value of H_RTIO will increase slightly. When the sun rises and the natural light in the surrounding environment increases, since the photosensitive wavelength range of the photosensitive sensor Q2 is larger than that of the photosensitive sensor Q1, the change value of CH01 will be less than the change value of CH02. Correspondingly, the value of H_HEX will increase, and the value of H_RTIO will decrease. Therefore, by judging the degree of change of the values of H_HEX and H_RTIO, the changes between natural light and the LED light source can be effectively distinguished;
[0056] (8). When the lamp is in the lit state, when both N_HEX - S_HEX > H_HEX and N_RTIO - S_RTIO < H_RTIO are satisfied, the 9th pin of the chip U1 outputs a low level to control the lamp to turn off.
[0057] In summary, the present invention provides a one-channel light sensing circuit and a two-channel light sensing circuit. By judging the reading changes of the one-channel light sensing circuit and the two-channel light sensing circuit through the light control circuit, the changes between the LED light source and natural light are effectively distinguished, the anti-interference ability of the photosensitive lamp is enhanced, and it has good economic benefits and application prospects.
[0058] Although the embodiments of the present invention have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A light control module installed inside a lamp body, characterized in that: It includes a one-channel light sensing circuit, a two-channel light sensing circuit and a light control circuit. Among them, the one-channel light sensing circuit and the two-channel light sensing circuit are respectively connected to the light control circuit; The implementation method of the above-mentioned light control module installed inside the lamp body includes the following steps: (1). The chip U1 reads the value of the photosensitive diode Q1 once every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average value of the remaining 20 data. This value is defined as the current one-channel value CH01; (2). The chip U1 reads the value of the photosensitive diode Q2 once every 2 seconds, reads 30 values in 1 minute, performs bubble sorting, removes the smallest 5 data, removes the largest 5 data, and takes the average value of the remaining 20 data. This value is defined as the current two-channel value CH02; (3). Define the lighting threshold. When CH01 < 10, the chip U1 determines that the current external environment is in the dark state. At this time, the 9th pin of the chip U1 outputs a high level to control the lamp to light up; (4). Define the current difference N_HEX = CH02 - CH01, and define the current ratio N_RTIO = CH01 / CH02; (5). The chip U1 obtains a set of current difference N_HEX and current ratio N_RTIO every 1 minute. Set two arrays with a length of 60. Assign the current difference N_HEX to the first array and the current ratio N_RTIO to the second array. When the array is not full, define the average difference S_HEX as the sum of all elements in the first array / the number of elements in the first array, and define the average ratio S_RTIO as the sum of all elements in the second array / the number of elements in the second array; when the array is full, define the average difference S_HEX as the sum of all elements in the first array / 60, and define the average ratio S_RTIO as the sum of all elements in the second array / 60. The filling of the array is executed according to the principle of first in first out; (6). Define the difference threshold H_HEX and the ratio threshold H_RTIO; (7). When the lamp is in the lit state, when both N_HEX - S_HEX > H_HEX and N_RTIO - S_RTIO < H_RTIO are satisfied, the 9th pin of the chip U1 outputs a low level to control the lamp to turn off.
2. The light control module installed inside the lamp body according to claim 1, characterized in that: The one-channel light sensing circuit includes a photosensitive diode Q1. The positive pole of the photosensitive diode Q1 is connected to the 5V power supply, and the negative pole of the photosensitive diode Q1 is connected to the light control circuit.
3. The light control module installed inside the lamp body according to claim 2, characterized in that: The negative pole of the photosensitive diode Q1 is also connected to a resistor R4 and a capacitor C3. The other ends of the resistor R4 and the capacitor C3 are connected to GND.
4. The light control module installed inside a lamp body according to claim 1, characterized in that: The two-channel light sensing circuit includes a photosensitive diode Q2. The positive pole of the photosensitive diode Q2 is connected to the 5V power supply, and the negative pole of the photosensitive diode Q2 is connected to the light control circuit.
5. The light control module installed inside the lamp body according to claim 4, characterized in that: The negative pole of the photosensitive diode Q2 is also connected to a resistor R5 and a capacitor C4. The other ends of the resistor R5 and the capacitor C4 are connected to GND.
6. The light control module installed inside a lamp body according to claim 1, characterized in that: The light control circuit includes a chip U1, wherein pin 1 of the chip U1 is connected to GND, pin 2 of the chip U1 is connected to a 5V power supply, pin 15 of the chip U1 is connected to a one-channel light sensing circuit, pin 14 of the chip U1 is connected to a two-channel light sensing circuit, and pin 9 of the chip U1 is a PWM signal output terminal.
7. The light control module installed inside a lamp body according to claim 6, characterized in that: Capacitors C1 and C2 are connected between pin 1 and pin 2 of the chip U1.
8. The light control module installed inside a lamp body according to claim 2, characterized in that: The light-sensitive wavelength range of the photodiode Q1 is 312nm-1050nm.
9. The light control module installed inside a lamp body according to claim 4, characterized in that: The light-sensitive wavelength range of the photodiode Q2 is the full spectrum.
Citation Information
Patent Citations
Intelligent photoperiod control system of solar street lamp and method thereof
CN106455231A
Light-operated module installed in lamp body
CN215773662U