1西安石油大学本科毕业设计(论文)基于C51单片机直流电机测速仪设计摘要:电机的转速是各类电机运行过程中的一个重要监测量,测速装置在电机调速系统中占有非常重要的地位,特别是数字式测速仪在工业电机测速方面有独到的优势。本文介绍了一种基于C51单片机的光电传感器转速测量系统的设计。系统采用对射式光电传感器产生与齿轮相对应的脉冲信号,使用AT89C51单片机采样脉冲信号并计算每分钟内脉冲信号的数目,即电机对应的转速值,最终系统通过LCD实时显示电机的转速值。经过软硬件系统的搭建,分别通过Protues软件系统仿真实验和实际电路搭建检查实验。仿真实验表明本系统满足设计要求,并且结构简单、实用。整个直流电机测速系统在降低测速仪成本,提高测速稳定性及可靠性等方面有一定的应用价值。关键词:转速测量;光电传感器;单片机2西安石油大学本科毕业设计(论文)BasedOnC51SCMSingleDCMotorSpeedometerDesignABSTRACT:Motorspeedisallkindsofmotoroperationisanimportantprocesstomonitortheamountofspeedmeasuringdeviceinthemotorcontrolsystemoccupiesaveryimportantposition,Especiallythedigitalspeedometerintheindustrialmotorspeedhasuniqueadvantage.Thispaperdescribesaphotoelectricsensor51SCM-basedspeedmeasurementsystemdesign.Systemusesabeamphotoelectricsensorgeneratesapulsesignalcorrespondingtothegear,theuseofasamplingpulsesignalAT89C51SCMandcalculatingthepulseperminute,thenumberofsignalsthatthespeedofthemotorcorrespondingtothevalueofthefinalsystemtimethroughtheLCDdisplaythemotorspeedvalue.Afterahardwareandsoftwaresystemstructures,respectively,throughProtuessoftwaresystemtobuildtheactualcircuitsimulationandexperimentalexamination.Simulationresultsshowthatthesystemmeetsthedesignrequirements,andthestructureissimpleandpractical.DCMotorSpeedentiresysteminreducingspeedometercosts,improvereliability,speedstabilityandacertainapplicationvalue.Keywords:Speedmeasurement;Photoelectric;Singlechipmicyoco1西安石油大学本科毕业设计(论文)目录1绪论.............................................................11.1数字式转速测量系统的发展背景................................11.2转速测量在国民经济中的应用..................................11.3主要研究内容.................................................21.4设计的目的和意义............................................22转速测量系统的原理...............................................42.1转速测量原理................................................42.2转速测量计算方法............................................53转速测量系统设计方案..............................................73.1直流电机转速测量方法........................................73.2设计任务及方案..............................................84直流电机测速系统设计.............................................94.1单片机AT89C51介绍..........................................94.2转速信号采集...............................................144.2转速信号处理电路设计.......................................164.4最小系统的设计.............................................174.4.1复位电路...............................................174.4.2晶振电路..............................................204.5显示部分设计...............................................205直流测速系统仿真................................................245.1直流测速系统仿真...........................................245.1.1单片机最小系统仿真....................................255.1.2数码管显示仿真........................................255.2主程序流程设计..............................................