基于MicroPython的PWM风扇转速控制方式  被引量:1

PWM Fan Speed Control Method Based on MicroPython

在线阅读下载全文

作  者:刘菁[1] 李相朋[1] 刘瀚旗 邓中民 LIU Jing;LI Xiangpeng;LIU Hanqi;DENG Zhongmin(School of Computer and Artificial Intelligence,Wuhan Textile University,Wuhan 430200,China;School of Textile Science and Engineering,Wuhan Textile University,Wuhan 430200,China)

机构地区:[1]武汉纺织大学计算机与人工智能学院,湖北武汉430200 [2]武汉纺织大学纺织科学与工程学院,湖北武汉430200

出  处:《计算机与网络》2021年第17期69-71,共3页Computer & Network

摘  要:传统的脉冲宽度调制(Pulse Width Modulation,PWM)控制风扇转速的方式都是通过汇编语言和C语言编写,但代码多、编写复杂、不易调试。Python语言相较而言,封装了大量的库函数,极大地降低了开发的难度,代码更简短,运行效率更高。MicroPython语言是Python语言的精简版,通过使用基于MicroPython开发语言和Pyboard_1.1_CN实验板,将Python编程语言直接运行在STM32F405单片机嵌入式开发板上,通过控制芯片端口发送高低电平,从而运用PWM方式控制风扇转速。实验结果表明,风扇的转速可以跟随不同PWM稳定运行。The traditional design for Pulse Width Modulation (PWM) controlling of fan speed is written in assembly language and C language, which is complicated to program and debug because it needs to know how the hardware works. Compared with the above two language, Python language has a lot of library and is easy to use, and a design can be implemented quickly with less code. MicroPython is a lean and efficient implementation of the Python 3 programming language. By using the MicroPython language and the Pyboard_1.1_CN development kit, the Python language is directly run on the STM32F405 microcontroller embedded board, and sent pulse to control the fan speed through the control chip port. The experiment results show that the fan speed can follow different pulse to operate stably.

关 键 词:MicroPython Pyboard PWM 嵌入式开发 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象