A dimming circuit with integrated photosensor
By integrating photosensitive transistors and LED lamps into LED lamps, and adopting the end sampling comparison method, the problem of misjudgment of the photosensitive device when detecting ambient brightness is solved, the detection accuracy and the appearance of the lamp are improved, and efficient dimming is achieved control.
Patent Information
- Application Number
- CN202211014431.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-08-23
AI Technical Summary
In existing LED lamps with light control, the photosensitive element is external and separated from the LED lamp, which affects the appearance of the lamp. Moreover, when the photosensitive device detects the brightness of the environment, it is easy to misjudge due to the afterglow of the lamp beads, causing self-excitation.
Design an integrated photosensitive dimming circuit. By integrating phototransistors and LED lights on the same PCB board, and using the end sampling comparison method, the microcontroller collects photosensitive signals after the LED goes out to reduce the impact of afterglow, and accelerates the disappearance of the afterglow through parallel resistors. , improve detection accuracy.
It realizes the integration of photosensitive elements, reduces production costs, improves detection accuracy, avoids segmentation of the appearance of lamps, reduces misjudgments through sampling comparison methods, and enhances the reliability of the dimming circuit.
Smart Images

Figure CN115150992B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of lighting equipment, and in particular relates to a dimming circuit with integrated photosensitivity. Background Art
[0002] Under the general environment of "vigorously developing intelligent technology, adhering to energy conservation first, green and low-carbon", LED lamps are deeply loved by consumers for their advantages of energy saving, safety and environmental protection. Therefore, the market has generated a demand for adding light control functions to LED lamps so that they do not work during the day and work at night. However, the photosensitivity of LED lamps with light control on the market is generally external, and it is necessary to make external structural parts on the lamp body to fix the photosensitivity, and it needs to be away from its own light-emitting surface to avoid interference from its own LED light, which will inevitably affect the integrity and beauty of the appearance of the lamp, causing the screen to be divided, and the photosensitivity appears abrupt, and additional costs are added. In addition, when the photosensitive transistor and the LED are integrated on the same board, although the lamp bead will be extinguished under the control of the MCU, the lamp bead will not be completely extinguished immediately (because of the capacitor energy storage, the current will not return to zero immediately), it is a gradual process, this phenomenon is called lamp bead afterglow, and the existence of afterglow will cause the ambient brightness collected by the photosensitive device to be composed of light and ambient light, which is easy to cause program misjudgment, and in severe cases, it will cause self-excitation. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the above-mentioned prior art, thereby providing a dimming circuit with integrated photosensitivity.
[0004] The technical solution adopted by the present invention to solve its technical problem is:
[0005] A dimming circuit with integrated photosensitivity, a power supply circuit connected to an external power supply, and outputting external electric energy to other circuits after rectification and filtering; an MCU power supply circuit connected to the power supply circuit, and obtaining stable electric energy that can be used by the MCU after secondary filtering of the electric energy output by the power supply circuit, and outputting the electric energy; an information processing circuit connected to the MCU power supply circuit, and provided with a phototransistor and a single-chip microcomputer, and capable of obtaining a signal from a photosensitive signal received by the phototransistor through a sampling and comparison method preset in the single-chip microcomputer, and outputting a control signal; an LED driving circuit, respectively connected to the power supply circuit and the information processing circuit, and provided with an LED lamp and a driving chip, and the driving chip can control the LED lamp to change its working state according to the control signal output by the information processing circuit.
[0006] Preferably, the power supply circuit is composed of a fuse, a fuse resistor, a varistor, a rectifier bridge stack, an electrolytic capacitor, a diode, a resistor one, a resistor two, a resistor three, a capacitor five, and an IC chip. One end of the fuse is connected to the live wire, one end of the fuse resistor is connected to the neutral wire, the other end of the fuse, one end of the varistor, and one AC pole of the rectifier bridge stack are connected to the network label ACL, the other end of the fuse resistor and the other end of the varistor are connected to the other AC pole of the rectifier bridge stack, the positive pole of the rectifier bridge stack, the positive pole of the electrolytic capacitor, and one end of the resistor three are connected to the network label VCE and the network label LED respectively, the other end of the resistor three, the negative pole of the electrolytic capacitor, and the negative pole of the diode are connected to one pin of the IC chip, the second pin of the IC chip is grounded, the positive pole of the diode, the negative pole of the rectifier bridge stack, one end of the resistor two, and one end of the resistor one are grounded, the other end of the resistor two is connected to one end of the capacitor five, and the other end of the capacitor five and the other end of the resistor one are connected to the three pins of the IC chip.
[0007] Preferably, the MCU power supply circuit consists of a voltage regulator, a voltage regulator, resistor four, resistor five, capacitor one, capacitor two, capacitor three, and capacitor four. One end of resistor four is connected to the network label VCE, the other end of resistor four, one end of capacitor one, one end of capacitor two, and the negative electrode of the voltage regulator are connected to one pin of the voltage regulator, the second pin of the voltage regulator, the other end of capacitor one, the other end of capacitor two, the positive electrode of the voltage regulator, one end of capacitor three, one end of capacitor four, and one end of resistor five are grounded, the third pin of the voltage regulator, the other end of capacitor three, and the other end of capacitor four are connected to the network label VCC, and the other end of resistor five is grounded.
[0008] Preferably, the information processing circuit is composed of a single-chip computer, a phototransistor, a resistor six, a resistor seven, a resistor eight, a resistor nine, and a resistor ten. One end of the resistor six is connected to the network label ACL, the other end of the resistor six and one end of the resistor seven are connected to the second pin of the single-chip computer, the other end of the resistor seven is grounded, one pin of the single-chip computer is connected to the network label VCC, the eighth pin of the single-chip computer is grounded, the seventh pin of the single-chip computer and the end of the resistor eleven are connected to the c pin of the phototransistor, the e pin of the phototransistor and one end of the resistor nine are grounded, one end of the resistor eight is connected to the fifth pin of the single-chip computer, and the other end of the resistor eight and the other end of the resistor nine are connected to the network label PWM.
[0009] Preferably, the LED driving circuit is composed of capacitor 6, a driving chip, LED lamp 1, LED lamp 2, LED lamp 3, resistor 11, resistor 12, resistor 13, and resistor 14; one end of resistor 13, the positive electrode of LED lamp 1, the positive electrode of LED lamp 2, and one end of resistor 11 are connected to the network label LED; the negative electrode of LED lamp 1 and the negative electrode of LED lamp 2 are connected to the other end of resistor 11; the other end of resistor 13 is connected to one pin of the driving chip; the three pins of the driving chip are connected to the network label PWM; the four pins of the driving chip, the nine pins of the driving chip, the five pins of the driving chip, the six pins of the driving chip, and one end of capacitor 6 are grounded; one end of resistor 12 is connected to the positive electrode of LED lamp 3, the negative electrode of LED lamp 3, the other end of resistor 12, and the other end of capacitor 6 are connected to the eight pins of the driving chip; the phototransistor is integrated on the same PCB board with LED lamp 1, LED lamp 2, and LED lamp 3.
[0010] Preferably, the sampling comparison method includes the following:
[0011] a) The single-chip microcomputer adopts terminal sampling, and every fixed time of 2S, the PWM is set to 0, so that all LED lights are turned off, and the off time is 20us;
[0012] b) The MCU pin 6 can supply power to the phototransistor. After the LED light is turned off, the MCU pin 7 will collect the ground voltage of the phototransistor within a fixed time of 5us, thereby receiving the signal output by the phototransistor and obtaining the brightness of the external environment;
[0013] c) The MCU will compare the preset thresholds corresponding to daytime and nighttime. When the judgment results obtained by outputting the signal twice in a row are the same, the MCU will output a control signal to change the working state of the LED light.
[0014] Preferably, the rectifier bridge stack is MB10F.
[0015] Preferably, the IC chip is BP5122FL.
[0016] Preferably, the voltage stabilizer is HT7550-1.
[0017] Preferably, the single chip microcomputer is ME8S02-22.
[0018] Preferably, the phototransistor is ET-F3E.
[0019] Preferably, the driver chip is BP5711EJ.
[0020] Compared with the prior art, the present invention has the following advantages and effects:
[0021] 1) Connecting a resistor in parallel between each LED light can accelerate the disappearance of afterglow;
[0022] 2) Integrate the phototransistor and LED lamp on the same PCB to reduce production costs, and through the end sampling method, the microcontroller can read the photosensitive voltage to ground with a delay, so as to receive the correct ambient brightness, making the dimming circuit more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Schematic diagram of a power supply circuit in an embodiment.
[0024] Figure 2 Schematic diagram of the MCU power supply circuit in the embodiment.
[0025] Figure 3 Schematic diagram of an information processing circuit in an embodiment.
[0026] Figure 4 Schematic diagram of the LED driving circuit in the embodiment.
[0027] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. DETAILED DESCRIPTION
[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0029] Example
[0030] like Figure 1-Figure 4 As shown, the integrated photosensitivity dimming photoelectric circuit is composed of a power supply circuit, an MCU power supply circuit, an information processing circuit and an LED driving circuit. Among them, the power supply circuit is connected to the MCU power supply circuit, the information processing circuit and the LED driving circuit respectively, and is used to rectify and filter the external input power and output it to other circuits respectively to ensure the normal operation of other circuits. The power supply circuit is composed of a fuse F1, a fuse resistor RF1, a varistor RV1, a rectifier bridge DB1, an electrolytic capacitor CE1, a diode D1, a resistor R1, a resistor R2, a resistor R3, a capacitor C5, and an IC chip U3. Among them, one end of the fuse F1 is connected to the live wire, one end of the fuse resistor RF1 is connected to the neutral wire, the other end of the fuse F1, one end of the varistor RV1, and an AC pole of the rectifier bridge DB1 are connected to the network label ACL, the other end of the fuse resistor RF1 and the other end of the varistor RV1 are connected to the other AC pole of the rectifier bridge DB1, the positive pole of the rectifier bridge DB1, the positive pole of the electrolytic capacitor CE1, and one end of the resistor R3 are connected to the network label VCE and the network label LED respectively, the other end of the resistor R3, the negative pole of the electrolytic capacitor CE1, and the negative pole of the diode D1 are connected to one pin of the IC chip U3, and the second pin of the IC chip U3 is grounded, the positive pole of the diode D1, the negative pole of the rectifier bridge DB1, one end of the resistor R2, and one end of the resistor R1 are grounded, the other end of the resistor R2 is connected to one end of the capacitor C5, and the other end of the capacitor C5 and the other end of the resistor R1 are connected to the three pins of the IC chip U3. In this embodiment, the specific model of the rectifier bridge DB1 is MB10F, and the specific model of the IC chip U3 is BP5122FL.
[0031] like Figure 2As shown, the MCU power supply circuit is connected to the information processing circuit, and the power output by the power supply circuit is subjected to voltage reduction filtering to obtain stable 5V power, and then output to the information processing circuit. Specifically, the MCU power supply circuit is composed of a voltage regulator ZD1, a voltage regulator U1, a resistor R4, a resistor R5, a capacitor C1, a capacitor C2, a capacitor C3, and a capacitor C4. Among them, one end of the resistor R4 is connected to the network label VCE, the other end of the resistor R4, one end of the capacitor C1, one end of the capacitor C2, and the negative electrode of the voltage regulator ZD1 are connected to one foot of the voltage regulator U1, the second foot of the voltage regulator U1, the other end of the capacitor C1, the other end of the capacitor C2, the positive electrode of the voltage regulator ZD1, one end of the capacitor C3, one end of the capacitor C4, and one end of the resistor R5 are grounded, the third foot of the voltage regulator U1, the other end of the capacitor C3, and the other end of the capacitor C4 are connected to the network label VCC, and the other end of the resistor R5 is grounded. In this embodiment, the specific model of the voltage regulator U1 is HT7550-1.
[0032] like Figure 3 As shown, the information processing circuit is connected to the LED driving circuit, and the information processing circuit is provided with a phototransistor GM and a single-chip computer U2, which can obtain a signal from the photosensitive signal received by the phototransistor GM through a sampling comparison method preset in the single-chip computer U2, and output a control signal to change the working state of the LED lamp. Specifically, the information processing circuit is composed of a single-chip computer U2, a phototransistor GM, a resistor six R6, a resistor seven R7, a resistor eight R8, a resistor nine R9, and a resistor ten R10. Among them, one end of resistor R6 is connected to the network label ACL, the other end of resistor R6 and one end of resistor R7 are connected to the second pin of single-chip computer U2, the other end of resistor R7 is grounded, one pin of single-chip computer U2 is connected to the network label VCC, the eight pin of single-chip computer U2 is grounded, the seven pin of single-chip computer U2 and the end of resistor R11 are connected to the GMc pin of phototransistor, the GMe pin of phototransistor and one end of resistor R9 are grounded, one end of resistor R8 is connected to the five pin of single-chip computer U2, and the other end of resistor R8 and the other end of resistor R9 are connected to the network label PWM. In this embodiment, the specific model of single-chip computer U2 is ME8S02-22, and the specific model of phototransistor GM is ET-F3E.
[0033] The sampling comparison method preset in the above-mentioned single chip microcomputer U2 includes the following:
[0034] a) The single-chip microcomputer U2 takes terminal sampling and sets PWM to 0 every fixed time of 2S, turning off all LED lights for 20us;
[0035] b) The sixth pin of the single-chip microcomputer U2 can supply power to the phototransistor GM. After the LED light is turned off, the seventh pin of the single-chip microcomputer U2 will collect the ground voltage of the phototransistor GM within a fixed time of 5us, thereby receiving the signal output by the phototransistor GM and obtaining the brightness of the external environment;
[0036] c) The microcontroller U2 will compare the preset thresholds corresponding to day and night. When the judgment results obtained by outputting the signal twice in succession are the same (day or night appears twice in succession), the microcontroller U2 will output a control signal to change the working state of the LED light.
[0037] like Figure 4 As shown, the LED driving circuit is provided with an LED lamp and a driving chip U4. The driving chip U4 can control the LED lamp to change its working state according to the control signal output by the information processing circuit, that is, the lighting and extinguishing of the lamp (LED lamp) are realized through PWM. Specifically, the LED driving circuit is composed of a capacitor C6, a driving chip U4, an LED lamp 1 LED1, an LED lamp 2 LED2, an LED lamp 3 LED3, a resistor 11 R11, a resistor 12 R12, a resistor 13 R13, and a resistor 14 R14. Among them, one end of resistor 13 R13, positive pole of LED lamp 1 LED1, positive pole of LED lamp 2 LED2, one end of resistor 11 R11 are connected to network label LED, negative pole of LED lamp 1 LED1, negative pole of LED lamp 2 LED2 are connected to the other end of resistor 11 R11, the other end of resistor 13 R13 is connected to one foot of driver chip U4, three feet of driver chip U4 are connected to network label PWM, four feet of driver chip U4, nine feet of driver chip U4, one end of resistor 14 R14 is connected to six feet of driver chip U4, one end of capacitor 6 C6 is grounded, one end of resistor 12 R12 is connected to positive pole of LED lamp 3 LED3, negative pole of LED lamp 3 LED3, the other end of resistor 12 R12, the other end of capacitor 6 C6 are connected to eight feet of driver chip U4, and five feet of driver chip U4 are connected to the other end of resistor 14 R14. In this embodiment, the specific model of driver chip U4 is BP5711EJ.
[0038] In this embodiment, the phototransistor GM, the LED lamp 1 LED1, the LED lamp 2 LED2, and the LED lamp 3 LED3 are integrated on the same PCB board.
[0039] In this embodiment, the specific parameters or models of each electronic component include: fuse resistor RF1, 3Ω; electrolytic capacitor CE1, 10 uF; resistor one R1, 10Ω; resistor two R2, 20Ω; resistor three R3, 100KΩ; resistor four R4, 10Ω; resistor five R5, 10Ω; resistor six R6, 1.8MΩ; resistor seven R7, 220KΩ; resistor eight R8, 10Ω; resistor nine R9, 10KΩ; resistor ten R10, 20KΩ; resistor eleven R11, 100KΩ; resistor twelve R12, 100KΩ; resistor thirteen R13, 100KΩ; resistor fourteen R14, 20Ω; capacitor one C1, 10 uF; capacitor two C2, 100nF; capacitor three C3, 10 uF; capacitor four C4, 100nF; capacitor five C5, 10uF; capacitor six C6, 10 uF. The parameters and models of the electronic components are only a preferred embodiment of the present invention, but are not limited to this preferred embodiment.
[0040] The above contents described in this specification are merely examples of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, as long as they do not deviate from the contents of the present specification or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.
Claims
1. A dimming circuit with integrated photosensor, characterized in that: include The power supply circuit is connected to the external power supply, and outputs the external electric energy to other circuits after rectification and filtering; The MCU power supply circuit is connected to the power supply circuit, and performs secondary filtering on the electric energy output by the power supply circuit to obtain stable electric energy that can be used by the MCU and output it; The information processing circuit is connected to the MCU power supply circuit and is provided with a phototransistor and a single-chip microcomputer. The information processing circuit can obtain a signal from the photosensitive signal received by the phototransistor through a sampling comparison method preset in the single-chip microcomputer and output a control signal. The LED driving circuit is connected to the power circuit and the information processing circuit respectively, and is provided with an LED lamp and a driving chip. The driving chip can control the LED lamp to change its working state according to the control signal output by the information processing circuit; The power supply circuit is composed of a fuse, a fuse resistor, a varistor, a rectifier bridge, an electrolytic capacitor, a diode, a resistor one, a resistor two, a resistor three, a capacitor five, and an IC chip. One end of the fuse is connected to the live wire, one end of the fuse resistor is connected to the neutral wire, the other end of the fuse, one end of the varistor, and an AC pole of the rectifier bridge are connected to the network label ACL, the other end of the fuse resistor and the other end of the varistor are connected to the other AC pole of the rectifier bridge, the positive pole of the rectifier bridge, the positive pole of the electrolytic capacitor, and one end of the resistor three are connected to the network label VCE and the network label LED respectively, the other end of the resistor three, the negative pole of the electrolytic capacitor, and the negative pole of the diode are connected to one pin of the IC chip, the second pin of the IC chip is grounded, the positive pole of the diode, the negative pole of the rectifier bridge, one end of the resistor two, and one end of the resistor one are grounded, the other end of the resistor two is connected to one end of the capacitor five, and the other end of the capacitor five and the other end of the resistor one are connected to the three pins of the IC chip; The MCU power supply circuit is composed of a voltage regulator, a voltage regulator, resistor 4, resistor 5, capacitor 1, capacitor 2, capacitor 3, and capacitor 4. One end of resistor 4 is connected to the network label VCE, the other end of resistor 4, one end of capacitor 1, one end of capacitor 2, and the negative electrode of the voltage regulator are connected to one foot of the voltage regulator, the second foot of the voltage regulator, the other end of capacitor 1, the other end of capacitor 2, the positive electrode of the voltage regulator, one end of capacitor 3, one end of capacitor 4, and one end of resistor 5 are grounded, the third foot of the voltage regulator, the other end of capacitor 3, and the other end of capacitor 4 are connected to the network label VCC, and the other end of resistor 5 is grounded; The information processing circuit is composed of a single-chip computer, a phototransistor, a resistor six, a resistor seven, a resistor eight, a resistor nine and a resistor ten. One end of the resistor six is connected to a network labeled ACL, the other end of the resistor six and one end of the resistor seven are connected to pin two of the single-chip computer, the other end of the resistor seven is grounded, one pin of the single-chip computer is connected to a network labeled VCC, pin eight of the single-chip computer is grounded, pin seven of the single-chip computer and an end of the resistor eleven are connected to pin c of the phototransistor, pin e of the phototransistor and one end of the resistor nine are grounded, one end of the resistor eight is connected to pin five of the single-chip computer, and the other ends of the resistor eight and the other ends of the resistor nine are connected to a network labeled PWM. The LED driving circuit is composed of capacitor 6, driving chip, LED lamp 1, LED lamp 2, LED lamp 3, resistor 11, resistor 12, resistor 13, and resistor 14. One end of resistor 13, positive pole of LED lamp 1, positive pole of LED lamp 2, and one end of resistor 11 are connected to the network label LED. The negative pole of LED lamp 1 and the negative pole of LED lamp 2 are connected to the other end of resistor 11. The other end of resistor 13 is connected to one foot of driving chip. The three feet of driving chip are connected to the network label PWM. The four feet of driving chip, the nine feet of driving chip, the six feet of driving chip, one end of resistor 14, and one end of capacitor 6 are grounded. One end of resistor 12 is connected to the positive pole of LED lamp 3, the negative pole of LED lamp 3, the other end of resistor 12, and the other end of capacitor 6 are connected to the eight feet of driving chip. The five feet of driving chip are connected to the other end of resistor 14. The photosensitive transistor and the LED lamp 1, LED lamp 2 and LED lamp 3 are integrated on the same PCB board.
2. The integrated photosensitive dimming circuit according to claim 1, characterized in that: The sampling comparison method includes the following: a) the single chip microcomputer takes terminal sampling, and every fixed time of 2S, the PWM is set to 0, so that all LED lights are turned off, and the off time is 20us; b) The MCU pin 6 can supply power to the phototransistor. After the LED light is turned off, the MCU pin 7 will collect the ground voltage of the phototransistor within a fixed time of 5us, thereby receiving the signal output by the phototransistor and obtaining the brightness of the external environment; c) The MCU will compare the preset thresholds corresponding to daytime and nighttime. When the judgment results obtained by outputting the signal twice in a row are the same, the MCU will output a control signal to change the working state of the LED light.
3. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The rectifier bridge stack is MB10F.
4. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The IC chip is BP5122FL.
5. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The voltage regulator is HT7550-1.
6. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The single chip microcomputer is ME8S02-22.
7. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The phototransistor is ET-F3E.
8. The integrated photosensitive dimming circuit according to claim 1 or 2, characterized in that: The driver chip is BP5711EJ.
