检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:刘菁[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[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.28