摘 要超声波液位测量是一种非接触式的测量方式,它是利用超声波在同种介质中传播速度相对恒定以及碰到障碍物能反射的原理研制而成的。与其它方法相比(如电磁的或光学的方法),它不受光线、被测对象颜色的影响,对于被测物处于黑暗、有灰尘、烟雾、电磁干扰、有毒等恶劣的环境下有一定的适应能力。因此,讨论超声波在高精度测距系统中的应用具有重要的现实意义。 本设计基于单片机的超声波液位测量系统主要由硬件与软件两部分组成,硬件是基于 AT89C51 芯片为核心的超声波液位测量,采纳 AT89C51 单片机进行控制及数据处理,给出了超声波发射和接收电路,通过盲区的消除以及环境温度的采样,提高了测距的精确度。利用超声波传输中距离与时间的关系,设计出了能精确测量两点间距离的超声波液位检测系统。此系统具有易控制、工作可靠、测量精度高的优点,可实时检测液位。 并有超声波处理模块 CX20256A、CD4069 组成的超声波发射电路、超声波接收电路、单片机复位电路、LED 显示电路、报警电路等。软件部分由主程序、预置子程序、发射子程序、接收子程序、显示子程序组成。各探头的信号经单片机综合分析处理。最后通过实物的调试,各项参数及功能符合设计要求,能达到预期的目的。 关键词: 单片机;超声波;温度控制;高精度测距AbstractThe ultrasonic liquid level measurement is a non-contact measurement method, realized by the principle of ultrasonic wave in the same medium with relatively constant propagation velocity and being reflected when it approaches an obstacle. Compared with other methods (such as electromagnetic or optical method), it has a certain of adaptability when objects to be measured are under such harsh environment as darkness, dust, smoke, electromagnetic interference, toxicity, unaffected by the light or the color of the object to be measured. Therefore, it bears important practical significance to conduct research on the application of ultrasonic wave in high precision ranging system.In this project, SCM-based ultrasonic liquid level measuring system is mainly composed of two components, namely the hardware and the...