1、 I 题目:基于题目:基于 51 单片机的彩色光源单片机的彩色光源 的设计与实现的设计与实现 II 基于基于 51 单片机的彩色光源的设计与实现单片机的彩色光源的设计与实现 摘摘 要要 随着国民经济的发展,人们渐渐追求更高的生活水平,更美观的生活环境、 娱乐环境等等,已经不仅仅局限于对无色灯光的追求,彩色 LED 灯也已经逐步 走入寻常百姓的生活中来。伴随着科技的发展,LED 的技术不断提高,用普通 的发光二极管组成的彩色二极管光源被广泛应用于舞台灯、广告灯、电视墙背景 灯等各个方面,并很快在各领域占有一席之地。 本设计研究了一款简单的可调制彩色光源系统。大家都知道,自然界中的绝 大多数颜色都
2、可以通过 R(红)、G(绿)、B(蓝)三原色按照不同的比例合 成而来,按照此理论,本设计便采用了三种颜色(R、G、B)的 LED 灯,并通 过单片机设置的按键来控制当前三原色各个灯光的高电平占空比, 从而改变三种 颜色灯光的亮暗程度, 而将三色灯通过棱镜合成起来便可以得到任何一种颜色的 灯光。彩色光源的设计灵感便由此而来。 本文介绍了单片机的特点和功能,并与按键、显示器 LCD 组成一个简易的 可调制光源系统,在 Proteus 仿真软件的基础上,给出了硬件电路图,软件流程 图,主要的程序和实测结果。 关键词:关键词:STC89C52 单片机;显单片机;显示器示器 LCD;Proteus 仿真
3、软件;硬件电路。仿真软件;硬件电路。 III Design and achieve of 51 MCU of colored light sources based on ABSTRACT With the development of the national economy, people gradually pursuit of higher living standards, more beautiful living environment. Entertainment environment and so on.It has not only limited to the purs
4、uit of a colorless light, color LED lights have also been gradually into ordinary people lives.With the continuous improvement of LED technology. Color light-emitting diode ordinary diode light source is widely used in various aspects of stage lights, advertising lights, TV wall background lights, e
5、tc. And it will have a place in the various fields soon. The design study of a simple color can be modulated light source system. As we all know, the vast majority natural colors can synthesized by R (red), G (green) and B (blue) primary colors from different proportions according to , according to
6、this theory, the design will be adopted in three colors (R, G, B) of the LED lights, and through the MCU set button to control the current high level of the duty cycle of the three primary colors of each light to change how light or dark the lights of three colors, and the three-color light through the prism synthesis it can get any color of light. Design inspiration will be the resulting color of the light source. This article describes the features and functions of the MCU, and with the but