登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 机械机电类 > 测控技术与仪器 > 正文

液压监测系统的CAN通讯模块软硬件设计毕业论文

 2022-06-06 22:28:33  

论文总字数:30782字

摘 要

近年来随着经济的快速发展,给煤炭工业带来了巨大的发展机遇,但煤矿安全生产的形式依然严峻,如在采矿生产过程中,由于压力作用发生冒顶事故。因此,矿井综采支架上的液压监测系统是煤矿系统各种电气设备中极其重要的组成部分。然而井下环境非常恶略,监控点分散,检测种类多,测量数量大,通讯距离远,并且对实时性和可靠性要求极高,一般通讯方案无法解决,因此,近年来迅速发展的CAN总线技术成为了极佳的选择。

本文所要介绍的内容就是如何利用单片机,结合CAN总线通讯器件设计出一套简易的CAN总线通讯系统,实现将智能传感器测得的井下数据可靠实时的传输给检测人员,为井下安全生产提供可靠依据。首先介绍了CAN总线的背景,意义等,其次介绍了主芯片、CAN通讯的相关原理,然后介绍了硬件和软件的设计过程,包括PCB图,流程图及部分程序等。最后介绍了系统调试的相关内容。并在论文结尾附有主程序、各功能模块子程序。

关键词:煤矿安全 液压监测系统 CAN总线通信 软硬件设计

Design of Hardware and Software of CAN bus on the

Hydraulic monitoring system

Abstract

In recent years, with the rapid development of economy, the coal industry gets enormous opportunities for development. But in terms of coal mine safety production is still severe. Such as the roof fall accidents because of the pressure effect in the process of mining. Therefore, the hydraulic pressure monitoring system of the mine is a very important part of the coal mine system. However, the underground environment is very bad, the monitoring points are scattered, the detection type is various, the measuring number is large, the communication distance is far, and the requirement of real-time and reliability is so high that the general communication scheme is unable to solve. Thus, the CAN bus technology which had a rapid development in recent years has become an excellent choice.

The contents of this paper is to introduce how to use a MCU, combined with CAN bus communication device design a set of simple CAN bus communication system, which in order to transfer down hole pressure data to the testing personnel in real time to provide a reliable basis in the mine safe production. Firstly, the background and significance of CAN communication are introduced. Secondly, we introduce the principle and characters of the MCU and the CAN module. Then the process of hardware circuit design and software design are introduced, including the PCB chart, the procedure flow chart and a part of program. Finally, the contents of the system debug are introduced. And at the end of the thesis there are the main program and each functional module subroutine.

Keywords: Coal mine safety; Hydraulic monitoring system; CAN communication; Hardware and software design;

目录

摘要 I

Abstract II

第一章 绪论 1

1.1引言 1

1.2选题背景以及发展现状 1

1.3选题的目的和意义 2

1.4本文工作内容与结构 2

第二章 CAN总线通讯介绍 4

2.1 现场总线的相关知识 4

2.1.1现场总线的主要特点 4

2.1.2比较有影响的现场总线 4

2.2 CAN总线 5

2.2.1 CAN 总线的通信层介绍 5

2.2.2 CAN报文帧的类型 6

2.2.3 CAN信号的位电平 7

2.2.4 CAN总线特点 7

第三章 CAN通讯模块硬件电路设计 9

3.1 硬件设计平台及PCB绘制 9

3.1.1 开发工具Altium Designer以及原理图绘制 9

3.1.2 硬件PCB图设计与焊接 10

3.2 相关元器件简介 11

3.2.1 STM32F103RC 11

3.2.2 ADM3053 13

3.3 各模块硬件电路设计 14

3.3.1 主芯片电路 14

3.3.2 电源电路 15

3.3.3 复位电路 16

3.3.4 晶振电路 17

3.3.5 CAN总线电路 18

第四章 CAN通讯模块软件设计 19

4.1 软件设计整体流程 19

4.2 CAN驱动程序设计 19

4.2.1 CAN通讯模块配置及初始化 19

4.2.2 CAN通讯接收及发送驱动程序 22

4.3 CAN通讯线程程序设计 24

4.3.1 CAN线程入口 24

4.3.2 CAN通讯回应函数 25

4.3.3 CAN通讯发送函数 27

第五章 系统调试 30

5.1 硬件调试 30

5.2 软件调试 30

5.3 软硬件联合调试结果 30

5.4 调试过程中遇到的问题及解决方法 31

结语 32

参考文献 33

致谢 34

附录1液压监测系统CAN通讯模块硬件原理图及PCB图 35

附录2液压监测系统CAN通讯模块主体程序 37

请支付后下载全文,论文总字数:30782字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图