基于单片机的TDS水质测试仪设计资料.pdf
苏州市职业大学电子信息工程学院毕业设计
学号
苏州市职业大学
毕业设计
题目基于单片机的
___TDS水质测试仪设计
学生姓名:
专业班级:
学院(部):电子信息工程学院
校内指导教师:
校外指导教师:
完成日期:2016年5月
I
苏州市职业大学电子信息工程学院毕业设计
摘要
本设计通过研究分析TDS(溶解性总固体)测量的原理,设计了一款以
AT89S51单片机为核心的水质测试仪。本设计通过电导率测量电路实现电导率
号的采集,并采用温度传感器进行温度测量,使用温度补偿方法减小温度对电导
率测量值的影响,通过单片机程序进行相关计算得出TDS值。设计包括信号采集
电路、按键电路、测温电路、液晶显示电路。选用AT89S51作为该水质测试仪是
由于其结构简单,操作容易,低成本。测量的TDS值对帮助人们了解水质情况起
到了非常重要的作用。了解检测的水中各种参数,通过这些了解到水质的基本
息,并作出相应的调整计划。水质合格了,这样我们的生活才会有保障。
关键词:水质检测AT89S51程序编写
II
苏州市职业大学电子信息工程学院毕业设计
Abstract
ThisdesignthroughthestudyandanalysisoftheprincipleofTDS(totaldissolved
solids)measurement,thedesignofaAT89S51microcontrollerasthecoreofthewater
testinginstrument.Thisdesignbyconductivitymeasurementcircuittoachieve
conductivitysignalacquisition,andthetemperaturesensorfortemperature
measurementandtemperaturecompensationmethodtoreducethetemperature
influenceontheconductivitymeasurements,throughtheSCMprogramfor
correlationcalculationtoobtainthevalueofTDS.Thedesignincludessignal
acquisitioncircuit,keycircuit,temperaturemeasurementcircuit,liquidcrystaldisplay
circuit.AT89S51asthewaterqualitytestinginstrumentisbecauseofitssimple
structure,easyoperation,lowcost.MeasurementoftheTDSvaluetohelppeople
understandthesituationofwaterqualityhasp