Double-type industrial camera power supply circuit and automatic identification method
By designing a dual-type industrial camera power supply circuit, automatic identification and switching between 5V and 12V power supplies are achieved, solving the problems of a large number of interfaces and connection errors, reducing hardware costs and supporting the miniaturization of the controller design.
Patent Information
- Application Number
- CN202510766519.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-09-19
AI Technical Summary
Existing industrial camera controllers need to be compatible with multiple power supply interfaces, resulting in a large number of interfaces, large device size, high hardware costs, and easy connection errors that can damage the camera.
A dual-type power supply circuit for industrial cameras is designed, including a single-chip microcomputer logic control circuit, an interface type identification circuit, and a power switching circuit. It can automatically identify and switch between 5V and 12V power supplies, and avoid unnecessary power supply through current monitoring.
It realizes automatic recognition of camera types and simplifies the power supply interface, reduces hardware costs, reduces the number of interfaces, avoids camera damage caused by connection errors, and supports the miniaturization design of vision controllers.
Smart Images

Figure CN120676245A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of machine vision, and in particular relates to a dual-type industrial camera power supply circuit and an automatic recognition method. Background Art
[0002] Common industrial cameras used in industrial visual inspection include 5V USB-powered industrial cameras and 12V Ethernet-powered industrial cameras. When designing a controller, it's often necessary to consider the different industrial camera types required in different scenarios, so two power supply interfaces must be reserved. Existing controllers have a large number of interfaces, making miniaturization difficult. This increases hardware cost and device complexity, hindering ongoing maintenance and management. Furthermore, the use of different interfaces can easily lead to connection errors, resulting in permanent damage to the industrial camera.
[0003] In order to reduce the number of vision controller interfaces, reduce the types and number of power cables, reduce the hardware cost of the vision controller, and provide support for the miniaturization design of the controller, it is necessary to design a dual-type industrial camera power supply circuit and automatic recognition method. Summary of the Invention
[0004] In response to the above-mentioned technical problems existing in the prior art, the present invention proposes a dual-type industrial camera power supply circuit and automatic identification method, which has a reasonable design, overcomes the shortcomings of the prior art, and has good effects.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A dual-type industrial camera power supply circuit includes a single-chip microcomputer logic control circuit, an interface type identification circuit, a power switching circuit, and a current monitoring circuit; wherein the single-chip microcomputer logic control circuit is connected to the interface type identification circuit, the power switching circuit, and the current monitoring circuit respectively through single-chip microcomputer pins;
[0007] When a camera is connected, the interface type identification circuit identifies whether the current camera is a 5V-powered USB camera or a 12V-powered Ethernet camera, and feeds back the signal to the microcontroller logic control circuit. The microcontroller logic control circuit controls the power switching circuit to provide the corresponding power supply voltage based on the identified camera type. After the camera is powered, the current monitoring circuit monitors the power supply current in real time. When the power supply current is less than the set current, the microcontroller logic control circuit controls the power switching circuit to cut off the camera power supply.
[0008] Preferably, the power switching circuit includes an external 5V power supply, an external 12V power supply, a 12V power supply, a power electronic switch LTC4451 chip, a power electronic switch FDC6330L chip, an N-channel MOS transistor Q1, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7 and a capacitor C1;
[0009] The second pin of the power electronic switch LTC4451 chip is connected to the external 5V power supply, the first pin and the fourteenth pin are connected to the power ground, the sixteenth pin and the external 5V power supply control pin form a common terminal connected to the first pin of Q1, and the thirteenth pin is connected to the power output;
[0010] The fourth pin of the power electronic tube FDC6330L is connected to the 12V power supply, the sixth pin is connected to the 12V power supply through the fifth resistor R5, and is also connected to the power supply output through the capacitor C1. The first pin is connected to the power ground through the resistor R6, the second and third pins are respectively connected to the power supply output, and the fifth pin and the third pin of Q1 form a common terminal and are connected to the 12V power supply through the seventh resistor R7.
[0011] Preferably, the current monitoring circuit includes a current amplifying chip U2, a first comparator U3, a 5V power supply, a sampling resistor R2, a first voltage dividing resistor R3 and a second voltage dividing resistor R4;
[0012] The third pin of the current amplifier chip U2 is connected to the 5V power supply, the first and second pins thereof are connected to the power ground, the fourth and fifth pins thereof are connected to the two ends of the sampling resistor R2 respectively, and the sixth pin thereof is connected to the fourth pin of the first comparator U3;
[0013] The third pin of the first comparator U3 is connected to the connection point of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4, and its first pin is connected to the input pin of the microcontroller; the current monitoring threshold of the current monitoring circuit is adjusted by the resistance distribution of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4.
[0014] Preferably, the interface type identification circuit includes a second comparator U5, a third comparator U6 and an OR gate U4;
[0015] The fifth pin of the second comparator U5 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D+ signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then to the first pin of the OR gate U4;
[0016] The fifth pin of the third comparator U6 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D- signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then connected to the second pin of the OR gate U4;
[0017] The third pin of the OR gate U4 is connected to the power ground, its fifth pin is connected to the 5V power supply, and its fourth pin is connected to the USB device detection signal; when a USB device is inserted, the level of the D+ or D- line will change from low to high. At this time, the output of the OR gate U4 will produce a rising edge, that is, the USBDETECT signal will change from low to high. When no USB device is inserted, the USBDETECT signal will not change.
[0018] In addition, the present invention also provides a method for automatically identifying dual-type industrial cameras. The method uses the dual-type industrial camera power supply circuit described above and specifically includes the following steps:
[0019] Step 1: When the MCU receives the external power-on command, it supplies 5V power;
[0020] Step 2: After power is supplied, monitor the USB signal line in real time to see if there is a pulse signal generated;
[0021] If: the judgment result is that a pulse signal is generated, execute step 3;
[0022] Or if the result of the judgment is that no pulse signal is generated, execute step 4;
[0023] Step 3: Connect a USB camera device and continue to supply 5V power;
[0024] Step 4: Monitor the power supply current and determine whether there is current generated on the power line;
[0025] If the result of the judgment is that current is generated on the power line, it is considered that a 5V device is connected but the USB communication is abnormal. In this case, the power is cut off and the process ends;
[0026] Or if the result of the judgment is that no current is generated on the power line, 12V power supply is provided;
[0027] Step 5: Continue to monitor the power supply current and determine whether there is current generated on the power line;
[0028] If the result of the judgment is that current is generated on the power line, it is considered that a 12V camera device is connected and the 12V power supply is continuously supplied;
[0029] Or if the result of the judgment is that no current is generated on the power line, and no 12V camera device is connected, the power is cut off and the process ends.
[0030] The beneficial technical effects brought about by the present invention are:
[0031] This invention integrates the power supply interfaces for two different camera types, reducing the number of interfaces and simplifying camera device connections, enabling the miniaturization of vision controllers. It can automatically identify the camera type and provide the corresponding power supply voltage, preventing camera damage or malfunction caused by manual operation.
[0032] The present invention is used to solve the problems of a large number of interfaces and a large size caused by reserving multiple types of interfaces for compatibility with multiple cameras during the design process of a visual controller, making it easier for users to use different types of cameras in different scenarios and reducing the complexity of the equipment and the cost of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Schematic diagram of the automatic identification and power supply circuit for dual-type industrial camera interfaces;
[0034] Figure 2 This is a schematic diagram of the power switching circuit;
[0035] Figure 3 Schematic diagram of the current monitoring circuit;
[0036] Figure 4 Identify the circuit schematic for the interface type;
[0037] Figure 5 This is a flow chart of the method for implementing the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:
[0039] Figure 1 This is a schematic diagram of the entire circuit, which mainly includes the MCU logic control circuit, power switching circuit, current monitoring circuit, and interface type identification circuit. The MCU logic control circuit mainly includes the MCU and the minimum circuit units required for its normal operation.
[0040] Figure 2 It is a power switching circuit, including an external 5V power supply, an external 12V power supply, a 12V power supply, a power electronic switch LTC4451 chip, a power electronic switch FDC6330L chip, an N-channel MOS transistor Q1, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7 and a capacitor C1;
[0041] The second pin of the power electronic switch LTC4451 chip is connected to the external 5V power supply, the first pin and the fourteenth pin are connected to the power ground, the sixteenth pin and the external 5V power supply control pin form a common terminal connected to the first pin of Q1, and the thirteenth pin is connected to the power output;
[0042] The fourth pin of the power electronic tube FDC6330L is connected to the 12V power supply, the sixth pin is connected to the 12V power supply through the fifth resistor R5, and is also connected to the power supply output through the capacitor C1. The first pin is connected to the power ground through the resistor R6, the second and third pins are respectively connected to the power supply output, and the fifth pin and the third pin of Q1 form a common terminal and are connected to the 12V power supply through the seventh resistor R7.
[0043] Figure 3 It is a current monitoring circuit, including a current amplifier chip U2 (such as INA212), a first comparator U3, a 5V power supply, a sampling resistor R2, a first voltage divider resistor R3 and a second voltage divider resistor R4; POWER0 is the output of the power switching circuit, and POWER1 is the power supply output for the industrial camera.
[0044] The third pin of the current amplifier chip U2 is connected to the 5V power supply, the first and second pins thereof are connected to the power ground, the fourth and fifth pins thereof are connected to the two ends of the sampling resistor R2 respectively, and the sixth pin thereof is connected to the fourth pin of the first comparator U3;
[0045] The third pin of the first comparator U3 is connected to the connection point of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4, and its first pin is connected to the input pin of the microcontroller; the current monitoring threshold of the current monitoring circuit is adjusted by the resistance distribution of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4.
[0046] Figure 4 An interface type identification circuit, comprising a second comparator U5, a third comparator U6 and an OR gate U4;
[0047] The fifth pin of the second comparator U5 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D+ signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then to the first pin of the OR gate U4;
[0048] The fifth pin of the third comparator U6 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D- signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then connected to the second pin of the OR gate U4;
[0049] The third pin of the OR gate U4 is connected to the power ground, its fifth pin is connected to the 5V power supply, and its fourth pin is connected to the USB device detection signal; when a USB device is inserted, the level of the D+ or D- line will change from low to high. At this time, the output of the OR gate U4 will produce a rising edge, that is, the USBDETECT signal will change from low to high. When no USB device is inserted, the USBDETECT signal will not change.
[0050] Figure 5The flowchart of the method provided by the present invention shows that when the single-chip microcomputer receives an external power-on command, it performs 5V power supply, and after power supply, it monitors in real time whether a pulse signal is generated on the USB signal line. If a pulse signal is generated, it is considered that a USB camera device is connected, and 5V power supply is continued. If no pulse signal is generated, the power supply current is monitored immediately. If there is current, it is considered that a 5V device is connected but the USB communication is abnormal. At this time, the power is cut off and the process is ended. If no current is generated, 12V power is supplied. After the 12V power supply is supplied, the power supply current is monitored immediately. If current is generated on the power supply, it is considered that a 12V camera device is connected, and 12V power supply is continued. If no current is generated, no 12V camera device is connected, and the power is cut off and the process is ended. After the 5V or 12V camera is powered on, the power supply current is monitored. When the power supply current is less than the set current value, it is considered that the device has been unplugged, and the power is cut off and the process is ended.
[0051] The present invention relates to a dual-type industrial camera power supply circuit and automatic identification method, which solves the problems of existing controllers such as the large number of interfaces, large size, high cost, and permanent damage to industrial cameras caused by interface connection errors. The invention has great application value and application space.
[0052] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the scope of protection of the present invention.
Claims
1. A dual-type industrial camera power supply circuit, characterized by: It includes a single-chip microcomputer logic control circuit, an interface type identification circuit, a power switching circuit, and a current monitoring circuit; wherein the single-chip microcomputer logic control circuit is connected to the interface type identification circuit, the power switching circuit, and the current monitoring circuit respectively through the single-chip microcomputer pins; When a camera is connected, the interface type identification circuit identifies whether the current camera is a 5V-powered USB camera or a 12V-powered Ethernet camera, and feeds back the signal to the microcontroller logic control circuit. The microcontroller logic control circuit controls the power switching circuit to provide the corresponding power supply voltage based on the identified camera type. After the camera is powered, the current monitoring circuit monitors the power supply current in real time. When the power supply current is less than the set current, the microcontroller logic control circuit controls the power switching circuit to cut off the camera power supply.
2. The dual-type industrial camera power supply circuit according to claim 1, characterized in that: A power switching circuit, including an external 5V power supply, an external 12V power supply, a 12V power supply, a power electronic switch LTC4451 chip, a power electronic switch FDC6330L chip, an N-channel MOS transistor Q1, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and a capacitor C1; The second pin of the power electronic switch LTC4451 chip is connected to the external 5V power supply, the first pin and the fourteenth pin are connected to the power ground, the sixteenth pin and the external 5V power supply control pin form a common terminal connected to the first pin of Q1, and the thirteenth pin is connected to the power output; The fourth pin of the power electronic tube FDC6330L is connected to the 12V power supply, the sixth pin is connected to the 12V power supply through the fifth resistor R5, and is also connected to the power supply output through the capacitor C1. The first pin is connected to the power ground through the resistor R6, the second and third pins are respectively connected to the power supply output, and the fifth pin and the third pin of Q1 form a common terminal and are connected to the 12V power supply through the seventh resistor R7.
3. The dual-type industrial camera power supply circuit according to claim 1, characterized in that: The current monitoring circuit includes a current amplifier chip U2, a first comparator U3, a 5V power supply, a sampling resistor R2, a first voltage divider resistor R3 and a second voltage divider resistor R4; The third pin of the current amplifier chip U2 is connected to the 5V power supply, the first and second pins thereof are connected to the power ground, the fourth and fifth pins thereof are connected to the two ends of the sampling resistor R2 respectively, and the sixth pin thereof is connected to the fourth pin of the first comparator U3; The third pin of the first comparator U3 is connected to the connection point of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4, and its first pin is connected to the input pin of the microcontroller; the current monitoring threshold of the current monitoring circuit is adjusted by the resistance distribution of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4.
4. The dual-type industrial camera power supply circuit according to claim 1, characterized in that: An interface type identification circuit, comprising a second comparator U5, a third comparator U6 and an OR gate U4; The fifth pin of the second comparator U5 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D+ signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then to the first pin of the OR gate U4; The fifth pin of the third comparator U6 is connected to the 5V power supply, the second pin thereof is connected to the power ground, the third pin thereof is connected to the D- signal of the USB signal, and the first pin thereof is connected to the fourth pin thereof and then connected to the second pin of the OR gate U4; The third pin of the OR gate U4 is connected to the power ground, its fifth pin is connected to the 5V power supply, and its fourth pin is connected to the USB device detection signal; when a USB device is inserted, the level of the D+ or D- line will change from low to high. At this time, the output of the OR gate U4 will produce a rising edge, that is, the USBDETECT signal will change from low to high. When no USB device is inserted, the USBDETECT signal will not change.
5. A method for automatically identifying dual-type industrial cameras, characterized by: The dual-type industrial camera power supply circuit according to claim 1 specifically includes the following steps: Step 1: When the MCU receives the external power-on command, it supplies 5V power; Step 2: After power is supplied, monitor the USB signal line in real time to see if there is a pulse signal generated; If: the judgment result is that a pulse signal is generated, execute step 3; Or if the result of the judgment is that no pulse signal is generated, execute step 4; Step 3: Connect a USB camera device and continue to supply 5V power; Step 4: Monitor the power supply current and determine whether there is current generated on the power line; If the result of the judgment is that current is generated on the power line, it is considered that a 5V device is connected but the USB communication is abnormal. In this case, the power is cut off and the process ends; Or if the result of the judgment is that no current is generated on the power line, 12V power supply is provided; Step 5: Continue to monitor the power supply current and determine whether there is current generated on the power line; If the result of the judgment is that current is generated on the power line, it is considered that a 12V camera device is connected and the 12V power supply is continuously supplied; Or if the result of the judgment is that no current is generated on the power line, and no 12V camera device is connected, the power is cut off and the process ends.