Disclosure of Invention
The invention provides a pressure switch sensor detection device aiming at the problems, which mainly solves the problems that the traditional pressure measurement and the pressure switch sensor verification are separated and the practical application is complicated.
In order to solve the technical problems, the invention provides a pressure switch sensor detection device which comprises a control module, a pressure measurement module, a pressure switch sensor interface module, a power supply and battery management module, a display module and a function key module, wherein the control module is used for receiving data from the pressure measurement module, the pressure switch sensor interface module and the function key module, outputting a result to the display module after processing, the pressure measurement module is used for obtaining a pressure value of a pressure transmitter, the pressure switch sensor interface module is used for switching a resistance gear or a voltage gear according to the type of an external pressure switch sensor, the power supply and battery management module is used for supplying power to the control module, the pressure measurement module, the pressure switch sensor interface module and the display module, and the function key module is used for inputting a control command.
Another aspect of the present invention provides a method for detecting a pressure switch sensor, using the above pressure switch sensor detecting device, comprising the following steps,
Step 1, initializing, step 2, judging whether to check, if so, performing checking treatment, performing power management after the checking treatment, if not, directly performing power management, step 3, performing pressure measurement, obtaining the pressure value, and step 4, displaying the pressure value.
The detection device has the beneficial effects that the detection device automatically identifies the action change of the pressure switch sensor by arranging the control module, the pressure measurement module, the pressure switch sensor interface module, the power supply and battery management module, the display module and the function key module, thereby realizing the automatic verification of the working state of the pressure switch sensor.
Drawings
FIG. 1 is a schematic diagram of a pressure switch sensor detection device according to an embodiment of the present invention;
FIG. 2 is a diagram of a minimum system of STM32F103RCT6 disclosed in an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating gear shifting of a pressure switch sensor interface module according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a switching circuit of a pressure switch sensor interface module according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a resistance measurement of a pressure switch sensor interface module according to an embodiment of the present invention;
FIG. 6 is a voltage divider circuit diagram of a resistor block according to an embodiment of the present invention;
FIG. 7 is a circuit diagram of a constant current source of a pressure switch sensor interface module according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a voltage step measurement of a pressure switch sensor interface module according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a three-way voltage measurement switching circuit according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an embodiment of an over-voltage and over-current protection circuit for a voltage rail;
FIG. 11 is a circuit diagram of an isolation amplifier according to an embodiment of the present invention;
FIG. 12 is a circuit diagram of an application of a DC-DC isolated power supply according to an embodiment of the present invention;
FIG. 13 is a functional block diagram of a pressure measurement module disclosed in an embodiment of the present invention;
FIG. 14 is a diagram of an application circuit of a 24V boost unit disclosed in an embodiment of the present invention;
FIG. 15 is a schematic diagram of an exemplary ADR423 circuit according to embodiments of the present invention;
FIG. 16 is a circuit diagram of an application of a pressure measurement module according to an embodiment of the present invention;
FIG. 17 is a system block diagram of a power supply and battery management module disclosed in an embodiment of the invention;
FIG. 18 is a circuit diagram of a power switching module according to an embodiment of the present invention;
fig. 19 is a circuit diagram of a battery charge management unit and a battery boosting unit according to an embodiment of the present invention;
fig. 20 is a circuit diagram of a battery charge protection unit and a battery discharge protection unit according to an embodiment of the present invention;
FIG. 21 is a flowchart of a main routine of a method for detecting a pressure switch sensor according to an embodiment of the present invention;
FIG. 22 is a flow chart of a verification process disclosed in an embodiment of the present invention;
The system comprises a 1-control module, a 2-pressure measurement module, a 3-pressure switch sensor interface module, a 4-power supply and battery management module, a 5-display module and a 6-function key module.
Detailed Description
The present invention will be described in further detail with reference to the drawings and the detailed description below, in order to make the objects, technical solutions and advantages of the present invention more clear and distinct. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings.
One application object of the invention is Guangzhou energy storage hydropower plants, and the main types of detection objects (pressure switch sensors) are PressswZPN SH,5-50bar, pressureswitch200-1750PSI, RPPN CA3207 and the like. On the basis, the invention can realize the pressure measurement within 200bar and the automatic detection of various pressure switch sensors.
As shown in fig. 1, the embodiment provides a pressure switch sensor detection device, which comprises a control module 1, a pressure measurement module 2, a pressure switch sensor interface module 3, a power supply and battery management module 4, a display module 5 and a function key module 6, wherein the control module 1 is used for receiving data from the pressure measurement module 2, the pressure switch sensor interface module 3 and the function key module 6, outputting a result to the display module 5 after processing, the pressure measurement module 2 is used for acquiring a pressure value of a pressure transmitter, the pressure switch sensor interface module 3 is used for switching a resistance range or a voltage range according to the type of an external pressure switch sensor, the power supply and battery management module 4 is used for supplying power to the control module 1, the pressure measurement module 2, the pressure switch sensor interface module 3 and the display module 5, and the function key module 6 is used for inputting a control command.
The detection device provided by the invention automatically identifies the action change of the pressure switch sensor by arranging the control module 1, the pressure measurement module 2, the pressure switch sensor interface module 3, the power supply and battery management module 4, the display module 5 and the function key module 6, thereby realizing the automatic verification of the working state of the pressure switch sensor. The device is more convenient than a pressure calibrator measuring technology which needs additional multimeter matching.
Further, the control module 1 is STM32F103RCT6, and the minimum system is shown in fig. 2. The display module 5 adopts a blue OLED screen with 3.12 inches and 256x64 resolution, and the screen interface is an SPI serial bus interface, and the main functions are to display pressure measurement values, pressure switch sensor states and system states. The system status includes the current status of the power and battery management module 4, the current gear of the pressure switch sensor interface, an operational indication, and the temperature of the control module 1.
The function key module 6 includes 5 tact switches for realizing specific functions, respectively. The same key realizes different functions such as a run/hold function, a trigger start/trigger stop function, a pressure value zero-returning function, a pressure unit switching function and a key lock function according to different menus. The operation/maintenance function is suitable for the pressure measurement module, and the pressure measurement is switched between the operation state and the maintenance state every time the key is pressed. The pressure value zeroing function is suitable for the pressure measuring module and is used for compensating an external pressure zero point. The pressure unit switching is suitable for the pressure measuring module and the pressure switch sensor interface module and is used for switching the common pressure display units of bar, psi and MPa. The key lock function is suitable for the pressure measurement module and the pressure switch sensor interface module, and locks or unlocks the operation of the other 4 keys after the key is pressed for 5 seconds for a long time. The alarm device comprises a pressure switch sensor interface module, a verification instrument, a sounding module and a buzzer, wherein the sounding module is a buzzer, a triggering start/triggering stop function is only suitable for the pressure switch sensor interface module, when the function starts, the verification instrument monitors the interface state of the pressure switch sensor, when the state is found to change, the display of the current pressure value is locked, the interface state change condition is indicated, and meanwhile, the buzzer sends out a loud prompt.
As shown in fig. 3, the pressure switch sensor interface module 3 is converted into a resistance gear or a voltage gear by providing a mechanical contact switch, and the resistance gear and the voltage gear correspond to a switch-type pressure switch sensor and a voltage-type pressure switch sensor, respectively. The pressure switch sensor normally performs a mechanical or electrical action when it detects that the pressure exceeds a certain threshold. The different types of pressure switch sensor switching circuits are shown in fig. 4, wherein the core is a mechanical relay G6S-2-5VDC, the mechanical action is represented by the change of a contact switch, namely a normally open contact is changed into a normally closed contact or the normally closed contact is changed into a normally open contact, the pressure switch sensor is called a switch type pressure switch sensor, the electrical action is normal electrification, and the interface voltage change exceeds 10V during the action, and the pressure switch sensor is called a voltage type pressure switch sensor. The input of the pressure switch sensor interface module 3 comprises an R port, a G port, a B port and a COM port, the four ports of the R port, the G port, the B port and the COM port correspond to voltage files, and the three ports of the R port, the G port and the B port correspond to resistance files.
As shown in fig. 5, one of the ports of the resistor block outputs the constant current source generated by the constant current source generator to the switch-type pressure switch sensor, and the other two ports of the resistor block respectively acquire the voltage of the switch-type pressure switch sensor, pass through the sampling resistor and input to the analog-to-digital converter. As shown in FIG. 6, the resistor voltage dividing circuit has a maximum measurement voltage of 400V, adopts multi-stage 1206 packaging and a high-impedance input end with a withstand voltage of 200V and a 332KΩ series connection composition of about 1.66MΩ, adopts 1nF filtering for voltage dividing output, and adopts a 15V bidirectional TVS tube for protecting the voltage dividing output. The circuit configuration of the constant current source generator is shown in fig. 7. For a switch type pressure switch sensor, the pressure switch sensor interface module 3 outputs a constant current source, the resistance value of an external pressure switch interface can be obtained by measuring the sampling resistance voltage according to ohm's law, the value is used for judging the short circuit/open circuit of an internal switch of the pressure switch sensor, and the principle is similar to the short circuit gear function of a universal meter. The measurement is only used as on-off judgment, the pressure value cannot be accurately measured, and the result is only the switching value.
As shown in fig. 8, the voltage stage includes three ports for voltage access, the output ends of the ports are connected with the input ends of the overvoltage and overcurrent protection circuits, the output ends of the overcurrent protection circuits are connected with the input ends of the voltage dividing resistors, the output ends of the voltage dividing resistors are connected with the input ends of the isolation amplifier, and the output ends of the isolation amplifier are connected with the input ends of the analog-to-digital converter. The voltage measuring circuit of the voltage gear interface is shown in fig. 9, a PhotoMOS optocoupler AQW210 is used as a change-over switch to measure the voltage of 3 interfaces in a time-sharing manner, the overcurrent protection circuit of the voltage measurement is shown in fig. 10, the core is a fast-fusing fuse tube and a piezoresistor 7D431K, the protection current is 0.25A, the protection voltage range is 387-473V, the continuous use voltage range is 275-350V, and the maximum limit is 710V. The isolation amplifier circuit is shown in fig. 11, and the core is a high-precision isolation amplifier AMC1200, with a silicon dioxide (SiO 2) barrier isolation output and input with high magnetic field immunity. The isolation gate is certified to provide voltage isolation up to 4000V peak according to UL1577 and IEC60747-5-2 standards. The power supply also comprises a DC-DC isolation power supply, as shown in fig. 12, and an integrated DC-DC isolation power supply module B0505LS-2WR2 is used as a core for isolating the power supply of the amplifier.
As shown in fig. 13, the pressure measurement module 2 includes a pressure transmitter, a sampling resistor, an analog-to-digital converter, a 24V voltage boosting unit and a voltage reference source unit, wherein the pressure transmitter is used for linearly converting a pressure value (external pressure) received by the pressure switch sensor into a 4-20 ma current output value, the sampling resistor is used for converting the current output value into a voltage output value, the analog-to-digital converter reads the voltage output value and converts the voltage output value into a corresponding pressure value, the 24V voltage boosting unit is used for boosting a 5V voltage output by the power supply and the battery management module 4 into 24V to supply power for the pressure transmitter, and the voltage reference source unit generates a 3V reference voltage with a temperature drift of 3ppm/° C and is used as a reference voltage of the analog-to-digital converter and the constant current source generator. The range of the pressure transmitter is 20MPa, 24V direct current power supply is adopted, and the precision is +/-0.2%. The voltage reference source unit is an ultra-precise second generation additional ion implantation field effect transistor (XFET) reference voltage source ADR423 of ADI company. The 24V boosting unit of the pressure switch sensor is shown in fig. 14, and the core is a SX1308 switching power supply boosting chip. The voltage reference source unit is shown in fig. 15, and the core is an ADR423, which generates a 3V reference voltage with a temperature drift of 3ppm/°c for the reference voltages of the ADC and the constant current source generator. As shown in FIG. 16, the circuit of the pressure measurement module 2 is characterized in that a core chip is a 24-bit analog-to-digital converter ADS1220, a sampling resistor is a 100R0.05% precision film resistor of optical clear (Viking) company, and a temperature drift coefficient is only +/-5 ppm/° C, so that the system requirement is met.
As shown in fig. 17, the power supply and battery management module 4 includes a power adapter, a redundant power supply module, and a power supply switching module, where an output end of the power adapter is connected with input ends of the redundant power supply module and the power supply switching module, and an output end of the redundant power supply module is connected with an input end of the power supply switching module, and the power supply switching module is used for switching to power supply of the power adapter or power supply of the redundant power supply module. The redundant power supply module comprises a double-path storage battery module, and any path of storage battery module comprises a battery charging management unit, a battery charging protection unit, a battery discharging protection unit and a battery boosting unit which are sequentially arranged.
As shown in fig. 18, the circuit diagram of the power supply switching module is shown in fig. 18, the core switching component is two P-channel MOS transistors APM4953, and the adapter voltage is 5V outside, so that automatic switching of the power supply adapter or the redundant power supply module can be realized. The battery is two 18650 lithium ion batteries with the capacity of 3200mAH, and the two batteries are designed to work redundantly and are provided with an independent battery charging management unit and a battery charging protection unit. Even if one of the batteries fails, the normal operation of the calibrator is not affected, the endurance time is reduced, and the two batteries have no consistency requirement, so that the subsequent maintenance is convenient.
The circuits of the battery charge management unit and the battery boost unit are shown in fig. 19, the core is TP5400, and the chip integrates a charge management circuit and a 5V boost circuit, and the typical charge current is 1A, and the typical boost output current is 1A.
The circuits of the battery charging protection unit and the battery discharging protection unit are shown in fig. 20, and the core is composed of a special protection chip DW01A for a single lithium ion battery and a double-N-channel MOS tube FS 8205A.
As shown in fig. 21 and 22, a pressure switch sensor detecting method using the above pressure switch sensor detecting device includes the steps of,
Step 1, initializing, step 2, judging whether to check, if so, performing checking treatment, performing power management after the checking treatment, if not, directly performing power management, step 3, performing pressure measurement, obtaining a pressure value, and step 4, displaying the pressure value.
The checking process comprises the following steps, step 2.1, judging whether the port of the pressure switch sensor interface module 3 is electrified;
Step 2.11, switching to a resistance gear if the pressure switch sensor is not electrified, memorizing the current state of the pressure switch sensor, step 2.12, judging whether the state of the pressure switch sensor changes within a specified time, step 2.13, immediately acquiring the pressure value of the pressure switch sensor and locking the pressure value if the state of the pressure switch sensor changes, displaying the pressure value on the display module 5, giving out a prompt tone, and returning to step 2.11 if the state of the pressure switch sensor does not change;
Step 2.21, if the voltage is charged, switching to a voltage range, memorizing the current state of the pressure switch sensor, step 2.22, judging whether the state of the pressure switch sensor changes within a preset time, step 2.23, if the state of the pressure switch sensor changes, immediately acquiring the pressure value of the pressure switch sensor, locking the pressure value, displaying the pressure value on the display module 5, giving out a prompt tone, and if the state of the pressure switch sensor does not change, returning to step 2.21.
The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement the same, and are not intended to limit the scope of the present invention. All equivalent changes or modifications made in accordance with the essence of the present invention are intended to be included within the scope of the present invention.