基于单片机出租车多功能计价器设计 姜美芹

上传人:小** 文档编号:39813685 上传时间:2018-05-20 格式:DOC 页数:63 大小:800.54KB
返回 下载 相关 举报
基于单片机出租车多功能计价器设计 姜美芹_第1页
第1页 / 共63页
基于单片机出租车多功能计价器设计 姜美芹_第2页
第2页 / 共63页
基于单片机出租车多功能计价器设计 姜美芹_第3页
第3页 / 共63页
基于单片机出租车多功能计价器设计 姜美芹_第4页
第4页 / 共63页
基于单片机出租车多功能计价器设计 姜美芹_第5页
第5页 / 共63页
点击查看更多>>
资源描述

《基于单片机出租车多功能计价器设计 姜美芹》由会员分享,可在线阅读,更多相关《基于单片机出租车多功能计价器设计 姜美芹(63页珍藏版)》请在金锄头文库上搜索。

1、大连理工大学城市学院本科生毕业设计(论文)学 院:电子与自动化学院专 业:自动化 学 生: 姜美芹 指导教师:刁立强 完成日期:2013年6月6日 大连理工大学城市学院本科生毕业设计(论文)题目基于单片机出租车多功能计价器设计总计 毕业设计(论文)32 页表格 6 表插图 26 幅I摘 要随着社会的高度发展,出租车已经成为人们日常生活中必不可少的代步工具,但由于各个地方的生活水平不同,导致物价存在一定的差异,因此出租车的计费标准也不尽相同。这就要求我们设计出简易化、智能化、计价精确、可移植、可靠性高的出租车计价器。本次设计利用软件设计和硬件设计相结合,设计出具有性能可靠、电路简单、成本低等特点

2、的多功能计价器。由单片机AT89C51控制,使用12MHz 晶振提供时钟信号,利用装在车轮上的霍尔传感器A44E发出的脉冲个数来测速,因为本设计涉及到白天和黑夜的转换,通过AT24C02实现白天和黑夜单价的修改和存储,从而实现白天和黑夜不同的计费标准。另外AT24C02中的数据是不可随意更改的,具有防作弊的效果。通过C语言编程实现记时、里程检测、费用计算,同时通过LED数码管将里从而达到计费的目的。最后将总车费和总金额很直观的在LED数码管中显示出来,达到计价器计价收费的目的。而且,本次设计还通过DS1302,可以在不计价的情况下作为时钟显示时、分、秒,使驾驶员了解实时时间。系统包括控制模块、

3、里程传感模块、掉电保护模块、独立键盘电路、电源电路、时钟显示模块部分。该系统设有五个按键(清除、查询/确认、停止、白天/黑夜、功能选择),进行相应的操作就可实现单程/往返模式选择、停止计费、等待时间查询、清除复位等功能,使操作简单方便。关键词:单片机; 霍尔传感器 A44E; LED 数码管;DS1302IIAbstractWith the high degree of social development, the taxi has become an everyday essential means of transport, but because of the different le

4、vels of each of the local life, causing prices there are some differences, so taxis are not the same accounting standards. This requires us to design a simple, intelligent, accurate pricing, portable, high reliability taxi meter.The design of the software and hardware design using the combination of

5、 design with reliable performance, the circuit is simple and low cost multifunction meter. Controlled by the microcontroller AT89C51 using 12MHz crystal oscillator provides the clock signal, the use of a wheel mounted on the Hall sensor A44E number of pulses sent to the gun, as the design involves t

6、he conversion of the day and night, night and day to achieve through AT24C02 price changes and storage, day and night in order to achieve different billing standards. The data in another AT24C02 can not be changed, with the effect of anti-cheating. Through the C programming language in mind, the mil

7、eage testing, cost calculations, while the inside through the LED digital tube so as to achieve the purpose of billing. Finally, the total amount of the total fare and very intuitive in the LED digital tube display, to achieve the purpose of the meter valuation fees. Moreover, this design also adopt

8、ed DS1302, can not denominated in the case as the clock displays hours, minutes, seconds, the driver understand real-time. System comprises a control module, mileage sensing module, power protection module, separate keyboard circuit, power circuit, the clock display module section. The system has fi

9、ve buttons (Clear, check / confirm, stop, day / night function selection), the appropriate action can be achieved one way / return IIImode selection, stop charging, waiting time queries, clear Reset function. make operation simple and convenient.Keywords: microcontroller; hall sensor A44E; LED digit

10、al tube; DS1302目录第一章 引言.11.1 出租车简介.11.1.1 出租车计价器概述 .11.1.2 出租车计价器的工作原理 .1 1.2 单片机简介.21.2.1 单片机的基础知识 .21.2.2 单片机的发展历史、趋势及应用 .21.2.3 MCS-51 单片机的应用特性.3 1.3 设计目的及要求.41.3.1 设计任务 .41.3.2 设计要求.41.3.3 系统主要功能 .5 第二章 计价器硬件设计.62.1.出租车计价器方案论证 .62.2 系统的硬件构成及功能 .82.3 AT89C51 单片机及其引脚说明.82.4 AT24C02 掉电存储电路设计.112.5

11、里程计算、计价单元的设计.132.6 电源电路设计.152.7 独立键盘电路设计.162.8 指示灯电路设计.162.9 数码管显示电路设计.172.10 DS1302 时钟电路设计.20 第三章 系统的软件设计.233.1 系统主程序设计 .233.2 定时中断服务程序 .243.3 里程计数中断服务程序 .253.4 中途等待程序 .273.5 键盘扫描子程序 .283.6 计算程序.30 结束语.32 致谢.33 参考文献.34 附录 多功能计价器程序设计.35 设计原理图.55基于单片机出租车多功能计价器设计1第一章 引言本次毕业设计利用单片机知识作为理论支撑来实现一台多功能出租车计价

12、器设计,使之具有性能可靠、电路简单、成本低、使用方便等特点。1.1 出租车简介1.1.1 出租车计价器概述计价器显示的总金额是总里程与不同情况下的单价(白天、黑夜、中途等待)的函数。出租车计价器通过里程传感器与车轮连接。出租汽车的实际里程通过传感器的脉冲信号在计价器里按照设定的函数转换成一定的总里程。出租车计价器功能主要有具有数据的复位功能、白天/黑夜转换功能、数据输出功能、计时计价功能等等,在原有功能的基础上增加单价输出、单价调整、路程输出、显示当前的系统时间等功能。1.1.2 出租车计价器的工作原理当汽车运行起来时,就启动计价,根据里程寄存器中的内容计算和判断行驶里程是否已超过起步价公里数。若已超过,则根据里程值、每公里的单价数和起步价数来计算出当前的总金额,并将结果存于总金额寄存器中;中途等待时,无脉冲输入,不产生中断,当时间超过等待设定值时,开始

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 经营企划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号