摘要本文介绍基于STM32单片机的光电转速测量系统,其测量方法较多,随着单片机对脉冲信号的处理能力越来越强大,全数字量系统越来越普及,并且使转速测量系统也可以用全数字化处理。
本文介绍的系统以STM32为控制核心,以光电传感器为转速检测元件,采用脉冲计数的方法,并配合一定的测速算法,进行相关的电路设计和软件设计,实现对电机转速高精度的测量。电路部分以STM32F103为核心,包括脉冲检测电路、脉冲整形电路、串口通信电路、单片机核心电路等部分组成。软件部分采用C语言编程,由STM32F103实现对各部分功能初始化软件设计,在测试结束后取得转速测量结果,并送上位机显示。结果表明该方法具有简单、精度高、稳定性好的优点。本文介绍了该测速法的基本原理、实现步骤和软硬件设计。61181
毕业论文关键词 STM32 光电转速 变M/T法
毕业设计说明书(论文)外文摘要
Title Photoelectric Rotational Speed Measurement System Based on STM32
Abstract A photoelectric rotational speed measurement system based on STM32 is summarized in this article,the number of the measuring method is large, and the STM32’s processing ability to pulse singles is powerful ,as the fully digital system is more and more popular, it can also be adopted in rotational speed measurement system .
In the system introduced in the article,STM32 is applied as the control core,and photoelectric sensor is used as speed detector,the method of pulse counting is adopted,assisted with certain speed algorithm,and related circuit design and software design is conducted to accomplish high precision measurement of motor rotational speed. The circuit design part includes the photoelectric circuit,pulse detecting circuit,pulse shaping circuit serial communication circuit and core circuit.The software design adopts C language programming,STM32 is applied to initialize the function of each part.At the end of test,the rotational speed measuring result is acquired by the MCU and sent to upper computer. Experimental result indicates that this method has advantages of simple,high precision and good stability.The basic principle,implementation method and software and hardware design of the rotational speed measurement system is introduced in this paper.
Keywords STM32 Photoelectric Rotational Speed the Method of Alterable M/T
目次
1 绪论 1
1.1 转速测量的目的 1
1.2 转速测量的意义 1
1.3 转速测量的发展 2
2 转速测量系统的整体方案 4
2.1 转速测量的基本方法 4
2.1.1 测速元件 5
2.1.2 信号调理电路 6
2.1.3 单片机 6
2.2 转速测量原理 6
2.2.1 M法 8
2.2.2 T法 8
2.2.3 M/T法 10
2.2.4 改进的M/T法 11
2.3 硬件设计总体方案 14
2.4 软件设计总体方案 15
3 系统硬件设计 STM32单片机的光电转速测量系统+电路图:http://www.751com.cn/zidonghua/lunwen_66831.html