基于单片机的简易转速测量系统设计 下载本文

内容发布更新时间 : 2024/6/30 0:26:50星期一 下面是文章的全部内容请认真阅读。

学号:

常 州 大 学 毕业设计(论文) (2012届)

题 目 学 生 学 院 专业班级 校内指导教师 专业技术职务 校外指导老师 专业技术职务

二○一二年六月

I

基于单片机的简易转速测量系统设计

摘要:在工程实践中,经常会遇到各种需要测量转速的场合,测量转速的方法主要有模拟式和数字式两种。模拟式采用测速发电机为检测元件,得到的信号是模拟量。数字式通常采用光电编码器,霍尔元件等为检测元件,得到的信号是脉冲信号。随着微型计算机的广泛应用,特别是高性能价格比的单片机的出现,转速测量普遍采用以单片机为核心的数字式测量方法。

该文设计了一个简易的直流电机转速测量系统,主要由霍尔传感器、单片机和显示器、键盘电路、报警电路等组成。系统以AT89S52单片机为控制核心,采用M测速法原理,用霍尔传感器进行转速测量,4位的LED显示转速,当转速高于上限或低于下限值都会进行报警,并通过键盘输入设置开关控制阈值。该系统具有电路简单,测量速度快,可靠高等特点。 关键字:AT89S52单片机;转速;霍尔传感器

II

Design of simple speed measurement system based on SCM

Abstract:In engineering practice, we encounter a variety of occasions frequently, which need to measure the speed. And the methods of measuring speed are mainly including analog and digital. In the analog means, the tachometer generator is used as the detecting component to get analog signal, while the optical encoder or the Hall element to get pulse signals in the digital means.

In this paper, a simple DC motor speed measurement system is designed, which is mainly made up of the Hall sensor, AT89S52 SCM, displayer, keyboard circuit and alarm circuit. AT89S52 SCM is the core of the measurement system. Using \velocimetry principle, we use the Hall sensor to measure the speed, 4-bit LED to show the speed and keyboard to set the switch to control threshold. And the alarm function is also realized when speed is higher than the upper limit or below the lower limit. The designed system is simple and has the characteristics of fast measuring and high reliability.

Keywords: AT89S52 SCM; Speed; Hall Sensors

III