J4 ›› 2012, Vol. 30 ›› Issue (1): 95-99.

Previous Articles     Next Articles

Stick Length Measurement System Based on Freescale Microcontroller

YAN Dong-mei1,KANG Bing2,WANG You-wei1   

  1. 1.Center of Network &|Educational Technology, Jilin University, Changchun 130062,China;2.College of Communication Engineering, Jilin University, Changchun 130023|China
  • Received:2011-08-11 Online:2012-01-29 Published:2012-03-20

Abstract:

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 microcontroller 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%.

Key words: freescale microcontroller, direct current motor, infrared device, timer

CLC Number: 

  • TG156