1、 1 摘 要 在日常生产生活中,很多场合如汽车倒车、机器人避障、工业测井、水库液位测量 等需要自动进行非接触测距。超声波是指频率大于 20 kHz 的在弹性介质中产生的机械 震荡波,其具有指向性强、能量消耗缓慢、传播距离相对较远等特点,因此常被用于非 接触测距。由于超声波对光线、色彩和电磁场不敏感,因此超声波测距对环境有较好的 适应能力,此外超声波测量在实时、精度、价格也能得到很好的折衷。 为此,尝试以单片机 AT89S51 为核心,利用 CXA20106A 超声波芯片设计一款体积 较小、价格低廉、精度较高、具有温度补偿、实时 LCD 显示和报警的超声波测距仪。 关键词:关键词:单片机;单片机
2、;超声波超声波;C C 语言语言 1 Ultrasonic ranging systemAbstract Abstract In daily life, many occasions such as car backing up, robot obstacle avoidance, industrial logging, reservoir level measurement and need to be automatic no contact ranging. Ultrasonic is to point to more than 20 kHz frequency in the elast
3、ic medium produced in mechanical shock waves, it has the directionality of strong, energy consumption is relatively slow, the transmission distance far and other characteristics, so is often used to non-contact ranging. Due to the light, colour and ultrasonic not sensitive electromagnetic field, so
4、the ultrasonic ranging to environment has good adaptability, in addition the ultrasonic measure in real time, the precision and the price to also can get a good compromise. Therefore, this paper try to monolithic integrated circuit AT89S52 as the core, use CXA20106A ultrasound sensor design a small size, low cost, high accuracy, temperature compensation, with real-time LCD display and alarm of ultrasonic ranger. Key Words:LCD; Single-chip microcomputer ; Ultrasonic ranging systemAbstract;