基于单片机的液体点滴速度监控装置的设计 The Device of Detect of Liquid Dropping’s Speed (院系::电子信息科学与技术专业) 摘要:该系统是以单片机89C52为核心,采用了步进电机控制装置、红外光电传感滴速检测装置和通过单片机扫描测量、采用PID控制算法控制直流电机传动装置来实现一个点滴速度自动控制系统。还扩充了掉点数据存储,实施远距离两线制多机通信、语音报警、系统开机自检、回血报警等功能,增强了系统的实用性。而且由于采用红外光电传感和电容传感配合单片机及可编程逻辑器件,速递测量和控制精度高。整体结构设计合理,运行稳定。主机从机间采用自动检测多路访问协议,很好的解决了多机共用一根通讯线的比特流碰撞问题。 关键字:通信,报警,自检 Abstract:This system uses AT89C52 as the core, adopting the step-motor-control device, infrared sensor and PID control algorithm in the automatic control system. The operation interface and diverse control ways are two greatest features of this design. The extra functions such as saving user-defined data in the E2PROM, ic alarm, system self checking on boot-strapping,and blood back flow alarm make the design more powerful and practicable. Experiment texts show that Every function of this system melts or exceeds the problem`s requiremer。The system perform excecllently due to our reasonable design. With this method ,the system perfectly realizes multi connections through munication channel at the same time. Key munication,ic alarm,self checking 前言 4 1设计及论证部分 4 4 ,设计与论证 5 5 5 点滴速度控制方案 6 7 8 8 2芯片介绍 9 AT89C52单片机 9 89C52输入/输出引脚简介 9 89C52的存储器配置 10 (E2PROM) 10 3理论分析 10 PID控制算法 10 4系统设计 11 11 11 13 13 从站部分 13 14 14 15 15 16 17 18 18 18 18 18 19 5界面设计 20 20 20 20 20 20 20 21 21 21 21 21 21 21 21 21 6总结 22 7感谢 23 8感谢 24 7总结 25 8感谢 26 9参考文献 27 附录一:外文专业参考资料原文 28 附录二:外文专业参考资料译文 31 附录三:总电路图 33 附录四: 程序清单