1、1 毕业设计报告毕业设计报告 设计题目设计题目: 帆板控制系统 专业名称:专业名称: 电子信息工程技术 学生班级:学生班级: 学生姓名:学生姓名: 学生学号:学生学号: 指导教师:指导教师: 20122012 年年 4 4 月月 8 8 号号 2 摘要: 本帆板控制系统由单片机 ATMEGA328 作为帆板转角的检测和控制核 心,实现按键对风扇转速的控制、调节风力的大小、改变帆板转角、液晶显示 等功能。引导方式采用角度传感器感知与帆板受风力大小的转角的导引线。通 过 PWM 波控制电机风扇风力的大小使其改变帆板摆动的角度。 风扇控制核心采 用 L298 电机驱动模块, 用 ATMEGA328
2、单片机为控制核心, 产生占空比受数字 PID 算法控制的 PWM 脉冲,实现对直流电机转速的控制,同时利用光电传感器将电机 速度转化成脉冲频率反馈到单片机中,实现转速闭环控制,达到转速无静差调节 的目的。MMA7455 三轴加速传感器把角度输出信号传送给 ATMEGA328 单片机进行 处理。 关键词: ATMEGA328,MMA7455,PWM 波,PID 算法 Abstract: The This windsurfing control system by the microcontroller ATMEGA328 as windsurfing corner detection and c
3、ontrol of the core to achieve the size of the buttons for fan speed control, adjust the wind, changing windsurfing corner , LCD functions. Guide to angle sensor perception and windsurfing by the wind the size of the corner of guides. PWM wave control the size of the motor fan wind to change the the
4、windsurfing swing angle . Core fan control L298 motor driver module, ATMEGA328 microcontroller to control the core, resulting in a duty cycle of the digital PID control algorithm of the PWM pulse of the DC motor speed control, while taking advantage of the photoelectric sensor to the motor speed is converted into a pulse frequency feedback to the MCU, the speed closed-loop control to achieve the speed static error adjustment purposes. The