摘要
简单易操作和节能高效的调光器对日常生活、节约能源等具有重要意义。基于STM32的多级调光器,以STM32单片机为处理核心,经过对从电位器输入的AD数据进行线性或非线性处理得到脉冲宽度调制(PWM)调光的占空比,从而能够对负载进行线性或非线性调节。以STM32F103ZET6单片机为例,设计试验了对LED灯的1 000级亮暗调节。试验结果表明LED灯具有平滑的亮暗变化。
The dimmer with the feature of easy operation and energy saving plays an important role in our daily life and the energy saving etc.The multistage dimmer based on STM32,using STM32 MCU as the core of processing,deal with the AD data input from the potentiometer linearly or nonlinearly to obtain the duty ratio of PWM,thus the load could be modulated linearly or nonlinearly.Taking the STM32 F103 ZET6 single chip as an example,the 1 000 stage light and dark adjustment of the LED lamp was designed and tested. The experimental results show that the LED lamp has a smooth light and dark change.
作者
王子权
Wang Ziquan(Hefei University of Technology,Hefei Anhui 230009,China)
出处
《电气自动化》
2018年第6期98-100,115,共4页
Electrical Automation