- 4
- 0
- 约3.06万字
- 约 48页
- 2019-04-18 发布于江西
- 举报
PAGEII
学号:
常 州 大 学
毕业设计(论文)
(2012届)
题 目
学 生
学 院 专业班级
校内指导教师 专业技术职务
校外指导老师 专业技术职务
二○一二年六月
基于单片机的数字测速仪设计
摘 要:在工程实践中,经常会遇到各种需要测量转速的场合,测量转速的方法分为数字式和模拟式两种。模拟式采用测速发电机为检测元件,得到的信号是模拟量。数字式通常采用光电编码器,霍尔元件等为检测元件,得到的信号为脉冲信号。随着微型计算机的广泛应用,特别是高性能价格比的单片机的出现,转速测量普遍采用以单片机为核心的数字式测量方法。
本论文描述了一个以AT89S52单片机控制模块、红外传感器采集模块、电机驱动模块和报警模块为主要部分组成的转速测量系统。该系统以一对红外发射和接收二极管形成光路,通过照射到齿盘上颜色的变化对光路形成脉冲,单片机采用同步M/T法对脉冲计数,经过内部数据处理得出转速,并通过1602液晶显示器显示出结果。同时当转速超过其所设定的数值时,系统对其进行报警。通过L298N电路调节电机转速,从而实现在一个电机上对低转速和高转速的测量。
关键词: AT89S52单片机;同步M/T法;1602液晶;L298N电路
Design of digital speedometer based on single-chip microcomputer
Abstract :In engineering practices, the situation of measuring revolving speed often occurs. There are two ways to measure revolving speed: analog type and digital type. With analog type, tachogenerator is used as detecting element, which brings out analog quantity, while with digital type, photoelectric encoder, Hall element etc. are often used, which brings out pulse signal. With the widespread of microcomputers, especially highly cost-efficient microcontroller, we often use microcontroller as the core of measuring revolving speed.
This paper focuses on describing a revolving speed measuring system composed by AT89S52 microcontroller (controlling module), infrared sensor (collecting module), electrical machine (driving module), and alarming module, which uses a pair of infrared emitting-and-receiving diodes to form the optical path. Through the interval block-out from the change of colors on the fluted disc, electric pulse can be generated. The microcontroller uses synchronic M/T method to measure the time of pulse, then after inner data analysis, the author can
原创力文档

文档评论(0)