基于单片机出租车计价器的设计与制作

 2022-12-31 10:12

论文总字数:26971字

摘 要

本课题采用软件与硬件相连接的方式,设计出性能杰出可靠、电路简单便捷、成本廉价等特点的出租车计价器。以单片机STC89C52RC为核心控制模块,辅以晶振电路、按键电路、复位电路等来实现本课题。其中时钟电路采纳常规的12MHz的晶振来作为系统的时钟源,准确性高;复位电路的设计则是为了在正常初始化出现问题时可以摆脱困境,重启电路;按键电路设置了四个按键(菜单、设置 、设置-、退出)和两个开关(往返双程、计费),操作简单明了,十分简单。

本课题采用LCD1602液晶显示屏作为其显示模块,上电后显示速度、里程、等待时间和起步价格;同时本课题利用直流电机模拟出租车运行情况,利用霍尔传感器A44E发出的脉冲个数来测速,并通过相应的计算公式来计算出里程数及相应的价钱。本课题能较好的模拟出租车实际运行状况,并成功计价。

关键词:STC89C52RC ;霍尔传感器A44E;出租车计价器

Abstract

This topic uses the software and the hardware connection way, the design performance is good and reliable, the circuit is simple and convenient, the cost is cheap and so on the characteristic of the taxi meter. Based on STC89C52RC microcontroller as the core control module, and a crystal oscillator circuit, keyboard circuit, reset circuit to realize the subject. The clock circuit adopt conventional 12Mhz crystal oscillator as the system clock source, high accuracy; reset circuit design is to problems occurred in normal initialization can get rid of the dilemma, restart circuit; key circuit set up four buttons (menus, settings , settings - and exit) and two switch (round-trip, accounting), simple operation is very simple.

This topic uses LCD1602 LCD as the display module, power display speed, mileage, waiting time and starting price; at the same time the subject using DC motor to simulate the operation of taxi, by using a44e Hall sensor to generate pulse number measurement, and through the corresponding calculation formula to calculate the mileage and the corresponding price.

Key words: STC89C52RC; Holzer sensor A44E; taxi meter

目 录

摘 要 I

Abstract II

目 录 III

第一章 引 言 1

1.1 论文研究的背景和意义 1

1.2 论文研究的内容 1

1.3 国内外出租车计价器的研究现状 1

1.4 国内外出租车计价器的发展趋势 1

第二章 系统设计...................................................................................................................................................2

2.1 系统的总体设计方案 2

2.2 系统的工作原理 2

2.3 系统所需设备及其软件 3

第三章 硬件设计 4

3.1 主控芯片 4

3.2 LCD1602显示模块 6

3.2.2 显示模块采用1602液晶显示接口电路 7

3.2.3 常用控制指令 7

3.3 振荡电路设计 8

3.4 复位电路设计 9

3.5 键盘接口电路 9

3.6 AT24C02掉电存储电路设计 10

3.6.1 AT24C02芯片引脚配置 10

3.6.2 AT24C02掉电存储单元的设计 11

3.7 里程计算、计价单元的设计 11

3.8 电源电路的设计 13

第四章 系统软件设计 14

4.1中断子函数 14

4.2 判键子函数 15

4.3 显示子程序 15

4.4 计价子程序流程图 16

4.5 总程序流程图 17

4.6 程序仿真 18

4.6.1 Proteus 软件介绍 18

4.6.2 Keil软件介绍 18

4.6.3 利用Proteus与Keil进行调试与仿真 18

4.6.4 proteus仿真截图 18

第五章 实物调试与结论 21

5.1 实物调试 21

5.1.1 实物图 21

5.1.2 调试中遇到的问题及解决方案 21

5.2结论 22

致 谢..................................................................................................................................................................23

参考文献..............................................................................................................................................................24

附 录..................................................................................................................................................................25

第一章 引 言

1.1 论文研究的背景和意义

出租车计价器,顾名思义,就是应用在出租车上,用来计量价钱的一种工具,是出租车司机与乘客公平交易的基准。因此,出租车计价器计价是否准确合理,直接关系到消费者与劳动者的合法利益。随着城市交通的飞速发展,人们选择出租车出行也已经是常态,在此背景下,出租车计价器的需求也越来越高,其功能也愈发强大。所以一个性能良好功能强大的出租车计价器对于出租车来说是必不可少的。随着科技的快速发展,单片机技术也愈发成熟。以单片机为核心构建一个性能优良,功能完善可靠的出租车计价器的需求也越来越迫切。

剩余内容已隐藏,请支付后下载全文,论文总字数:26971字

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

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;