基 于 AVR的 直 流 电 动 机 双 闭 环 调 速 系 统摘 要在各类机电系统中, 由于直流电机具有良好的起动、制动和调速性能, 直流调速技术已广泛运用于工业领域的各个方面。最常用的直流调速技术是脉宽调制(PWM) 直流调速技术, 它具有调速精度高、响应速度快、调速范围宽和耗损低等特点。文中采用AVR 单片机ATmega16 产生PWM 信号、L298 驱动、行列式键盘控制及LCD 显示,并采取转速、电流双闭环PID 算法对直流电机进行调速控制的直流电机PWM 调速系统。关键词:AVR ,双闭环,PWM ,直流电机调速AVR-based dual-loop DC motor speed regulation systemABSTRACTIn 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 most commonly 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.KEY WORDS: AVR,Double-loop ,PWM ,DC Motor Speed Control目 录1 绪论............................................................................11.1 绪论......................................................................11.2 直流电动机简介............................................................11.3 直流电机工作原理..........................................................21.4 直流电机的励磁............................................................21.4.1 他励电机励磁........................................................21.4.2 自励电机励磁........................................................31.5 直流电机的优越性...............