摘要
采用重力加速度传感器及线性电阻角度传感器来检测摆动时平板及摆杆角度的变化,利用拨码开关可控制预设功能,单片机根据摆杆与重垂线之间的摆角计算出平板的旋转方向及角度,从而控制步进电机实现对平板运动状态的精确控制,很好地实现了硬币在摆杆摆动过程中保持稳定叠放状态及激光笔对靶纸预设位置的动态跟踪照射等设计功能。
This design mainly adopts gravity acceleration sensor and linear resistance angle sensor to detect the change of plat- form and oscillating bar. Utilizing can control the preset function of dip switch, according to the angle between oscillating bar and gravity line, the single-chip microcomputer will compute the rotary direction and angle of platform. Thus, it can make stepper mo- tor precisely control the state of motion of platform. It also make the functions of the coin remaining the state of stacked stable when oscillating bar is swaying and the trend of the site where the laser pen is towards the preset position of target sheet.
出处
《微型机与应用》
2012年第18期72-74,共3页
Microcomputer & Its Applications
关键词
重力加速度传感器
角度传感器
单片机
控制
gravity acceleration sensor
angle sensor
single-chip microcomputer
control