摘 要:随着城市生活节奏的加快,出租车作为人们的代步工具,数量大大增加;但市场上很多出租车计价器有功能模块不足、系统易出现故障等问题。
本课题设计的是基于单片机AT89S52的出租车计价器,由单片机最小系统电路,霍尔传感器测速电路、时钟电路、按键接口电路、存储电路、显示电路、蜂鸣器报警电路和语音播报电路组成。霍尔传感器测速电路用于检测电机转速,时钟电路用于计时,数据传入单片机得出行车速度、行车时间,从而计算出总路程和价格;语音播报电路在达到终点时语音播报行车路程和总价;LCD显示电路用于显示时间、路程、单价、总价等信息;蜂鸣器报警电路在行车速度超速时发出警报提醒司机。93095
这款多功能出租车计价器体积小、重量轻、成本低、保密性好,将具有广阔的市场前景。
毕业论文关键词:出租车计价器,AT89S52,超速提醒,语音播报
Abstract:With the fast pace of city life,the number of taxis has greatly increased as a means of transport for people。However,lots of taxi meter on the market has many problems such as lack of functional modules or the fault of system and other issues。
The subject is a kind of taximeter design based on the single chip called AT89S52 ,which consists of MCU minimum system circuit,Holzer sensor measuring circuit,clock circuit,keyboard interface circuit and storage circuit,display circuit,buzzer alarm circuit and voice broadcast circuit。SCM minimum system circuit includes oscillating circuit, reset circuit and power supply circuit 。Holzer sensor measuring circuit is used to measure speed of the motor。The clock circuit adopts the crystal as the clock source of the system and the crystal can provide the clock pluse for the chip。The keyboard interface circuit adopts the independent keyboard and it can stably meet the design requirements。The storage ought to save the set of the current information when the power supply is disconnected。The display circuit make use of LCD1602,which is clear and easy to control。 The buzzer alarm alert driver circuit in speeding case。 Voice broadcast circuit can send warm voice and give passengers a pleasant ride experience。
The multi-function taximeter has the advantages of small size, light weight, low power consumption, high speed, low cost and good confidentiality。It will have broad market prospects。
Key words:taximeter,AT89S52,speeding reminder,voice broadcast
目录
1 绪论 4
1。1 课题背景及意义 4
1。2 毕业设计任务 4
2 总体设计 4
2。1 毕业设计方案 4
2。2 元器件选择 5
3 硬件电路设计 7
3。1 AT89S52单片机最小系统 7
3。2霍尔传感器测速电路 9
3。3 时钟电路 10
3。4 按键接口电路 10
3。5 存储电路 11
3。6 显示电路 11
3。7 蜂鸣器报警电路 13
3。8 语音芯片电路 14
4 软件设计 14
4。1 单片机资源使用 14
4。2 单片机软件模块设计 14
4。3 总程序流程框图