摘要
本文设计了一种基于MATLAB GUI和AVR单片机的直流电机调速系统,利用MATLAB的serial设备控制箱作为上位机,根据不同的指令产生不同的PWM信号用以驱动L298N芯片,使MCU实现控制直流电机的启停、加减速、正反转等功能.同时在上位机实现电机转速的波形实时显示.从仿真结果看,本设计系统运行良好,人机交互性强,操作方便简单,对自动控制和电机拖动方面具有一定的实际意义.
A DC motor speed regulation system based on MATLAB GUI and AVR SCM(single chip microcomputer) is designed in this paper.The serial device control box of MATLAB is used as the upper computer,and different PWM signals are produced to drive the L298 N chip according to the different instructions,so that the lower computer can control the functions of starting,stopping,accelerating,decelerating, reversing and reversing the DC motor.At the same time,the waveform of motor speed is displayed in real time.From the simulation results,the design system is running well,human-machine interaction is strong,operational work is convenient and simple.It has practical significance for automatic control and motor drive.
作者
魏肇辉
李锐城
何湘艳
WEI Zhaohui;LI Ruicheng;HE Xiangyan(School of Electronic Information and Electrical Engineering,XiangNan University,Chenzhou 423000,China)
出处
《湘南学院学报》
2019年第2期115-118,共4页
Journal of Xiangnan University
基金
湘南学院大学生研究性学习和创新性实验计划项目(湘南学院校发[2017]34号NO29)
湘南学院实验室开放项目(湘南学院校发[2018]11号NO37)