PH value of solution value controlled system with self-regulation and autocontrol method thereof
Technical field:
The present invention relates to controlled system with self-regulation, specifically is a kind of pH value of solution value controlled system with self-regulation and autocontrol method thereof.
Background technology:
Existing chemical reaction often need carry out in a specific pH value scope, the pH value of liquid-phase reaction system do not detected at present, and the while instrument or the device that automatically adjust again, control.Commercially available acidometer (also claiming pH meter) can only detect the pH value of liquid-phase system, but it can not automatically adjust to the pH value of the system of continuous adding reaction solution and control, and does not more have the ability of for a long time the pH value of open system being regulated, being controlled.Equivalent point when commercially available potentiometric titrimeter can only be judged acid with the mutual titration of alkali, it can not automatically adjust to the pH value of liquid phase systems and control.
Summary of the invention:
The purpose of this invention is to provide a kind of pH value of solution value controlled system with self-regulation and autocontrol method thereof.The present invention can monitor and pH value and the temperature value of adjusting solution automatically in real time to the pH value and the temperature value of solution.The present invention is made up of thermocouple sensor 1, pH value sensor 2, first operational amplification circuit 3, automatic range commutation circuit 4, second operational amplification circuit 5, mould/number conversion circuit 6, micro-computer circuit 7, keyboard circuit 8, display circuit 9, interface control circuit 10, fluid filling pump 11, well heater 12; The signal output part of thermocouple sensor 1 connects the signal input part of second operational amplification circuit 5, an input end of analog signal of the signal output part connection mode/number conversion circuit 6 of second operational amplification circuit 5, the signal output part of pH value sensor 2 connects the signal input part of first operational amplification circuit 3, the signal output part of first operational amplification circuit 3 connects the signal input part of automatic range commutation circuit 4, another input end of analog signal of the signal output part connection mode/number conversion circuit 6 of automatic range commutation circuit 4, the data output end of mould/number conversion circuit 6 connects the data input pin of micro-computer circuit 7, micro-computer circuit 7 video data output terminals connect the data input pin of display circuit 9, the data I/O of micro-computer circuit 7 connects the data input/output terminal of keyboard circuit 8, the data input pin of the data output end connecting interface control circuit 10 of micro-computer circuit 7, a control output end of interface control circuit 10 connects the control input end of fluid filling pump 11, and another control output end of interface control circuit 10 connects the control input end of well heater 12; The step of this invention autocontrol method is: beginning 001; Initialization 002; CPU opens and interrupts 003, and CPU opens interruption and jumps into keyboard interrupt subroutine 031 after by the keyboard triggering for generating; Judge whether observing and controlling pH value 004, being judged as is then to move pH value observing and controlling subroutine 005; Send and show 007; The step of above-mentioned whether observing and controlling pH value 004 is judged as not, and then running temperature value observing and controlling subroutine 006; Send and show 007; N measured value covered n-1 measured value 008; Preserve measured value 009; Judge and whether control 010 that be judged as not, then end of run 014; Be judged as and be, then operation judges that pH whether control 011, is judged as not, then moves to put the well heater state of a control and open 012; Finish 014; Whether above-mentioned pH controls that 011 step is judged as is that then operation is put the fluid filling pump state and opened 013; Finish 014; The step of pH value observing and controlling subroutine 005 is (as Fig. 4): to pH value sampling 051; To full five times 052 of pH value sampling, be judged as not, then return operation to pH value sampling 051; Be judged as is that then operation is removed extreme value and averaged 053; The result that this removal extreme value is averaged subtracts the mean value of preceding four measurement results, ask absolute value smaller or equal to 0.05 again? 054, being judged as is that then whether operation controls 055; Operation whether control 055 and is not judged as not, then returns operation to pH value sampling 051, and whether operation controls 055, and to be judged as be then to move and put fluid filling pump state pass 056; Return again pH value sampling 051; The result that above-mentioned this removal extreme value is averaged subtracts the mean value of preceding four measurement results, ask absolute value less than 0.05 again? 054, be judged as not, then operation is sent and is shown 007.The present invention can monitor and auto-control the pH value and the temperature value of solution in open system or the closed system for a long time in real time, have high stability, high precision, inspection/control point accurately, the advantage of pH value of solution value high conformity, the observing and controlling scope of its pH value of solution value is 1<pH<13, precision is ± 0.05, and the measurement and control of temperature scope is 20 a ℃≤T value≤70 ℃.
Description of drawings:
Fig. 1 is an integrated circuit structural representation of the present invention, Fig. 2 is the step block diagram of autocontrol method of the present invention, Fig. 3 is the step block diagram of keyboard interrupt subroutine 031, and Fig. 4 is the step block diagram of pH value observing and controlling subroutine 005, and Fig. 5 is the step block diagram of temperature value observing and controlling subroutine 006.
Embodiment:
In conjunction with Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 present embodiment is described, present embodiment is made up of thermocouple sensor 1, pH value sensor 2, first operational amplification circuit 3, automatic range commutation circuit 4, second operational amplification circuit 5, mould/number conversion circuit 6, micro-computer circuit 7, keyboard circuit 8, display circuit 9, interface control circuit 10, fluid filling pump 11, well heater 12; The signal output part of thermocouple sensor 1 connects the signal input part of second operational amplification circuit 5, an input end of analog signal of the signal output part connection mode/number conversion circuit 6 of second operational amplification circuit 5, the signal output part of pH value sensor 2 connects the signal input part of first operational amplification circuit 3, the signal output part of first operational amplification circuit 3 connects the signal input part of automatic range commutation circuit 4, another input end of analog signal of the signal output part connection mode/number conversion circuit 6 of automatic range commutation circuit 4, the data output end of mould/number conversion circuit 6 connects the data input pin of micro-computer circuit 7, micro-computer circuit 7 video data output terminals connect the data input pin of display circuit 9, the data I/O of micro-computer circuit 7 connects the data input/output terminal of keyboard circuit 8, the data input pin of the data output end connecting interface control circuit 10 of micro-computer circuit 7, a control output end of interface control circuit 10 connects the control input end of fluid filling pump 11, and another control output end of interface control circuit 10 connects the control input end of well heater 12; The step of this invention autocontrol method is: beginning 001; Initialization 002; CPU opens and interrupts 003, and CPU opens interruption and jumps into keyboard interrupt subroutine 031 after by the keyboard triggering for generating; Judge whether observing and controlling pH value 004, being judged as is then to move pH value observing and controlling subroutine 005; Send and show 007; Whether observing and controlling pH value is judged as not above-mentioned 004 step, and then running temperature value observing and controlling subroutine 006; Send and show 007; N measured value covered n-1 measured value 008; Preserve measured value 009; Judge and whether control 010 that be judged as not, then end of run 014; Be judged as and be, then operation judges that pH whether control 011, is judged as not, then moves to put the well heater state of a control and open 012; Finish 014; Whether above-mentioned 011 step pH controls to be judged as and is, then operation is put the fluid filling pump state and opened 013; Finish 014.The step of described keyboard interrupt subroutine 031 is (as Fig. 3): function key 032, be judged as not, and then operation returns 037; Be judged as is that then whether operation controls 033; Be judged as not, then operation returns 037; Be judged as is then to move pH and whether control 034; Be judged as not, then move preset temperature value 036; Go to return 037; Whether above-mentioned 034 step pH controls to be judged as and is, then the default pH value 035 of operation; Go to return 037; The step of described pH value observing and controlling subroutine 005 is (as Fig. 4): to pH value sampling 051; To full five times 052 of pH value sampling, be judged as not, then return operation to pH value sampling 051; Be judged as is that then operation is removed extreme value and averaged 053; This time measurement result subtracts the mean value of preceding four measurement results, ask absolute value smaller or equal to 0.05 again? 054, being judged as is that then whether operation controls 055; Operation whether control 055 and is not judged as not, then returns operation to pH value sampling 051, and whether operation controls 055, and to be judged as be then to move and put fluid filling pump state pass 056; Return again pH value sampling 051; This time of above-mentioned steps measurement result subtracts the mean value of preceding four measurement results, ask absolute value smaller or equal to 0.05 again? 054, be judged as not, then operation is sent and is shown 007; The step of described temperature value observing and controlling subroutine 006 is (as Fig. 5): to temperature value sampling 061; To full five times 062 of temperature value sampling, be judged as not, then return operation to temperature value sampling 061; Be judged as is that then operation is removed extreme value and averaged 063; This time measurement result subtracts the mean value of preceding four measurement results, ask absolute value smaller or equal to 0.5 again? 064, being judged as is that then whether operation controls 065; Operation whether control 065 and is not judged as not, then returns operation to temperature value sampling 061, and operation whether control 065, and to be judged as be then to move and put heater status pass 066; Return again temperature value sampling 061; This time of above-mentioned steps measurement result subtracts the mean value of preceding four measurement results, ask absolute value smaller or equal to 0.5 again? 064, be judged as not, then operation is sent and is shown 007.The model that first operational amplification circuit 3 is selected for use is LM308, the model that automatic range commutation circuit 4 is selected for use is LM308, MOC3063, the model that second operational amplification circuit 5 is selected for use is AD620, the model that mould/number conversion circuit 6 is selected for use is ADC0809, the model that micro-computer circuit 7 is selected for use is AT89C55, and the model that display circuit 9 is selected for use is 74LS164.