资源预览内容
第1页 / 共19页
第2页 / 共19页
第3页 / 共19页
第4页 / 共19页
第5页 / 共19页
第6页 / 共19页
第7页 / 共19页
第8页 / 共19页
第9页 / 共19页
第10页 / 共19页
亲,该文档总共19页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
井冈山大学课程:电子测量系别:电子工程系班级:08 电信本(1)姓名:李俊剑学号:80514055教师:刘宇安桂林电子科技大学实训说明书用纸1基于 lcd 显示器控制电路设计摘 要本文将主要介绍远程步进电机控制与状态显示器系统的设计及相关功能,系统由一个主机和两个从机三大部分组成,主从机主控芯片都是 AT89S52 单片机。系统可实现的功能是主机能够对从机发出控制命令包括步进电机转速值的设定、角度值的设定,同时将在从机采集到的步进电机实时速度在显示器上显示和实现智能控制。主机和从机之间的通信采用的是半双工串行通信方式,串行通信接口采用的是 MAX485 接口,通过 RS-485 接口标准协议实现主从机之间的通信。显示部分采用的是具有较好人机界面的 TG12864LCD 显示,步进电机驱动器采用 NPN 型的 TIP122 达林顿管,速度的测量通过光电传感器 MOC70T2 实现,系统的干扰隔离通过电隔离器 TLP521-4 实现。关键字:智能控制;串行通信;LCD 显示;隔离干扰桂林电子科技大学实训说明书用纸2AbstractThis article will focus on remote stepper motor control and status display system design and related functions, the system consists of a master and two slaves three major components, both master and slave control chip AT89S52 microcontroller. System can realize the function of the host to control commands issued from the machine, including the value of the stepper motor speed setting, the setting angle value, while collected from the machine speed stepper motor display real-time display and intelligent control. Between master and slave half-duplex communication is used in serial communication, serial communication interface uses a MAX485 interface, through the RS-485 interface standard protocol for communication between master and slave. Show some use is a good man-machine interface TG12864LCD shows, stepping motor drive type with NPN TIP122 Darlington, speed measurement by optical sensors MOC70T2 achieved through the electrical system interference isolation isolator TLP521-4 implementation.Keywords: intelligent control; serial communication; LCD display; isolation interference桂林电子科技大学实训说明书用纸1目 录引言 .11 核心部件介绍.11.1 89C51 单片机简介 .11.2 总线驱动芯片 MAX485.11.3 光电传感器 MOC70T2.21.4 LCD 液晶显示屏 TG12864.22 基本原理的分析 .32.1 步进电机的结构与调速原理 .32.1.1 步进电机的结构.32.1.2 步进电机的调速原理.32.2 MAX485 通信原理 .42.3 MOC70T2 传感器测电机转速工作原理 .53 硬件电路设计.53.1 主从通信部分 .53.2 传感器测速部分 .63.3 步进电机控制部分 .74 程序设计 .84.1 程序设计流程图 .84.2 串口通信波特率设置 .84.3 MAX485 通讯接收程序 .95 系统调试 .105.1 静态调试 .115.2 动态测试 .116 实训总结 .12谢 辞 .14参考文献 .15附录 1 系统原理图.16附录 2 PCB 板图 .
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号