Air pressure meter capable of switching switching value NPN and PNP output modes
By designing the function of switching NPN and PNP output in the barometer, and using the main control chip to activate the corresponding control module and output protection circuit, the problem of flexibility and applicability of the single output mode of the existing barometer is solved, and the output mode is realized The fast switching and stability improve the applicability and use value of the equipment.
Patent Information
- Application Number
- CN202420429247.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2034-03-06
AI Technical Summary
The existing barometer is designed with a single output mode, which limits its flexibility and scope of application. Users need to purchase and store two different types of barometers to adapt to different system requirements. The existing solution is cumbersome to operate and affects the stability of the equipment. .
Design a barometer that can switch the switching NPN and PNP output modes. The NPN or PNP control module is activated through the main control chip, combined with the output protection circuit, to achieve rapid switching of the output mode without hardware replacement. The user can select the output through the user interface. model.
It realizes free switching between NPN and PNP output modes, improves the applicability and flexibility of the equipment, reduces maintenance costs and operational complexity, enhances the reliability and stability of the system, and is suitable for a wider range of application fields.
Smart Images

Figure CN221826363U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to a barometer, in particular to the technical field of equipment capable of switching output mode signals of the barometer. Background Art
[0002] In many industrial and laboratory applications, barometers are key instruments for monitoring and controlling gas pressure. In order to meet the compatibility requirements of different electrical systems, barometers usually need to provide two switching output modes: NPN (negative logic) and PNP (positive logic). The NPN output mode is turned on when the output terminal is grounded, while the PNP output mode is turned on when the positive power supply is connected. These two modes are widely used in different control systems and circuit designs.
[0003] However, most existing barometer products are designed with a single output mode, that is, either NPN output or PNP output. This design limits the flexibility and scope of application of the barometer, 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, the existing single output type barometer cannot be adapted to the new requirements through simple configuration, which not only brings additional cost burden to users, but also increases the complexity of equipment update and maintenance.
[0004] In view of the above problems, although some solutions attempt to achieve the conversion of output modes by hardware modification or external conversion modules, these methods often require physical access to the device or the addition of additional hardware components, which is not only cumbersome to operate, but also may affect the stability and reliability of the device. Therefore, the existing technology has not yet fully met the need to provide a simple and efficient way to switch the output mode of the barometer. Summary of the invention
[0005] The utility model relates to a barometer capable of switching NPN and PNP output modes. NPN and PNP outputs can be set on the barometer without hardware replacement, and the corresponding working mode can be set according to user requirements.
[0006] The utility model is realized by the following technical scheme: a barometer capable of switching between NPN and PNP output modes of switch quantity, comprising a main control chip, an NPN control module, a PNP control module and an output protection circuit;
[0007] The NPN control module and the PNP control module are respectively arranged at the output end of the main control chip, and the output ends of the NPN control module and the PNP control module are both connected to the output protection circuit;
[0008] The main control chip is configured to selectively activate the NPN control module or the PNP control module according to preset conditions to achieve the corresponding NPN or PNP output mode.
[0009] As a preferred technical solution, 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 controls the output state to the NPN mode by activating the NPN control module, and the NPN activation locking device ensures that the PNP control module remains in an inactive state during this period.
[0010] As a preferred technical solution, 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 controls the output state to the PNP mode by activating the PNP control module, and the PNP activation locking device ensures that the NPN control module remains in an inactive state during this period.
[0011] As a preferred technical solution, the output protection circuit is configured to receive an output signal from an NPN control module or a PNP control module, and output it to an output interface of the barometer after performing synthetic protection processing.
[0012] As a preferred technical solution, the main control chip is further configured with a control logic for selecting the NPN mode or the PNP mode, and the control logic determines the output mode of the barometer according to an external input signal or preset parameters.
[0013] As a preferred technical solution, the barometer further includes one or more user interfaces for receiving user instructions on output mode selection, and the user interface is implemented by a physical switch, a touch screen or other input device.
[0014] The beneficial effects of the utility model are as follows: the utility model realizes the free switching of the two output modes of NPN and PNP, which significantly improves the applicability and flexibility of the product. The user can select the appropriate output mode through simple operation according to actual needs, without replacing the instrument or making complicated hardware changes, which greatly reduces the maintenance cost and operation complexity of the equipment. In addition, the utility model avoids the problem of traditional barometers limiting the use scenarios due to fixed output modes, so that one device can be applied to a wider range of application fields, thereby improving the use value of the equipment.
[0015] By integrating the switching logic inside the barometer, it not only simplifies the user operation process, but also improves the reliability and stability of the system by reducing the need for external wiring and accessories. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1This is a block diagram of a barometer system capable of switching between NPN and PNP output modes of the switch quantity involved in the utility model;
[0017] Figure 2 The circuit principle of the barometer capable of switching the switch value NPN and PNP output modes involved in the utility model Figure 1 ;
[0018] Figure 3 The circuit principle of the barometer capable of switching the switch value NPN and PNP output modes involved in the utility model Figure 2 . DETAILED DESCRIPTION
[0019] The present invention will be described in detail below in conjunction with specific embodiments and drawings. The following descriptions of specific embodiments and drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0020] The utility model relates to a barometer capable of switching between NPN and PNP output modes of switch quantity, comprising a main control chip, an NPN control module, a PNP control module and an output protection circuit;
[0021] The NPN control module and the PNP control module are respectively arranged at the output end of the main control chip, and the output ends of the NPN control module and the PNP control module are both connected to the output protection circuit;
[0022] The main control chip is configured to selectively activate the NPN control module or the PNP control module according to preset conditions to achieve the corresponding NPN or PNP output mode.
[0023] Specifically, 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 controls the output state to the NPN mode by activating the NPN control module, and the NPN activation locking device ensures that the PNP control module remains in an inactive state during this period.
[0024] Specifically, 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 controls the output state to the PNP mode by activating the PNP control module, and the PNP activation locking device ensures that the NPN control module remains in an inactive state during this period.
[0025] The output protection circuit is configured to receive an output signal from an NPN control module or a PNP control module, and output the signal to an output interface of the barometer after performing synthetic protection processing.
[0026] The main control chip is further configured with control logic for selecting the NPN mode or the PNP mode, and the control logic determines the output mode of the barometer according to an external input signal or preset parameters.
[0027] In this embodiment, the barometer further includes one or more user interfaces for receiving user instructions on output mode selection, and the user interface is implemented by a physical switch, a touch screen or other input device.
[0028] The barometer has a built-in function that can realize the free switching between NPN and PNP output modes. This switching function is achieved by adding the design of NPN and PNP output control. The core technology includes the self-locking function of NPN and PNP outputs, ensuring that at any given moment, the barometer only outputs one mode of signal to adapt to different electrical system requirements.
[0029] Specifically, the barometer uses a microcontroller unit (MCU) to control its internal input / output (I / O) pins, thereby sending corresponding NPN or PNP control signals according to the user's selection or preset conditions. When the NPN output mode is selected, the MCU activates the I / O pin corresponding to the NPN mode, so that the NPN control module works. Similarly, when the PNP output mode is selected, another set of I / O pins is activated to make the PNP control module work. This design achieves fast switching of output modes, while ensuring that the two output modes will not be activated at the same time during the switching process, avoiding potential signal conflicts.
[0030] The NPN and PNP control modules receive control signals from the MCU and perform corresponding output functions according to the signals. These two modules manage the generation of NPN and PNP output signals respectively, and process the output signals through the synthetic protection module to ensure the stability and reliability of the output signals. The design of the synthetic protection module not only optimizes the signal quality, but also enhances the applicability and durability of the barometer in different working environments.
[0031] Through this structural design, the barometer of the utility model can flexibly adapt to different application requirements, providing users with an economical and efficient measuring tool, and significantly improving the convenience of use and functionality of the barometer.
[0032] like Figure 2-Figure 3 As shown, the utility model sets a control module in the barometer, and the output mode can be set to NPN simulation or PNP mode according to the user's output requirements.
[0033] If the pressure gauge is set to NPN mode, the MCU outputs the high and low levels of the switch through OT1-2, and controls the TN1 tube to control the output state of OUT1 to NPN mode. At this time, OT1-1 is in a locked state and does not output.
[0034] When the barometer is set to PNP output mode, the MCU outputs the high and low levels of the switch through OT1-1, controls the TN2 tube through RN2, and then controls the TP1 tube through RN3, so that the OUT1 output is in PNP mode. At this time, OT1-2 is in a locked state.
[0035] The most significant feature of this circuit is that it uses an interlocking method, which makes OUT1 compatible with both NPN and PNP output modes, and is also the core of this utility model.
[0036] The above is only a preferred embodiment of the utility model, and does not limit the utility model in any form. Although the utility model is disclosed as a preferred embodiment as above, it is not used to limit the utility model. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes by using the technical content disclosed above without departing from the scope of the technical solution of the utility model. However, any simple modification, equivalent change and modification made to the above embodiments according to the technology of the utility model, which does not depart from the content of the technical solution of the utility model, belongs to the scope of the technical solution of the utility model.
Claims
1. A barometer capable of switching between NPN and PNP output modes, characterized in that: Including main control chip, NPN control module, PNP control module and output protection 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 ends 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 preset conditions to achieve the corresponding NPN or PNP output mode.
2. The barometer capable of switching between NPN and PNP output modes according to claim 1, 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 controls the output state to the NPN mode by activating the NPN control module, and the NPN activation locking device ensures that the PNP control module remains in an inactive state during this period.
3. The barometer capable of switching between NPN and PNP output modes according to claim 1, 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 controls the output state to the PNP mode by activating the PNP control module, and the PNP activation locking device ensures that the NPN control module remains in an inactive state during this period.
4. The barometer capable of switching between NPN and PNP output modes according to claim 1, characterized in that: The output protection circuit is configured to receive an output signal from an NPN control module or a PNP control module, and output the signal to an output interface of the barometer after performing synthetic protection processing.
5. The barometer capable of switching between NPN and PNP output modes according to claim 1, characterized in that: The main control chip is further configured with a control logic for selecting an NPN mode or a PNP mode, and the control logic determines the output mode of the barometer according to an external input signal or a preset parameter.
6. The barometer capable of switching between NPN and PNP output modes according to claim 1, characterized in that: The barometer further includes one or more user interfaces for receiving user instructions regarding output mode selection, and the user interface is implemented by a physical switch, a touch screen or other input devices.
