基于PIC16F873单片机精密超声波测距仪的设计与实现论文.docVIP

  • 2
  • 0
  • 约3.58万字
  • 约 36页
  • 2018-02-28 发布于贵州
  • 举报

基于PIC16F873单片机精密超声波测距仪的设计与实现论文.doc

基于PIC16F873单片机精密超声波测距仪的设计与实现论文

精密超声波测距仪的设计与实现 学生: 指导教师: 内容摘要:本文详细介绍了基于PIC16F873单片机的具有温度补偿的高精度超声波测距仪的硬件及软件设计。它利用PIC16F873产生40KHZ的脉冲信号并转换成超声波发射,当超声波遇障碍物后返回,经超声波接收传感器接收返回信号送至PIC16F873的CCP1模块,得到超声波的传播往返时间。即可实现对距离的测量。但由于超声波是一种声波,其传播速度和环境温度有密切关系,当温度变化时声速也变化,导致测量不准确。为提高测量的准确性就必须采用温度补偿。即用DS18B20数字温度传感器测量环境温度,通过PIC16F873获取当前环境下温度的采样值,根据当前环境下的温度查找出与之对应的超声波速度。即可精确计算出距离,送LCD显示(温度、速度和距离),或通过串口与PC机相连实现人机交互。 关键词:高精度 PIC16F873单片机 超声波 温度传感器 Design and realize about precise ultrasonic range finder Abstract:This paper introduces hardware and software design of high precise ultrasonic range finder with temperature compensate based on PIC16F873 MCU. It uses PIC16F873 produces impulse signal of 40KHZ, and transforms ultrasonic. Ultrasonic return when it meets bar,sensor takes it over and delivers it to CCP1 module of PIC16F873. We will get the time of ultrasonic’s trip. So we can get the distance, but ultrasonic is a sound wave .its transmits has affinity with environment temperature, sound speed changes with the changes of temperature, the measure will not right. It must use temperature compensate for the veracity of measure. We measure environment temperature by DS18B20, and get the hits of current environment by PIC16F873.Ultrasonic speed can be found by the environment temperature. Distance is worked out, displaying by LCD (temperature speed and distance), man-machine conversation comes true by serial interface connect to PC. Keywords:High precise PIC16F873MCU Ultrasonic Temperature sensor 目 录 一、绪论 1 (一)超声波的基本概述 1 (二)超声波测距的设计方案论证 2 (三)设计背景及工作原理 2 二、系统总体设计要求及方案确定 3 (一)超声波测距仪的分析运用 3 (二)超声波测距仪的硬件设计总揽 4 (三)超声波测距方法的设计方案论证 5 (四)超声波传感器的选择 7 (五)RS232异步串行通信协议和接口规范 8 三、系统电路设计要求及方案确定 11 (一)主控制芯片的选择 11 (二)测温补偿电路方案论证确定 12 (三)LCD 1602显示电路方案论证确定 13 (四)超声波发射电路方案确定 13 (五)接收及信号处理电路方案论证确定 14 (六)RS-232通信接口电路方案论证确定 18 四、系统调试 19 (一)印刷电路板设计制作及硬件调试 19 (二)测试仪器 20 五、结论 21 六、总结与体会 22 七、谢辞 22 附录 23 参考文献 30 一、绪论 (一)超声波的基本概述 人们能听到声音是由于物体振动产生的,它的频率在20HZ—20KHZ范围内,超过20KHZ称为超声波,低于20HZ的称为次声波。常用的超声波频率为几十KHZ到几十MHZ。超声波是一种在弹性介质中

文档评论(0)

1亿VIP精品文档

相关文档