1、 1 本科生毕业设计档案材料 题 目: 超声波测距器的设计 学生姓名: 学号 系 部: 通信与控制工程系 专业年级: 电信 08 级 2 班 指导教师: 职 称: 副教授 2 摘摘 要要 本设计是以单片机技术为基础,实现的对前方物体距离测量。利用超声波指 向性强,能量消耗慢,在介质中传播的距离远的特点,利用了超生波传感器对前方 物体进行感应, 经过单片机中的程序对超声波传感器发射和接收的超声波信号进 行分析和计算处理,最后将处理结果在 LED 数码管上显示。AT89C52 单片机的超 声波测距系统,此系统根据超声波在空气中传播反射原理, 把超声波传感器作为 接口部件, 利用超声波在空气中传播的
2、时间差来测量距离,设计了一套超声波检 测系统。该系统设计主要分为主控制器模块、超声波发射模块、超声波接收模块 和显示模块等四个基本模块构成, 用接收部分接收超声波。 本设计利用两个中断, 在发射信号时,打开定时器中断 0 和外部中断 0 使定时器计时,接收到发射超声 波信号时,外部中断 0 关闭中断,这时定时器中断 0 计录的时间就为超声波传播 经过测距仪到前方物体的来回时间。 利用公式 S=TV2 (V 为超生波传播速度, 本设计设定值 340m/s),单片机把处理的距离值 S 并且通过八段 LED 显示出来。 3 Abstract The design is based on microp
3、rocessor technology to achieve the right measurement of the front object distance. Due to strong directional ultrasonic, energy consumption slow, transmission distance is far in medium.use of ultrasound sensors on the front induction objects, SCM logic analysis and calculate through the procedures o
4、f ultrasonic sensors transmitting and receiving ultrasonic signals , Finally, after processing the data is in the digital LED tube. Ultrasonic Ranging System Based on AT89C51 ,The ultrasonic system based on the air-borne reflection principle ,ultrasonic sensors are interface components, used the time gap ultrasonic wave transmit in the air to measure distance with application of SCM technology, be able to design a set of ultrasonic dete