基于单片机的 TDS 水质测试仪设计王春(陕理工物理与电信工程学院电子信息工程专业 1103 班,陕西 汉中,723000)指导老师:秦伟[摘要]本设计通过讨论分析 TDS(溶解性总固体)测量的原理,设计了一款以 STC89C52 单片机为核心的水质测试仪本设计通过电导率测量电路实现电导率信号的采集,并采纳温度传感器进行温度测量,使用温度补偿方法减小温度对电导率测量值的影响,通过单片机程序进行相关计算得出 TDS 值。该设计包括信号采集电路、按键电路、温度测量电路、数码管显示电路.该水质测试仪结构简单,操作容易,低成本,测量的 TDS 值对帮助人们了解水质情况起到了非常重要的作用。[关键字]STC89C52,溶解性总固体,水质测试The design of TDS water quality tester based on SCMWang Chun(Grade03,Class11,Major Electronic Information Engineering,College of physics and telecommunication engineering,Shaanxi University of Technology,Hanzhong 723000,Shaanxi)Tutor:Qin Wei[Abstract] This design studies the principle of Total Dissolved Solids (TDS) measurement.And it designs a water quality tester which takes STC89C52 Single Chip Microcomputer ( SCM) as the core 。 The design collects the electrical conductivity signal by electrical conductivity measurement circuit 。And it uses temperature sensor to measure temperature. And it reduces the influence of temperature on the electric conductivity measurement by using the temperature compensation method 。 And through the SCM program for correlation calculation to calculate the value of TDS.The design includes signal acquisition circuit, key circuit, temperature measurement circuit and digital tube display circuit 。 The water quality testing instrument has the advantages of simple structure, easy operation, low cost, which play a very important role in helping people to understand the situation of water quality . [keywords]STC89C52, TDS, water quality testing目录引言.......................................