APP下载

基于STC89C52单片机的p H值测量仪设计∗

2017-10-16林关成

计算机与数字工程 2017年9期
关键词:单片机测量设计

林关成

基于STC89C52单片机的p H值测量仪设计∗

林关成

(渭南师范学院网络安全与信息化学院 渭南 714099)

针对pH值测量仪测量精度低、电路复杂及稳定性差等缺点,为了提高pH值的测量精度,克服溶液的温度变化、电极老化以及测量电路的稳定性等因素带来的误差,以STC89C52单片机为控制核心,利用pH传感器、A/D转换器和单片机对pH电极的检测信号进行采集、转换和处理,再经过温度补偿模块对信号进行有效补偿后通过LCD 1602字符型液晶显示模块输出所测量的pH值。多次试验测试结果表明:测量仪能够准确地测量溶液的pH值,具有精度高、成本低、稳定性好、电路简单、操作方便等特点,满足设计要求,具有一定的应用推广价值。

STC89C52单片机;pH测量;标定;温度补偿

AbstractIn order to increase the measuring accuracy of pH value,and overcome the errors from some factors,such as the temperature variation of solution,the ageing of electrode and the stability of measurement circuit etc.the pH measure instrument was designed based on STC89C52 microcontrollers aiming at the disadvantages of low accuracy,complex circuit and poor stability of the pH measuring instrument.It used the pH sensor,A/D converter and microcontrollers to acquire,convert and process the de⁃tection signal of pH electrode.Then it output the measured pH after temperature compensation using LCD 1602.The test results showed that the instrument can measure the pH value of the solutions accurately,it met the design requirements.The instrument had the advantages of high precision,low cost,good stability,simple circuit and convenient operation,and it had a promotion of val⁃ue in the applications.

Key WordsSTC89C52 microcontrollers,pH measurement,calibration,temperature compensation

Class NumberTN606

1 引言

在水质分析、环境监测和食品生产等众多领域中,对溶液pH值的监测非常重要[1~2]。常用的测量方法主要有化学分析法、试纸分析法和电位分析法。溶液的温度变化、电极老化以及测量电路的稳定性等因素都会给pH值的测量精度带来误差[3~6]。因此,如何提高pH值测量精度、降低pH值测量仪的生产成本是目前急需解决的关键问题,也是pH值测量仪未来的发展趋势[7~10]。

本设计采用电位分析法,以STC89C52单片机为控制核心,利用pH传感器、A/D转换器和单片机对pH电极的检测信号进行采集、转换和处理,再经过温度补偿模块对信号进行有效补偿后输出显示所测量的pH值,提高测量精度[11~12]。

2 p H值测量仪的总体方案设计

pH值是溶液中氢离子浓度的一种标度,本设计采用电位分析法,通过测量电极系统与被测溶液构成的电池电动势来测量。……

登录APP查看全文

猜你喜欢

单片机测量设计
基于单片机的SPWM控制逆变器的设计与实现
基于单片机的层次渐变暖灯的研究
基于单片机的便捷式LCF测量仪
瞒天过海——仿生设计萌到家
设计秀
有种设计叫而专
测量
Microchip推出两个全新PIC单片机系列
设计之味