Power supply polarity detection circuit

By introducing bias branch and voltage measurement device into the power supply polarity detection circuit, the problem of inaccurate power supply polarity detection in the prior art is solved, and accurate judgment of the power supply to be tested and improved circuit safety is achieved.

CN119125940APending Publication Date: 2024-12-13NINGBO ZHONGXING ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411509974.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Existing power supply polarity detection circuits cannot accurately distinguish power supply polarity, especially when the power supply to be tested is not connected or reversely connected, resulting in an increased risk of misjudgment and circuit damage.

Method used

A power supply polarity detection circuit including a first resistor, a second resistor, a bias branch and a voltage measuring device is designed, and by adding a bias branch to a voltage divider network, a bias resistor, a diode and a bias voltage are used. The source can output different voltage values ​​under different connections to the power supply to be tested, thereby determining the polarity of the power supply.

Benefits of technology

It realizes the accurate distinction between forward, reverse and unconnected power supply to be tested, simplifies the circuit structure, improves the accuracy and safety of detection, and avoids circuit damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119125940A_ABST
    Figure CN119125940A_ABST
Patent Text Reader

Abstract

The invention relates to a power supply polarity detection circuit. The circuit comprises a first resistor, a second resistor, a bias branch and a voltage measuring device, the first input end of the detection circuit is connected to the first end of the first resistor, the second input end of the detection circuit corresponds to the first end of the second resistor, and the second end of the first resistor is connected with the second end of the second resistor; the positive input ends of the bias branch and the voltage measuring device are connected between the first resistor and the second resistor; the cathode input end of the voltage measuring device and the first electrode of the to-be-measured power supply are common reference points of the detection circuit; the potential difference of the positive pole input end of the voltage measuring device relative to the common reference point is to-be-measured voltage, and the voltage measuring device is used for judging the power supply polarity of the to-be-measured power supply through the to-be-measured voltage. The method has the effect of improving the accuracy of power supply polarity detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power supply detection, and in particular to a power supply polarity detection circuit. Background Art

[0002] In the circuit, the polarity of the input DC signal needs to be distinguished to avoid problems such as circuit failure due to reverse connection of positive and negative polarities. For example, in a battery charger, when the charged battery is connected to the charger with reverse polarity, it is very likely to cause damage to the charger. Therefore, it is necessary to judge the polarity of the connected battery. Only when the polarity is correct can the charger enter the working state to charge the battery.

[0003] The detection circuit in the related art needs to be implemented by designing a circuit of a specific structure, which is implemented by using a voltage comparator or a complex circuit such as multiple detection or control ports. For example, the two poles of the power supply to be tested are respectively connected to the positive input terminal and the negative input terminal of the voltage comparator. If the output terminal is a high level, the power supply to be tested is connected to the detection circuit in the positive direction, that is, the positive input terminal corresponds to the positive pole of the power supply to be tested, and the negative input terminal corresponds to the negative pole of the power supply to be tested. If the output terminal is a low level, the power supply to be tested is connected to the detection circuit in the negative direction, that is, the positive input terminal corresponds to the negative pole of the power supply to be tested, and the negative input terminal corresponds to the positive pole of the power supply to be tested.

[0004] Regarding the above-mentioned related technologies, the applicant believes that if the power supply to be tested is not connected to the detection circuit, the output end of the related technology is low level; if the circuit to be tested is reversely connected to the detection circuit, the output end of the related technology is also low level. As a result, the related technology cannot accurately distinguish the polarity of the power supply. Summary of the invention

[0005] In order to improve the accuracy of power polarity detection, the present application provides a power polarity detection circuit.

[0006] In a first aspect, the present application provides a power polarity detection circuit, which adopts the following technical solution: A power supply polarity detection circuit comprises: a first resistor, a second resistor, a bias branch and a voltage measuring device; The first input end of the detection circuit is connected to the first end of the first resistor, the second input end of the detection circuit corresponds to the first end of the second resistor, and the second end of the first resistor is connected to the second end of the second resistor; The bias branch and the positive input terminal of the voltage measuring device are connected between the first resistor and the second resistor; The negative input terminal of the voltage measuring device and the first pole of the power supply to be measured are common reference points of the detection circuit; The potential difference between the positive input terminal of the voltage measuring device and the common reference point is the voltage to be measured. The voltage measuring device is used to determine the power polarity of the power supply to be measured through the voltage to be measured.

[0007] By adopting the above technical solution, it is only necessary to add a bias branch between the first resistor and the second resistor as a voltage divider network to determine the power polarity of the power supply to be tested and distinguish the three situations of forward connection, reverse connection and no connection. In addition, the structure of the detection circuit is simple and easy to implement.

[0008] Optionally, the bias branch includes a bias resistor, a diode and a bias voltage source; A first end of the bias resistor is connected between the first resistor and the second resistor; The second end of the bias resistor is connected to the cathode of the diode; The anode of the diode is connected to the positive terminal of the bias voltage source.

[0009] By adopting the above technical solution, a bias power supply, a bias resistor and a diode are added to the bias branch, so that the voltage measuring device can output three different readings in different situations of the power supply to be tested (correct connection, no connection, reverse polarity connection) to determine the actual connection method of the power supply to be tested.

[0010] Optionally, when the first input terminal and the second input terminal are not connected to the power supply to be tested, the voltage to be tested is a first voltage, and the first voltage is not zero.

[0011] By adopting the above technical solution, when the power supply to be tested is not connected, the voltage to be tested is not 0, and the voltage value can be read.

[0012] Optionally, when the first input terminal is connected to the negative electrode of the power supply to be measured and the second input terminal is connected to the positive electrode of the power supply to be measured, the voltage to be measured is a second voltage, and the second voltage is not equal to the first voltage.

[0013] By adopting the above technical solution, the reverse connection of the power supply to be tested and the non-connection of the power supply to be tested are distinguished by the voltage value of the voltage to be tested.

[0014] Optionally, when the first input terminal is connected to the positive electrode of the power supply to be tested and the second input terminal is connected to the negative electrode of the power supply to be tested, the voltage to be tested is a third voltage, the third voltage is not equal to the first voltage, and the third voltage is not equal to the second voltage.

[0015] By adopting the above technical solution, three situations of forward access, reverse access and no access can be distinguished.

[0016] Optionally, the resistance of the bias resistor is greater than the resistance of the first resistor.

[0017] By adopting the above technical solution, a bias resistor is used to pull up the voltage on both sides of the bias resistor.

[0018] Optionally, the resistance of the bias resistor is greater than the resistance of the second resistor.

[0019] By adopting the above technical solution, a bias resistor is used to pull up the voltage on both sides of the bias resistor.

[0020] Optionally, the voltage measuring device is a microprocessor unit MCU.

[0021] By adopting the above technical solution, the voltage to be measured is measured using MCU.

[0022] Optionally, the voltage measuring device is provided with an analog-to-digital conversion module, and the analog-to-digital conversion module is used to convert the voltage to be measured into an analog-to-digital output.

[0023] By adopting the above technical solution, the MCU can output the analog-to-digital output corresponding to the voltage to be tested, thereby distinguishing the polarity of the power supply to be tested.

[0024] Optionally, the positive input terminal of the voltage measuring device is an input port of the analog-to-digital conversion module.

[0025] In a second aspect, the present application provides a power polarity detection system, including the power polarity detection circuit as described above, and adopts the following technical solution: A power polarity detection system includes: a transmission mechanism and a transfer mechanism; The transmission mechanism is used to transmit the power to be tested; The transfer mechanism is used to connect the target power supply to be tested on the transmission mechanism to the detection circuit; The detection circuit is used to detect the power polarity of the target power supply to be tested; when the power polarity of the target power supply to be tested corresponds to forward connection, the analog-to-digital output of the detection circuit is a first preset value; when the power polarity of the target power supply to be tested corresponds to reverse connection, the analog-to-digital output of the detection circuit is a second preset value; The transfer mechanism is also used to transfer the target power supply to be tested to the transmission mechanism in a preset posture according to the power polarity of the target power supply to be tested.

[0026] By adopting the above technical solution, the power polarity of the target power supply to be tested is determined by using the detection power supply, and the target power supply to be tested is transferred to the transmission mechanism in a preset posture, so that all power supplies that have passed the power polarity detection are in the preset posture, which is convenient for relevant personnel to identify the power polarity.

[0027] In a third aspect, the present application provides a method for detecting power polarity, which is performed by the above-mentioned power polarity detection system and adopts the following technical solution: A method for detecting power polarity, comprising: In response to detecting that the target power supply to be tested on the transmission mechanism is close to the transfer mechanism, connecting the target power supply to be tested to the detection circuit through the transfer mechanism; The power polarity of the target power supply to be tested is obtained through the detection circuit; when the power polarity of the target power supply to be tested corresponds to forward connection, the analog-to-digital output of the detection circuit is a first preset value; when the power polarity of the target power supply to be tested corresponds to reverse connection, the analog-to-digital output of the detection circuit is a second preset value; According to the power polarity of the target power supply to be tested, the target power supply to be tested is transferred to the transmission mechanism in a preset posture through the transfer mechanism.

[0028] By adopting the above technical solution, the power polarity of the target power supply to be tested is determined by using the detection power supply, and the target power supply to be tested is transferred to the transmission mechanism in a preset posture, so that all power supplies that have passed the power polarity detection are in the preset posture, which is convenient for relevant personnel to identify the power polarity.

[0029] Optionally, when the analog-to-digital output of the detection circuit is an abnormal value, the electrodes of the target power supply to be tested are turned around, the abnormal value is not equal to the first preset value, and the abnormal value is not equal to the second preset value; Connecting the target power supply to be tested to the detection circuit to obtain a first detection value output by the detection circuit; If the first detection value is the same as the first preset value, or the first detection value is the same as the second preset value, then determining the power polarity of the target power supply to be tested according to the first detection value; If the first detection value is different from the first preset value, and the first detection value is different from the second preset value, the target power supply to be tested is discarded.

[0030] By adopting the above technical solution, when the analog-to-digital output of the detection circuit is an abnormal value, a secondary detection can be performed by reversing the electrodes to determine whether there is a problem with the target power supply to be tested.

[0031] Optionally, if the first detection value is the same as the first preset value, the power polarity of the target power supply to be tested is determined according to the first detection value; If the first detection value is the same as the second preset value, the electrodes of the target power supply to be tested are switched to obtain a second detection value; Calculating a voltage difference between a second detection value and a first preset value; When the voltage difference is greater than a preset difference, the target power supply to be tested is discarded; When the voltage difference is less than or equal to the preset difference, the power polarity of the target power supply to be tested is determined according to the second detection value.

[0032] By adopting the above technical solution and taking advantage of the characteristics of analog-to-digital output, the accuracy of detecting the target power supply to be tested is improved.

[0033] Optionally, when the abnormal value is a third preset value, the target power supply to be tested is rotated by the transfer mechanism so that the electrodes of the target power supply to be tested are aligned with the electrodes of the detection circuit, and the third preset value is the analog-to-digital output of the detection circuit when no external power supply is connected; Connecting the target power supply to be tested to the detection circuit through the transfer mechanism; Determining whether the analog-to-digital output of the detection circuit is a first preset value or a second preset value; If the analog-to-digital output of the detection circuit is the first preset value or the second preset value, the power polarity of the target power supply to be tested is determined according to the analog-to-digital output of the detection circuit.

[0034] By adopting the above technical solution, the power polarity of the target power supply to be tested can be detected when the target power supply to be tested is not placed on the transmission mechanism according to the standard.

[0035] Optionally, an angle between the outer shape orientation of the target power supply to be tested and the moving direction of the transmission mechanism is obtained, wherein the outer shape orientation takes an end of the target power supply to be tested close to the electrode as the origin and an end of the target power supply to be tested far from the electrode as the end point; When the included angle is greater than the preset included angle, the transfer mechanism is moved to the target power source to be tested, so that the transfer mechanism contacts the end of the target power source to be tested close to the electrode; Keep the transmission mechanism in a started state, so that the target power supply to be tested rotates on the transmission mechanism; When it is detected that the included angle is equal to the preset included angle, the target power source to be tested is pushed close to one end of the electrode by the transfer mechanism; The target power supply to be tested is connected to the detection circuit through the transfer mechanism.

[0036] By adopting the above technical solution, even if the outer shape of the target power supply to be tested on the transmission circuit is not conducive to the clamping of the transfer mechanism, the transfer mechanism can be operated to transfer the target power supply to be tested.

[0037] Optionally, when it is detected that the distance between the target power supply to be tested and the edge of the transmission mechanism is less than the safety distance, the target power supply to be tested is moved by the transfer mechanism so that the target power supply to be tested is close to the transfer mechanism.

[0038] By adopting the above technical solution, it can be ensured that the target power supply to be tested can be stably placed on the transmission mechanism.

[0039] Optionally, in the step of keeping the transfer mechanism in the start-up state, if it is detected that the target power source to be tested is not rotating and the angle is greater than a preset angle, the transfer mechanism is moved so that the transfer mechanism is close to one end of the target power source to be tested close to the electrode; When it is detected that the target power supply to be tested starts to rotate, the target power supply to be tested is pushed by the transfer mechanism until it is detected that the included angle is equal to the preset included angle.

[0040] By adopting the above technical solution, the target power supply to be tested can be prevented from being stationary on the transmission mechanism, so that the target power supply to be tested can be moved on the transmission mechanism.

[0041] In a fourth aspect, the present application provides a computer storage medium capable of storing a corresponding program, using the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned power polarity detection methods.

[0042] In summary, the present application includes at least one of the following beneficial technical effects: 1. The complexity of the detection circuit can be simplified. Only a bias circuit, a diode and a bias voltage source are needed to complete the basic task of detecting the polarity of the power supply. The circuit is simple; 2. Use the detection power supply to determine the power polarity of the target power supply to be tested, and transfer the target power supply to be tested to the transmission mechanism in a preset posture, so that all power supplies that have passed the power polarity detection are in the preset posture, which is convenient for relevant personnel to identify the power polarity. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a structural schematic diagram of a power polarity detection circuit disclosed in an embodiment of the present application.

[0044] Figure 2 It is a flow chart of a method for detecting power polarity disclosed in an embodiment of the present application.

[0045] Figure 3 It is a structural schematic diagram of a power polarity detection system disclosed in an embodiment of the present application.

[0046] Figure 4 It is a flow chart of a method for detecting power polarity disclosed in an embodiment of the present application.

[0047] Figure 5 It is a flow chart of a method for detecting power polarity disclosed in an embodiment of the present application.

[0048] Figure 6 It is a flow chart of a method for detecting power polarity disclosed in an embodiment of the present application.

[0049] Figure 7 It is a flow chart of a method for detecting power polarity disclosed in an embodiment of the present application.

[0050] Figure 8 It is a flow chart of a method for transferring a target power supply to be tested disclosed in an embodiment of the present application.

[0051] Fig. 9It is a structural schematic diagram of a power polarity detection system disclosed in an embodiment of the present application.

[0052] Fig.10 It is a structural schematic diagram of a power polarity detection system disclosed in an embodiment of the present application.

[0053] Description of reference numerals: bias branch 11; voltage measuring device 12; first resistor R1; second resistor R2; bias resistor R3; power supply to be measured VS1; bias voltage source V1; diode D1. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-10 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] The present application embodiment discloses a power supply polarity detection circuit. Figure 1 The detection circuit includes: a first resistor R1, a second resistor R2, a bias branch 11 and a voltage measuring device 12.

[0056] A first resistor R1 and a second resistor R2 are connected in series, a first input terminal of the detection circuit corresponds to the first resistor R1, and a second input terminal of the detection circuit corresponds to the second resistor R2; The positive input terminal of the bias branch 11 and the voltage measuring device 12 is connected between the first resistor R1 and the second resistor R2; The negative input terminal of the voltage measuring device 12 and the first pole of the power supply VS1 to be measured are common reference points of the detection circuit; The potential difference of the positive input terminal of the voltage measuring device 12 relative to the common reference point is the voltage to be measured V0. The voltage measuring device is used to determine the power polarity of the power supply VS1 to be measured through the voltage to be measured V0.

[0057] In an optional implementation of the present application, the bias branch 11 includes a bias resistor R3, a diode D1 and a bias voltage source V1. The first end of the bias resistor R3 is connected between the first resistor R1 and the second resistor R2; the second end of the bias resistor R3 is connected to the cathode of the diode D1; and the anode of the diode D1 is connected to the anode of the bias voltage source V1.

[0058] Optionally, the voltage measuring device 12 is a MCU (MicroController Unit).

[0059] Optionally, the voltage measuring device 12 is provided with an analog-to-digital conversion module (A / D conversion module), which is used to convert the voltage V0 to be measured into an analog-to-digital output. Exemplarily, when the voltage V0 to be measured is 1.09V, the analog-to-digital output of the analog-to-digital conversion module is 0x5B.

[0060] Optionally, the positive input terminal of the voltage measuring device 12 is an input port of the analog-to-digital conversion module.

[0061] Optionally, the negative electrode of the bias voltage source V1 is connected to the common reference point.

[0062] Optionally, the common reference point is grounded, then the potential of the common reference point is 0.

[0063] Optionally, the resistance of the bias resistor R3 is greater than the resistance of the first resistor R1. Optionally, the resistance of the bias resistor R3 is greater than the resistance of the second resistor R2. Exemplarily, the resistance of the bias resistor R3 is 5MΩ, while the resistance of the first resistor R1 is 100kΩ, and the resistance of the second resistor R2 is 10kΩ. Exemplarily, the resistance of the bias resistor R3 is at least 50 times greater than the resistance of the first resistor R1.

[0064] Optionally, the voltage of the power supply VS1 to be tested may be greater than the voltage of the bias voltage source V1, or may be less than the voltage of the bias voltage source V1. Exemplarily, the voltage of the bias voltage source V1 is 3.3V, and the voltage of the power supply VS1 to be tested is 10V or 12V; or, the voltage of the bias voltage source V1 is 3.3V, and the voltage of the power supply VS1 to be tested is 3.0V.

[0065] Optionally, when the power supply VS1 to be tested is not connected to the first input terminal and the second input terminal, the diode D1 is in a conducting state, and the voltage to be tested V0 is a first voltage, and the first voltage is not 0. When the power supply VS1 to be tested is not connected to the first input terminal and the second input terminal, only the bias voltage source V1 in the detection circuit supplies power, so the diode D1 is in a conducting state.

[0066] Optionally, when the first input terminal is connected to the negative electrode of the power supply VS1 to be tested and the second input terminal is connected to the positive electrode of the power supply VS1 to be tested, the voltage V0 to be tested is a second voltage, and the second voltage is not equal to the first voltage.

[0067] Optionally, when the first input terminal is connected to the positive electrode of the power supply VS1 to be tested and the second input terminal is connected to the negative electrode of the power supply VS1 to be tested, the voltage V0 to be tested is a third voltage, the third voltage is not equal to the first voltage, and the third voltage is not equal to the second voltage.

[0068] In some other embodiments, the positive input terminal of the voltage measuring device 12 is further provided with an overcurrent protection element ( Figure 1(not shown), one end of the overcurrent protection element is connected to the positive input terminal of the voltage measuring device 12, and the other end is connected between the first resistor R1 and the second resistor R2. The overcurrent protection element is used to prevent the circuit passing through the voltage measuring device 12 from being too large. When the circuit passing through the voltage measuring device 12 is greater than the upper limit of the current that the voltage measuring device 12 can carry, the overcurrent protection element will form a circuit break, wherein the upper limit of the current that the voltage measuring device 12 can carry is the factory setting of the voltage measuring device 12. For example, the overcurrent protection element can be a fuse or a circuit breaker.

[0069] To sum up, by adopting the above technical solution, it is only necessary to add a bias branch between the first resistor and the second resistor as a voltage divider network to determine the power polarity of the power supply to be tested, and distinguish the three situations of forward connection, reverse connection and no connection. Moreover, the structure of the detection circuit is simple and easy to implement.

[0070] This application Figure 1 Implementation principle 1 of the illustrated embodiment: First, let the voltage of the power supply VS1 to be tested be 12V, the voltage of the bias voltage source be 3.3V, the resistance of the first resistor be 100kΩ, the resistance of the second resistor be 10kΩ, and the resistance of the bias resistor be 5MΩ. To simplify the analysis process, the diode D1 is regarded as an ideal diode below, and the forward conduction voltage drop of the diode D1 is not considered, then: 1. Not connected: The power supply to be tested is not connected to the detection circuit; At this time, the diode D1 is in the on state, the bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series, so V0 only includes the divided voltage provided by the bias voltage source V1, then: V0=(V1×R2) / (R3+R2) =(3.3V×10000Ω) / (5000000Ω×10000Ω)=6.58mV; When the MCU detects that the voltage V0 to be measured is 6.58mV, its analog-to-digital output is 0X8.

[0071] 2. Forward connection: The positive pole of the power supply to be tested is connected to the first input terminal, and the negative pole is connected to the second input terminal; At this time, the diode D1 is in the on state. The bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series; the target power supply to be tested VS1, the first resistor R1 and the second resistor R2 form another loop, and the first resistor R1 and the second resistor R2 are connected in series. Therefore, V0 includes the divided voltage provided by the bias voltage source V1 and the divided voltage provided by the target power supply to be tested VS1, and then: V0=(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =(12V×10000Ω) / (100000Ω+10000Ω)+(3.3V×10000Ω) / (5000000Ω×10000Ω) =1090.9mV+6.58mV=1097.48mV≈1.09V; When the MCU detects that the voltage V0 to be measured is 1097.48mV, its analog-to-digital output is 0X5B. Since the error caused by the 6.58mV voltage generated by the bias voltage source is extremely small and can be compensated using the algorithm inside the MCU, it will not affect the actual measurement accuracy.

[0072] 3. Reverse connection: The positive pole of the power supply to be tested is connected to the second input terminal, and the negative pole is connected to the first input terminal; At this time, the diode D1 is in the on state. The target power supply VS1, the first resistor R1 and the second resistor R2 form a loop, and the first resistor R1 and the second resistor R2 are connected in series. Therefore, V0 includes the voltage divided by the voltage source VS1 and the target power supply VS1, and then: V0=-(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =-(12V×10000Ω) / (100000Ω+10000Ω)+(3.3V×10000Ω) / (5000000Ω+10000Ω) =-1090.9mV+6.58mV=-1084.32mV≈-1.08V; When the MCU detects that the voltage V0 to be measured is -1.08V, its analog-to-digital output is 0.

[0073] This application Figure 1 Implementation principle 2 of the illustrated embodiment: First, let the voltage of the power supply VS1 to be tested be 3V, the voltage of the bias voltage source be 3.3V, the resistance of the first resistor be 100kΩ, the resistance of the second resistor be 10kΩ, and the resistance of the bias resistor be 5MΩ. To simplify the analysis process, the diode D1 is regarded as an ideal diode below, and the forward conduction voltage drop of the diode D1 is not considered, then: 1. Not connected: The power supply to be tested is not connected to the detection circuit; At this time, the diode D1 is in the on state, the bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series, so V0 only includes the divided voltage provided by the bias voltage source V1, then: V0=(V1×R2) / (R2+R3) =(3.3V×10000Ω) / (5000000Ω×10000Ω)=6.58mV; When the MCU detects that the voltage V0 to be measured is 6.58mV, its analog-to-digital output is 0X8.

[0074] 2. Forward connection: The positive pole of the power supply to be tested is connected to the first input terminal, and the negative pole is connected to the second input terminal; At this time, the diode D1 is in the on state. The bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series; the target power supply to be tested VS1, the first resistor R1 and the second resistor R2 form another loop, and the first resistor R1 and the second resistor R2 are connected in series. Therefore, V0 includes the divided voltage provided by the bias voltage source V1 and the divided voltage provided by the target power supply to be tested VS1, and then: V0=(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =(3V×10000Ω) / (100000Ω+10000Ω)+(3.3V×10000Ω) / (5000000Ω×10000Ω) =272.72mV+6.58mV=279.3mV≈0.279V; When the MCU detects that the voltage V0 to be measured is 279.3mV, its analog-to-digital output is 0X5B. Since the error caused by the 6.58mV voltage generated by the bias voltage source is extremely small and can be compensated using the algorithm inside the MCU, it will not affect the actual measurement accuracy.

[0075] 3. Reverse connection: The positive pole of the power supply to be tested is connected to the second input terminal, and the negative pole is connected to the first input terminal; At this time, the diode D1 is in the on state. The target power supply VS1, the first resistor R1 and the second resistor R2 form a loop, and the first resistor R1 and the second resistor R2 are connected in series, so V0 only includes the voltage divided by the voltage source VS1 and the target power supply VS1, then: V0=-(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =-(3V×10000Ω) / (100000Ω+10000Ω)+(3.3V×10000Ω) / (5000000Ω+10000Ω) =-272.27mV+6.58mV=-265.69mV≈-0.266V; When the MCU detects that the voltage V0 to be measured is -0.266V, its analog-to-digital output is 0.

[0076] This application Figure 1Implementation principle 3 of the illustrated embodiment: First, let the voltage of the power supply VS1 to be tested be 3V, the voltage of the bias voltage source be 3.3V, the resistance of the first resistor be 10kΩ, the resistance of the second resistor be 100kΩ, and the resistance of the bias resistor be 5MΩ. To simplify the analysis process, the diode D1 is regarded as an ideal diode below, and the forward conduction voltage drop of the diode D1 is not considered, then: 1. Not connected: The power supply to be tested is not connected to the detection circuit; At this time, the diode D1 is in the on state, the bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series, so V0 only includes the divided voltage provided by the bias voltage source V1, then: V0=(V1×R2) / (R2+R3) =(3.3V×1000Ω) / (5000000Ω×1000Ω)=64.7mV; When the MCU detects that the voltage V0 to be measured is 64.7mV, its analog-to-digital output is 0X8.

[0077] 2. Forward connection: The positive pole of the power supply to be tested is connected to the first input terminal, and the negative pole is connected to the second input terminal; At this time, the diode D1 is in the on state. The bias voltage source V1, the second resistor R2 and the bias resistor R3 form a loop, and the second resistor R2 and the bias resistor R3 are connected in series; the target power supply to be tested VS1, the first resistor R1 and the second resistor R2 form another loop, and the first resistor R1 and the second resistor R2 are connected in series. Therefore, V0 includes the divided voltage provided by the bias voltage source V1 and the divided voltage provided by the target power supply to be tested VS1, and then: V0=(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =(3V×100000Ω) / (100000Ω+10000Ω)+(3.3V×100000Ω) / (5000000Ω×100000Ω) =2727.27mV+64.7mV=2791.97mV≈2.79V; When the MCU detects that the voltage V0 to be measured is 2791.97mV, its analog-to-digital output is 0X5B. Since the error caused by the 64.7mV voltage generated by the bias voltage source is extremely small and can be compensated using the algorithm inside the MCU, it will not affect the actual measurement accuracy.

[0078] 3. Reverse connection: The positive pole of the power supply to be tested is connected to the second input terminal, and the negative pole is connected to the first input terminal; V0=(VS1×R2) / (R1+R2)+(V1×R2) / (R3+R2) =(-3V×10000Ω) / (100000Ω+10000Ω)+(3.3V×100000Ω) / (5000000Ω×100000Ω) =-2727.27mV+64.7mV=-2662.57mV≈-2.66V; When the MCU detects that the voltage to be measured V0 is -2662.57mV, its analog-to-digital output is 0.

[0079] Therefore, through the explanation of the above three situations, the three access states of the power supply to be tested can be judged according to the analog-to-digital output of the MCU: not connected, forward connected and reverse connected. Especially for the judgment of the two access states of not connected and reverse connected. If the power supply to be tested is not connected to the detection circuit, the analog-to-digital output of this application is 0x8; if the circuit to be tested is reversely connected to the detection circuit, the analog-to-digital output of this application is 0. Compared with the related art, this application can clearly distinguish whether the power supply to be tested is not connected to the detection circuit or is reversely connected to the detection circuit.

[0080] In summary, it is only necessary to add a bias branch between the first resistor and the second resistor as a voltage divider network to determine the power polarity of the power supply to be tested and distinguish the three situations of forward connection, reverse connection and no connection. Moreover, the structure of the detection circuit is simple and easy to implement.

[0081] The present application embodiment discloses a method for detecting the polarity of a power supply. Figure 2 , the method comprising: Step S21: in response to the power supply to be tested being connected to the charger, the polarity of the power supply to be tested is detected by the power polarity detection circuit inside the charger to obtain the connection status of the power supply to be tested.

[0082] The charger is internally configured as follows: Figure 1 The power polarity detection circuit shown in the figure. Please refer to the principle of the power polarity detection circuit Figure 1 The explanation of the illustrated embodiment will not be repeated here.

[0083] The connection conditions of the power supply under test include forward connection, reverse connection and no connection. Among them, forward connection means that the polarity of the power supply under test matches the polarity of the charger, and the charger can charge the power supply under test normally. Reverse connection means that the polarity of the power supply under test is opposite to the polarity of the charger, and the charger cannot charge the power supply under test.

[0084] Step S22: If the access condition is forward access, control the charger to charge the power supply to be tested.

[0085] Optionally, the charger may also obtain the rated charging power of the power supply to be tested, and charge the power supply to be tested according to the rated charging power.

[0086] Step S23: If the access situation is reverse access, an alarm signal is generated.

[0087] The alarm signal may be implemented by sound or light. Optionally, the alarm may be implemented by a buzzer or a speaker, for example, the buzzer continuously emits a sound to implement the alarm. Optionally, the alarm may be implemented by the flashing of a flashing light or an indicator light.

[0088] Furthermore, in order to protect the power supply to be tested, the electrical connection between the charger and the power supply to be tested will be cut off.

[0089] Step S24: If the access status is not accessed, a reminder signal is generated.

[0090] The reminder signal can be implemented by sound or light, and the alarm signal and reminder signal are in different forms. For example, the alarm signal and reminder signal are both implemented by sound, the alarm signal will emit a "power supply is reversed" sound to alarm, and the reminder signal will emit a "power supply is not connected" sound to alarm.

[0091] Optionally, factors causing non-connection include poor contact between the charger and the power supply to be tested, damage to the power supply to be tested, and complete discharge of the power supply to be tested.

[0092] Furthermore, in order to protect the power supply to be tested, the electrical connection between the charger and the power supply to be tested will be cut off.

[0093] In summary, the power polarity detection circuit is integrated into the charger, so that the charger can judge the polarity of the power supply to be tested before charging the power supply to be tested. When the power supply to be tested is reversely connected to the charger, an alarm signal can be generated to inform the user that the power supply to be tested is in a reverse connection state, thereby avoiding damage to the power supply to be tested due to reverse charging.

[0094] The present application embodiment discloses a power supply polarity detection system. Figure 3 The system includes Figure 1 The system further comprises a power polarity detection circuit 31 and a transmission mechanism 32 and a transfer mechanism 33 .

[0095] The transmission mechanism 32 is used to transmit the power to be tested 34. In some embodiments, the transmission mechanism 32 is a conveyor belt.

[0096] The transfer mechanism 33 is used to connect the target power supply 34 to be tested on the transmission mechanism 32 to the detection circuit 31. In some embodiments, the transfer mechanism 33 is a robot arm.

[0097] The detection circuit 31 is used to detect the power polarity of the target power supply 34 to be tested; when the power polarity of the target power supply 34 to be tested corresponds to forward connection, the analog-to-digital output of the detection circuit 31 is a first preset value; when the power polarity of the target power supply 34 to be tested corresponds to reverse connection, the analog-to-digital output of the detection circuit 31 is a second preset value. When the detection circuit 31 is not connected to the target power supply 34 to be tested, the analog-to-digital output of the detection circuit 31 is a third preset value.

[0098] The transfer mechanism 33 is further used to transfer the target power supply 34 to be tested to the transmission mechanism 32 in a preset posture according to the power polarity of the target power supply 34 to be tested.

[0099] For example, please refer to Figure 3 When the power source is a rectangular parallelepiped, the line segment formed by the positive and negative electrodes of the power source is parallel to the horizontal plane. The power source that has passed the power source polarity detection has the same preset posture on the transmission mechanism 32, with the moving direction of the transmission mechanism 32 as the positive direction, and the positive electrode of the power source is in the positive direction of the negative electrode of the power source.

[0100] In some embodiments, when the power source is a cylinder, the preset posture is that the electrode surface of the power source faces upward, and the surface opposite to the electrode surface is the bottom surface. The positive electrode of the power source is on the left side of the moving direction of the conveying mechanism 32, and the negative electrode of the power source is on the right side of the moving direction of the conveying mechanism 32.

[0101] In another power polarity detection system provided in the present application, the detection circuit 31 is located above the conveying mechanism 32; the detection circuit 31 is used to connect the first input end of the detection circuit 31 to the first pole of the target power supply to be tested 34, and connect the second input end of the detection circuit 31 to the second pole of the target power supply to be tested 34 when the target power supply to be tested 34 on the conveying mechanism 32 moves to the bottom of the detection circuit 31, and the conveying mechanism 32 needs to be stopped at the same time; after the detection circuit 31 obtains the power polarity of the target power supply to be tested 34, the transfer mechanism 33 rotates the target power supply to be tested 34 to a preset posture according to the power polarity of the target power supply to be tested 34.

[0102] Furthermore, a camera is provided on the detection circuit 31. On the one hand, the camera will obtain an image of the power supply to be tested on the transmission mechanism 32, and the detection system will determine whether the target power supply to be tested 34 has moved to the bottom of the detection circuit 31 through the aforementioned image; on the other hand, the camera will obtain an image of the target power supply to be tested 34, and further obtain the first pole and the second pole on the target power supply to be tested 34, and then, connect the first input terminal of the detection circuit 31 to the first pole of the target power supply to be tested 34, and connect the second input terminal of the detection circuit 31 to the second pole of the target power supply to be tested 34.

[0103] To sum up, by adopting the above technical solution, the power polarity of the target power supply to be tested is determined by using the detection power supply, and the target power supply to be tested is transferred to the transmission mechanism in a preset posture, so that all power supplies that have passed the power polarity detection are in the preset posture, which is convenient for relevant personnel to identify the power polarity.

[0104] The present application embodiment discloses a method for detecting the polarity of a power supply. Figure 3 The system shown here performs power supply polarity detection. Figure 4 , the method comprising: Step S41: in response to detecting that the target power supply to be tested on the transmission mechanism is close to the transfer mechanism, the target power supply to be tested is connected to the detection circuit through the transfer mechanism.

[0105] The target power supply to be tested refers to the power supply to be tested that enters the detection area on the transfer mechanism. The detection area is the operable area corresponding to the transfer mechanism, that is, the transfer mechanism can only operate the power supply to be tested in the detection area.

[0106] In some embodiments, a camera is disposed on the transfer mechanism, and the transfer mechanism determines the target power supply to be tested on the transmission mechanism through the camera.

[0107] In some embodiments, a laser sensor is disposed on the transfer mechanism, and the transfer mechanism determines the target power source to be tested on the transmission mechanism through the laser sensor.

[0108] Furthermore, in response to detecting that the target power supply to be tested on the conveying mechanism enters the aforementioned detection area, the conveying mechanism is stopped; and the target power supply to be tested is connected to the detection circuit through the transfer mechanism.

[0109] In some embodiments, a groove is provided on the detection circuit, the shape of the groove matches the electrode shape of the target circuit to be tested, and the target circuit to be tested is connected to the groove of the detection circuit through a transfer mechanism.

[0110] Step S42: obtaining the power polarity of the target power supply to be tested through the detection circuit; when the power polarity of the target power supply to be tested corresponds to forward access, the analog-to-digital output of the detection circuit is a first preset value; when the power polarity of the target power supply to be tested corresponds to reverse access, the analog-to-digital output of the detection circuit is a second preset value.

[0111] Optionally, when the detection circuit is not connected to the target power supply to be tested, the analog-to-digital output of the detection circuit is a third preset value, wherein the first preset value, the second preset value and the third preset value are all different.

[0112] Exemplarily, when the power polarity of the target power supply to be tested corresponds to forward connection, the analog-to-digital output of the detection circuit is 0X5B. When the power polarity of the target power supply to be tested corresponds to reverse connection, the analog-to-digital output of the detection circuit is 0.

[0113] In some embodiments, after the target power supply to be tested is connected to the detection circuit, the analog-to-digital output of the detection circuit is not necessarily the first preset value or the second preset value. To solve the above problem, the present application embodiment also provides a method for detecting the polarity of a power supply, please refer to Figure 5 The method includes steps S421 to S424, the specific contents of which are as follows: Step S421: when the analog-to-digital output of the detection circuit is an abnormal value, the electrodes of the target power supply to be tested are turned around, the abnormal value is not equal to the first preset value, and the abnormal value is not equal to the second preset value.

[0114] In some embodiments, the above abnormal value may also be caused by the target power supply to be tested not being fully connected to the detection circuit, or the target circuit to be tested not being aligned with the detection circuit. The present application embodiment discloses a method for detecting the polarity of a power supply. Please refer to Figure 6 The method includes steps S4211 to S4214, the specific contents of which are as follows: Step S4211: When the abnormal value is a third preset value, the target power supply to be tested is rotated by the transfer mechanism so that the electrodes of the target power supply to be tested are aligned with the electrodes of the detection circuit. The third preset value is the analog-to-digital output of the detection circuit when no external power supply is connected.

[0115] Exemplarily, when the power supply to be tested is not connected to the detection circuit, the analog-to-digital output of the detection circuit is 0X8.

[0116] In some embodiments, if the target power supply to be tested is a rectangular parallelepiped, the target power supply to be tested is rotated 90 degrees by the transfer mechanism.

[0117] In some embodiments, if the target power supply to be tested is a cylinder, the target power supply to be tested is rotated by the transfer mechanism until the electrodes of the target power supply to be tested are aligned with the two poles of the detection circuit.

[0118] Step S4212: Connect the target power supply to be tested to the detection circuit through the transfer mechanism.

[0119] In some embodiments, a groove is provided on the detection circuit, the shape of the groove matches the electrode shape of the target circuit to be tested, and the target circuit to be tested is connected to the groove of the detection circuit through a transfer mechanism.

[0120] Step S4213: Determine whether the analog-to-digital output of the detection circuit is the first preset value or the second preset value.

[0121] If the analog-to-digital output of the detection circuit is the first preset value or the second preset value, executing step S4214; If the analog-to-digital output of the detection circuit is neither the first preset value nor the second preset value, the above step S4212 is repeated. If the analog-to-digital output of the detection circuit is still neither the first preset value nor the second preset value when the number of repetitions of step S4212 reaches the upper limit, the target power supply to be tested is discarded.

[0122] Step S4214: if the analog-to-digital output of the detection circuit is the first preset value or the second preset value, determining the power polarity of the target power supply to be tested according to the analog-to-digital output of the detection circuit.

[0123] In some embodiments, when the analog-to-digital output of the detection circuit is a first preset value, the power polarity of the target power supply to be tested corresponds to forward access; when the analog-to-digital output of the detection circuit is a second preset value, the power polarity of the target power supply to be tested corresponds to reverse access.

[0124] In summary, by adopting the above technical solution, the power polarity of the target power supply to be tested can be detected when the target power supply to be tested is not placed on the transmission mechanism according to the standard.

[0125] Step S422: Connect the target power supply to be tested to the detection circuit to obtain a first detection value output by the detection circuit.

[0126] In some embodiments, after the target power supply to be tested is connected to the detection circuit, a first detection value is obtained according to an analog-to-digital output of the detection circuit.

[0127] Step S423: If the first detection value is the same as the first preset value, or the first detection value is the same as the second preset value, then the power polarity of the target power supply to be tested is determined according to the first detection value.

[0128] In some embodiments, when the first detection value is a first preset value, the power polarity of the target power supply to be tested corresponds to forward access; when the first detection value is a second preset value, the power polarity of the target power supply to be tested corresponds to reverse access.

[0129] In some embodiments, the electrodes of the target power supply to be tested connected to the detection circuit are exchanged, and the target power supply to be tested is tested again to achieve secondary detection of the power polarity of the target power supply to be tested. The present application embodiment discloses a method for detecting the polarity of a power supply. Please refer to Figure 7 The method includes steps S4231 to S4234, the specific contents of which are as follows: Step S4231: If the first detection value is the same as the first preset value, the power polarity of the target power supply to be tested is determined according to the first detection value.

[0130] In some embodiments, if the first detection value is the same as the first preset value, the power polarity of the target power supply to be tested corresponds to forward connection.

[0131] Step S4232: If the first detection value is the same as the second preset value, the electrodes of the target power supply to be tested are switched to obtain a second detection value.

[0132] In some embodiments, if the first detection value is the same as the second preset value, the power polarity of the target power supply to be tested corresponds to negative access. However, since the present application uses the analog-to-digital conversion module on the MCU to determine the power polarity, its characteristic is that it will output 0 when the reference signal is detected to be a negative signal. Therefore, the analog-to-digital conversion module cannot output the specific numerical value of the negative signal. Therefore, even if the voltage of the target power supply to be tested deviates, the detection circuit cannot detect it. Therefore, in order to solve this problem, the embodiment of the present application will turn the electrodes of the power supply to be tested again for verification.

[0133] Step S4233: Calculate the voltage difference between the second detection value and the first preset value.

[0134] Exemplarily, the difference between the second detection value and the first preset value is calculated to obtain the voltage difference value.

[0135] Step S4234: when the voltage difference is greater than the preset difference, the target power supply to be tested is discarded.

[0136] The preset difference is a preset constant, and the specific data of the preset difference can be adjusted according to actual needs, and this application does not make any specific limitations on this.

[0137] Step S4235: when the voltage difference is less than or equal to the preset difference, determining the power polarity of the target power supply to be tested according to the first detection value.

[0138] Exemplarily, when the voltage difference is less than or equal to the preset difference, it is determined that the power polarity of the target power supply to be tested corresponds to forward connection.

[0139] In summary, by adopting the technical solutions of steps S4231 to S4234, the accuracy of detecting the target power supply to be tested is improved through the characteristics of analog-to-digital output.

[0140] Step S424: If the first detection value is different from the first preset value, and the first detection value is different from the second preset value, the target power supply to be tested is discarded.

[0141] If the first detection value is different from the first preset value, and the first detection value is different from the second preset value, it means that the voltage of the target power supply to be tested is different from the preset voltage of the power supply, and there may be a problem with the target power supply to be tested, so the target power supply to be tested needs to be discarded.

[0142] In summary, by adopting the above steps S421 to S424, when the analog-to-digital output of the detection circuit is an abnormal value, a secondary detection can be performed by reversing the electrodes to determine whether there is a problem with the target power supply to be tested.

[0143] Step S43: according to the power polarity of the target power supply to be tested, the target power supply to be tested is transferred to the transmission mechanism in a preset posture by the transfer mechanism.

[0144] For example, please refer to Figure 3 The power source that has passed the power polarity detection has the same preset posture on the transmission mechanism 22, with the moving direction of the transmission mechanism as the positive direction, and the positive pole of the power source is in the positive direction of the negative pole of the power source.

[0145] To sum up, by adopting the above technical solution, the power polarity of the target power supply to be tested is determined by using the detection power supply, and the target power supply to be tested is transferred to the transmission mechanism in a preset posture, so that all power supplies that have passed the power polarity detection are in the preset posture, which is convenient for relevant personnel to identify the power polarity.

[0146] In the following embodiments, when the target power supply to be tested moves on the transmission mechanism, the transfer mechanism will not easily clamp the target power supply to be tested due to the shape orientation of the target power supply to be tested. To solve the above problems, the embodiment of the present application discloses a method for transferring the target power supply to be tested. The method comprises Figure 3 The system shown here performs power supply polarity detection. Figure 8 , the method comprising: Step S801: obtaining the angle between the external orientation of the target power supply to be tested and the moving direction of the transmission mechanism, wherein the external orientation takes the end of the target power supply to be tested close to the electrode as the origin and the end of the end away from the electrode as the end.

[0147] For example, please refer to Fig. 9 The arrow next to the target power supply 35 to be tested indicates the outer shape orientation of the target power supply 35 to be tested.

[0148] Step S802: when the angle is greater than the preset angle, the transfer mechanism is moved to the target power supply to be tested, so that the transfer mechanism contacts one end of the target power supply to be tested close to the electrode.

[0149] For example, please refer to Fig. 9 When the angle is greater than the preset angle, although the transfer mechanism 23 can clamp the target power supply 35 to the detection circuit 31, it is difficult for the transfer mechanism 33 to align the electrodes of the target power supply 35 to the detection circuit 31. Therefore, in this embodiment, the transmission mechanism 32 and the transfer mechanism 33 are used in coordination to make it easy for the target power supply 35 to be clamped and aligned with the detection circuit 31.

[0150] Step S803: Keep the transmission mechanism in the start-up state, so that the target power supply to be tested rotates on the transmission mechanism.

[0151] For example, please refer to Fig.10When the transmission mechanism 32 is kept in the started state, the target power supply 35 to be tested will rotate along with the movement of the transmission mechanism 32 .

[0152] In some other embodiments, when the target power supply to be tested is rotated, the target power supply to be tested may move on the transmission mechanism. If the target power supply to be tested is too close to the edge of the transmission mechanism, the target power supply to be tested may fall from the transmission mechanism. Therefore, when it is detected that the distance between the target power supply to be tested and the edge of the transmission mechanism is less than the safe distance, the target power supply to be tested is moved by the transfer mechanism so that the target power supply to be tested is close to the transfer mechanism.

[0153] In some embodiments, the contact point between the transfer mechanism and the target power supply to be tested will cause the target power supply to be unable to rotate with the movement of the transmission mechanism. Therefore, in the step of keeping the transmission mechanism in the startup state, if it is detected that the target power supply to be tested does not rotate and the angle is greater than the preset angle, the transfer mechanism is moved to make the transfer mechanism close to the end of the target power supply to be tested close to the electrode; when it is detected that the target power supply to be tested starts to rotate, the target power supply to be tested is pushed by the transfer mechanism until it is detected that the angle is equal to the preset angle.

[0154] Step S804: When it is detected that the included angle is equal to the preset included angle, the target power source to be tested is pushed close to one end of the electrode by the transfer mechanism.

[0155] In some embodiments, the judgment condition of this step: the angle is equal to the preset angle means that the angle difference between the angle and the preset angle is less than the angle difference threshold. For example, if the preset angle is 90 degrees and the angle difference threshold is 3 degrees, then as long as the aforementioned angle is between 87 degrees and 93 degrees, it can be considered that the angle is equal to the preset angle.

[0156] Step S805: Connect the target power supply to be tested to the detection circuit through the transfer mechanism.

[0157] Exemplarily, the target power supply to be tested is clamped by a transfer mechanism, and the target power supply to be tested is connected to a detection circuit.

[0158] In summary, by adopting the above technical solution, when the analog-to-digital output of the detection circuit is an abnormal value, a secondary detection can be performed by reversing the electrodes to determine whether there is a problem with the target power supply to be tested. Moreover, the accuracy of the detection of the target power supply to be tested is improved through the characteristics of the analog-to-digital output.

[0159] An embodiment of the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a method for detecting power polarity.

[0160] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0161] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0162] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A power supply polarity detection circuit, It is characterized in that include: A first resistor, a second resistor, a bias branch, and a voltage measuring device; The first input end of the detection circuit is connected to the first end of the first resistor, the second input end of the detection circuit corresponds to the first end of the second resistor, and the second end of the first resistor is connected to the second end of the second resistor; The bias branch and the positive input terminal of the voltage measuring device are connected between the first resistor and the second resistor; The negative input terminal of the voltage measuring device and the first pole of the power supply to be measured are common reference points of the detection circuit; The potential difference of the positive input terminal of the voltage measuring device relative to the common reference point is the voltage to be measured, and the voltage measuring device is used to determine the power polarity of the power supply to be measured through the voltage to be measured.

2. The power supply polarity detection circuit according to claim 1, It is characterized in that The bias branch includes a bias resistor, a diode and a bias voltage source; The first end of the bias resistor is connected between the first resistor and the second resistor; The second end of the bias resistor is connected to the cathode of the diode; The anode of the diode is connected to the anode of the bias voltage source.

3. The power supply polarity detection circuit according to claim 2, It is characterized in that When the first input terminal and the second input terminal are not connected to the power supply to be tested, the voltage to be tested is a first voltage, and the first voltage is not zero.

4. The power supply polarity detection circuit according to claim 3, It is characterized in that When the first input terminal is connected to the negative electrode of the power supply to be measured and the second input terminal is connected to the positive electrode of the power supply to be measured, the voltage to be measured is a second voltage, and the second voltage is not equal to the first voltage.

5. The power polarity detection circuit according to claim 4, It is characterized in that When the first input terminal is connected to the positive electrode of the power supply to be tested and the second input terminal is connected to the negative electrode of the power supply to be tested, the voltage to be tested is a third voltage, the third voltage is not equal to the first voltage, and the third voltage is not equal to the second voltage.

6. The power polarity detection circuit according to claim 2, It is characterized in that The resistance value of the bias resistor is greater than the resistance value of the first resistor.

7. The power polarity detection circuit according to claim 2, It is characterized in that The resistance value of the bias resistor is greater than the resistance value of the second resistor.

8. The power polarity detection circuit according to claim 1, It is characterized in that The voltage measuring device is a microprocessing unit MCU.

9. The power polarity detection circuit according to claim 8, It is characterized in that The voltage measuring device is provided with an analog-to-digital conversion module, and the analog-to-digital conversion module is used to convert the voltage to be measured into an analog-to-digital output.

10. The power polarity detection circuit according to claim 9, It is characterized in that The positive input terminal of the voltage measuring device is the input port of the analog-to-digital conversion module.