期刊文献+

呼吸灯的设计与制作 被引量:5

Design and Circuit Fabrication on Breathing Lamp
原文传递
导出
摘要 基于STC89C52设计8个LED呼吸灯,P0口经PNP三极管驱动8只发光二极管,四只红色发光二极管和四只黄色发光二极管设置了15个亮暗等级的占空比,每个PWM脉冲周期为10毫秒,刷新时间为40毫秒,当按键按下时小灯熄灭,同时蜂鸣器报警,再按下按键恢复呼吸灯功能。此外,借助Proteus仿真进行程序的改进与电路设计的优化,减少硬件电路制作的盲目性,最后将Keil软件和仿真调试成功电路进行实物电路的焊接与制作。 Eight LED breathing lights are designed by using a STC89C52 SCM as its core. The P0 port is connected by the eight PNP transistors to drive 8 LEDs which are serial 4 red LEDS and 4 yellow LEDS. Each PWM pulse period is 10 ms and the duty cycle is divided into 15 grades from light to dark ,which can be changed for 40ms. The LEDS don't light and the buzzer alarm when pressing a button, and then to restore the function of breathing light while pressing the button again. Furthermore, the improvement of the program and the optimization of the circuit design are carried out with the aid of Proteus simulation in order to reduce the blindness of hardware circuit making. At the last, the circuit on breathing lamp is welded and made through the Keil software programming and the Proteus simulation debugging successfully.
出处 《自动化与仪器仪表》 2017年第1期32-34,共3页 Automation & Instrumentation
关键词 STC89C52单片机 呼吸灯 PWM 报警 占空比 仿真 STC89C52 SCM breathing lamp PWM alarm duty cycle simulation
  • 相关文献

参考文献8

二级参考文献43

共引文献105

同被引文献22

引证文献5

二级引证文献29

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部