摘要
设计了一种以STC12C5A60S2单片机为核心的高精度超声波测距仪,采用超声波传感器HC-SR04为测距元件、LCD1602液晶屏为显示器件、蜂鸣器和红光LED为报警器。超声波传感器HC-SR04将采集的数据通过信号线传送给单片机,利用MATLAB进行数据拟合,提高了测量精度,然后通过LCD1602液晶屏实时显示。该设计与未加数据修正的传统超声波测距仪相比较,测量精度大为改善,具有一定的应用价值。
The design is about a kind of high-precision ultrasonic range finder which is centered on STC12C5A60S2 MCU. It adopt HC-SR04 ultrasonic wave sensor as distance measuring component, LCD1602 act as display device, buzzer and red LED for the alarm. The HC-SR0d transmit the collected data through the signal line to MCU and the data is fitted through MATLAB so that the measurement accuracy is greatly improved. And then all the things will be shown timely via LCD1602. Compared with the traditional ultrasonic range finder, this design greatly improves the accuracy of measurement, has certain applicational value.
出处
《自动化与仪器仪表》
2017年第1期62-63,66,共3页
Automation & Instrumentation