文档介绍:基于AVR单片机的红外遥控电机调速器设计
摘要
本文主要介绍了基于AVR单片机的红外遥控电机调速器设计。主要内容为硬件电路的设计和软件程序的设计。主要实现的功能是:当分别按下加速、减速和停止按键时,电机相应加速、减速、停止,同时LCD显示屏上显示电机速度。
此模块是基于AVR单片机的,CPU利用率高且执行速度快,支持程序的JTAG在线编程,给设计带来了极大的方便。该模块的硬件开发工具是Protues,开发平台采用的是Atmel公司的ATmega16单片机。本次设计软件方面主要使用的开发工具是WINAVR,所使用的编程语言是C语言。完成本次设计需要掌握ATmega16单片机的相关知识与实际应用,单片机外围电路的设计等。
该驱动程序能够正常运行,运行结果正确,证明设计思路正确。
关键词: 红外遥控;Protues;电机调速;ATmega16单片机
Abstract
This article mainly introduced the infrared remote control motor speed controller design based on AVR single- main content of the article is the design of hardware circuit and software function is:when press the acceleration,deceleration and stop button,the corresponding motor speed up or slow down or stop,and at the same time,the LCD displays the motor speed.
This module is based on the single chip puter AVR, CPU utilization high and execution speed, supports the program JTAG online programming, brings great convenience to the design. This module hardware development tools is Protues, development platform is the ATmega16 microcontroller which is produced by design software development tools is the main use WINAVR, the programming language is C language. In order plete the design, ATmega16 related knowledge and practical application, the design of the single chip puter buffer circuit and so on.
The driver can run normally, the operation results are right, design ideas turned out to be right.
Keywords: Infrared remote control; Protues; Motor speed control; ATmega16 single-chip
processor
目录
1 绪论 1
红外无线通信技术的现状 1
红外无线通信基本原理 1
红外收发器 1
红外控制器 2
通信协议 2
研究与应用现状 2
AVR单片机的发展过程及现状 3
发展过程 3
AVR单片机的现状 3
AVR单片机的优点 4
AVR单片机的型号标识解释 5
AVR 8-Bit MCU的最大特点 5
本论文的结构 6
2 系统整体设计 7
系统框图 7
硬件开发工具 7
Protues简介 7
Protues新特点 8
软件开发工具 9
WINAVR的安装 9
AVR Studio的安装 10
AVR Studio的部分菜单功能介绍 10
3 仿真硬件电路设计 12
CPU选型 12
ATme