自行车租车系统的桩机控制系统设计毕业论文
2021-03-18 21:27:01
摘 要
在国民经济水平不断发展提高的当今,机动车的数量在急速增加,交通状况变得越来越拥堵,并且机动车产生的污染也日益严重。在这种情况下,旨于疏导交通状况,减轻污染的公共交通系统越来越被重视,并且得到发展。公共自行车是公共交通重要的构成部分,在如今得到了广泛的发展和应用。公共自行车全称是公共自行车租赁系统,桩机系统是其中的重要组成部分,其基本功能是识别用户卡和与节点机进行通讯。目前国内运营的公共自行车租赁系统的桩机系统是以有线的形式与节点机系统进行通讯,本文设计的是基于Zigbee的无线通讯结构,与节点机进行通讯的桩机系统,由RIDF读卡器读取和写入信息,简化自行车租赁系统布线问题的同时加快还车的速率,使维护系统和还车更加方便。
首先,本文详尽地描述了自行车租赁系统在国内外的应用情况,介绍了几个典型的自行车租赁系统构架。在对系统运行流程,租环车过程进行了阐述与分析后,提出了桩机系统的功能需求。根据桩机系统的功能需求,提出了待选取的关键技术。经由分析和比较了几个自动识别技术和无线网络通信技术之后,选择了射频识别技术作为读卡识别方案,Zigbee无线通讯技术作为桩机与节点机的通信方案,以此构建了桩机系统的整体结构。
随后,根据所选技术方案和系统功能需求,本文设计了整个桩机系统的硬件电路。本系统的硬件电路主要包括以单片机为主控核心的控制系统、RFID模块硬件电路、Zigbee终端节点模块硬件电路,还有电源电路和锁头电机电路设计。
接着,以硬件电路为基础,本文介绍了各模块工作的流程,并完成了RFID读卡器的底层软件设计和Zigbee通讯模块组网协议的指定,并编写了控制系统相应的控制程序。
最后,在完成各模块软硬件设计的基础上,对各模块进行调试,在没有错误后,进行了系统组装与功能测试,完成了系统的运行和功能的完成。
关键词:公共自行车,桩机,RFID,Zigbee
Abstract
With the rapid development of the national economy, the number of motor vehicles has increased rapidly, the traffic situation has become increasingly congested, and the pollution caused by motor vehicles has become increasingly serious. In this case, public transport systems designed to relieve traffic conditions and reduce pollution are becoming more and more important and developed. Public bicycles are an important part of public transport and are now widely developed and applied. Public bicycle full name is the public bicycle rental system, pile machine system is one of the important components, its basic function is to identify the user card and communication with the node machine. At present, the domestic bicycle bus system is based on the cable communication system. It is designed based on Zigbee's wireless communication structure. It is a pile machine system which communicates with the node machine. It is composed of RIDF card reader Read and write information to simplify the cabling system cabling problems at the same time to speed up the speed of the car, so that maintenance systems and car more convenient.
First of all, this article describes in detail the application of bicycle rental system at home and abroad, introduced several typical bicycle rental system architecture. After the process of system operation and the process of rental car, the functional requirements of pile driver system are put forward. According to the functional requirements of the pile driver system, the key technology to be selected is put forward. After analyzing and comparing several automatic identification technology and wireless network communication technology, the radio frequency identification technology is selected as the card reader recognition scheme, and the Zigbee wireless communication technology is used as the communication scheme between the pile driver and the node machine. the whole frame.
Then, according to the selected technical scheme and system function requirements, this paper designs the hardware circuit of the whole pile driver system. The hardware circuit of the system mainly includes the control system of the core of the MCU as the main control, the hardware circuit of the RFID module, the hardware circuit of the Zigbee terminal module, and the design of the power circuit and the lock motor.
Then, based on the hardware circuit, this paper introduces the process of each module work, and completed the RFID reader's underlying software design and Zigbee communication module networking protocol design, and the preparation of the control system corresponding control program.
Finally, on the basis of the hardware and software design of each module, the modules are debugged. After the error, the system is assembled and tested, and the operation and function of the system are completed.
Keywords: public bike, pile driver, RFID, zigbee
目 录
摘 要 I
Abstract II
目 录 IV
第1章 绪论 1
1.1课题背景及研究意义 1
1.2 国内外研究现状 2
1.2.1 国外公共自行车研究现状 2
1.2.2 国内公共自行车研究现状 3
1.3 研究的主要内容及章节结构 4
第2章 系统整体设计方案与关键技术的设计 6
2.1 桩机系统的功能需求 6
2.2 桩机系统关键技术设计方案 6
2.2.1 读卡器的自动识别技术 6
2.2.2 桩机与节点机间的通讯技术 8
2.3 桩机系统整体结构 9
2.4 本章小结 9
第3章 桩机系统硬件电路设计 10
3.1 桩机系统主控电路设计 10
3.2 RFID射频读卡器电路设计 11
3.2.1 RFID射频读卡模块电路设计 11
3.2.2 RFID射频模块与单片机连接电路 13
3.3 Zigbee通讯节点电路设计 14
3.3.1 Zigbee通讯模块电路设计 14
3.3.2 Zigbee通讯模块与单片机连接电路 16
3.4 本章小结 16
第4章 桩机系统软件设计 17
4.1 控制系统软件设计 17
4.2 RFID读卡器软件设计 18
4.3 Zigbee通讯模块软件设计 19
4.3.1 Zigbee组网协议 19
4.3.2 Zigbee组网方案 20
4.3.3 Zigbee终端节点设计 21
4.4 本章小结 22
第5章 系统组装与功能测试 23
5.1 桩机系统组装 23
5.2 读卡功能测试 23
5.3 Zigbee通讯测试 24
5.4 本章小结 26
第6章 总结 27
参考文献 28
致 谢 29
附录A Zigbee通讯模块硬件电路图 30
附录B 部分单片机控制程序 32
第1章 绪论
1.1课题背景及研究意义
随着社会科技与经济的发展进步,私家车已经从以前的奢侈品变成了大众消费品。私家车的发展在很大程度上方便了人们出行和交流,但私家车数量迅速增长,使这种方便转化成了人们的困扰。能源短缺,环境污染,交通拥堵,嘈杂噪音,车位难求,这些问题都与私家车数量太多有着密切的相关。尽管修大路,造立交,研发节能减排车的项目都在不断进行,这些时时刻刻发生在我们身边的问题还是没有得到很好的解决。
公共交通的发展,已被认为是缓解上述问题的有效方法。当今的公共交通系统主要由公共汽车和公共轨道交通(轻轨、地铁、城际快车等)两部分组成。例如武汉的地铁建设,已经为交通疏导了大部分人流,据统计,武汉城市轨道交通线网运客量已经达到300万乘次,然而武汉的交通状况仍然不容乐观,存在着严重拥堵的问题,如图1-1。