学士学位论文基于自由摆的平板控制系统设计姓名: 颜芳学号: 200905120342 指导教师: 李爱云院系( 部所): 光电工程学院专业: 电子信息工程完成日期: 20 13年 05月 15日学士学位论文基于自由摆的平板控制系统设计姓名: 颜芳学号: 200905120342 指导教师: 李爱云院系( 部所): 光电工程学院专业: 电子信息工程完成日期: 20 13年 05月 15日摘要本系统是 STC12C5A60S2 基于单片机为控制核心的平板控制系统。通过单片机对 MMA7455 倾角传感器数据采集与处理,控制 L298N 电机驱动,调整 57BY G 步进电机的转动,实现平板跟随自由摆的摆动而周期性旋转,可以通过控制平板运动使 8枚叠放硬币在自由摆运动过程中静止。在实现平板控制系统基本功能的同时,利用 MMA7455 倾角传感器实时检测自由摆摆动的角度,运用查表法实现激光笔照射中心线的功能。在以上功能实现的同时使用 TFT 彩色液晶屏显示 MMA7455 倾角传感器的三轴变化情况,采用触摸键盘替代按键进行功能设定与选择, 充分的体现了本系统的协调性与实用性。关键词:STC12C5A60S2E ;57BYG ;MMA7455 ;TFT 触摸屏 Abstract The flat control system is based on the single chip STC12C5A60S2 as control core. Through to MMA7455 inclination angle sensor data changeacquisition and processing, controls the L298N motor-driven to realize 57BYGto stepper motor's angle adjustment, achieve the flat periodic rotating with thewaver of free- pendulum. Through control the flat movement to prevent 8 piecescoins movement when the free pendulum motor processing. While realizes the flat control system basic function , use the MMA7455 inclination angle sensor detect the angle of the free-swinging pendulum, and use table look-up method realize the function of the laser pen illuminating the center line. Realizing the function of the above at the same time, demonstrates the MMA7455 inclination angle sensor's three axis change situation through the TFT colored touching liquid crystal module. Use touch-screen substitution pressed key carry on the different function settings and the choice and fully embodies the coordination and practical of the system in the end. Keyword : STC12C5A60S2, 57BYG, MMA7455, TFT torch screen 目录第 1章绪论................................................................................................................... 1 第2章系统方案论证与比较....................................................................................... 2 基本要求....................................................................................................... 2 论证与比较................