An automatic detection circuit for the voltage and current of a two-wire light source

Through the two-wire light source voltage and current automatic detection circuit, the light source controller composed of the main control module and the voltage and current detection module is used to realize the accurate detection and output of the light source voltage and current, solving the problems of large cable diameter and wiring difficulties caused by multi-core wires, simplifying the light source wires and broadening the scope of application.

CN114942394BActive Publication Date: 2025-07-29GUANGDONG AOPUTE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210669694.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2025-07-29
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

Existing light source controllers require multi-core wires to identify and provide the voltage and current of the visual light source, resulting in larger cable diameters, affecting the volume of the visual light source and difficulty in field wiring.

Method used

A two-wire light source voltage and current automatic detection circuit is designed, and the light source controller is formed through the main control module, the voltage regulation module, the voltage detection module, the current regulation module and the current detection module, and the voltage and current detection module are used to realize the detection and output of voltage and current.

Benefits of technology

The number of connection lines between the light source controller and the light source is reduced, the light source wire is simplified, the scope of application of the light source controller is broadened, and the voltage and current of the light source can be accurately detected and outputted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942394B_ABST
    Figure CN114942394B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic detection circuit for the voltage and current of a two-wire light source, which includes a main control module, a voltage regulation module, a voltage detection module, a current regulation module, a current detection module, and a light source controller composed of two-core wires; the voltage regulation module is connected to the main control module, the voltage detection module is connected to the main control module, and both the voltage regulation module and the voltage detection module are connected to the light source through the LED+ wire of the two-core wire; both the voltage detection module and the current regulation module are connected to the light source through the LED- wire of the two-core wire; the current regulation module is connected to the main control module, the current regulation module is connected to the current detection module; the current detection module is connected to the main control module. The present invention can be connected to the light source only through two-core wires, and the light source controller can accurately detect the voltage and current of the light source and accurately output the corresponding voltage and current, which not only reduces the number of connecting wires between the light source controller and the light source, simplifies the light source wire material, but also broadens the applicable range of the light source controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and particularly to an automatic detection circuit for the voltage and current of a two-wire light source. Background Art

[0002] The development of the machine vision industry has put higher and higher requirements on vision light sources, and the voltage and current required by different vision light sources vary widely.

[0003] Currently, in order to automatically identify the voltage and current required by a vision light source and provide the voltage and current required by the light source, a light source controller generally uses multi-core wires to place multiple sensor devices on the vision light source, which directly leads to an increase in the cable diameter and outlet of the vision light source, thereby affecting the volume of the vision light source and the difficulty of on-site wiring.

[0004] Therefore, it is necessary to improve the existing technology.

[0005] The above information is given as background information only to assist in understanding the present disclosure, and does not determine or admit whether any of the above content can be used as prior art relative to the present disclosure. Summary of the Invention

[0006] The present invention provides an automatic detection circuit for the voltage and current of a two-wire light source to solve the deficiencies of the existing technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] An automatic detection circuit for the voltage and current of a two-wire light source, applied to a light source, includes a light source controller, and the light source controller includes a main control module, a voltage regulation module, a voltage detection module, a current regulation module, a current detection module, and a two-core wire; wherein,

[0009] The input end of the voltage regulation module is connected to an output end of the main control module, the output end of the voltage detection module is connected to an input end of the main control module, and the output end of the voltage regulation module and an input end of the voltage detection module are both connected to the light source through the LED+ wire of the two-core wire;

[0010] Another input end of the voltage detection module and an input end of the current regulation module are both connected to the light source through the LED- wire of the two-core wire;

[0011] Another input end of the current regulation module is connected to another output end of the main control module, and the output end of the current regulation module is connected to the input end of the current detection module;

[0012] The output end of the current detection module is connected to another input end of the main control module.

[0013] Further, in the automatic detection circuit for the two-wire type light source voltage and current, the light source includes a parameter resistor, a voltage division module, and an LED module;

[0014] One end of the parameter resistor is connected to the LED+ wire of the two-core wire, and the other end of the parameter resistor is connected to the LED- wire of the two-core wire to be connected in parallel with the voltage detection module;

[0015] One end of the voltage division module is connected to one end of the LED module to form a series connection, and the other end of the voltage division module is connected to the LED+ wire of the two-core wire;

[0016] The other end of the LED module is connected to the LED- wire of the two-core wire to be connected to the voltage detection module.

[0017] Further, in the automatic detection circuit for the two-wire type light source voltage and current, the voltage division module includes a first diode D1;

[0018] The positive electrode of the first diode D1 is connected to the LED+ wire of the two-core wire, and the negative electrode of the first diode D1 is connected to one end of the LED module.

[0019] Further, in the automatic detection circuit for the two-wire type light source voltage and current, the LED module includes a plurality of light-emitting diodes.

[0020] Further, in the automatic detection circuit for the two-wire type light source voltage and current, the main control module includes a microprocessor U1, a digital-to-analog conversion chip U2, a fifty-eighth resistor R58, a sixth capacitor C6, a sixty-first resistor R61, a sixty-fourth resistor R64, a sixty-third resistor R63, a fourth capacitor C4, a second capacitor C2, and a crystal oscillator Y2;

[0021] The ADC1 pin of the microprocessor U1 is connected to the output end of the voltage detection module, the ADC2 pin of the microprocessor U1 is connected to the output end of the current detection module, the PC0 pin of the microprocessor U1 is connected to the DOUT pin of the digital-to-analog conversion chip U2, the PC1 pin of the microprocessor U1 is connected to the DI pin of the digital-to-analog conversion chip U2, the PC2 pin of the microprocessor U1 is connected to the SCLK pin of the digital-to-analog conversion chip U2, and the PC3 pin of the microprocessor U1 is connected to the SYNC pin of the digital-to-analog conversion chip U2;

[0022] The VDD pin of the microprocessor U1 is connected to a pull-up voltage source, the NRST pin of the microprocessor U1 is grounded through the sixth capacitor C6, and the VSS pin of the microprocessor U1 is grounded;

[0023] One end of the fifty-eighth resistor is connected to the VDD pin of the microprocessor U1, and the other end of the fifty-eighth resistor is connected to the NRST pin of the microprocessor U1;

[0024] The BOOT1 pin of the microprocessor U1 is grounded through the sixty-first resistor R61, and the BOOT0 pin of the microprocessor U1 is grounded through the sixty-fourth resistor R64;

[0025] The OSC_0 pin of the microprocessor U1 is grounded through the fourth capacitor C4, and the OSC_1 pin of the microprocessor U1 is grounded through the second capacitor C2;

[0026] One end of the sixty-third resistor R63 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the sixty-third resistor R63 is connected to the OSC_1 pin of the microprocessor U1;

[0027] One end of the crystal oscillator Y2 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the crystal oscillator Y2 is connected to the OSC_1 pin of the microprocessor U1;

[0028] The VA pin, Vref1 pin, and Vref2 pin of the digital-to-analog conversion chip U2 are all connected to a pull-up voltage source. The VoutG pin of the digital-to-analog conversion chip U2 is connected to the input end of the voltage regulation module. The VoutH pin of the digital-to-analog conversion chip U2 is connected to the input end of the current regulation module. The GND pin of the digital-to-analog conversion chip U2 is grounded.

[0029] Further, in the automatic detection circuit for the voltage and current of the two-wire type light source, the voltage regulation module includes a first operational amplifier U11A, a first triode Q5, a second triode Q6, a first capacitor C1, a seventh resistor R7, and an eighth resistor R8;

[0030] The positive input end of the first operational amplifier U11A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input end of the first operational amplifier U11A is connected to the output end of the first operational amplifier U11A through the first capacitor C1. The output end of the first operational amplifier U11A is connected to the base of the first triode Q5;

[0031] The collector of the first triode Q5 is connected to the pull-up voltage source. The emitter of the first triode Q5 is connected to the base of the second triode Q6. The collector of the second triode Q6 is connected to the pull-up voltage source. The emitter of the second triode Q6 is connected to the light source through the LED+ wire of the two-core wire.

[0032] One end of the eighth resistor R8 is connected between the negative input terminal of the first operational amplifier U11A and the first capacitor C1, and the other end of the eighth resistor R8 is grounded.

[0033] One end of the seventh resistor R7 is connected between the negative input terminal of the first operational amplifier U11A and the first capacitor C1, and the other end of the seventh resistor R7 is connected to the emitter of the second triode Q6.

[0034] Further, in the automatic detection circuit for the voltage and current of the two-wire light source, the voltage detection module includes a second operational amplifier U12A, a fifth capacitor C5, a thirteenth resistor R13, a seventy-fourth capacitor C74, a twelfth resistor R12, an eleventh resistor R11, a ninth resistor R9, and a tenth resistor R10.

[0035] The output terminal of the second operational amplifier U12A is connected to the ADC1 pin of the microprocessor U1 through the thirteenth resistor R13. One end of the fifth capacitor C5 is connected between the thirteenth resistor R13 and the ADC1 pin of the microprocessor U1, and the other end of the fifth capacitor C5 is grounded.

[0036] The positive input terminal of the second operational amplifier U12A is connected to the LED+ wire of the two-core wire through the ninth resistor R9, and the negative input terminal of the second operational amplifier U12A is connected to the LED- wire of the two-core wire through the tenth resistor R10.

[0037] One end of the seventy-fourth capacitor C74 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the seventy-fourth capacitor C74 is connected to the negative input terminal of the second operational amplifier U12A.

[0038] One end of the twelfth resistor R12 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the twelfth resistor R12 is connected to the negative input terminal of the second operational amplifier U12A.

[0039] One end of the eleventh resistor R11 is connected between the positive input terminal of the second operational amplifier U12A and the ninth resistor R9, and the other end of the eleventh resistor R11 is grounded.

[0040] Further, in the automatic detection circuit for the voltage and current of the two-wire light source, the current adjustment module includes a third operational amplifier U13A, a MOS transistor Q7, a third capacitor C3, a fifth resistor R5, a sixth resistor R6, and a fourth resistor R4;

[0041] The positive input terminal of the third operational amplifier U13A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input terminal of the third operational amplifier U13A is connected to the input terminal of the current detection module through the sixth resistor R6. The output terminal of the third operational amplifier U13A is connected to the gate of the MOS transistor Q7 through the fifth resistor R5. The source of the MOS transistor Q7 is connected between the sixth resistor R6 and the input terminal of the current detection module. The drain of the MOS transistor Q7 is connected to the LED- wire of the two-core wire;

[0042] One end of the third capacitor C3 is connected to the negative input terminal of the third operational amplifier U13A, and the other end of the third capacitor C3 is connected to the output terminal of the third operational amplifier U13A;

[0043] One end of the fourth resistor R4 is connected between the sixth resistor R6 and the input terminal of the current detection module, and the other end of the fourth resistor R4 is grounded.

[0044] Further, in the automatic detection circuit for the voltage and current of the two-wire light source, the current detection module includes a fourth operational amplifier U14A, a twenty-fourth resistor R24, and a twenty-fifth resistor R25;

[0045] The output terminal of the fourth operational amplifier U14A is connected to the ADC2 pin of the microprocessor U1. The positive input terminal of the fourth operational amplifier U14A is connected between the source of the MOS transistor Q7 and the sixth resistor R6. The negative input terminal of the fourth operational amplifier U14A is grounded through the twenty-fifth resistor R25;

[0046] One end of the twenty-fourth resistor R24 is connected to the output terminal of the fourth operational amplifier U14A, and the other end of the twenty-fourth resistor R24 is connected to the negative input terminal of the fourth operational amplifier U14A.

[0047] Further, in the automatic detection circuit for the voltage and current of the two-wire light source, the power supply terminal of the first operational amplifier U11A is connected to the pull-up voltage source;

[0048] The power supply terminals of the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all connected to the pull-up voltage source;

[0049] The grounding terminals of the first operational amplifier U11A, the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all grounded.

[0050] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0051] An automatic detection circuit for the voltage and current of a two-wire light source provided by an embodiment of the present invention forms a light source controller through a main control module, a voltage regulation module, a voltage detection module, a current regulation module, and a current detection module, enabling the light source controller to accurately detect the voltage and current of the light source by connecting to the light source through only two-core wires, and accurately output corresponding voltage and current according to the detected voltage and current. This not only reduces the number of connection wires between the light source controller and the light source, simplifies the light source wire materials, but also broadens the applicable range of the light source controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0053] Figure 1 is a schematic diagram of the functional modules of an automatic detection circuit for the voltage and current of a two-wire light source provided by an embodiment of the present invention;

[0054] Figure 2 is a schematic diagram of the circuit principle of an automatic detection circuit for the voltage and current of a two-wire light source provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0055] In order to make the objectives, features, and advantages of the present invention more obvious and understandable, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0056] In the description of the present invention, it should be understood that when a component is considered to be "connected" to another component, it can be directly connected to the other component or there may be an intermediate component. When a component is considered to be "disposed on" another component, it can be directly disposed on the other component or there may be an intermediate component.

[0057] In addition, terms such as "long", "short", "inner", "outer", etc. indicating orientation or positional relationship are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention, rather than indicating or implying that the device or component referred to must have this specific orientation or be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of the present invention.

[0058] The technical solution of the present invention will be further described below in conjunction with the drawings and through specific embodiments.

[0059] Embodiment 1

[0060] In view of the defects existing in the above-mentioned existing light source voltage and current identification and supply technologies, based on the rich practical experience and professional knowledge in the design and manufacture of this field for many years by the applicant, and in cooperation with the application of theory, active research and innovation have been carried out in the hope of creating a technology that can solve the defects in the existing technology, making the light source voltage and current identification and supply technology more practical. After continuous research, design, and repeated sample making and improvement, the present invention with practical value has finally been created.

[0061] Please refer to Figure 1-2 , an embodiment of the present invention provides an automatic detection circuit for two-wire light source voltage and current, which is applied to a light source and includes a light source controller. The light source controller includes a main control module, a voltage regulation module, a voltage detection module, a current regulation module, a current detection module, and a two-core wire; wherein,

[0062] The input end of the voltage regulation module is connected to an output end of the main control module, the output end of the voltage detection module is connected to an input end of the main control module, and the output end of the voltage regulation module and an input end of the voltage detection module are both connected to the light source through the LED+ wire of the two-core wire;

[0063] Another input end of the voltage detection module and an input end of the current regulation module are both connected to the light source through the LED- wire of the two-core wire;

[0064] Another input end of the current regulation module is connected to another output end of the main control module, and the output end of the current regulation module is connected to the input end of the current detection module;

[0065] The output end of the current detection module is connected to another input end of the main control module.

[0066] It should be noted that the LED+ wire of the two-core wire is the positive pole for the light source controller to supply electrical energy to the light source, and the LED- wire of the two-core wire is the negative pole for the light source controller to supply electrical energy to the light source.

[0067] In this embodiment, the light source includes a parameter resistor, a voltage dividing module, and an LED module;

[0068] One end of the parameter resistor is connected to the LED+ wire of the two-core wire, and the other end of the parameter resistor is connected to the LED- wire of the two-core wire to be connected in parallel with the voltage detection module;

[0069] One end of the voltage dividing module is connected to one end of the LED module to form a series connection, and the other end of the voltage dividing module is connected to the LED+ wire of the two-core wire;

[0070] The other end of the LED module is connected to the LED- wire of the two-core wire to be connected to the voltage detection module.

[0071] It should be noted that the resistance value of the parameter resistor can be selected as 400Ω.

[0072] In this embodiment, the voltage dividing module includes a first diode D1;

[0073] The positive electrode of the first diode D1 is connected to the LED+ wire of the two-core wire, and the negative electrode of the first diode D1 is connected to one end of the LED module.

[0074] In this embodiment, the LED module includes a plurality of light-emitting diodes.

[0075] Specifically, several of the light-emitting diodes are connected in series and then connected in parallel with another or several other light-emitting diodes.

[0076] In this embodiment, the main control module includes a microprocessor U1, a digital-to-analog conversion chip U2, a fifty-eighth resistor R58, a sixth capacitor C6, a sixty-first resistor R61, a sixty-fourth resistor R64, a sixty-third resistor R63, a fourth capacitor C4, a second capacitor C2, and a crystal oscillator Y2;

[0077] The ADC1 pin of the microprocessor U1 is connected to the output end of the voltage detection module, the ADC2 pin of the microprocessor U1 is connected to the output end of the current detection module, the PC0 pin of the microprocessor U1 is connected to the DOUT pin of the digital-to-analog conversion chip U2, the PC1 pin of the microprocessor U1 is connected to the DI pin of the digital-to-analog conversion chip U2, the PC2 pin of the microprocessor U1 is connected to the SCLK pin of the digital-to-analog conversion chip U2, and the PC3 pin of the microprocessor U1 is connected to the SYNC pin of the digital-to-analog conversion chip U2;

[0078] The VDD pin of the microprocessor U1 is connected to a pull-up voltage source (+3.3V), the NRST pin of the microprocessor U1 is grounded through the sixth capacitor C6, and the VSS pin of the microprocessor U1 is grounded;

[0079] One end of the fifty-eighth resistor is connected to the VDD pin of the microprocessor U1, and the other end of the fifty-eighth resistor is connected to the NRST pin of the microprocessor U1;

[0080] The BOOT1 pin of the microprocessor U1 is grounded through the sixty-first resistor R61, and the BOOT0 pin of the microprocessor U1 is grounded through the sixty-fourth resistor R64;

[0081] The OSC_0 pin of the microprocessor U1 is grounded through the fourth capacitor C4, and the OSC_1 pin of the microprocessor U1 is grounded through the second capacitor C2;

[0082] One end of the sixty-third resistor R63 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the sixty-third resistor R63 is connected to the OSC_1 pin of the microprocessor U1;

[0083] One end of the crystal oscillator Y2 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the crystal oscillator Y2 is connected to the OSC_1 pin of the microprocessor U1;

[0084] The VA pin, Vref1 pin, and Vref2 pin of the digital-to-analog conversion chip U2 are all connected to a pull-up voltage source (+5V). The VoutG pin of the digital-to-analog conversion chip U2 is connected to the input end of the voltage regulation module, the VoutH pin of the digital-to-analog conversion chip U2 is connected to the input end of the current regulation module, and the GND pin of the digital-to-analog conversion chip U2 is grounded.

[0085] It should be noted that the main control module is mainly composed of the microprocessor U1 and the digital-to-analog conversion chip U2, and outputs a DAC signal to adjust the current and voltage. By detecting the voltage of the parameter resistor, the resistance value of the parameter resistor is obtained, and then the current passing through the LED module is obtained through proportional conversion;

[0086] The microprocessor U1 can select a chip of model STM32F103, the digital-to-analog conversion chip U2 can select a chip of model DAC108S085, the resistance value of the fifty-eighth resistor R58 can be selected as 10 kΩ, the capacitance value of the sixth capacitor C6 can be selected as 0.1 uF, the resistance value of the sixty-first resistor R61 can be selected as 10 kΩ, the resistance value of the sixty-fourth resistor R64 can be selected as 10 kΩ, the resistance value of the sixty-third resistor R63 can be selected as 1 MΩ, the capacitance value of the fourth capacitor C4 can be selected as 24 pF, the capacitance value of the second capacitor C2 can be selected as 24 pF, and the frequency of the crystal oscillator Y2 can be selected as 8 Mhz.

[0087] In this embodiment, the voltage regulation module includes a first operational amplifier U11A, a first triode Q5, a second triode Q6, a first capacitor C1, a seventh resistor R7, and an eighth resistor R8; <(

[0088] The positive input terminal of the first operational amplifier U11A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input terminal of the first operational amplifier U11A is connected to the output terminal of the first operational amplifier U11A through the first capacitor C1. The output terminal of the first operational amplifier U11A is connected to the base of the first triode Q5;

[0089] The collector of the first triode Q5 is connected to the pull-up voltage source (+27V). The emitter of the first triode Q5 is connected to the base of the second triode Q6. The collector of the second triode Q6 is connected to the pull-up voltage source (+27V). The emitter of the second triode Q6 is connected to the light source through the LED+ wire of the two-core wire;

[0090] One end of the eighth resistor R8 is connected between the negative input terminal of the first operational amplifier U11A and the first capacitor C1, and the other end of the eighth resistor R8 is grounded;

[0091] One end of the seventh resistor R7 is connected between the negative input terminal of the first operational amplifier U11A and the first capacitor C1, and the other end of the seventh resistor R7 is connected to the emitter of the second triode Q6.

[0092] It should be noted that the voltage regulation module is mainly a non-inverting amplifier circuit composed of the first operational amplifier U11A, the first triode Q5, the second triode Q6, resistors, and capacitors, and the amplification factor is = 10 times;

[0093] The first operational amplifier U11A can be an operational amplifier of model LM258, the first triode can be a triode of model Q5S9014, the second triode can be a triode of model Q6BU406, the capacitance value of the first capacitor C1 can be selected as 1 nF, the resistance value of the seventh resistor R7 can be selected as 27 kΩ, and the resistance value of the eighth resistor R8 can be selected as 3 kΩ.

[0094] In this embodiment, the voltage detection module includes a second operational amplifier U12A, a fifth capacitor C5, a thirteenth resistor R13, a seventy-fourth capacitor C74, a twelfth resistor R12, an eleventh resistor R11, a ninth resistor R9, and a tenth resistor R10;

[0095] The output terminal of the second operational amplifier U12A is connected to the ADC1 pin of the microprocessor U1 through the thirteenth resistor R13. One end of the fifth capacitor C5 is connected between the thirteenth resistor R13 and the ADC1 pin of the microprocessor U1, and the other end of the fifth capacitor C5 is grounded;

[0096] The positive input terminal of the second operational amplifier U12A is connected to the LED+ line of the two-core wire through the ninth resistor R9, and the negative input terminal of the second operational amplifier U12A is connected to the LED- line of the two-core wire through the tenth resistor R10;

[0097] One end of the seventy-fourth capacitor C74 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the seventy-fourth capacitor C74 is connected to the negative input terminal of the second operational amplifier U12A;

[0098] One end of the twelfth resistor R12 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the twelfth resistor R12 is connected to the negative input terminal of the second operational amplifier U12A;

[0099] One end of the eleventh resistor R11 is connected between the positive input terminal of the second operational amplifier U12A and the ninth resistor R9, and the other end of the eleventh resistor R11 is grounded.

[0100] It should be noted that the voltage detection module is mainly composed of a differential amplification circuit formed by the second operational amplifier U12A, resistors, and capacitors. In the figure, R9 = R 10 、R 11 = R 12 , then the amplification factor is times;

[0101] The second operational amplifier U12A can be an operational amplifier of model LM258. The capacitance value of the fifth capacitor C5 can be selected as 10 nF, the resistance value of the thirteenth resistor R13 can be selected as 1 kΩ, the capacitance value of the seventy-fourth capacitor C74 can be selected as 1 nF, the resistance value of the twelfth resistor R12 can be selected as 10 kΩ, the resistance value of the eleventh resistor R11 can be selected as 10 kΩ, the resistance value of the ninth resistor R9 can be selected as 100 kΩ, and the resistance value of the tenth resistor R10 can be selected as 100 kΩ.

[0102] In this embodiment, the current regulation module includes a third operational amplifier U13A, a MOS transistor Q7, a third capacitor C3, a fifth resistor R5, a sixth resistor R6, and a fourth resistor R4;

[0103] The positive input terminal of the third operational amplifier U13A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input terminal of the third operational amplifier U13A is connected to the input terminal of the current detection module through the sixth resistor R6. The output terminal of the third operational amplifier U13A is connected to the gate of the MOS transistor Q7 through the fifth resistor R5. The source electrode of the MOS transistor Q7 is connected to the connection between the sixth resistor R6 and the input terminal of the current detection module. The drain electrode of the MOS transistor Q7 is connected to the LED- wire of the two-core wire;

[0104] One end of the third capacitor C3 is connected to the negative input terminal of the third operational amplifier U13A, and the other end of the third capacitor C3 is connected to the output terminal of the third operational amplifier U13A;

[0105] One end of the fourth resistor R4 is connected to the connection between the sixth resistor R6 and the input terminal of the current detection module, and the other end of the fourth resistor R4 is grounded.

[0106] It should be noted that the third operational amplifier U13A can be an operational amplifier of model LM258, the MOS transistor Q7 can be a MOS transistor of model 50N06, the capacitance value of the third capacitor C3 can be selected as 1 nF, the resistance value of the fifth resistor R5 can be selected as 49.9 Ω, the resistance value of the sixth resistor R6 can be selected as 1 kΩ, and the resistance value of the fourth resistor R4 can be selected as 10 Ω.

[0107] In this embodiment, the current detection module includes a fourth operational amplifier U14A, a twenty-fourth resistor R24, and a twenty-fifth resistor R25;

[0108] The output terminal of the fourth operational amplifier U14A is connected to the ADC2 pin of the microprocessor U1. The positive input terminal of the fourth operational amplifier U14A is connected between the source of the MOS transistor Q7 and the sixth resistor R6. The negative input terminal of the fourth operational amplifier U14A is grounded through the twenty-fifth resistor R25;

[0109] One end of the twenty-fourth resistor R24 is connected to the output terminal of the fourth operational amplifier U14A, and the other end of the twenty-fourth resistor R24 is connected to the negative input terminal of the fourth operational amplifier U14A.

[0110] It should be noted that the current detection module is mainly a non-inverting amplifier circuit composed of the fourth operational amplifier U14A and resistors, and the amplification factor is

[0111] The fourth operational amplifier U14A can select an operational amplifier of model LM258. The resistance value of the twenty-fourth resistor R24 can be selected as 10 kΩ, and the resistance value of the twenty-fifth resistor R25 can be selected as 10 kΩ.

[0112] In this embodiment, the power supply terminal of the first operational amplifier U11A is connected to the pull-up voltage source (+27V);

[0113] The power supply terminals of the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all connected to the pull-up voltage source (+5V);

[0114] The ground terminals of the first operational amplifier U11A, the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all grounded.

[0115] Implementation principle steps:

[0116] (1) According to the unidirectional conduction characteristic of the light-emitting diode, when the voltage is less than the conduction voltage of the light-emitting diode, the current flowing through the diode is very small and can be ignored.

[0117] (2) Set the conduction voltage V on of the light source to be equal to the conduction voltage V1 of the LED module plus the conduction voltage V2 of the voltage dividing module. The rated voltage V led of the light source, and the rated current I led .

[0118] (3) When the light source controller is powered on, the main control module controls the current regulation module to output a constant standby current I sb . The main control module controls the voltage regulation module to output a constant standby voltage V sb , and V sb is less than Von 。

[0119] (4) The main control module periodically reads the output current value of the current detection module. When the read current is zero, it indicates that no light source is inserted. When the read current is greater than zero, it indicates that the light source has been inserted.

[0120] (5) When it is detected that the light source is inserted, since V sb is less than V on , the current flowing through the voltage dividing module and the LED module inside the light source can be regarded as 0A, that is, the current flowing through the parameter resistor inside the light source is I res . The main control module reads the output voltage of the voltage detection module as V res , the ratio of the output to the input of the voltage detection module is K1, and the main control module calculates the resistance value R of the parameter resistor in the light source through . The main control module internally stipulates that the ratio of the rated voltage of the light source to the parameter resistor is K2, and the rated voltage of the light source calculated by the main control module through K2*R is V led .

[0121] (6) The main control module controls the voltage regulation module to output a constant V3, and V3 is greater than V led . The main control module controls the current regulation module to output a constant current I.

[0122] (8) The main control module reads the output voltage of the voltage detection module as V. If V*K1 is equal to V led , the main control module reads the output current value I led of the current detection module. At this time, the I led is the rated current value of the light source under the rated voltage V led . If V*K1 is not equal to V led , repeat steps (7)-(8), and gradually increase the output current of step (7).

[0123] Although terms such as the main control module, voltage regulation module, voltage detection module, current regulation module, and current detection module are used more in this article, the possibility of using other terms is not excluded. Using these terms is only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional limitation is contrary to the spirit of the present invention.

[0124] An automatic detection circuit for the voltage and current of a two-wire light source provided by an embodiment of the present invention forms a light source controller through a main control module, a voltage regulation module, a voltage detection module, a current regulation module, and a current detection module, enabling the light source controller to accurately detect the voltage and current of the light source by connecting to the light source through only two wires, and accurately output corresponding voltage and current according to the detected voltage and current. This not only reduces the number of connecting wires between the light source controller and the light source, simplifies the light source wire materials, but also broadens the applicable range of the light source controller.

[0125] To this end, the above embodiments are described for purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure. Individual elements or features of a particular embodiment are generally not limited by the particular embodiment, but, where applicable, can be interchanged and used in selected embodiments even if not specifically shown or described. In many respects, the same elements or features can also be varied. Such variations are not considered to depart from the disclosure, and all such modifications are intended to be included within the scope of the disclosure.

[0126] Example embodiments are provided so that the present disclosure will be thorough and will fully convey the scope to those skilled in the art. To thoroughly understand the embodiments of the present disclosure, numerous details are set forth, such as examples of specific parts, devices, and methods. Obviously, for those skilled in the art, specific details are not required, and the example embodiments can be implemented in many different forms, and neither should be construed as limiting the scope of the present disclosure. In some example embodiments, well-known processes, well-known device structures, and well-known technologies are not described in detail.

[0127] Here, specific technical terms are used only for the purpose of describing particular example embodiments and are not intended for limiting purposes. Unless the context clearly dictates otherwise, the singular forms "a" and "the" used herein may also be intended to include the plural forms. The terms "comprising" and "having" are inclusive and thus specify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or combinations thereof. Unless explicitly indicated the order of execution, the method steps, processes, and operations described herein are not necessarily to be construed as executed in the specific order discussed and shown. It should also be understood that additional or alternative steps can be employed.

[0128] When an element or layer is referred to as being "on", "engaged to", "connected to", or "coupled to" another element or layer, it can be directly on, engaged to, connected to, or coupled to the other element or layer, or intervening elements or layers may be present. In contrast, when an element or layer is referred to as being "directly on", "directly engaged to", "directly connected to", or "directly coupled to" another element or layer, intervening elements or layers may not be present. Other words used to describe the relationship of elements shall be interpreted in a similar manner (e.g., "between" and "directly between", "adjacent" and "directly adjacent", etc.). The term "and / or" used herein includes any and all combinations of one or more of the associated listed items. Although terms such as first, second, third, etc. may be used herein to describe various elements, components, regions, layers, and / or parts, these elements, components, regions, layers, and / or parts are not limited by these terms. These terms may only be used to distinguish one element, component, region, or part from another. Unless clearly indicated by the context, terms such as "first", "second", and other numerical terms used herein do not imply a sequence or order. Thus, the first element, component, region, layer, or part described below may be referred to as the second element, component, region, layer, or part without departing from the teachings of the exemplary embodiment.

[0129] Spatial relative terms, such as "inner", "outer", "beneath", "below", "lower", "above", "upper", etc., may be used herein for purposes of convenience in description to describe the relationship between one element or feature and another element or feature shown in the figures. Spatial relative terms may mean different orientations of the device in addition to the orientation depicted in the figures. For example, if the device in the figures is flipped, an element described as "beneath" or "below" another element or feature will be oriented "above" the other element or feature. Thus, the exemplary term "below" can include both an upward and a downward orientation. The device may be otherwise oriented (rotated 90 degrees or other orientations) and interpreted in terms of the spatial relative descriptions herein.

Claims

1. An automatic detection circuit for the voltage and current of a two-wire light source, which is applied to a light source, and is characterized in that, It includes a light source controller, and the light source controller includes a main control module, a voltage regulation module, a voltage detection module, a current regulation module, a current detection module, and a two-core wire; wherein, The input end of the voltage regulation module is connected to an output end of the main control module, the output end of the voltage detection module is connected to an input end of the main control module, and the output end of the voltage regulation module and an input end of the voltage detection module are both connected to the light source through the LED+ wire of the two-core wire; Another input end of the voltage detection module and an input end of the current regulation module are both connected to the light source through the LED- wire of the two-core wire; Another input end of the current regulation module is connected to another output end of the main control module, and the output end of the current regulation module is connected to the input end of the current detection module; The output end of the current detection module is connected to another input end of the main control module; The light source includes a parameter resistor; One end of the parameter resistor is connected to the LED+ wire of the two-core wire, and the other end of the parameter resistor is connected to the LED- wire of the two-core wire to be connected in parallel with the voltage detection module.

2. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 1, characterized in that, The light source further includes a voltage division module and an LED module; One end of the voltage division module is connected to one end of the LED module to form a series connection mode, and the other end of the voltage division module is connected to the LED+ wire of the two-core wire; The other end of the LED module is connected to the LED- wire of the two-core wire to be connected to the voltage detection module.

3. The automatic detection circuit for the voltage and current of the two-wire light source according to claim 2, characterized in that, The voltage division module includes a first diode D1; The positive electrode of the first diode D1 is connected to the LED+ wire of the two-core wire, and the negative electrode of the first diode D1 is connected to one end of the LED module.

4. The automatic detection circuit for the voltage and current of the two-wire type light source according to claim 3, characterized in that, The LED module includes a plurality of light-emitting diodes.

5. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 3 or 4, characterized in that, The main control module includes a microprocessor U1, a digital-to-analog conversion chip U2, a fifty-eighth resistor R58, a sixth capacitor C6, a sixty-first resistor R61, a sixty-fourth resistor R64, a sixty-third resistor R63, a fourth capacitor C4, a second capacitor C2, and a crystal oscillator Y2; The ADC1 pin of the microprocessor U1 is connected to the output end of the voltage detection module, the ADC2 pin of the microprocessor U1 is connected to the output end of the current detection module, the PC0 pin of the microprocessor U1 is connected to the DOUT pin of the digital-to-analog conversion chip U2, the PC1 pin of the microprocessor U1 is connected to the DI pin of the digital-to-analog conversion chip U2, the PC2 pin of the microprocessor U1 is connected to the SCLK pin of the digital-to-analog conversion chip U2, and the PC3 pin of the microprocessor U1 is connected to the SYNC pin of the digital-to-analog conversion chip U2; The VDD pin of the microprocessor U1 is connected to a pull-up voltage source, the NRST pin of the microprocessor U1 is grounded through the sixth capacitor C6, and the VSS pin of the microprocessor U1 is grounded; One end of the fifty-eighth resistor R58 is connected to the VDD pin of the microprocessor U1, and the other end of the fifty-eighth resistor R58 is connected to the NRST pin of the microprocessor U1; The BOOT1 pin of the microprocessor U1 is grounded through the sixty-first resistor R61, and the BOOT0 pin of the microprocessor U1 is grounded through the sixty-fourth resistor R64; The OSC_0 pin of the microprocessor U1 is grounded through the fourth capacitor C4, and the OSC_1 pin of the microprocessor U1 is grounded through the second capacitor C2; One end of the sixty-third resistor R63 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the sixty-third resistor R63 is connected to the OSC_1 pin of the microprocessor U1; One end of the crystal oscillator Y2 is connected to the OSC_0 pin of the microprocessor U1, and the other end of the crystal oscillator Y2 is connected to the OSC_1 pin of the microprocessor U1; The VA pin, Vref1 pin, and Vref2 pin of the digital-to-analog conversion chip U2 are all connected to the pull-up voltage source. The VoutG pin of the digital-to-analog conversion chip U2 is connected to the input end of the voltage regulation module. The VoutH pin of the digital-to-analog conversion chip U2 is connected to the input end of the current regulation module. The GND pin of the digital-to-analog conversion chip U2 is grounded.

6. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 5, characterized in that, The voltage regulation module includes a first operational amplifier U11A, a first triode Q5, a second triode Q6, a first capacitor C1, a seventh resistor R7, and an eighth resistor R8; The positive input end of the first operational amplifier U11A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input end of the first operational amplifier U11A is connected to the output end of the first operational amplifier U11A through the first capacitor C1. The output end of the first operational amplifier U11A is connected to the base of the first triode Q5; The collector of the first triode Q5 is connected to the pull-up voltage source. The emitter of the first triode Q5 is connected to the base of the second triode Q6. The collector of the second triode Q6 is connected to the pull-up voltage source. The emitter of the second triode Q6 is connected to the light source through the LED+ wire of the two-core wire; One end of the eighth resistor R8 is connected between the negative input end of the first operational amplifier U11A and the first capacitor C1, and the other end of the eighth resistor R8 is grounded; One end of the seventh resistor R7 is connected between the negative input end of the first operational amplifier U11A and the first capacitor C1, and the other end of the seventh resistor R7 is connected to the emitter of the second triode Q6.

7. The automatic detection circuit for the voltage and current of the two-wire type light source according to claim 6, characterized in that, The voltage detection module includes a second operational amplifier U12A, a fifth capacitor C5, a thirteenth resistor R13, a seventy-fourth capacitor C74, a twelfth resistor R12, an eleventh resistor R11, a ninth resistor R9, and a tenth resistor R10; The output terminal of the second operational amplifier U12A is connected to the ADC1 pin of the microprocessor U1 through the thirteenth resistor R13. One end of the fifth capacitor C5 is connected between the thirteenth resistor R13 and the ADC1 pin of the microprocessor U1, and the other end of the fifth capacitor C5 is grounded; The positive input terminal of the second operational amplifier U12A is connected to the LED+ line of the two-core wire through the ninth resistor R9, and the negative input terminal of the second operational amplifier U12A is connected to the LED- line of the two-core wire through the tenth resistor R10; One end of the seventy-fourth capacitor C74 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the seventy-fourth capacitor C74 is connected to the negative input terminal of the second operational amplifier U12A; One end of the twelfth resistor R12 is connected between the output terminal of the second operational amplifier U12A and the thirteenth resistor R13, and the other end of the twelfth resistor R12 is connected to the negative input terminal of the second operational amplifier U12A; One end of the eleventh resistor R11 is connected between the positive input terminal of the second operational amplifier U12A and the ninth resistor R9, and the other end of the eleventh resistor R11 is grounded.

8. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 7, characterized in that, The current regulation module includes a third operational amplifier U13A, a MOS transistor Q7, a third capacitor C3, a fifth resistor R5, a sixth resistor R6, and a fourth resistor R4; The positive input terminal of the third operational amplifier U13A is connected to the VoutG pin of the digital-to-analog conversion chip U2. The negative input terminal of the third operational amplifier U13A is connected to the input terminal of the current detection module through the sixth resistor R6. The output terminal of the third operational amplifier U13A is connected to the gate of the MOS transistor Q7 through the fifth resistor R5. The source of the MOS transistor Q7 is connected between the sixth resistor R6 and the input terminal of the current detection module, and the drain of the MOS transistor Q7 is connected to the LED- line of the two-core wire; One end of the third capacitor C3 is connected to the negative input terminal of the third operational amplifier U13A, and the other end of the third capacitor C3 is connected to the output terminal of the third operational amplifier U13A; One end of the fourth resistor R4 is connected between the sixth resistor R6 and the input terminal of the current detection module, and the other end of the fourth resistor R4 is grounded.

9. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 8, characterized in that, The current detection module includes a fourth operational amplifier U14A, a twenty-fourth resistor R24, and a twenty-fifth resistor R25; The output terminal of the fourth operational amplifier U14A is connected to the ADC2 pin of the microprocessor U1. The positive input terminal of the fourth operational amplifier U14A is connected between the source of the MOS transistor Q7 and the sixth resistor R6, and the negative input terminal of the fourth operational amplifier U14A is grounded through the twenty-fifth resistor R25; One end of the twenty-fourth resistor R24 is connected to the output end of the fourth operational amplifier U14A, and the other end of the twenty-fourth resistor R24 is connected to the negative input end of the fourth operational amplifier U14A.

10. The automatic detection circuit for the voltage and current of a two-wire light source according to claim 9, characterized in that, The power supply terminal of the first operational amplifier U11A is connected to the pull-up voltage source; The power supply terminals of the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all connected to the pull-up voltage source; The ground terminals of the first operational amplifier U11A, the second operational amplifier U12A, the third operational amplifier U13A, and the fourth operational amplifier U14A are all grounded.

Citation Information

Patent Citations

  • Automatic detection circuit for voltage and current of two-wire light source

    CN217879568U