摘 要: 为了满足工业生产中对发电机、中小型马达、机床转轴等旋转设备的转速控制和转速采集上的需求,本 文介绍一种基于51单片机和无线传输的直流电机调速测速系统的设计。以STC89C52单片机为主控芯片,利用PWM的 原理,通过按键对直流电机进行调速,速度可分高中低三档;采用槽形光耦传感器对直流电机的转动进行计数,并通过 主控芯片将采集到的计数值转化为直流电机的当前速度值;利用nRF24L01无线传输模块与串口通信技术将当前采集到 的速度值实时地发送给上位机并在上位机中显示出来。实验表明,此系统具有成本低,功耗低,可靠性高等优点,具有 一定的实用性。 |
关键词: 直流电机调速测速;槽型光耦传感器;串口通信;nRF24L01 |
中图分类号: TP368.2
文献标识码: A
|
|
Design of the DC Motor Speed Control and Measurement System Based on 51 Micro-controller and Wireless Transmission |
CHEN Tingwei,LIN Yifan,LIU Qiao
|
( College of Information Science and Technology, Shihezi University, Shihezi 832003, China)
|
Abstract: To meet the needs of speed control and speed collection for rotating equipment such as generators,small and medium motors,rotating shafts,this paper introduces a design of DC motor speed control and measurement system based on 51 micro-controller and wireless transmission.Taking STC89C52 micro-controller as the main control chip,following the principle of PWM,using the keys to control the DC motor speed,the speed can be divided into three sections:low,middle and high;Use trough optocoupler sensor to count DC motor rotations,and turn the collected data into the DC motor speed value by the main control chip.Use nRF24L01 wireless transmission module and serial communication technology to collect the current velocity and send it simultaneously to the host computer to be displayed.The experiment shows that the system has the advantages of low cost,low power consumption and high reliability as well as certain practicability |
Keywords: DC motor speed control and measurement;slot-type optocoupler sensor;serial communication;nRF24L01 |