设计题目:智能测速系统班级:电气0901姓名:陈智慧学号:23号指导老师:程秀玲2012年04月航空电子电气工程系2012-05长沙航空职业技术学院1摘要随着科技的飞速发展,计算机应用技术日益渗透到社会生产生活的各个领域,而单片机的应用则起到了举足轻重的作用。并带动传统控制检测技术不断更新。而测速就是一个很典型的例子,它跟我们的生活生产息息相关。传统的车速测量是通过软轴传动表来实现的,而现在基本都是利用LED和LCD实时进行数字显示的。这不仅克服了传统测速的不足,同时还保证了测量的精度。本次设计中我们是以AT89S52为核心,利用单片机的控制功能来实现测转速进而利用单片机来计算速度。该方案中利用了LCD显示模块和霍尔传感器,因此在确保测量精度的基础上节约了系统资源减少了该系统的外围设备,同时也简化了编程。这就体现了该设计方案的简单、可靠的优点。关键字:AT89S52单片机、霍尔传感器、BS18B20温度传感、LCD显示长沙航空职业技术学院2AbstractWiththerapiddevelopmentofscienceandtechnology,computerapplicationtechnologyisincreasinglypermeatingallareasoflifeinsocialproduction,andSCMapplicationshasplayedapivotalrole.Andpromotethetraditionalcontroldetectiontechnologyconstantlyupdated.Thetachometerisaverytypicalexample,productioniscloselyrelatedtoitwithourlives.Thespeedmeasurementisachievedthroughtheflexibleshaftdrivetable,andnowarebasicallytheuseofLEDandLCDinrealtimedigitaldisplay.Thisisnotonlytoovercomethedeficienciesofthetraditionaltachometer,butalsotoensuretheaccuracyofmeasurement.ThedesignisbasedonAT89S52asthecore,theMCUcontrolfunctionstoachievethemeasuredspeedandthenusethemicrocontrollertocalculatethespeed.TheprogramusingtheLCDdisplaymoduleandtheHallsensor,onthebasisofensuringmeasurementaccuracy,savingsystemresourcestoreducethesystem'speripherals,butalsosimplifiestheprogramming.Thisreflectsthesimple,reliableandadvantagesofthedesign.Keywords:AT89S52microcontroller,theHallsensor,BS18B20temperaturesensor,LCDdisplay长沙航空职业技术学院3目录摘要............................................................................................................................1Abstract........................................................................................................................2第一章绪论..............................................................................................................51.1智能测速系统的意义....................................................................................51.2智能测速系统的设计目的............................................................................61.3设计要求........................................................................................................6第二章方案论证与系统结构....................................................................................62.1方案论证..............................................................................................72.1.1单片机芯片........................................................................................72.1.2测速传感器.......................................................................................72.1.3温度传感器....................................................................................102.1.4显示模块.........................................................................................112.1.5方案确定........................................................................................122.2系统结构....................................................................................................12第三章硬件模块设计介绍......................................................................................133.1AT89S52单片机功能介绍.........................................................................133.1.1AT89S52主要功能.........................................................................133.1.2AT89S52各引脚功能介绍:.........................................................143.1.3中断源............................................................................................183.2测速模块设计.........................................................................................233.2.1霍尔测速的方法............................................................................243.2.2霍尔传感器的工作原理................................................................243.2.3霍尔传感器与单片机应用............................................................253.3温度测量模块介绍....................................................................................273.3.1DS18B20的主要特征:.................................................................283.3.2DS18B20引脚结构图及其功能描述.............................................283.3.3DS18B20内部结构.........................................................................293.3.4DS18B20接口电路和工作时序.....................................................333.41602液晶显示模块...................................................................................363.4.1LCD1062的管脚功能.....................................................................363.4.2LCD1602基本操作时序.............................................................373.4.3LCD1602的指令设置.................................................................373.4.4LCD1602与单片机的连接图.........................................................38第四章流程图及数据处理....................................................................................384.1流程图........................................................................................................384.1.1系统速度测量流程图.....................................................................384.1.2系统温度测量流程图....................................................................404.1.3系统显示模块流程图.........................................