1、 1 基于单片机的出租车计费器的设计与实现的基于单片机的出租车计费器的设计与实现的 软件设计软件设计 摘摘 要要 现在各大中城市出租车行业都已普及自动计价器, 所以计价器技术的发展已 成定局。而部分小城市尚未普及,但随着城市建设日益加快,象征着城市面貌的 出租车行业也将加速发展,计价器的普及也是毫无疑问的,所以未来汽车计价器 的市场还是十分有潜力的。 出租车计价器是根据客户用车情况来自动显示车费 的数字仪表,根据用车起步价、行车里程计费求得客户用车的总费用,并通过数 码管显示相应的里程及金额。 我在本次设计中主要负责硬件工作。本电路以 AT89S52 单片机为中心,附加 A44E 霍尔传感器测
2、距,实现对出租车计价,采用 AT24C02 实现在系统掉电的时 候保存单价,输出采用 8 段数码显示管,显示行驶总里程和总金额。 模拟出租车计价器设计:进行里程显示,预设起步价和起步公里数;行程按 全程收费,有复位功能和启动功能,启动后,开始计价。我们采用单片机进行设 计,可以用较少的硬件和适当的软件相互配合来实现设计要求,且灵活性强,可 以通过软件编程来完成更多的附加功能,应用前景广阔。 关键字:关键字:出租车计价器 AT89S52 单片机 A44E 霍尔传感器 断电保存 8 段 数码显示管 2 Abstract Now the automatic mileage fare meter is
3、 popularized in each big or media-sized cities taxi profession, therefore the development of mileage fare meter technology has been a foregone conclusion. While in part small cities its underused, but speeding up day by day along with the urban construction, which will symbolize the urban appearance
4、 taxi profession that will accelerate to develop too .And mileage fare meters popularization will also be without a doubt, therefore the future automobile mileage fare meters market will have the great potential. The taxi mileage fare meter is a digital instrument which has the function to demonstrate fare according to the customer use of the car and charge customer the total fee according to start price of the using car together with the mileage, and then it can demonstrates the correspon