基于单片机的电动机正反转控制设计
. .基于单片机的电动机正反转控制设计学生:xxx(指导教师:xxx)(xxxxxx电气信息工程学院)摘要:
基于单片机的基本理论,本文设计了一种步进电机控制系统。
该系统通过软硬件的设计调试,实现步进电机能根据设定的参数进行开关加减速控制,使控制系统以最短的时间到达控制终点,而又不发生失步的现象;
同时它能准确地控制步进电机的正反转,启动和停止。
硬件是以AT89C51单片机为核心的控制电路,主要包括:
开关输入电路、液晶显示电路、步进电机的驱动电路等。
软件部分采用C语言编程,主要包括液晶显示程序、步进电机的正反转即快慢程序等。
通过仿真验证了本文设计系统的实用性能。
关键词:
步进电机控制系统;
调速;
单片机The design of motor control system based on SCMStudent:
Zhou Tianhang(Supervisor:
Liu Yunxia)Electrical and Information Engineering Department of Huainan Normal UniversityAbstract: The basic theory based on SCM. this paper designs a kind of stepping motor control system. The system
goes through the design of software and hardware. Realize the stepper motor can switch the acceleration and deceleration control according to the given parameters which makes the control system in the shortest time to finish and not out of step. At the same time, it can control the reversing the stepper motor accurately, start and stop. The hardware control circuit AT89C51 microcontroller as the core mainly. Include: switch input circuit, LCD displaying circuit, stepper motor drive circuit. The software is programmed by C language. Include: LCD display program and the stepper motor speed program .The practical performance of the design of the system is validated by simulation.Key words: Stepping motor control system; speed control; Single-xxx(指导教师:
xxx)(xxxxxx电气信息工程学院)摘要:
基于单片机的基本理论,本文设计了一种步进电机控制系统。
该系统通过软硬件的设计调试,实现步进电机能根据设定的参数进行开关加减速控制,使控制系统以最短的时间到达控制终点,而又不发生失步的现象;
同时它能准确地控制步进电机的正反转,启动和停止。
硬件是以AT89C51单片机为核心的控制电路,主要包括:
开关输入电路、液晶显示电路、步进电机的驱动电路等。
软件部分采用C语言编程,主要包括液晶显示程序、步进电机的正反转即快慢程序等。
通过仿真验证了本文设计系统的实用性能。
关键词:
步进电机控制系统;
调速;
单片机The design of motor control system based on SCMStudent:
Zhou Tianhang(Supervisor:
Liu Yunxia)Electrical and Information Engineering Department of Huainan Normal UniversityAbstract: The basic theory based on SCM. this paper designs a kind of stepping motor control system. The system goes through the design of software and hardware. Realize the stepper motor can switch the acceleration and deceleration control according to the given parameters which makes the control system in the shortest time to finish and not out of step. At the same time, it can control the reversing the stepper motor accurately, start and stop. The hardware control circuit AT89C51 microcontroller as the core mainly. Include: switch input circuit, LCD displaying circuit, stepper motor drive circuit. The software is programmed by C language. Include: LCD display program and the stepper motor speed program .The practical performance of the design of the system is validated by simulation.Key words: Stepping motor control system; speed control; Single:#include#define uint unsigned int#define uchar unsigned charsbit stop= P0 ;sbit direction=P0 ;sbit speed=P0 ;sbit star= P0 ;long a=155;code
tab[]={0x02,0x06,0x04,0x0C,0x08,0x09,0x01,0x03};code
tab1[]={0x03,0x01,0x09,0x08,0x0C,0x04,0x06,0x02};code uchar a []={0x70,0x6F,0x73,0x69,0x74,0x69,0x67,0x65,
0x20,0x66,0x61,0x73,0x74};//positive fast(正向快速)code uchar a1[]={0x70,0x6F,0x73,0x69,0x74,0x69,0x67,0x65,
0x20,0x73,0x6C,0x6F,0x77};//positive slow(正向慢速)code uchar a2[]={0x72,0x65,0x76,0x65,0x72,0x73,0x65,
0x20,0x66,0x61,0x73,0x74};//reverse fast(反向快速)code uchar a3[]={0x72,0x65,0x76,0x65,0x72,0x73,0x65,
0x20,0x73,0x6C,0x6F,0x77};//reverse slow(反向慢速)void int0()interrupt 0;{a+=100;if(a=65535)a=65534;}void int1()interrupt 2;{a-=100;if(a0)a=0;}void delay(n){long I;for(i=0;i从设计的选题、研究计划的安排到设计的具体过程,刘老师都给予了悉心的指导。
特别在完成初稿之后,刘老师不怕麻烦,在百忙之中抽出时间仔细阅读,并给出修改意见,在此对她表示衷心的感谢!同时感谢淮南师范学院电气与信息工程学院的所有领导和老师对我的学业和成长付出宝贵的时间和辛勤的汗水;
感谢09级自动化1班的同学们在学习、生活上给予我大力的支持和帮助。
在此论文完成之际,我衷心的祝愿你们身体健康,工作顺利!!word教育资料" ;i++)}main(){uchar 达到当天最大量API KEY 超过次数限制。