基于LM3S811单片机的LED点光源跟踪系统的设计
2011-10-13崔鸣,尚丽
崔 鸣,尚 丽
(苏州市职业大学 电子信息工程系,江苏 苏州 215104)
基于LM3S811单片机的LED点光源跟踪系统的设计
崔 鸣,尚 丽
(苏州市职业大学 电子信息工程系,江苏 苏州 215104)
以TI公司的超低功耗MCU LM3S811单片机为核心控制器,设计并制作了一个LED点光源自动跟踪系统.LM3S811计算出位置误差后,采用PI控制算法处理,以驱动减速电机跟踪点光源.经过实际场景测试,当点光源支架沿着圆周和直线缓慢平稳移动限定的角度和距离时,该系统均能使激光笔在左右和上下移动方向上快速、连续地实现LED点光源的跟踪.
LM3S811单片机; LED点光源; 自动跟踪系统; 激光笔
Abstract:LED point source automatic tracking system is designed by using MCU LM3S811 single-chip microcomputer with super low power consumption as the core controller which is produced by TI Company. LM3S811 calculates the position error, which is subsequently handled by PI control algorithm to drive the reduction motor to track the point source. Tests show that the system can make the laser pen move in all directions quickly and continuously to realize the tracking of the point source when the point source moves slowly and smoothly along a circle and straight line in a certain angle and distance.
Key words:LM3S811 single-chip microcomputer; LED point source; automatic tracking system; laser pen
面对未来能源日趋枯竭,如何简单、快速地实现太阳光的自动跟踪,高效率、全方位地利用太阳能是目前需要解决的一个关键问题.对点光源自动跟踪系统进行设计和实验的结果,无疑对太阳光源的自动跟踪实现具有理论和现实意义[1-2].本文将白光LED作为点光源,利用LM3S811单片机作为核心控制器,设计并实现了一个点光源自动跟踪系统.
1 系统设计方案
1.1 点光源跟踪系统设计
设计的点光源跟踪系统如图1所示.图中B是光源,距地面高度约100 cm,采用单只1 W白光LED,电流在150~350 mA范围内调节.支架可以手动方式沿着以A点为圆心、半径为173 cm的圆周在小于±45°的范围内移动,也可以沿直线LM移动.在光源后3 cm距离内,光源中心线垂直平面上设置一直径不小于60 cm暗色纸板.
光源跟踪系统A放置在地面上,通过使用光敏器件检测光照强度判断光源的位置,并以激光笔……
