CN-224216775-U - Wide voltage switching value acquisition circuit
Abstract
The utility model discloses a wide-voltage switching value acquisition circuit, which relates to the technical field of industrial automation control and comprises a voltage stabilizing diode, a voltage dividing network, a triode, a pull-up resistor, a current limiting resistor and a microcontroller port which are connected in series, wherein the voltage stabilizing diode is used for obtaining voltage stabilizing voltage, the voltage dividing network is used for obtaining voltage dividing voltage, the triode comprises a base electrode, an emitter electrode and a collector electrode, the base electrode is connected with a connection point A of a first voltage dividing resistor and a second voltage dividing resistor and is used for receiving the voltage dividing voltage, the emitter electrode is grounded, the collector electrode is used for limiting current flowing into the microcontroller port within a safe range, the triode is controlled to be conducted or cut off according to the voltage dividing voltage, and the microcontroller port is used for acquiring wide-voltage switching value based on low-level signals or high-level signals so as to help solve the problems that the prior art is difficult to stably acquire switching value signals in the wide input voltage range and the microcontroller port is easy to damage due to overlarge current.
Inventors
- YU XITONG
- SHAN GUOHUA
- CAO LIQIANG
Assignees
- 上海品豆城服智能科技有限责任公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250528
Claims (10)
- 1. The utility model provides a wide voltage switching value acquisition circuit which characterized in that, includes zener diode, bleeder network, triode, pull-up resistor, current-limiting resistor and the microcontroller port of establishing ties, bleeder network includes first bleeder resistor and second bleeder resistor: The cathode of the voltage stabilizing diode is connected with the anode of the external power supply, and the anode of the voltage stabilizing diode is connected with the first voltage dividing resistor and is used for stabilizing the input voltage input by the external power supply to obtain a stabilized voltage; the voltage division network is used for dividing the voltage-stabilized voltage to obtain divided voltage; The triode comprises a base electrode, an emitter electrode and a collector electrode; the base is connected with a connection point A of the first voltage dividing resistor and the second voltage dividing resistor and used for receiving the voltage dividing voltage, the emitter is grounded, and the collector is connected with the micro-controller port through the current limiting resistor after being pulled up by the pull-up resistor and used for limiting the current flowing into the micro-controller port within a safe range; The triode is controlled to be conducted or cut off according to the voltage division voltage, a passage is formed between the collector and the emitter when the triode is conducted, the microcontroller port receives a low-level signal, an open circuit is formed between the collector and the emitter when the triode is cut off, the collector is connected to a power supply through a pull-up resistor, and the microcontroller port receives a high-level signal; the microcontroller port is used for acquiring wide voltage switching value based on the low-level signal or the high-level signal.
- 2. The wide voltage switching value acquisition circuit of claim 1, wherein the input voltage is 8V-40V wide voltage.
- 3. The wide voltage switching value acquisition circuit of claim 1, wherein the zener diode is further configured to: And judging whether the input voltage exceeds a preset voltage stabilizing value, if so, entering a reverse breakdown state, and stabilizing the input voltage at the preset voltage stabilizing value.
- 4. The wide voltage switching value acquisition circuit according to claim 1, wherein the zener diode breakdown voltage is 8.2v±5%, so as to ensure that the divided voltage of the connection point a is stabilized at 4.1v±5%.
- 5. The wide voltage switching value acquisition circuit of claim 1, wherein the zener diode has a maximum power consumption of 500mW.
- 6. The wide voltage switching value acquisition circuit of claim 1, wherein the voltage divider network is further configured to: Calculating the divided voltage by the formula (1); wherein U is divided voltage, U total is stabilized voltage, R 1 is the resistance value of the first divided resistor, and R 2 is the resistance value of the second divided resistor; Different divided voltages are obtained by adjusting the resistance ratio of R 1 to R 2 .
- 7. The wide voltage switching value acquisition circuit according to claim 1, wherein the first voltage dividing resistor and the second voltage dividing resistor adopt 1% precision resistors, and the temperature coefficient is less than or equal to 50ppm/°c.
- 8. The wide voltage switching value acquisition circuit of claim 1, wherein the transistor is further configured to: When the voltage division voltage enables a preset bias voltage to be formed between the base electrode and the emitter electrode, the triode is conducted, the emitter electrode is grounded, and the collector electrode is pulled up to a 3.3V power supply through the pull-up resistor.
- 9. The wide voltage switching value acquisition circuit of claim 1, wherein the transistor is further configured to: when the base electrode inputs signals and generates base electrode current, amplifying the base electrode input signals according to the amplifying multiple beta of triode current; Calculating a collector current by formula (2); I C =β×I B formula (2); Wherein I C is collector current, beta is triode current amplification factor, and I B is base current.
- 10. The wide voltage switching value acquisition circuit of claim 1, wherein the safety range is 0mA-3.3mA.
Description
Wide voltage switching value acquisition circuit Technical Field The utility model relates to the technical field of industrial automation control, in particular to a wide-voltage switching value acquisition circuit. Background In many fields of industrial automation, intelligent home, power systems and the like, switching value acquisition is a key link for acquiring equipment state information. However, the existing switching value acquisition circuit has a plurality of defects, the traditional acquisition circuit can only adapt to a specific narrow voltage range, when the input voltage exceeds the rated range, the circuit cannot work normally, even elements can be damaged, and the application of the circuit in different power supply environments is severely limited. Moreover, in a complex electromagnetic environment, the collected switching value signals are easy to deviate due to external interference, so that the system makes wrong judgment and control. In addition, the protection mechanism of the existing circuit for the port of the back-end microcontroller is not perfect, and excessive current may break down the port of the microcontroller, so that the maintenance cost and the fault risk of the system are increased. Therefore, a circuit that can accommodate a wide voltage input range, accurately collect switching signals, and effectively protect the ports of a microcontroller is needed. Disclosure of utility model In view of this, the utility model provides a wide voltage switching value acquisition circuit, which can realize stable input of wide voltage, accurately acquire switching value signals and effectively protect a microcontroller port. In order to achieve the above purpose, the present utility model provides the following technical solutions: The utility model provides a wide voltage switching value acquisition circuit, includes zener diode, bleeder network, triode, pull-up resistor, current-limiting resistor and microcontroller port of establishing ties, bleeder network includes first bleeder resistor and second bleeder resistor: The cathode of the voltage stabilizing diode is connected with the anode of the external power supply, and the anode of the voltage stabilizing diode is connected with the first voltage dividing resistor and is used for stabilizing the input voltage input by the external power supply to obtain a stabilized voltage; the voltage division network is used for dividing the voltage-stabilized voltage to obtain divided voltage; The triode comprises a base electrode, an emitter electrode and a collector electrode; the base is connected with a connection point A of the first voltage dividing resistor and the second voltage dividing resistor and used for receiving the voltage dividing voltage, the emitter is grounded, and the collector is connected with the micro-controller port through the current limiting resistor after being pulled up by the pull-up resistor and used for limiting the current flowing into the micro-controller port within a safe range; The triode is controlled to be conducted or cut off according to the voltage division voltage, a passage is formed between the collector and the emitter when the triode is conducted, the microcontroller port receives a low-level signal, an open circuit is formed between the collector and the emitter when the triode is cut off, the collector is connected to a power supply through a pull-up resistor, and the microcontroller port receives a high-level signal; the microcontroller port is used for acquiring wide voltage switching value based on the low-level signal or the high-level signal. Based on the technical scheme, the utility model can also be improved as follows: optionally, the input voltage is 8V-40V wide voltage. Optionally, the zener diode is further configured to: And judging whether the input voltage exceeds a preset voltage stabilizing value, if so, entering a reverse breakdown state, and stabilizing the input voltage at the preset voltage stabilizing value. Optionally, the breakdown voltage of the zener diode is 8.2v±5%, so as to ensure that the divided voltage of the connection point a is stabilized at 4.1v±5%. Optionally, the maximum power consumption of the zener diode is 500mW. Optionally, the voltage divider network is further configured to: Calculating the divided voltage by the formula (1); wherein the voltage is divided voltage, is stabilized voltage, is the resistance value of the first voltage dividing resistor, and is the resistance value of the second voltage dividing resistor; Different divided voltages are obtained by adjusting the ratio of the voltage resistance to the resistance. Optionally, the first voltage dividing resistor and the second voltage dividing resistor adopt 1% precision resistors, and the temperature coefficient is less than or equal to 50ppm/°c. Optionally, the triode is further used for: When the voltage division voltage enables a preset bias voltage to be formed between the base e