1、 本 科 毕 业本 科 毕 业 设 计设 计 (20201 11 1 届)届) 题题 目目 超声波测距仪设计 学学 院院 电子信息学院 专专 业业 电子信息工程 班班 级级 学学 号号 学生姓名学生姓名 指导教师指导教师 完成日期完成日期 摘 要 本设计主要利用单片机实现控制超声波测距系统,单片机控制定时器计时、 软件产生约40KHZ的方波信号触发发射传感器,控制超声波的发射和接收。利用超 声波传输中距离与时间的关系,采用AT89s52单片机进行控制及数据处理,设计出 了能准确测量两点间距离的超声波测距仪。发射电路由单片机输出端直接驱动超 声波发送。接收电路使用三极管组成的放大,整形电路,该电
2、路简单,调试工作 较小。 该测距仪主要由单片机控制电路、超声波发射器电路、超声波接收器电路及 显示电路构成。利用所设计出的超声波测距仪,对不同距离进行了测试,并进行 了的误差分析。该系统电路设计合理简单、工作稳定、性能良好、检测速度快、 计算简单、易于做到实时控制,并且在测量误差方面能达到简单工业实用的要求。 关键词:超声波测距;AT89s52;超声波传感器;定时器;方波信号 ABSTRACT This ultrasonic ranging system designer mainly controlled by Micro Control Unit, MCU controls the tim
3、er, the software produces about 40KHZ square wave signal triggered emission sensors, to control the transmit and receive ultrasound. The AT89s52 MCU to control the data process and design to accurately measure the distance between two points in the ultrasonic range finder. The Transmitter circuit dr
4、ives the output from the MCU to send ultrasound directly. Receiver circuit consists of transistor amplification, the shaping circuit. The circuit is simple, less debugging. The range finder controller system is mainly included by the microcontroller, ultrasonic transmitter circuit, ultrasonic receiver circuit and display circuit. Using the design of the ultrasonic range finder, for different distances were tested, and conducted the error analysis. The system is reasonab