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

基于单片机的出租车计价器设计(任务书,开题报告,外文翻译,论文12000字)
摘要
本设计以单片机为核心设计一种出租车计费系统,选用51系列单片机配合红外传感器,实现基本的出租车计费系统功能。整个系统由STC89C52单片机、LCD12864液晶显示模块、红外传感器(测转速)、DS1302系统实时时钟模块、串口通讯模块组成。
本设计模拟的出租车计价器具有里程显示功能,可以预先设置起步价和起步里程数;启动后,开始计价,按照从上车到下车的全程收费,具有启动和复位功能。由于采用了单片机进行设计,可以用简约的硬件和恰当的软件互相配合,以实现设计要求。整个设计具有高度的灵活性,通过软件编程,能够附加更多的拓展功能,发展前景非常广阔。
关键词:STC89C52 计价器 红外传感器
The design of taxi-meter based on micro-controller
Abstract
This design use the micro-controller circuit as the center, add infrared sensor, to achieve the taximeter. The system consists of micro-controller STC89C52,infrared sensor(to measure distance),DS1302 (to record real time),12864 LCD(to display the outputs) and serial communication. [资料来源:http://www.doc163.com]
The analog taximeter can display the mileage,default the starting price and the starting mileage.The fare is based on the whole travel.The system has reset and start function,pricing after the taxi starts.We use micro-controller to design the system,that means just a few hardware and appropriate software can meet the design requirements by mutual cooperation.Through software programming,it can accomplish more additional features.So it is very flexibility and has a bright future.
Keywords: STC89C52; Taxi meter; Infrared sensors
[资料来源:www.doc163.com]




目录
第一章 概 述 1
1.1 出租车计价器的研究背景与意义 1 [来源:http://Doc163.com]
1.2 出租车计价器的研究现状 1
1.3 本文主要内容 3
1.4 章节安排 3
第二章 出租车计价系统总体设计方案 4
2.1 方案论证与比较 4
2.2 传感器选择 6
2.3 本章小结 6
第三章 出租车计价系统的硬件设计 7
3.1 总体硬件设计 7
3.2 单片机最小系统设计 8
3.2.1 STC89C52单片机时钟电路 8
3.2.2 STC89C52单片机复位电路 9
3.3 显示电路设计 9
3.3.1 液晶显示模块引脚说明 10
3.3.2 液晶显示电路设计 11
3.4 实时时钟电路设计 12
3.5 按键电路设计 13
3.6 测速传感器电路设计 14
3.7 串口通讯模块设计 15
3.8 I/O资源分配 16
3.9 本章小结 16
第四章 出租车计价系统的软件设计 17
4.1 总体软件设计 17
4.2 里程计算子程序 19
4.3 计费子程序 20
4.4 显示子程序 21
4.5 串口通讯子程序 22
4.6 本章小结 23
第五章 出租车计价系统调试 24
5.1 出租车计价器的硬件调试 24
5.2 出租车计价器的系统仿真 25
5.3 串口通讯调试 26
第六章 总结与展望 28
致 谢 29
参考资料 30
附录 33 [资料来源:http://www.doc163.com]
