计算机科学与应用

Vol.6 No.2 (February 2016)

基于51单片机的智能LED台灯设计
The Design of Intelligent LED Table Lamp Based on STC89C51RC SCM

 

作者:

张景扩 , 陈冬君 , 许理 :四川理工学院自动化与电子信息学院,四川 自贡

彭龑 :四川理工学院计算机学院,四川 自贡

 

关键词:

STC89C51RC单片机LEDPWM控制STC89C51RC SCM (Single-Chip Microcomputer) LED PWM Control

 

摘要:

为了使电力得到高效利用,本文提出一种基于单片机的智能LED台灯设计。该台灯具有手动、自动两种调节方式。硬件设计部分分为单片机控制模块、按键模块、照明模块、光敏模块、LED指示模块等多个部分。单片机主控制芯片选用STC89C51RC,通过按键模块来调整工作模式和LED的亮度,照明模块选用12草帽型白光LED,光敏模块选用ADC0832芯片实现对光敏信号的采集,并利用PWM控制技术对LED进行光度的自动调节。通过单片机C语言编程进行软件设计将程序下载到单片机内。

In order to make use of electricity efficiently, this design of intelligent LED lamp which is based on STC89C51RC single-chip microcomputer is proposed in this paper. The lamp has two types of regulation, manual regulation and automatic regulation. The hardware design part consists of SCM control module, keyboard module, lighting module, photosensitive module, LED module and so on. SCM master control chip chooses STC89C51RC. Through the key module, SCM adjusts the working mode and the LED brightness. Lighting module uses white LED in the type of 12 straw hats. Photosensitive module uses ADC0832 chip to implement the light signal acquisition, and uses PWM dimming technology to automatically adjust the luminosity of LED. Through programming SCM C language, the software is designed and the procedure is loaded into SCM.

文章引用:

张景扩 , 彭龑 , 陈冬君 , 许理 (2016) 基于51单片机的智能LED台灯设计。 计算机科学与应用, 6, 85-93. doi: 10.12677/CSA.2016.62011

 

参考文献

分享
Top