现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2014年
9期
121-124
,共4页
电磁控制%三轴角度传感器%周期检测%自适应算法
電磁控製%三軸角度傳感器%週期檢測%自適應算法
전자공제%삼축각도전감기%주기검측%자괄응산법
electromagnetic control%three-axis angle sensor%cycle detection%adaptive algorithm
为了利用电磁控制实现摆杆按指定角度和周期运动,采用STC89C52单片机为主控芯片,ADXL345数字式3轴角度传感器实时检测摆杆角度,自适应算法算出摆杆摆动所需的时间,L298N驱动芯片在PWM脉冲信号控制下驱动电磁铁;LCD12864液晶显示屏显示预设参数。测试结果表明,摆动摆角绝对误差≤1°,最大启动响应时间≤9 s;最大停止响应时间≤10 s。
為瞭利用電磁控製實現襬桿按指定角度和週期運動,採用STC89C52單片機為主控芯片,ADXL345數字式3軸角度傳感器實時檢測襬桿角度,自適應算法算齣襬桿襬動所需的時間,L298N驅動芯片在PWM脈遲信號控製下驅動電磁鐵;LCD12864液晶顯示屏顯示預設參數。測試結果錶明,襬動襬角絕對誤差≤1°,最大啟動響應時間≤9 s;最大停止響應時間≤10 s。
위료이용전자공제실현파간안지정각도화주기운동,채용STC89C52단편궤위주공심편,ADXL345수자식3축각도전감기실시검측파간각도,자괄응산법산출파간파동소수적시간,L298N구동심편재PWM맥충신호공제하구동전자철;LCD12864액정현시병현시예설삼수。측시결과표명,파동파각절대오차≤1°,최대계동향응시간≤9 s;최대정지향응시간≤10 s。
In order to move the pendulum rod by electromagnetic control according to the specified angle and period,a mi-crocontroller STC89C52 is used as master chip,a digital three-axis angle sensor ADXL345 is employed to detect the pendulum angle in real time,the adaptive algorithm is adopted to calculate the time required for the pendulum rod's swing,and the driving module L298N is selected to control the solenoid by PWM pulse signal. Furthermore,LCD12864 liquid crystal display is chosen to show the default parameters. The testing results show that the absolute error of the pendulum rod swing angle is ≤1° ,the maximum response time to start is ≤9 s,and maximum response time to stop is ≤10 s.