摘要
为解决工业生产中长度测量的问题,设计了基于飞思卡尔单片机的木棒长度测量系统。该系统以飞思卡尔单片机为核心控制器,利用匀速转动的直流电机带动履带,履带两侧等距离放置三组红外发射与接收管。将木棒放在履带上,当木棒通过红外对管时利用飞思卡尔单片机的内部计时器计时,得出木棒的移动时间,从而算出木棒的长度,并用1602显示屏显示出木棒的长度。通过实验验证,该系统的测量误差小于0.05%。
In order to solve the problem of the length measurement in industrial settings ,we designed a system measuring the stick length based on freescale microcontroller. This system used a freescale mi- crocontroller as the key controller. There is a track driven by a DC (Direct Current) motor which is turning with a constant speed. We placed three groups infrared transmitting and receiving devices whose distance was equal on both sides of the track. Place the stick on the track and the internal timer began to countime when the stick crossed the infrared device. Then we can get the moving time of the stick and obtaining the length of the stick. Finally, we used a 1602 monitor to display the length of the stick. Through the experiment , the measurement error of this system was less than 0.05%.
出处
《吉林大学学报(信息科学版)》
CAS
2012年第1期95-99,共5页
Journal of Jilin University(Information Science Edition)
关键词
飞思卡尔单片机
直流电机
红外对管
计时器
freescale mierocontroller
direct current motor
infrared device
timer