Air pressure gauge capable of automatically detecting NPN / PNP characteristics of switching value load

By introducing a main control chip and load characteristic detection circuit into the barometer, the NPN/PNP output is automatically detected and switched, solving the problem that existing barometers cannot adapt to different electrical systems, and realizing flexible output mode switching and efficient user experience.

CN121829861APending Publication Date: 2026-04-10SHENZHEN AIRT SENSOR PRECISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-09
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing barometers are designed with a single output mode, which cannot flexibly adapt to the needs of different electrical systems. This forces users to purchase multiple models to meet different system requirements, increasing costs and maintenance complexity.

Method used

A barometer that automatically detects the NPN/PNP characteristics of the load is designed. By using a main control chip and a load characteristic detection circuit, the output mode is automatically switched through an NPN/PNP control module, avoiding hardware replacement.

Benefits of technology

This enables the barometer to adapt flexibly to different electrical systems, reducing user costs and maintenance complexity, and improving ease of use and functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121829861A_ABST
    Figure CN121829861A_ABST
Patent Text Reader

Abstract

The invention relates to a barometer capable of automatically detecting switching value load NPN / PNP characteristics. The barometer comprises a main control chip, a load NPN / PNP characteristic detection circuit, an NPN control module, a PNP control module and an output protection circuit. An external load of the barometer is in signal connection with the input end of the main control chip through the load NPN / PNP characteristic detection circuit, the NPN control module and the PNP control module are respectively arranged at the output end of the main control chip, and the output end of the NPN control module and the output end of the PNP control module are both connected to the output protection circuit; wherein the main control chip is configured to selectively activate the NPN control module or the PNP control module according to the detection characteristic parameters so as to realize a corresponding NPN or PNP output mode. Wherein the MCU main control chip can intelligently follow the NPN / PNP characteristics of the load according to parameters detected by the detection module to control the corresponding NPN / PNP control module and output corresponding switching value parameters. NPN / PNP output can be automatically switched on the barometer, hardware replacement is not needed, and a corresponding working mode is set according to user requirements.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a barometer, in particular to a device in the technical field of automatically detecting load NPN / PNP characteristics and switching barometer output mode signals. BACKGROUND

[0002] In various industrial and laboratory applications, barometers are critical instruments for monitoring and controlling gas pressure. To meet the compatibility requirements of different electrical systems, barometers are usually required to provide both NPN (negative logic) and PNP (positive logic) switching output modes. NPN output mode is turned on when the output end is grounded, while PNP output mode is turned on when connected to a positive power supply, and these two modes have a wide range of applications in different control systems and circuit designs.

[0003] However, most existing barometer products are designed for a single output mode, either NPN output or PNP output. This design limits the flexibility and scope of application of barometers, because users may need to purchase and store two different types of barometers when facing different system requirements. In addition, if the system requirements change, existing single output type barometers cannot be easily configured to adapt to new requirements, which not only increases the cost burden for users, but also increases the complexity of equipment updating and maintenance.

[0004] Another type of intelligent barometer is capable of executing a working mode (NPN or PNP) according to the operation interface and background instructions.

[0005] To solve the above problems, although the NPN / PNP switching problem can be solved by replacing hardware or relying on background instructions, the existing technology has not fully met the need to provide a simple and efficient way to switch the output mode of the barometer.

[0006] First, the previous solutions cannot intelligently detect and identify load characteristics, and only device manufacturers and senior engineers can identify load characteristics.

[0007] Second, both hardware switching and software switching methods must involve manual intervention, increasing labor costs and the risk of errors.

[0008] Therefore, it is necessary to develop and design an automatic load characteristic detection system that can intelligently follow the load NPN / PNP characteristic control of the corresponding NPN / PNP control module based on the detected characteristic parameters through the main control chip. SUMMARY

[0009] The application relates to a barometer capable of automatically detecting NPN / PNP characteristics of a switching load, and is configured with a main control chip, a load NPN / PNP characteristic detection circuit and a corresponding NPN / PNP control module, wherein the MCU main control chip can intelligently follow the load NPN / PNP characteristics to control the corresponding NPN / PNP control module according to the parameters detected by the detection module, and output corresponding switching parameters. The NPN / PNP output can be automatically switched on the barometer without hardware replacement, and the corresponding working mode can be set according to user requirements.

[0010] The application relates to a barometer capable of automatically detecting NPN / PNP characteristics of a switching load, and is configured with a main control chip, a load NPN / PNP characteristic detection circuit and a corresponding NPN / PNP control module, wherein the MCU main control chip can intelligently follow the load NPN / PNP characteristics to control the corresponding NPN / PNP control module according to the parameters detected by the detection module, and output corresponding switching parameters. The NPN / PNP output can be automatically switched on the barometer without hardware replacement, and the corresponding working mode can be set according to user requirements.

[0011] The load NPN / PNP characteristic detection circuit comprises a composite version detection circuit and a simple version detection circuit.

[0012] The composite version detection circuit comprises a load characteristic introduction end OUT1-IN and a load characteristic output end OUT1-MCU, wherein the external load is connected to the load characteristic introduction end OUT1-IN, and the load characteristic output end OUT1-MCU is connected to the main control chip; the load characteristic introduction end OUT1-IN is connected to the base of a TN2 transistor (BC817) through a current-limiting resistor RN1, the emitter of the TN2 transistor is directly connected to the ground and connected to a resistor RN4, and the resistor RN4 is also connected to the ground; the collector of the TN2 transistor is connected to the base of a TP1 transistor (BC807) through a current-limiting resistor RN2, the emitter of the TP1 transistor is connected to a resistor RN3, and the resistor RN3 is connected to a power supply MCUVCC; and the collector of the TP1 transistor is directly connected to the load characteristic output end OUT1-MCU.

[0013] The simple version detection circuit comprises a load characteristic introduction end OUT1-IN and a load characteristic output end OUT1-MCU, wherein the load characteristic introduction end OUT1-IN is connected to a ZD1 voltage stabilizing tube through a resistor RN5, and then directly connected to the load characteristic output end OUT1-MCU.

[0014] The NPN control module includes a first output control unit and an NPN activation locking device. After receiving the NPN mode selection signal, the main control chip activates the NPN control module to control the output state to NPN mode, while the NPN activation locking device ensures that the NPN control module remains inactive during this period.

[0015] The PNP control module includes a second output control unit and a PNP activation locking device. After receiving the PNP mode selection signal, the main control chip activates the PNP control module to control the output state to PNP mode, while the PNP activation locking device ensures that the NPN control module remains inactive during this period.

[0016] The output protection circuit is configured to receive the output signal from the NPN control module or the PNP control module, perform combined protection processing, and then output it to the output interface of the barometer.

[0017] The present invention relates to an automatic load NPN / PNP characteristic detection barometer, comprising a main control chip, a load NPN / PNP characteristic detection circuit, and a corresponding NPN / PNP switching control module. The MCU main control chip intelligently controls the corresponding NPN / PNP control module based on the parameters detected by the detection module, outputting corresponding switching parameters. It can automatically switch NPN / PNP output on the barometer without hardware replacement, and the operating mode can be set according to user requirements. Attached Figure Description

[0018] Figure 1 This is a block diagram of the barometer system for automatically detecting the NPN / PNP characteristics of a switch load involved in this invention;

[0019] Figure 2 This is a schematic diagram of the composite load NPN / PNP characteristic detection circuit in a barometer that automatically detects the NPN / PNP characteristics of a switch load, as described in this invention.

[0020] Figure 3 This is a simplified schematic diagram of the load NPN / PNP characteristic detection circuit in a barometer that automatically detects the NPN / PNP characteristics of a switch load, as described in this invention.

[0021] Figure 4 The circuit principle of the barometer capable of switching between NPN and PNP output modes involved in this invention Figure 1 ;

[0022] Figure 5 The circuit principle of the barometer capable of switching between NPN and PNP output modes involved in this invention. Figure 2 . Detailed Implementation

[0023] The present invention will now be described in detail with reference to specific embodiments and accompanying drawings. The following description of specific embodiments and accompanying drawings is exemplary and is only used to explain the present invention, and should not be construed as limiting the present invention.

[0024] Please refer to the attached document. Figure 1 This invention illustrates the system structure of a barometer for automatically detecting the NPN / PNP characteristics of a switch load. The barometer includes a main control chip, a load NPN / PNP characteristic detection circuit, an NPN control module, a PNP control module, and an output protection circuit. The external load of the barometer is connected to the input terminal of the main control chip via the load NPN / PNP characteristic detection circuit. The NPN control module and the PNP control module are respectively located at the output terminals of the main control chip, and the output terminals of both the NPN control module and the PNP control module are connected to the output protection circuit. The main control chip is configured to selectively activate the NPN control module or the PNP control module according to the detected characteristic parameters to achieve the corresponding NPN or PNP output mode.

[0025] The load NPN / PNP characteristic detection circuit includes a composite detection circuit and a simplified detection circuit.

[0026] Please refer to the attached document. Figure 2 The diagram illustrates the composite load NPN / PNP characteristic detection circuit. This circuit includes a load characteristic input terminal OUT1-IN and a load characteristic output terminal OUT1-MCU. An external load is connected to the load characteristic input terminal OUT1-IN, while the load characteristic output terminal OUT1-MCU is connected to the main control chip. The load characteristic input terminal OUT1-IN is connected to the base of a TN2 transistor (BC817) via a current-limiting resistor RN1. The emitter of the TN2 transistor is directly grounded and connected to a resistor RN4, which is also grounded. The collector of the TN2 transistor is connected to the base of a TP1 transistor (BC807) via a current-limiting resistor RN2. The emitter of the TP1 transistor is connected to a resistor RN3, which is then connected to the power supply MCUVCC. The collector of the TP1 transistor is directly connected to the load characteristic output terminal OUT1-MCU.

[0027] The composite circuit for automatically detecting the NPN / PNP characteristics of a digital load converts the digital load characteristics into parameters that the main control chip can recognize. The specific steps are as follows:

[0028] The TN2 transistor (BC817) is driven, and the collector terminal of the TN2 transistor outputs a signal that is opposite to the load. The collector signal drives the transistor TP1 (BC807) through the current limiting resistor RN2. A TTL level signal synchronized with OUTI-IN is generated at the OUT1-MCU terminal, which is used by the main control chip MCU to determine the NPN or PNP characteristics of the load and output the corresponding NPN or PNP drive signal.

[0029] Please refer to the attached document. Figure 3 The simplified detection circuit is shown, including a load characteristic input terminal OUT1-IN and a load characteristic output terminal OUT1-MCU. The load characteristic input terminal OUT1-IN is connected to the Zener diode ZD1 through resistor RN5, and then directly connected to the load characteristic output terminal OUT1-MCU.

[0030] The simplified board circuit for automatically detecting the NPN / PNP characteristics of switching quantities converts the switching load characteristics into parameters that the main control chip can recognize. The specific steps are as follows: the load characteristic input terminal OUT1-IN is connected to resistor RN5, and then ZD1 (5.1V Zener diode) generates a TTL level signal synchronized with OUT1-IN at the OUT1-MCU terminal. This allows the main control chip MCU to determine the NPN or PNP characteristics of the load and output the corresponding NPN or PNP drive signal.

[0031] The NPN control module includes a first output control unit and an NPN activation locking device. After receiving the NPN mode selection signal, the main control chip activates the NPN control module to control the output state to NPN mode, while the NPN activation locking device ensures that the NPN control module remains inactive during this period.

[0032] The PNP control module includes a second output control unit and a PNP activation locking device. After receiving the PNP mode selection signal, the main control chip activates the PNP control module to control the output state to PNP mode, while the PNP activation locking device ensures that the NPN control module remains inactive during this period.

[0033] The output protection circuit is configured to receive the output signal from the NPN control module or the PNP control module, perform combined protection processing, and then output it to the output interface of the barometer.

[0034] The main control chip is further configured with control logic for selecting NPN mode or PNP mode. This control logic determines the output mode of the barometer based on the detection characteristic parameters received by the main control chip.

[0035] The barometer has a built-in function that allows for free switching between NPN and PNP output modes. This switching function is achieved by adding a design to control the NPN and PNP outputs. The core technology includes the self-locking function of the NPN and PNP outputs, ensuring that the barometer outputs only one mode signal at any given time, in order to adapt to different electrical system requirements.

[0036] Specifically, this barometer uses a main control chip (MCU) to control its internal input / output (I / O) pins, thereby issuing corresponding NPN or PNP control signals based on the characteristic parameters detected by the load characteristic detection circuit. When the NPN output mode is selected, the MCU activates the I / O pins corresponding to the NPN mode, thus enabling the NPN control module to operate. Similarly, when the PNP output mode is selected, the other set of I / O pins is activated, enabling the PNP control module to operate. This design achieves rapid switching of output modes while ensuring that the two output modes are not activated simultaneously during the switching process, avoiding potential signal conflicts.

[0037] The NPN and PNP control modules receive control signals from the main control chip (MCU) and perform corresponding output functions based on these signals. These two modules manage the generation of NPN and PNP output signals respectively, and the output signals are processed by a synthesis protection module to ensure their stability and reliability. The design of the synthesis protection module not only optimizes signal quality but also enhances the applicability and durability of the barometer under different operating environments.

[0038] Through this structural design, the barometer of this invention can flexibly adapt to different application needs, providing users with an economical and efficient measuring tool, and significantly improving the ease of use and functionality of the barometer.

[0039] like Figure 4-5 As shown, the present invention includes a control module in the barometer, which can set the output mode to NPN analog or PNP mode according to the output requirements of the main control chip.

[0040] If the barometer's output is set to NPN mode, the main control chip MCU will output a high or low level switch signal through OT1-2 to control the TN1 transistor to control the output state of OUT1 to NPN mode. At this time, OT1-1 is locked and does not output.

[0041] When the pressure gauge is set to PNP output mode, the main control chip MCU outputs a high or low level switch signal through OT1-1, controls the TN2 transistor through RN2, and then controls the TP1 transistor through RN3, so that the OUT1 output is in PNP mode. At this time, OT1-2 is in a locked state.

[0042] The most distinctive feature of this circuit is its interlocking mechanism, which allows OUT1 to be compatible with both NPN and PNP output modes, and is also the core of this invention.

[0043] The MCU main control chip can intelligently control the corresponding NPN / PNP control module based on the parameters detected by the detection module, following the NPN / PNP characteristics of the load, and output the corresponding switching parameters. It can automatically switch NPN / PNP output on the pressure gauge without hardware replacement, and the corresponding working mode can be set according to user needs.

[0044] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some changes or modifications to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes, and modifications made to the above embodiments based on the present invention without departing from the scope of the present invention are within the scope of the present invention.

Claims

1. A barometer for automatically detecting the NPN / PNP characteristics of a switch load, characterized in that, The barometer includes a main control chip, a load NPN / PNP characteristic detection circuit, an NPN control module, a PNP control module, and an output protection circuit. The external load of the barometer is connected to the input terminal of the main control chip through the load NPN / PNP characteristic detection circuit. The NPN control module and the PNP control module are respectively located at the output terminal of the main control chip, and the output terminals of the NPN control module and the PNP control module are both connected to the output protection circuit. The main control chip is configured to selectively activate the NPN control module or the PNP control module according to the detected characteristic parameters to achieve the corresponding NPN or PNP output mode.

2. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 1, characterized in that, The load NPN / PNP characteristic detection circuit includes a composite detection circuit and a simplified detection circuit.

3. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 2, characterized in that, The composite detection circuit includes a load characteristic input terminal OUT1-IN and a load characteristic output terminal OUT1-MCU. The external load is connected to the load characteristic input terminal OUT1-IN, while the load characteristic output terminal OUT1-MCU is connected to the main control chip. The load characteristic input terminal OUT1-IN is connected to the base of a TN2 transistor (BC817) through a current-limiting resistor RN1. The emitter of the TN2 transistor is directly grounded and connected to a resistor RN4, which is also grounded. The collector of the TN2 transistor is connected to the base of a TP1 transistor (BC807) through a current-limiting resistor RN2. The emitter of the TP1 transistor is connected to a resistor RN3, which is connected to the power supply MCUVCC. The collector of the TP1 transistor is directly connected to the load characteristic output terminal OUT1-MCU.

4. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 2, characterized in that, The simplified detection circuit includes a load characteristic input terminal OUT1-IN and a load characteristic output terminal OUT1-MCU. The load characteristic input terminal OUT1-IN is connected to the Zener diode ZD1 through a resistor RN5, and then directly connected to the load characteristic output terminal OUT1-MCU.

5. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 3 or 4, characterized in that: The NPN control module includes a first output control unit and an NPN activation locking device. After receiving the NPN mode selection signal, the main control chip activates the NPN control module to control the output state to NPN mode, while the NPN activation locking device ensures that the NPN control module remains inactive during this period.

6. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 5, characterized in that: The PNP control module includes a second output control unit and a PNP activation locking device. After receiving the PNP mode selection signal, the main control chip activates the PNP control module to control the output state to PNP mode, while the PNP activation locking device ensures that the NPN control module remains inactive during this period.

7. The barometer for automatically detecting the NPN / PNP characteristics of a switch load according to claim 5, characterized in that: The output protection circuit is configured to receive the output signal from the NPN control module or the PNP control module, perform combined protection processing, and then output it to the output interface of the barometer.