风板控制装置 c语言程序,风板控制装置(22页)-原创力文档

全国大学生电子设计竞赛

风 帆 控 制 装 置

摘 要

本系统采用STC90C516RD+系列单片机作为控制核心,包括角度传感器、L298N电机驱动模块、液晶显示、独立键盘控制、声光报警等电路模块。单片机以PWM方式控制电机工作。安装在帆板上的SCA100T-D02角度传感器将检测信号传送至单片机,由ADC0809将模拟信号转换为数字信号,计算出偏转角度并显示,同时单片机将采集的角度信号经处理后输出相应的PWM信号,PWM信号经L298N驱动,控制直流轴流风扇转速,达到控制风板角度的目的。测试结果证明,系统运行稳定可靠,可以准确快速地调整运转角度,液晶显示角度准确,声光提示信息齐全,完全达到题目所有规定的基本及发挥部分的要求。

关键词:角度传感器;PWM;STC单片机;L298N电机驱动模块

Abstract

This system adopts STC90C516RD+ series single chip microcomputer as control core, including the Angle sensor, L298N motor driver module, liquid crystal display, keyboard control, sound and light alarm circuit module independently. Single chip microcomputer control motor working in PWM manner. Installed in the panels on the Angle of the sensor will detect signals to single chip microcomputer, from the SCA100T-D02single Angle sensor with AD converter converts analog signals to digital signals, calculate the rotation Angle and show the result, then computer calcute the singal of collecting and outputs the PWM. PWM signal by L298N drive, control dc axial flow fan speed, achieve the goal of controlling wind plate Angle.

Test results proved that the system runs stable and reliable, and can be quickly and accurately adjust running Angle, Angle of LCD display accurate, acousto-optic hint information is complete, fully meet the basic of the requirements in the subject, and exerting requirements.

Keyword:Angle sensor; PWM. On STC microcontroller; L298N motor driver module

PAGE

PAGE 1

PAGE

PAGE 1

PAGE

PAGE 1

目录

TOC \o "1-3" \h \u 2604 1 系统方案 1

5635 1.1 总体设计 1

4906 1.2 单片机控制模块 1

21726 1.3 角度传感器 1

21177 1.4 风板材料的选择 2

1272 1.5 风量控制方式的论证与选择 2

19643 1.6 风扇驱动模块 2

29727 1.7 键盘输入模块 2

29530 1.8 显示模块 2

291 1.9 声光报警模块 3

12873 2 理论分析与计算 3

22660 2.1 角度控制分析 3

7481 2.2 风板控制分析 4

15261 2.3 电源模块设计分析 4

8925 3 系统软件设计 4

19977 3.1 程序流程分析 4

28979 3.2 主程序结构与部分控制代码 6

856 4 系统测试 6

23788 4.1 测试仪器清单和元器件清单 6

22355 4.2 度传感器模块测试与校正 7

27939 参考文献 8

3414 附录一电路原理图 9

30151 附录二 源程序(仅核心部分) 11

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值