文档介绍:基于AVR的直流电动机双闭环调速系统
摘要:在各类机电系统中,由于直流电机具有良好的起动、制动和调速性能,直流调速技术已广泛运用于工业领域的各个方面。最常用的直流调速技术是脉宽调制(PWM) 直流调速技术,它具有调速精度高、响应速度快、调速范围宽和耗损低等特点。文中采用AVR 单片机ATmega16 产生PWM信号、L298 驱动、行列式键盘控制及LCD 显示,并采取转速、电流双闭环PID算法对直流电机进行调速控制的直流电机PWM 调速系统。
关键词:AVR;双闭环;PWM;直流电机调速
AVR-based dual-loop DC motor speed regulation system
Abstract: In various mechanical and electrical systems, due to DC motor has a good start, braking and speed control performance of DC drive technology has been widely used in industry, all aspects of the field of aerospace. The monly used technique is pulse-width modulated DC speed (PWM) DC converter technology, which has speed, high precision, fast response, wide speed range and low and the wear and tear. This paper presents a PWM generated by the AVR microcontroller ATmega16 signal, L298-driven, the determinant of the keyboard control and LCD display, and to take speed, the current dual-loop PID algorithm to DC motor speed control of DC motor PWM speed control system.
Keywords: AVR;Double-loop;PWM;DC Motor Speed Control
目录
1 绪论 1
绪论 1
直流电动机简介 1
直流电机工作原理 2
直流电机的励磁 2
他励电机励磁 2
自励电机励磁 3
直流电机的优越性 3
直流电动机应用 4
2 选题背景 4
问题的提出 4
解决方案 4
3 系统总设计方案 5
设计思路 5
方案论证与设计 5
系统控制设计方案论证与选择 5
电机控制电路的设计 6
键盘电路的设计 6
显示电路的设计 6
速度测量电路的设计 6
电流检测电路设计 6
系统组成: 6
ATMEGA控制电路 7
电源及ISP 8
主要电路单元的设计 8
L298 驱动接口 8
. 控制逻辑 9
. L298原理图 10
显示电路设计 10
. 液晶模块接线图 10
. 1062接口说明 11
. 基本操作时序 11
键盘电路设计 11
. 行列式键盘电路 11
. 按键抖动 12
. 去抖方法 12
电机测速电路设计 12
光电编码器的工作原理: 13
. 绝对式编码器 13
. 增量式编码器 14
. 转速转向信号处理 14
电枢电流测量 15
. 测量方法 15
. AVR数模转换特点 15
4 系统软件设计与实现 16
PWM软件设计 18
产生PWM信号4种方法 18
AVR单片机输出PWM的程序 19
转向与速度检测 19
测速原理 19
脉冲数字(P/D)转换方法 20
M/T法测速软件设计 20
M/T 法数字测速软件图 21
转向的判断 23
电流检测原理 23