Intelligent lamp and power calculation circuit and power calculation method thereof

By using voltage sampling circuits and constant current chips in smart lamps, combined with the computing power of microcontrollers, efficient calculation of smart lamp power is achieved, solving the problems of complex circuit structure and high production costs in the existing technology, and reducing production Cost and improve calculation accuracy.

CN114466483BActive Publication Date: 2025-02-14ZHUHAI LTECH TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111678281.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-02-14
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The existing smart lamp power calculation circuit structure is complex, resulting in high production costs.

Method used

The voltage sampling circuit and constant current chip are used to calculate the working voltage of the load through the microcontroller, and the output current of the constant current chip is multiplied by the duty cycle of the pulse modulated signal to calculate the power of the smart lamp, avoiding the need for current acquisition.

Benefits of technology

The circuit structure is simplified, the area of ​​the circuit board is reduced, the production cost is reduced, and the accuracy of power calculation is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466483B_ABST
    Figure CN114466483B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent lamp and its power calculation circuit and power calculation method. The power calculation circuit includes a voltage sampling circuit, the voltage sampling circuit collects the positive voltage and negative voltage of the load, and outputs the positive voltage and negative voltage to a microcontroller; and the power calculation circuit also includes a constant current chip and a microcontroller, the constant current chip receives a pulse modulation signal output by the microcontroller, and supplies power to the load according to the pulse modulation signal; the microcontroller receives the positive voltage and negative voltage, and calculates the working voltage of the load according to the positive voltage and negative voltage; the microcontroller calculates the power of the intelligent lamp according to the working voltage, the output current of the constant current chip and the duty cycle of the pulse modulation signal. The present invention also provides a power calculation method for the intelligent lamp. The present invention can improve the calculation accuracy of real-time power and reduce the complexity and production cost of the power calculation circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control of intelligent lamps, and in particular to an intelligent lamp and a power calculation circuit and a power calculation method of the intelligent lamp. Background Art

[0002] With the development of LED lighting technology, LED smart lamps have been used in various occasions. For large-area occasions, a large number of LED smart lamps are often required to be installed, and different LED smart lamps do not necessarily work at the same time, or different LED smart lamps have different luminous brightness, resulting in different power of LED smart lamps. Therefore, the power consumption of LED smart lamps is also different.

[0003] For this reason, more and more occasions require monitoring of the power consumption of LED smart lamps. Therefore, the power supply of LED smart lamps needs to be able to report the power consumption of LED smart lamps in real time, such as the real-time power of LED smart lamps, the total power consumption over a period of time, etc.

[0004] Some existing lamps are equipped with power calculation modules to calculate the power of the lamps. For example, the Chinese invention patent application with publication number CN102749507A discloses a light source power detection device, which is equipped with a current detection module and a voltage detection module, and calculates the real-time power of the lamp by detecting the real-time voltage and real-time current of the lamp. However, since this solution requires the simultaneous provision of a voltage detection module for collecting voltage and a current detection module for collecting current, and also requires real-time calculation of the collected voltage and current, the circuit structure is complex, resulting in a high production cost of the power detection device. Summary of the invention

[0005] A first object of the present invention is to provide a power calculation circuit for an intelligent lamp that can reduce production costs.

[0006] A second object of the present invention is to provide an intelligent lamp having the power calculation circuit of the intelligent lamp.

[0007] A third object of the present invention is to provide a power calculation method using the power calculation circuit of the above-mentioned intelligent lamp.

[0008] To achieve the first purpose of the present invention, the power calculation circuit of the smart lamp provided by the present invention includes a voltage sampling circuit, which collects the positive voltage and negative voltage of the load, and outputs the positive voltage and negative voltage to a microcontroller; and the power calculation circuit also includes a constant current chip and a microcontroller, the constant current chip receives a pulse modulation signal output by the microcontroller, and supplies power to the load according to the pulse modulation signal; the microcontroller receives the positive voltage and the negative voltage, and calculates the working voltage of the load according to the positive voltage and the negative voltage; the microcontroller calculates the power of the smart lamp according to the working voltage, the output current of the constant current chip and the duty cycle of the pulse modulation signal.

[0009] As can be seen from the above scheme, the power calculation circuit does not need to collect the current of the load, but directly uses the output current of the constant current chip multiplied by the duty cycle of the pulse modulation signal to obtain the actual output current. In this way, the power calculation circuit can be made smaller, which is beneficial to saving the area of ​​the circuit board and reducing the production cost of the power calculation circuit.

[0010] A preferred solution is that the voltage sampling circuit includes a positive voltage sampling branch and a negative voltage sampling branch, and both the positive voltage sampling branch and the negative voltage sampling branch are connected to the microcontroller.

[0011] It can be seen that the positive voltage sampling branch and the negative voltage sampling branch directly output the collected positive voltage and negative voltage to the microcontroller, and the microcontroller can calculate the working voltage of the load, thereby simplifying the structure of the voltage sampling circuit.

[0012] A further solution is that the positive voltage sampling branch includes a first filter capacitor connected to a first pin of the microcontroller. Further, the negative voltage sampling branch includes a second filter capacitor connected to a second pin of the microcontroller.

[0013] It can be seen that the collected positive electrode voltage and negative electrode voltage are output to the microcontroller after filtering, which can improve the accuracy of the collected positive electrode voltage and negative electrode voltage.

[0014] To achieve the second purpose of the present invention, the smart lamp provided by the present invention includes an LED chip and a power supply for supplying power to the LED chip, and also includes the above-mentioned power calculation circuit, and the voltage sampling circuit collects the positive voltage and negative voltage loaded to the LED chip.

[0015] A preferred solution is that the smart lamp further comprises a wireless communication module connected to the microcontroller, so that the microcontroller can send the calculated real-time power to the smart lamp control system, so that the smart lamp control system can monitor the power consumption of each smart lamp in real time.

[0016] To achieve the third purpose of the present invention, the power calculation method of the smart lamp provided by the present invention includes a voltage sampling circuit collecting the positive voltage and the negative voltage of the LED chip, and outputting the positive voltage and the negative voltage to a microcontroller; the microcontroller calculates the difference between the positive voltage and the negative voltage as the working voltage of the LED chip; the microcontroller obtains the output current of the constant current chip and the duty cycle of the pulse modulation signal output to the constant current chip; the microcontroller calculates the power of the smart lamp based on the working voltage, the output current and the duty cycle of the pulse modulation signal.

[0017] It can be seen from the above scheme that when calculating the power of the smart lamp, it is not necessary to collect the current of the LED chip, but directly use the output current of the constant current chip multiplied by the duty cycle of the pulse modulation signal to obtain the actual output current, so that the calculated power is more accurate, and it is beneficial to save the area of ​​the circuit board and reduce the production cost of the smart lamp.

[0018] A preferred solution is that the microcontroller calculates the power of the smart lamp at preset time intervals and sends the calculated power to the smart lamp control system in real time.

[0019] In this way, the smart lamp control system can receive the real-time power of the smart lamp in real time, thereby quickly determining the power consumption of the smart lamp.

[0020] A further solution is that the microcontroller obtains the output current of the constant current chip, including: the microcontroller obtains the model of the constant current chip, and determines the output current of the constant current chip according to the model of the constant current chip.

[0021] An optional solution is that the microcontroller obtains the output current of the constant current chip, including: the microcontroller reads the output current of the constant current chip from a preset memory.

[0022] It can be seen that the microcontroller obtains the output current of the constant current chip directly from the preset memory instead of obtaining the output current by detection. The acquisition of the output current is very simple and very accurate, which can improve the accuracy of power calculation and reduce the production cost of smart lamps. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is an electrical principle block diagram of an embodiment of the intelligent lamp of the present invention.

[0024] Figure 2 It is an electrical schematic diagram of a constant current circuit of an embodiment of a smart lamp power calculation circuit of the present invention.

[0025] Figure 3 It is an electrical schematic diagram of a microcontroller of an embodiment of the intelligent lamp power calculation circuit of the present invention.

[0026] Figure 4It is a flow chart of an embodiment of the intelligent lamp power calculation method of the present invention.

[0027] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0028] The intelligent lamp of the present invention has an LED chip, a constant current chip, a power supply circuit and a microcontroller. The microcontroller can obtain the working voltage loaded to the LED chip and calculate the real-time power of the intelligent lamp according to the output current output by the constant current chip, the duty cycle of the pulse modulation signal and the working voltage.

[0029] See also Figure 1 The intelligent lamp of this embodiment includes a microcontroller 11, a constant current circuit 12, an LED chip 13 and a wireless communication module 14, wherein the constant current circuit 12 is provided with a voltage sampling circuit for collecting the load voltage, and outputs the collected positive voltage and negative voltage to the microcontroller 11. The constant current circuit 12 receives the DC power provided by the power circuit, and supplies power to the LED chip 13. Preferably, a constant current chip is provided in the constant current circuit 12, and the output current of the constant current chip is constant. The microcontroller 11 can output a pulse modulation signal to the constant current chip to modulate the output current, thereby changing the effective current loaded to the LED chip 13. Usually, the DC voltage provided by the DC power supply is fixed. When dimming is required, the microcontroller 11 changes the power of the LED chip 13 by changing the duty cycle of the output pulse modulation signal, thereby changing the effective current output to the LED chip 13 by the constant current chip.

[0030] The microcontroller 11 obtains the operating voltage of the LED chip 13 through the voltage sampling circuit, and obtains the output current of the constant current chip. Since the duty cycle of the pulse modulation signal output by the microcontroller 11 is known, the microcontroller 11 can calculate the real-time power of the smart lamp according to the operating voltage, the output current of the constant current chip and the duty cycle of the pulse modulation signal, and then send the calculated real-time power to the smart lamp control system through the wireless communication module 14. Usually, the smart lamp control system communicates with multiple smart lamps, so the smart lamp control system can obtain the real-time power of multiple smart lamps, thereby calculating the total power of multiple smart lamps in the entire smart lamp control system.

[0031] See also Figure 2The constant current circuit 12 includes a voltage sampling circuit. In this embodiment, the voltage sampling circuit includes a positive voltage sampling branch and a negative voltage sampling branch, wherein the positive voltage sampling branch collects the positive voltage loaded on the LED chip 13. For example, the terminal V+ is connected to the positive terminal of the DC power supply, the positive voltage sampling branch includes a resistor R6 and a resistor R8 connected in series, and the positive voltage sampling point is the connection point between the resistor R6 and the resistor R8. The positive voltage sampling branch outputs the collected positive voltage to the microcontroller 12. See Figure 3 , pin 15 of the single chip microcomputer U2 of the microcontroller 12 is connected to the positive voltage sampling branch and receives the positive voltage.

[0032] The negative voltage sampling branch is used to collect the voltage on the negative terminal A- of the LED chip 13. The negative voltage sampling branch includes a resistor R7 and a resistor R9 connected in series. The negative voltage sampling point is the connection point between the resistor R7 and the resistor R9. The negative voltage sampling branch outputs the collected negative voltage to the microcontroller 12. Figure 3 It can be seen that the pin 17 of the single chip microcomputer U2 of the microcontroller 12 is connected to the negative voltage sampling branch and receives the negative voltage.

[0033] Preferably, a first filter capacitor C7 is connected between the positive voltage sampling branch and the microcontroller 12. Figure 3 It can be seen that the first filter capacitor C7 is connected to the first pin of the microcontroller 12, that is, pin 15. A second filter capacitor C10 is connected between the negative voltage sampling branch and the microcontroller 12. Figure 3 It can be seen that the second filter capacitor C10 is connected to the second pin of the microcontroller 12 , namely, the pin 17 .

[0034] The constant current circuit 12 also includes a constant current chip U1. The output current of the constant current chip U1 is constant. However, in order to adjust the power of the LED chip 13, the microcontroller 12 outputs a pulse modulation signal to the constant current chip U1. For example, the pin 28 of the single-chip computer U2 outputs a pulse modulation signal PWM1 to the constant current chip U1. The output current of the constant current chip U1 is constant, but under the modulation of the pulse modulation signal, the effective current loaded to the LED chip 13 is variable. The larger the duty cycle of the pulse modulation signal, the larger the effective current loaded to the LED chip 13. The smaller the duty cycle of the pulse modulation signal, the smaller the effective current loaded to the LED chip 13.

[0035] For example, the microcontroller calculates the duty cycle value of the pulse modulation signal output to the constant current chip based on the set brightness information of the received LED chip, or determines the duty cycle value of the pulse modulation signal output to the constant current chip according to a preset control method, and outputs a pulse modulation signal with a preset duty cycle to the constant current chip based on the value, thereby adjusting the luminous brightness of the LED chip.

[0036] Therefore, when calculating the real-time power of the smart lamp, the microcontroller 12 can calculate the real-time power loaded to the LED chip 13 according to the duty cycle of the pulse modulation signal and the output current of the constant current chip U1.

[0037] Combine the following Figure 4 A method for calculating power of an intelligent lamp is introduced. First, step S1 is executed, and the constant current circuit collects the positive voltage and the negative voltage of the LED chip through the voltage sampling circuit. Specifically, the voltage at the positive terminal V+ is obtained as the positive voltage through the positive voltage sampling branch, and the voltage at the negative terminal A- is obtained as the negative voltage through the negative voltage sampling branch. Both the positive voltage and the negative voltage are output to the microcontroller 12.

[0038] Then, the microcontroller executes step S2 to calculate the operating voltage of the LED chip. Specifically, the difference between the positive voltage and the negative voltage is calculated, and the difference is used as the operating voltage V0 of the LED chip. Next, step S3 is executed, and the microcontroller obtains the output current of the constant current chip. Specifically, the microcontroller obtains the model of the constant current chip and determines the output current of the constant current chip according to the model of the constant current signal. Alternatively, the output current of the constant current chip is pre-stored in a preset memory, which can be a memory of the microcontroller itself or a memory set outside the microcontroller.

[0039] For a specific model of constant current chip, its output current is a fixed value, so the microcontroller only needs to obtain the model of the constant current chip to determine the output current of the constant current chip. For example, the microcontroller can obtain the output current of the constant current chip by looking up the table according to the model of the constant current chip. Of course, since the model of the constant current chip used in the constant current circuit has been determined, the value of the output current of the constant current chip can be written to the memory in advance. In this way, the microcontroller can read the output current of the constant current chip from the memory.

[0040] Then, the microcontroller executes step S4 to calculate the real-time power of the LED chip according to the working voltage loaded to the LED chip, the output current of the constant current chip, and the duty cycle of the pulse modulation signal. Since the microcontroller obtains the positive voltage and the negative voltage through the voltage sampling circuit, and calculates the working voltage of the LED chip, and also obtains the output current of the constant current chip, the pulse modulation signal is output by the microcontroller, so the microcontroller can determine the duty cycle of the pulse modulation signal. In step S4, the product of the working voltage loaded to the LED chip, the output current of the constant current chip, and the duty cycle of the pulse modulation signal is calculated, and the product is used as the real-time power of the LED chip.

[0041] Finally, step S5 is executed, and the microcontroller sends the calculated real-time power to the smart lamp control system through the wireless communication module. For example, the wireless communication module can be a Bluetooth module, a WIFI module, etc., and the smart lamp control system can receive the real-time power of each smart lamp in real time.

[0042] In actual application, the microcontroller calculates the power of the smart lamp at a preset time interval, for example, calculating the real-time power every 30 seconds, and sends the calculated power to the smart lamp control system in real time. Of course, the preset interval time can be adjusted according to actual needs, for example, calculating the real-time power every 15 seconds.

[0043] It can be seen that the effective current loaded into the LED chip is not obtained through acquisition, but the microcontroller obtains the output current of the constant current chip by looking up the table or from the memory, and then multiplies it by the duty cycle of the pulse modulation signal to calculate the effective current, and then multiplies the effective current by the working voltage to calculate the real-time power of the smart lamp. In this way, the power calculation circuit does not need to set up a circuit for collecting current, which reduces the area of ​​the circuit board and reduces the production cost of the smart lamp. In addition, since the effective current is obtained through calculation, it can eliminate the situation where the collected signal is inaccurate due to factors such as electromagnetic interference, thereby improving the accuracy of real-time power calculation.

[0044] Finally, it should be emphasized that the present invention is not limited to the above-mentioned embodiments. For example, changes in the constant current chip model, or changes in the microcontroller model used, etc., should also be included in the scope of protection of the claims of the present invention.

Claims

1. The power calculation circuit of the intelligent lamp includes a microcontroller and also includes: A voltage sampling circuit, wherein the voltage sampling circuit collects the positive voltage and the negative voltage of the load, and outputs the positive voltage and the negative voltage to the microcontroller; Features: The power calculation circuit also includes a constant current chip, which receives the pulse modulation signal output by the microcontroller and supplies power to the load according to the pulse modulation signal; The microcontroller receives the positive voltage and the negative voltage, and calculates the working voltage of the load according to the positive voltage and the negative voltage; the microcontroller calculates the power of the smart lamp according to the working voltage, the output current of the constant current chip and the duty cycle of the pulse modulation signal; The microcontroller obtains the output current of the constant current chip, including: the microcontroller obtains the model of the constant current chip, and determines the output current of the constant current chip according to the model of the constant current chip; or, the microcontroller reads the output current of the constant current chip from a preset memory.

2. The power calculation circuit of the intelligent lamp according to claim 1, characterized in that: The voltage sampling circuit comprises a positive voltage sampling branch and a negative voltage sampling branch, and both the positive voltage sampling branch and the negative voltage sampling branch are connected to the microcontroller.

3. The power calculation circuit of the intelligent lamp according to claim 2, characterized in that: The positive voltage sampling branch includes a first filter capacitor, and the first filter capacitor is connected to a first pin of the microcontroller.

4. The power calculation circuit of the intelligent lamp according to claim 2, characterized in that: The negative electrode voltage sampling branch includes a second filter capacitor, and the second filter capacitor is connected to a second pin of the microcontroller.

5. Intelligent lamps, including: An LED chip and a power source for supplying power to the LED chip; It is characterized in that the intelligent lamp also includes a power calculation circuit as described in any one of claims 1 to 4, and the voltage sampling circuit collects the positive voltage and the negative voltage loaded to the LED chip.

6. The intelligent lamp according to claim 5, characterized in that: Also included is a wireless communication module connected to the microcontroller.

7. A method for calculating the power of an intelligent lamp, characterized in that: include: The voltage sampling circuit collects the positive voltage and the negative voltage of the LED chip, and outputs the positive voltage and the negative voltage to the microcontroller; The microcontroller calculates the difference between the positive electrode voltage and the negative electrode voltage as the operating voltage of the LED chip; The microcontroller obtains the output current of the constant current chip and the duty cycle of the pulse modulation signal output to the constant current chip; The microcontroller calculates the power of the smart lamp according to the operating voltage, the output current and the duty cycle of the pulse modulation signal; The microcontroller obtains the output current of the constant current chip, including: the microcontroller obtains the model of the constant current chip, and determines the output current of the constant current chip according to the model of the constant current chip; Alternatively, the microcontroller reads the output current of the constant current chip from a preset memory.

8. The power calculation method of the intelligent lamp according to claim 7, characterized in that: The microcontroller calculates the power of the smart lamp at preset time intervals, and sends the calculated power to the smart lamp control system in real time.

Citation Information

Patent Citations

  • Light source power detection device

    CN102749507A

  • Drive circuit and drive method for LED as well as LED device

    CN101276556A

  • Voltage regulation method and device based on LED lamp beads

    CN113453401A

  • Power Control Apparatus For LED

    KR1020160110576A