项目编号:mcuclub-dz-251
设计简介:
项目名:出租车计价器
项目编号:mcuclub-dz-251
单片机类型:STC89C52
具体功能:
1、通过DS1302获取时间,并判断此时是白天时间还是夜间时间,白天时间是凌晨5.30到晚上22.30点,2.5公里以内起步价8元,超过部分单价是1.7元/公里;夜间是晚上22.30点到次日凌晨5.30,2.5公里以内是起步价9元,超过部分单价是1.7元/公里。等候5分钟内不收费,5分钟以外0.3元/分钟,不满一分钟按一分钟计算。8公里以上部分,车公里单价加收50%
2、通过电机驱动模块驱动直流电机,模拟车轮,并通过红外对管进行测速,从而获取总公里数
3、通过按键可修改时间、启动车轮、结算
4、通过LCD12864显示屏显示时间、速度、总公里、单价、总金额等
总字数:14608
摘 要
随着国民经济的提高,出租车数量日益增多,计价器为车辆定期的保养、维护以及报废提供依据。本文针对现有车用计价器检定中缺少条件、因素干扰多、可靠性低等问题,利用单片机技术开发了一款智能出租车计价器,在降低成本的前提下完成智能计价功能。
本设计采用STC89C52单片机作为主控芯片,设计一款较为智能的出租车计价器,有效解决夜晚和白天收费不一样的问题,此次设计有两种模式,白天和夜晚,白天的起步价为8元,超过2.5公里为每公里1.7元/公里,在顾客到达的时候,司机按下暂停的时候,停止计价,在顾客进行下车后可以进行清零,然后下一位顾客上车的时候重新开始。在夜晚的时候,起步价为9元,超过2.5公里之后每公里1.7元。此次设计通过软件和硬件进行结合,最终可以解决目前出租车乱收费的问题,并且出租车司机可以通过显示屏查看当前的时间、速度、总公里、单价、总金额,而且此次设计稳定性也较强,设备的成本较低,可靠性也较强。
关键词 出租车、计价器、单片机、夜间模式、白天模式
Abstract
With the improvement of the national economy, the number of taxis is increasing, and the meter provides a basis for the regular maintenance, maintenance and scrapping of vehicles. Aiming at the problems of lack of conditions, interference factors and low reliability, this paper develops an intelligent taxi meter by using single chip microcomputer technology, and achieves intelligent pricing function under the premise of reducing cost.
This design uses STC89C52 single chip microcomputer as the main control chip to design a more intelligent taxi meter, which effectively solves the problem that night and day charges are not the same, the design has two modes, day and night, the starting price of 8 yuan during the day, more than 2.5 kilometers for 1.7 yuan/kilometer, when the customer arrives, When the driver presses pause, the fare stops, can be cleared after the customer gets off, and then restarted when the next customer gets on. At night, the starting price is 9 yuan and 1.7 yuan per kilometer after 2.5 kilometers. Through the combination of software and hardware, the design can finally solve the problem of the current taxi charging, and the taxi driver can view the current time, speed, total kilometers, unit price, total amount through the display screen, and the design stability is also strong, the cost of equipment is low, and the reliability is also strong.
Keywords Taxi, meter, MCU, night mode, day mode
目 录
摘 要
Abstract
第一章 设计概述
第二章 系统设计方案
第三章 硬件设计
第四章 系统程序设计
第五章 仿真测试
第六章 实物测试
总结
致谢
参考文献
附录