毕业设计(论 文)基于单片机的直流电机调速控制系统设计系 别自动化专 业自动化班级学号5060107姓 名李健指导老师刘丽2025 年 6 月 16 日基于 STC 单片机的直流电机调速控制系统设计摘 要当今,直流电动机有较大的起动转矩和过载能力强等优点,因此在许多行业中仍有应用。它广泛应用于数控机床、工业机器人等工厂自动化设备中。随着现代化生产规模的不断扩大,各个行业对直流电机的需求日益增大,为此,改善系统的讨论有着十分重要的意义。本文介绍了一种基于单片机控制的 PWM 直流电机调速系统,以单片机为核心,以小直流电机为控制对象,以 SPGT62C19B 为电机驱动芯片,实现速度单闭环和 PID 控制,测速系统由光栅转盘和光电转换电路构成。调速原理是直流电机由 PWM 信号驱动,控制 PWM 波形占空比等于控制电机端压,从而调节电机转速。结合其它外围电路,该系统实现了包含电机的启停控制、正反转控制、调速控制多种功能。非常方便的是,用矩阵键盘可以输入转速给定值。并在 LED 上实时显示占空比、动态转速和转速设定值.论文详细介绍了硬件设计、软件编程,以及计算机仿真和硬件调试,呈现了程序流程图、Kei1C51 程序以及 Proteus 的仿真结果并给出了实验结果。为了克服常规数字直流调速装置的缺点,引入 fuzzy-PID 复合控制方案和参数模糊自整定控制策略。关键词:STC 单片机,PWM,直流调速,PID 算法The Design of Regulating Speed system of DC MotorBased on STC Single-Chip Microcomputer Author:Li JianTutor:Liu LiAbstractNowadays,DC motor has much merit,such as bigger starting torque and stronger overload capacity etc.Therefore, it is applied widely in many industries.DC motor is widely used on the automatic equipments, such as CNC and industrial robot. As the scale of production becomes larger and larger, the demand and requirements become higher and higher, so the research on improving the DC controlling system behavior has important sense.A PWM speed regulation system of DC motor is introduced in this paper. Taking STC Single Chip Microcomputer as core and the little DC motor as control object, the DC motor drive chip...