Summary of the invention
The technical problem to be solved in the present invention is: overcome the deficiencies in the prior art, a kind of Micro Energy Lose is provided, utilize powered battery, do not need cable laying, measure the Micro Energy Lose digital pressure gauge being accurately particularly useful for not needing force value teletransmission occasion to use simultaneously, and operation, arrange simple, the reliable pressure measurement method of working stability.
The technical solution adopted for the present invention to solve the technical problems is: this Micro Energy Lose digital pressure gauge, comprise data processing unit, the sensor unit be connected with data processing unit and the power supply unit of powering is realized to the two, it is characterized in that: sensor unit at least comprises constant current source module, by constant current source module for power supply sensor assembly and sensor assembly is outputed signal to the amplifier module amplified, the display module at least comprising central processing module in data processing unit and be connected with central processing module, the signal that sensor assembly exports is delivered to central processing module and is processed,
Described power supply unit comprise power supply and be connected with power supply respectively main power source module, the auxiliary power module of powering is realized to data processing unit, sensor unit, auxiliary power module is constant current source module for power supply, main power source module is that central processing module and display module are powered, and central processing module controls it with auxiliary power model calling simultaneously.
Preferably, AD conversion module and key-press module is also provided with in described data processing unit, key-press module is connected to the signal input part of central processing module, the output terminal of AD conversion module is connected to the input end of central processing unit, and amplifier module output terminal is connected to the input end of AD conversion module; Described main power source module connects AD conversion module and key-press module simultaneously.
Preferably, described power supply is lithium battery.
Preferably, described auxiliary power module adopts model to be the chip of MCP1801, and its 3 pin is connected with the signal output part of described central processing unit.
Preferably, described constant current source module comprises the amplifier chip and resistance R7 ~ R9 that model is TLV2631.
Preferably, described amplifier module employing model is the instrument amplifier chip of INA122.
Preferably, described key-press module comprises button SET, button UP and button DOWN, main power source module output terminal passes through the input end of resistance R1 button DOWN one end in parallel and central processing module simultaneously, by resistance R2 one end of button UP in parallel and the input end of central processing module, by resistance R6 one end of button SET in parallel and the input end of central processing module, button UP, button DOWN and button SET are respectively by resistance R3 ~ R5 ground connection.
A pressure measurement method for Micro Energy Lose digital pressure gauge, is characterized in that, comprises the steps:
Step 1001, system initialization;
Central processing module carries out initialization to each hardware;
Step 1002, whether central processing module judges RB5 port there is level change;
Whether central processing module judges RB5 port there is level change, if level changes, proves that SET button is pressed, and performs step 1003, if RB5 port level does not change, proves without button operation, performs step 1004;
Step 1003, starts scanning button;
RB5 port generation level changes, and shows that SET button is pressed, now arranges this Micro Energy Lose digital pressure gauge according to instrument setting procedure;
Step 1004, central processing unit dormancy time terminates;
By its built-in WatchDog Timer module, central processing module judges whether dormancy time terminates, if WatchDog Timer module is overtime, dormancy time terminates, and performs step 1006, if dormancy time not yet terminates, performs step 1005;
Step 1005, central processing module is in maintenance dormant state;
Central processing module continues to keep dormant state, returns and performs step 1002;
Step 1006, starts AD sampling;
Central processing module controls the output signal of AD conversion module to sensor and samples;
Step 1007, whether central processing module judges sampling terminates;
Whether central processing module judges sampling terminates, if terminated, performs step 1008; If do not terminated, return step 1006;
Step 1008, AD digital independent;
Central processing module reads the data that AD conversion module is converted to;
Step 1009, turns off constant current source module;
Central processing module controls auxiliary power module from service, and sensor assembly quits work;
Step 1010, analog quantity calculates calibration;
Central processing module reads the data that AD conversion module is converted to, and carries out data filtering process, and the data after filtering process are carried out linear gauging operation;
Step 1011, whether central processing module judges calibration terminates;
Whether central processing module judges calibration terminates, if calibration terminates, performs step 1012, if calibration does not terminate to return step 1010;
Step 1012, display real-time pressure;
Data after calibration are delivered to display module by central processing module, are shown enforcement force value by display module;
Step 1013, whether interrupt identification is 1;
Whether the keys interrupt mark KeyInterruptFlag after central processing module judges calibration is 1, if KeyInterruptFlag=1, performs step 1014, if KeyInterruptFlag=0, returns step 1004;
Step 1014, interruption status zero setting;
Central processing module confirms that button operation terminates, and arranges keys interrupt mark KeyInterruptFlag=0.
Preferably, the instrument setting procedure described in step 1003, comprises the steps:
Step 2001, enters and arranges menu;
Press SET button, central processing module RB5 port level changes, and controls display module display and arranges menu;
Step 2002, radix point is arranged;
Select whether enter radix point setting steps by UP or DOWN button, if do not carry out radix point setting, continue through UP or DOWN button and perform step 2003, if carry out radix point setting, after pressing SET button, perform following steps:
Step 20021, selects scaling position;
Selecting the display position of radix point by pressing UP or DOWN button, after chosen successfully, press SET and confirming, performing step 2006;
Step 2003, range is arranged;
Select whether enter range setting steps by UP or DOWN button, if do not carry out range setting, continue through UP or DOWN button and perform step 2004, if carry out range setting, after pressing SET button, perform following steps:
Step 20031, arranges Lower Range;
Select Lower Range by UP or DOWN button, press SET button after having set and determine;
Step 20032,
Select the range upper limit by UP or DOWN button, press SET button after having set and determine, after confirming, perform step 2006;
Step 2004, calibrates setting of counting;
Select whether enter calibration by UP or DOWN button to count setting steps, to count settings if do not carry out calibration, continue through UP or DOWN button execution step 2005, to count setting if carry out calibration, after pressing SET button, perform following steps:
Step 20041,
Select calibration to count by UP or DOWN button, press SET button after selection and determine, after confirming, perform step 2006;
Step 2005, pressure calibration;
The need of carrying out pressure calibration, if do not need to carry out pressure calibration, pressing SET button, performing step 2006; If need to carry out pressure calibration, press SET button and carry out pressure calibration, perform following steps:
Step 20051, applies zero-bit force value;
Null pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete zero point calibration;
Whether step 20052 is 3 calibrations;
Central processing unit judges that whether calibration mode is for being 3 calibrations, if 3 calibrations, performs step 20053, if be 2 calibrations, performs step 20054;
Step 20053, applies intermediate point pressure;
Intermediate point pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete intermediate point calibration;
Step 20054, applies full-scale pressure;
Full scale point pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete the calibration of full scale point, continue after completing to press SET button, perform step 2006;
Step 2006, terminates;
Complete setting steps, return main flow.
Compared with prior art, the beneficial effect that the present invention has is:
1, the CPU (central processing unit) of a kind of Micro Energy Lose digital pressure gauge of the present invention and pressure measurement method adopts super low-power consumption chip, operational amplifier, instrument amplifier, AD conversion module all adopt the chip of low current, the chip of low-power consumption is all selected hardware design, the sleep mode of CPU (central processing unit) is utilized from Software for Design, make the instrument most of the time all in dormancy, reach the object of whole tensimeter Micro Energy Lose.
2, the collection of pressure signal is by diffuse si piezoresistive transducer, and as whole manometric core component, not only overvoltage capabilities is strong, and highly sensitive, good reliability, almost non-maintaining.
3, instrument parameter is configured by three buttons, as long as all manometric range ability can be arranged in the maximum measurement range of diffuse si sensor, not by the limit value of traditional mechanical type tensimeter dial plate range ability, and under the prerequisite having a standard pressure generator, can at the scene to realizing manometric linear gauging by three button operations, the tensimeter precision after calibration is higher.
4, by four LCD liquid crystal displays, numerical monitor, clear and intuitive, no parallax.
5, adopt a joint AA level high power lithium battery to power, avoid the outside restriction that 24V direct supply is provided of pressure unit needs that tradition 4 ~ 20mA exports, therefore do not need to lay cable, be particularly useful for the occasion not needing force value teletransmission.
Embodiment
Fig. 1 ~ 4 are most preferred embodiments of the present invention, and below in conjunction with accompanying drawing 1 ~ 4, the present invention will be further described.
In the functional-block diagram of the digital pressure gauge of this Micro Energy Lose shown in Fig. 1, black arrow represents that power supply signal flows to, and white arrow represents that control signal flows to.Micro Energy Lose digital pressure gauge, comprise power supply unit, sensor unit and data processing unit, sensor unit is connected with data processing unit, and power supply unit is powered for sensor unit and data processing unit simultaneously.Power supply unit comprises the main power source module and auxiliary power module that battery and battery be connected, main power source module and auxiliary power module are realized by voltage stabilizing chip, respectively battery is exported ground voltage and be converted to different voltage, main power source module and auxiliary power module is respectively data processing unit and sensor unit is powered.Battery adopts AA level high power lithium battery.
Sensor unit comprises constant current source module, sensor assembly and amplifier module, and constant current source module exports vagabond current signal and is connected with the energization input of sensor assembly, and the signal output part of sensor assembly connects the signal input part of amplifier module.Constant current source exports the power supply signal driving sensor module work of vagabond current signal as sensor assembly, and the signal that sensor assembly exports sends into the amplification carrying out signal in amplifier module, is delivered in data processing unit by the signal after amplification and processes.The output terminal of auxiliary power module is connected with amplifier module with constant current source module respectively, as power supply both it.
Data processing unit comprises AD conversion module, central processing module, display module and key-press module.In sensor unit, the signal output part of amplifier module is connected to the signal input part of AD conversion module, the signal output part of AD conversion module connects the signal input part of central processing module, the signal output part of central processing module connects the signal input part of display module, and key-press module is connected to the signal input part of central processing module.Amplifier module exports in earth signal feeding AD conversion module and carries out analog to digital conversion, and output ground digital signal is delivered in central processing module by AD conversion module, is processed by central processing module.Central processing module controls display module and shows, and inputs instruction, processed by central processing module by key-press module to central processing module.Main power source module in power supply unit connects AD conversion module, central processing module and display module simultaneously, and is its power supply, and main power source module accesses in key-press module simultaneously.The signal output part auxiliary connection power module simultaneously of central processing module, controls its duty.
In the circuit theory diagrams shown in Fig. 2, comprise microprocessor U1, voltage stabilizing chip U2 ~ U3, integrated transporting discharging chip U4, instrument amplifier chip U5, AD conversion chip U6 and display screen U7.The voltage vcc that battery exports connects the input end of voltage stabilizing chip simultaneously: 3 pin of voltage stabilizing chip U2 and 1 pin of voltage stabilizing chip U3.The 1 pin ground connection of voltage stabilizing chip U2,3 pin shunt capacitance C2 ground connection, 5 pin that 2 pin connect 20 pin of microprocessor U1,1 pin of display screen U7 and AD conversion chip U6 simultaneously realize power supply; 2 pin of voltage stabilizing chip U2 pass through 5 pin of resistance R1 button KEY2 one end in parallel and microprocessor U1 simultaneously, by resistance R2 one end of button KEY1 in parallel and 4 pin of microprocessor U1, by resistance R6 one end of button KEY3 in parallel and 26 pin of microprocessor U1, button KEY1 ~ KEY3 is respectively by resistance R3 ~ R5 ground connection.24 pin of microprocessor U1,25 pin are connected with 2 pin of display screen U7,4 pin respectively, the 3 pin ground connection of display screen U7.
The 2 pin ground connection of voltage stabilizing chip U3, shunt capacitance C3 between 1 pin and 2 pin, 3 pin connect 17 pin of microprocessor U1, and 4 pin are NC end, and 5 pin are voltage output end.5 pin of voltage stabilizing chip U3 connect 5 pin of integrated transporting discharging chip U4 and the 7 pin realization power supplies of instrument amplifier chip U5 respectively.One end of 5 pin of voltage stabilizing chip U3 simultaneously parallel resistance R7, other end one end of parallel resistance R8 and 3 pin of integrated transporting discharging chip U4 simultaneously of resistance R7, the other end ground connection of resistance R8.The 2 pin ground connection of integrated transporting discharging chip U4,4 pin are by resistance R9 ground connection, 1 pin connects the power supply positive pole of the pressure transducer represented by resistance Ra ~ Rd, the power supply negative pole of pressure transducer is simultaneously through resistance R9 ground connection, and two output terminals of pressure transducer are connected to 2 pin and 3 pin of instrument amplifier chip U5 respectively.Resistance in series R10 between 1 pin of instrument amplifier chip U5 and 8 pin, 4 pin and 5 pin ground connection, one end of shunt capacitance C1 and 1 pin of AD conversion chip U6 while of after output terminal 6 pin resistance in series R11, the other end ground connection of electric capacity C1.2 pin of AD conversion chip U6,6 pin ground connection, 3 pin and 4 pin are connected 14 pin, 15 pin of microprocessor U1 respectively.
Voltage stabilizing chip U2 ~ U3 adopts model to be the chip of MCP1700 and MCP1801 respectively, realizes above-mentioned main power source module and auxiliary power module.Integrated transporting discharging chip U4 and resistance R7 ~ R9 forms above-mentioned constant current source module, and integrated transporting discharging chip U4 adopts model to be the chip of TLV2631.Resistance Ra ~ Rd in Fig. 2 represents pressure transducer, in this Micro Energy Lose digital pressure gauge, and preferred diffusion piezoresistive silicon sensor.Instrument amplifier chip U5 is above-mentioned amplifier module, and its model is INA122.AD conversion chip U6 is above-mentioned AD conversion module, and its model is ADS1110.Microprocessor U1 is above-mentioned central processing module, and its model is PIC16F1938; Display screen U7 is above-mentioned display module, adopts 4 LCD liquid crystal displays.Button KEY1 ~ KEY3 forms above-mentioned key-press module, in actual product, button KEY1 ~ KEY3 is defined as UP button, DOWN button and SET button respectively, SET button is connected with the RB5 pin (26 pin) of microprocessor U1, this pin has level change interrupt function, and device can wake up by this function from park mode.
Microprocessor U1, the constant current source module be made up of integrated transporting discharging chip U4 and resistance R7 ~ R9, instrument amplifier chip U5 and AD conversion chip U6 all adopt low power dissipation design, use a joint high power lithium battery can realize long-term power supply, low power dissipation design extends battery, saved cost, avoiding conventional pressure transmitter needs the outside restriction providing direct supply.Sensor adopts diffuse si piezoresistive transducer, and overload level is large, highly sensitive.Overcome traditional mechanical indicating pointer tensimeter, can not transship use, otherwise can permanent damage be caused, and sensitivity is also poor, need knock the shortcoming of watchcase during reading.
As shown in Figure 3, the pressure measurement method of this Micro Energy Lose digital pressure gauge, comprises the steps:
Step 1001, system initialization;
Central processing module carries out initialization to each hardware;
Step 1002, whether central processing module judges RB5 port there is level change;
Whether central processing module judges RB5 port there is level change, if level changes, proves that SET button is pressed, and performs step 1003, if RB5 port level does not change, proves without button operation, performs step 1004;
Step 1003, starts scanning button;
RB5 port generation level changes, and shows that SET button is pressed, now arranges this Micro Energy Lose digital pressure gauge according to instrument setting procedure;
Step 1004, central processing unit dormancy time terminates;
By its built-in WatchDog Timer module, central processing module judges whether dormancy time terminates, if WatchDog Timer module is overtime, dormancy time terminates, and performs step 1006, if dormancy time not yet terminates, performs step 1005;
Step 1005, central processing module is in maintenance dormant state;
Central processing module continues to keep dormant state, returns and performs step 1002;
Step 1006, starts AD sampling;
Central processing module controls the output signal of AD conversion module to sensor and samples;
Step 1007, whether central processing module judges sampling terminates;
Whether central processing module judges sampling terminates, if terminated, performs step 1008; If do not terminated, return step 1006;
Step 1008, AD digital independent;
Central processing module reads the data that AD conversion module is converted to;
Step 1009, turns off constant current source module;
Central processing module controls auxiliary power module from service, and sensor assembly quits work;
After auxiliary power module from service, then constant-current source circuit, instrument amplifier circuit quit work, sensor does not have constant current-supplying just no longer to output signal yet, AD conversion module provides input signal without instrument amplifier, AD conversion module also quits work, reduce working current, reduce power consumption.
Step 1010, analog quantity calculates calibration;
Central processing module reads the data that AD conversion module is converted to, and carries out data filtering process, and the data after filtering process are carried out linear gauging operation;
Step 1011, whether central processing module judges calibration terminates;
Whether central processing module judges calibration terminates, if calibration terminates, performs step 1012, if calibration does not terminate to return step 1010;
Step 1012, display real-time pressure;
Data after calibration are delivered to display module by central processing module, are shown enforcement force value by display module;
Step 1013, whether interrupt identification is 1;
Whether the keys interrupt mark KeyInterruptFlag after central processing module judges calibration is 1, if KeyInterruptFlag=1, performs step 1014, if KeyInterruptFlag=0, returns step 1004;
Step 1014, interruption status zero setting;
Central processing module confirms that button operation terminates, and arranges keys interrupt mark KeyInterruptFlag=0.
When actual field is applied, this tensimeter is in the state that circulation performs step 1004 ~ 1013, i.e. circle collection force value carry out pressure display by display screen, only when needs carry out adjustment to tensimeter, just needs to perform the instrument setting procedure related in step 1003 and step 1003.
As shown in Figure 4, above-mentioned instrument setting procedure comprises the steps:
Step 2001, enters and arranges menu;
Press SET button, central processing module RB5 port level changes, and controls display module display and arranges menu;
Step 2002, radix point is arranged;
Select whether enter radix point setting steps by UP or DOWN button, if do not carry out radix point setting, continue through UP or DOWN button and perform step 2003, if carry out radix point setting, after pressing SET button, perform following steps:
Step 20021, selects scaling position;
Selecting the display position of radix point by pressing UP or DOWN button, after chosen successfully, press SET and confirming, performing step 2006;
Step 2003, range is arranged;
Select whether enter range setting steps by UP or DOWN button, if do not carry out range setting, continue through UP or DOWN button and perform step 2004, if carry out range setting, after pressing SET button, perform following steps:
Step 20031, arranges Lower Range;
Select Lower Range by UP or DOWN button, press SET button after having set and determine;
Step 20032,
Select the range upper limit by UP or DOWN button, press SET button after having set and determine, after confirming, perform step 2006;
Step 2004, calibrates setting of counting;
Select whether enter calibration by UP or DOWN button to count setting steps, to count settings if do not carry out calibration, continue through UP or DOWN button execution step 2005, to count setting if carry out calibration, after pressing SET button, perform following steps:
Step 20041,
Select calibration to count by UP or DOWN button, press SET button after selection and determine, after confirming, perform step 2006;
In this pressure measurement method, can select calibrate or 3 calibrations at 2.
Step 2005, pressure calibration;
The need of carrying out pressure calibration, if not needing to carry out pressure calibration, pressing SET button and performing step 2006; If need to carry out pressure calibration, press SET button and carry out pressure calibration, perform following steps:
Step 20051, applies zero-bit force value;
Null pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete zero point calibration;
Whether step 20052 is 3 calibrations;
Central processing unit judges that whether calibration mode is for being 3 calibrations, if 3 calibrations, performs step 20053, if be 2 calibrations, performs step 20054;
Step 20053, applies intermediate point pressure;
Intermediate point pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete intermediate point calibration;
Step 20054, applies full-scale pressure;
Full scale point pressure is applied to this Micro Energy Lose digital pressure gauge, after force value is stable, presses SET button, complete the calibration of full scale point, continue after completing to press SET button, perform step 2006;
Step 2006, terminates;
Complete setting steps, return main flow.
Specific works process and principle of work as follows:
Battery is simultaneously to main power source module and auxiliary power module for power supply, and main power source module will be AD conversion module, central processing module and display module after the voltage transitions voltage stabilizing of battery output, and is its power supply, and main power source module accesses in key-press module simultaneously.The output terminal of auxiliary power module is connected with amplifier module with constant current source module respectively, as power supply both it.
Constant-current source circuit power supply provides working current for sensor assembly, sensor assembly converts the pressure information collected to pressure millivolt signal and passes to amplifier module, according to gain resistor RG(resistance R10) size determine enlargement factor, the differential signal collected is zoomed into volt level signal, deliver to AD conversion module and input signal is provided.Simulating signal is converted to digital signal and sends into central processing module by AD conversion module, and the result after process by after data filtering, calculating, process, is shown by display module by central processing module by the digital signal after AD conversion module conversion.Instrument parameter can be set by key-press module and carry out linear gauging.The parameter that can arrange is as follows: arrange instrument range bound, arrange scaling position, select calibration to count.By complete for these optimum configurations, and deliver to central processing module, central processing module is by the digital signal after the key circuit parameter that setting completed and AD conversion module conversion, after data filtering, analog quantity calculating, calibration, force value after calibration is shown by display module, completes the pressure information collection of whole instrument, calibration, display operation.
The above is only preferred embodiment of the present invention, and be not restriction the present invention being made to other form, any those skilled in the art may utilize the technology contents of above-mentioned announcement to be changed or be modified as the Equivalent embodiments of equivalent variations.But everyly do not depart from technical solution of the present invention content, any simple modification, equivalent variations and the remodeling done above embodiment according to technical spirit of the present invention, still belong to the protection domain of technical solution of the present invention.