基于单片机的货车超重监测系统
摘要:针对当前由于超重而不断引起的重大交通事故,为减少因交通事故而造成人员伤亡和财产损失。本论文设计了一种货车超重控制装置。要求能够判断机动车是否超重,在超重时能够提供报警和显示超重的重量,并且能够实现对发动机打火系统的控制。本设计采用AT89C51单片机作为系统处理的核心,利用电阻应变式压力传感器将机动车载重量转换成电压信号;然后通过放大电路将电压信号放大后送到A/D转换芯片ADC0809转换成数字信号并计算出载重量;所得的载重量将送到单片机,单片机与设定的载重量作比较并判断是否超重,若超重LED显示超重的重量, 蜂鸣器开始报警;同时利用可控电流开关对货车的打火系统进行控制,从而最终实现对超重情况进行控制。车辆启动后单片机对载重量进行关中断,速度传感器发挥作用,从而避免行驶过程中因路面不平,颠簸而造成不必要的熄火。
关键词:AT89C51单片机,检测超重,称重传感器,A/D转换器,LED显示
Van overweight monitoring system based on single chip microcomputer
Abstract: Due to the current major accidents caused by overweight and continue to reduce traffic accidents and casualties and property losses. This paper designed a truck overweight control device. It requires the ability to determine whether the vehicle overweight, overweight can be provided at the time of the alarm and display the weight of overweight, and can achieve the engine ignition system control. This design uses AT89C51 microcontroller as the core system processing, the use of resistance strain gauge pressure sensor vehicle load into a voltage signal; and by amplifying the voltage signal amplification circuit to the A / D converter chip ADC0809 converted into a digital signal and calculating the load; the resulting deadweight will be sent to the microcontroller, the microcontroller is compared with the set of load and determine whether overweight, if overweight overweight weight LED display, buzzer alarm; while taking advantage of the controlled current switch on trucks ignition control system, and ultimately to achieve control of the overweight situation. After starting the vehicle microcontroller interrupt load carried off, speed sensors play a role, so as to avoid the process of moving due to uneven pavement, bumps and cause unnecessary stalling.
Keywords: AT89C51 microcontroller to detect overweight, weighing sensor, A / D converter, LED display
目 录
1 绪论 1
1.1 课题的提出及意义 1
1.2国内外货车超重研究现状 3
1.3研究内容和预期目标 5
2 总体方案的设计和工作原理 6
2.1设计方案的选择 6
2.1.1方案一 6
2.1.2方案二 6
2.1.3方案三 6
2.2设计方案的确定及总体结构 7
3 硬件设计 8
3.1单片机的选型 8
3.2看门狗电路的设计 12
3.3传感器的选择 15
3.3.1传感器的基本概念 15
3.3.2测力传感器的选择 15
3.3.3轮速传感器的选择 19
3.4放大电路设计 24
3.5 A/D转换采样电路 26
3.6点火控制电路的设计 30
3.7报警电路的设计 31
3.8显示电路的设计 31
3.9电源电路的设计 33
4 软件设计 36
4.1主程序设计 36
4.1.1设计思路 36
4.1.2主程序流程图 36
4.2参数恢复子程序设计 37
4.2.1设计思路 37
4.2.2程序流程图 37
4.3看门狗子程序设计 39
4.3.1设计思路 39
4.3.2看门狗程序流程图 40
4.4采集报警控制子程序的设计 42
4.4.1设计思路 42
4.4.2采集报警控制子程序流程图 43
4.5显示子程序设计 44
4.5.1设计思路 44
4.5.2显示子程序流程图 44
5 总结 46
5.1系统先进性 46
5.2系统局限性 46
参考文献 47
致谢 48
附录 49