Light source voltage adjustable constant current control system based on machine vision
By designing a machine vision-based adjustable constant current control system for light source voltage, the problem of increased usage costs caused by different controllers required for different light sources was solved, achieving adaptive control and cost reduction for light sources of different power.
Patent Information
- Application Number
- CN202423029808.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-08
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2034-12-08
AI Technical Summary
In existing technologies, different light sources require different controllers, which increases the cost of use.
Design a machine vision-based adjustable constant current control system for light sources, including a power supply, a step-down circuit, a constant current control circuit, an ADC circuit, and a controller. The system adapts to light sources of different power through multiple step-down circuits and constant current control circuits, and combines a detection circuit to determine the power of the light source and adjust the output power.
It achieves constant current control of the light source, can adapt to light sources of different power, and reduces the operating cost of the light source control system.
Smart Images

Figure CN223584382U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to machine vision field especially, and it is a kind of light source voltage adjustable constant current control system based on machine vision. BACKGROUND
[0002] In the field of machine vision, camera is used for shooting without light source for light compensation.Light source is controlled by controller when working, and the power of different light sources is different, so different controllers are needed for each light source, which obviously increases the use cost. UTILITY MODEL CONTENT
[0003] The utility model mainly aims at providing a kind of light source voltage adjustable constant current control system based on machine vision, and the control system can be suitable for light source of different power.
[0004] To achieve the above purpose, the utility model adopts the technical scheme as follows: a kind of light source voltage adjustable constant current control system based on machine vision, for controlling light source, comprising:
[0005] Power supply;
[0006] Buck circuit, for the voltage output by power supply is bucked and has multiple output ends, to output different voltages;
[0007] Constant current control circuit, part of the output end of buck circuit is connected, for constant current control to light source;
[0008] ADC circuit, part of the output end of buck circuit is connected, for adjusting the current size required by light source controlled by constant current control circuit;
[0009] Controller, part of the output end of buck circuit is connected, and buck circuit can be controlled;
[0010] It is characterized in that, the buck circuit includes first buck circuit, second buck circuit and third buck circuit, the first buck circuit is electrically connected with power supply and has first output end of output 12V and second output end of output 5V, third buck circuit has first input end of input 12V, second input end of input 5V and third output end VCC1, third buck circuit is electrically connected with controller simultaneously, first input end is electrically connected with first output end, second input end is electrically connected with second output end, controller can control third buck circuit to output 12V or 5V voltage from third output end VCC1, the second buck circuit has third input end and fourth output end, and the third input end is electrically connected with third output end.
[0011] Preferably, the third voltage reduction circuit comprises a transistor Q5, a MOS tube Q6, the MOS tube Q6 is a PMOS tube, the source S of the MOS tube Q6 is connected to the first input end through a first line, the drain D of the MOS tube Q6 is connected to the third output end through a second line; the transistor Q5 is NPN type, the collector C of the transistor Q5 is connected to the first line through a third line, the resistor R22 and the resistor R23 are connected in series on the third line, the gate G of the MOS tube Q6 is connected to the part of the third line between the resistor R22 and the resistor R23; the base b of the transistor Q5 is electrically connected to the controller, the emitter e of the transistor Q5 is grounded, the fifth line is connected on the second line, the fifth line is connected to the second input end, the diode D1 is arranged on the fifth line, the diode D1 is configured to allow the fifth line to be unidirectionally conducted from the second input end to the second line; the controller can control the conduction and the disconnection of the transistor Q5 by outputting a voltage to the fourth line.
[0012] Preferably, the constant current control circuit comprises an operational amplifier U3B, a MOS tube Q1, a MOS tube Q2, a MOS tube Q3, the MOS tube Q1, the MOS tube Q2 and the MOS tube Q3 are PMOS tubes, the positive power supply end of the operational amplifier U3B is connected to the third output end, the negative power supply end is grounded, the output end is connected to the gate D of the MOS tube Q1, the MOS tube Q2 and the MOS tube Q3 through a sixth line respectively, the source S of the MOS tube Q1, the MOS tube Q2 and the MOS tube Q3 are all connected to the negative terminal of the terminal P1, the light source is mounted on the terminal P1, the positive terminal of the terminal P1 is electrically connected to the power supply, the drain D of the MOS tube Q1, the MOS tube Q2 and the MOS tube Q3 is connected to a sampling resistor through a tenth line, the other end of the sampling resistor is grounded, the tenth line is connected to the negative input end of the operational amplifier U3B through a seventh line, and the positive input end of the operational amplifier U3B is connected to an ADC circuit.
[0013] Preferably, the constant current control circuit further comprises an eighth line and a transistor Q4, one end of the eighth line is connected to the gate of the MOS tube Q1, the MOS tube Q2 and the MOS tube Q3, and the other end is connected to the collector c of the transistor Q4, the emitter e of the transistor Q4 is grounded, and the base of the transistor Q4 is connected to the controller through a ninth line, and the controller can emit a voltage signal to the base of the transistor Q4.
[0014] Preferably, the light source control system further comprises a detection circuit for detecting an identification resistor of the light source, the power of the corresponding light source is determined through the identification resistor, and then the output power of the control system can be adjusted to meet the current demand of the light source. The identification resistor is commonly used in the art, and will not be described in detail. The detection circuit comprises a wiring terminal P4 for connecting the identification resistor, an operational amplifier U7A, one end of the wiring terminal P4 is connected to a power supply, and the other end is connected to ground through an eleventh line, and a resistor R30 is arranged on the eleventh line, the part of the eleventh line located between the resistor R30 and the wiring terminal P4 is connected to the positive input terminal of the operational amplifier U7A through a twelfth line, the output terminal of the operational amplifier U7A is connected to the negative input terminal and the controller at the same time, the positive power supply terminal of the operational amplifier U7A is connected to the fourth output terminal, and the negative power supply terminal of the operational amplifier U7A is connected to ground.
[0015] Compared with the prior art, the light source control system has the following beneficial effects:
[0016] The light source control system can realize constant current control of the light source, and can adjust the size of the current controlled by the constant current control circuit, and then is suitable for light sources with different powers. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is a first voltage reduction circuit;
[0018] Figure 2 is a second voltage reduction circuit;
[0019] Figure 3 is a third voltage reduction circuit;
[0020] Figure 4 is an ADC circuit;
[0021] Figure 5 is a constant current control circuit;
[0022] Figure 6 is a detection circuit;
[0023] Figure 7 is a pin diagram of the controller. DETAILED DESCRIPTION
[0024] The following description is used to disclose the utility model so that those skilled in the art can implement the utility model. The preferred embodiments in the following description are only as examples, and other obvious variants can be thought of by those skilled in the art.
[0025] The application discloses a light source voltage adjustable constant current control system based on machine vision, which is used for controlling a light source and comprises a power supply, a voltage reduction circuit, an ADC circuit, a constant current control circuit and a controller. The voltage reduction circuit comprises a first voltage reduction circuit, a second voltage reduction circuit and a third voltage reduction circuit. The first voltage reduction circuit is electrically connected with the power supply and has a first output end outputting 12V and a second output end outputting 5V. The third voltage reduction circuit has a first input end inputting 12V, a second input end inputting 5V and a third output end VCC1. The third voltage reduction circuit is electrically connected with the controller. The first input end is electrically connected with the first output end. The second input end is electrically connected with the second output end. The controller can control the third voltage reduction circuit to output 12V or 5V voltage from the third output end VCC1. The second voltage reduction circuit has the third input end VCC1 and a fourth output end outputting 3.3V. The third input end VCC1 is electrically connected with the third output end VCC1. The first voltage reduction circuit and the second voltage reduction circuit both adopt prior art.
[0026] The third voltage reduction circuit comprises a transistor Q5 and a MOS tube Q6. The MOS tube Q6 is a PMOS tube. The source S of the MOS tube Q6 is connected with the first input end through a first line 1. The drain D of the MOS tube Q6 is connected with the third output end through a second line 2. The transistor Q5 is an NPN type. The collector C of the transistor Q5 is connected with the first line 1 through a third line 3. The resistor R22 and the resistor R23 are connected in series on the third line 3. The gate G of the MOS tube Q6 is connected with the part of the third line 3 between the resistor R22 and the resistor R23. The base b of the transistor Q5 is electrically connected with the controller. The emitter e of the transistor Q5 is grounded. The fifth line 5 is connected with the second input end on the second line 2. The diode D1 is arranged on the fifth line 5 and is configured to realize one-way communication of the fifth line 5 from the second input end to the second line 2. The controller can control the conduction and the disconnection of the transistor Q5 by outputting voltage on the fourth line 4. When the transistor Q5 is conducted, the third line 3 is conducted. The voltage input from the first input end passes through the resistor R23 and the resistor R22. The voltage acting on the resistor R22 acts on the gate G of the MOS tube Q6, so that the MOS tube Q6 is conducted. The first line 1 and the second line 2 are conducted. At this time, the voltage of 12V is output on the third output end. When the controller controls the transistor Q5 to be disconnected, the third line 3 is not conducted. The voltage of the gate D of the MOS tube Q6 is 0. The MOS tube Q6 is disconnected. The voltage of 12V input from the first input end cannot reach the third output end VCC1. The third output end VCC1 outputs the voltage of 5V input from the second input end.
[0027] The ADC circuit is used for providing variable voltage for the constant current circuit, thereby realizing the adjustment of the light source brightness.
[0028] The constant current control circuit comprises an operational amplifier U3B, MOS tubes Q1, Q2 and Q3, wherein the MOS tubes Q1, Q2 and Q3 are PMOS tubes, the positive power supply end of the operational amplifier U3B is connected to the third output end, the negative power supply end is grounded, the output end is connected to the gate D of the MOS tubes Q1, Q2 and Q3 through the sixth line 6, the source S of the MOS tubes Q1, Q2 and Q3 is connected to the negative connection end LED- of the connection terminal P1, the light source is mounted on the connection terminal P1, the positive connection end of the connection terminal P1 is connected to the power supply, the drain D of the MOS tubes Q1, Q2 and Q3 is connected to the sampling resistor through the tenth line 10, the sampling resistor is the resistors R8-R19 arranged in parallel, the other end of the resistors R8-R19 is grounded, the tenth line 10 is connected to the negative input end of the operational amplifier U3B through the seventh line 7, and the positive input end of the operational amplifier U3B is connected to the fifth output end of the ADC circuit.
[0029] The constant current control circuit further comprises an eighth line 8 and a triode Q4, one end of the eighth line 8 is connected to the gate of the MOS tubes Q1, Q2 and Q3, the other end is connected to the collector c of the triode Q4, the emitter e of the triode Q4 is grounded, and the base is connected to the controller through the ninth line 9, the controller can emit a voltage signal to the base of the triode Q4, when the triode Q4 is turned on, the eighth line 8 is grounded, the gate voltage of the MOS tubes Q1, Q2 and Q3 is 0, at this time, the MOS tubes Q1, Q2 and Q3 are disconnected, thereby realizing the shutdown of the light source.
[0030] The system further comprises a detection circuit for detecting the identification resistance of the light source, judging the power of the corresponding light source through the identification resistance, and then adjusting the corresponding output power of the control system to meet the current demand of the light source. The identification resistance is commonly set on the light source in the art, and will not be described in detail. The detection circuit comprises a wiring terminal P4 for connecting the identification resistance, an operational amplifier U7A, one end of the wiring terminal P4 is connected to the power supply, and the other end is grounded through an eleventh line 11, and a resistance R30 is arranged on the eleventh line 11, the part of the eleventh line 11 located between the resistance R30 and the wiring terminal P4 is connected to the positive input end of the operational amplifier U7A through a twelfth line 12, the output end of the operational amplifier U7A is connected to the negative input end and the controller at the same time, the positive power supply end of the operational amplifier U7A is connected to the fourth output end, and the negative power supply end of the operational amplifier U7A is grounded. The resistance R30 serves as a sampling resistance, and the controller can calculate the size of the identification resistance combined with the voltage signal collected by the sampling resistance and the power supply voltage, and then obtain the power of the light source, and then obtain the corresponding current according to the obtained power, and then adjust the input voltage of the positive input end of the operational amplifier U3B, so as to meet the constant current control of the current light source. The input voltage of the positive input end of the operational amplifier U3B is realized by adjusting the output voltage of the ADC circuit, which can be automatically adjusted by the controller or manually operated by the corresponding control knob, and the specific adjustment principle is the prior art.
[0031] The basic principle, main features and advantages of the present application are shown and described above. It should be understood by those skilled in the art that the present application is not limited by the above embodiments, and the above embodiments and descriptions in the specification are only the principles of the present application. Without departing from the spirit and scope of the present application, various changes and improvements can be made to the present application, and these changes and improvements all fall within the scope of the claimed present application. The scope of protection required by the present application is defined by the appended claims and their equivalents.
Claims
1. A machine vision-based light source voltage-adjustable constant current control system for controlling a light source, comprising: a power supply; a voltage reduction circuit for reducing the voltage output by the power supply and having a plurality of output terminals for outputting different voltages; a constant current control circuit connected to some of the output terminals of the voltage reduction circuit for constant current control of the light source; an ADC circuit connected to some of the output terminals of the voltage reduction circuit for adjusting the current required by the light source controlled by the constant current control circuit; a controller connected to some of the output terminals of the voltage reduction circuit and capable of controlling the voltage reduction circuit; characterized in that the voltage reduction circuit comprises a first voltage reduction circuit, a second voltage reduction circuit and a third voltage reduction circuit, the first voltage reduction circuit is electrically connected to the power supply and has a first output terminal outputting 12V and a second output terminal outputting 5V, the third voltage reduction circuit has a first input terminal inputting 12V, a second input terminal inputting 5V and a third output terminal VCC1, the third voltage reduction circuit is electrically connected to the controller, the first input terminal is electrically connected to the first output terminal, the second input terminal is electrically connected to the second output terminal, the controller can control the third voltage reduction circuit to output 12V or 5V voltage from the third output terminal VCC1, the second voltage reduction circuit has a third input terminal and a fourth output terminal, the third input terminal is electrically connected to the third output terminal.
2. The machine vision-based light source voltage-adjustable constant current control system according to claim 1, wherein, The third voltage reduction circuit comprises a transistor Q5 and a MOS transistor Q6, the MOS transistor Q6 is a PMOS transistor, the source S of the MOS transistor Q6 is connected to the first input terminal through a first line, the drain D of the MOS transistor Q6 is connected to the third output terminal through a second line; the transistor Q5 is NPN type, the collector C of the transistor Q5 is connected to the first line through a third line, the resistor R22 and the resistor R23 are connected in series on the third line, the gate G of the MOS transistor Q6 is connected to the part of the third line between the resistor R22 and the resistor R23; the base b of the transistor Q5 is electrically connected to the controller, the emitter e of the transistor Q5 is grounded, a fifth line is connected to the second input terminal on the second line, a diode D1 is arranged on the fifth line, the diode D1 is configured to allow the fifth line to conduct unidirectionally from the second input terminal to the second line; the controller can control the conduction and disconnection of the transistor Q5 by outputting voltage to a fourth line.
3. The machine vision-based light source voltage-adjustable constant current control system according to claim 2, wherein, The constant current control circuit comprises an operational amplifier U3B, MOS tubes Q1, Q2 and Q3, wherein the MOS tubes Q1, Q2 and Q3 are PMOS tubes, the positive power supply end of the operational amplifier U3B is connected to the third output end, the negative power supply end is grounded, the output end is connected to the gate D of the MOS tubes Q1, Q2 and Q3 through the sixth line respectively, the source S of the MOS tubes Q1, Q2 and Q3 is connected to the negative terminal of the terminal P1, the light source is installed on the terminal P1, the positive terminal of the terminal P1 is electrically connected to the power supply, the drain D of the MOS tubes Q1, Q2 and Q3 is connected to the sampling resistor through the tenth line, the other end of the sampling resistor is grounded, the tenth line is connected to the negative input end of the operational amplifier U3B through the seventh line, and the positive input end of the operational amplifier U3B is connected to the ADC circuit.
4. The machine vision-based light source voltage-adjustable constant current control system according to claim 3, characterized in that, The constant current control circuit further comprises an eighth line and a triode Q4, one end of the eighth line is connected to the gate of the MOS tubes Q1, Q2 and Q3, the other end is connected to the collector c of the triode Q4, the emitter e of the triode Q4 is grounded, and the base of the triode Q4 is connected to the controller through the ninth line, and the controller can emit a voltage signal to the base of the triode Q4.
5. A machine vision-based light source voltage adjustable constant current control system according to claim 4, characterized in that, The detection circuit is further provided, which is used for detecting the identification resistor of the light source, and the power of the corresponding light source is determined through the identification resistor, the detection circuit comprises a terminal P4 for connecting the identification resistor and an operational amplifier U7A, one end of the terminal P4 is connected to the power supply, the other end is grounded through the eleventh line, the resistor R30 is arranged on the eleventh line, the part of the eleventh line between the resistor R30 and the terminal P4 is connected to the positive input end of the operational amplifier U7A through the twelfth line, the output end of the operational amplifier U7A is connected to the negative input end and the controller at the same time, the positive power supply end of the operational amplifier U7A is connected to the fourth output end, and the negative power supply end of the operational amplifier U7A is grounded.