51 LED台灯设计 - hanspub.org
-
Upload
others
-
View
6
-
Download
0
Embed Size (px)
Citation preview
51LEDComputer Science and Application , 2016, 6(2), 85-93 Published
Online February 2016 in Hans. http://www.hanspub.org/journal/csa
http://dx.doi.org/10.12677/csa.2016.62011
: , , , . 51 LED[J]. , 2016, 6(2): 85-93.
http://dx.doi.org/10.12677/csa.2016.62011
The Design of Intelligent LED Table Lamp Based on STC89C51RC
SCM
Jingkuo Zhang1, Yan Peng2, Dongjun Chen1, Li Xu1 1School of
Automation & Electric Information, Sichuan University of
Science & Engineering, Zigong Sichuan 2School of Computer,
Sichuan University of Science & Engineering, Zigong
Sichuan
Received: Feb. 1st, 2016; accepted: Feb. 23rd, 2016; published:
Feb. 26th, 2016 Copyright © 2016 by authors and Hans Publishers
Inc. This work is licensed under the Creative Commons Attribution
International License (CC BY).
http://creativecommons.org/licenses/by/4.0/
Abstract 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 regula- tion, 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 mas- ter 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 de- signed and the procedure is loaded
into SCM.
Keywords STC89C51RC SCM (Single-Chip Microcomputer), LED, PWM
Control
51LED
1 21 1 1 2
20162120162232016226
STC89C51RCLED
12LEDADC0832PWMLED C
[1]
LED STC89C51RC STC89C51RC 40
8051 3.3 V~5.5 V 4 K ROM 256 RAM EEPROM
/ 0~40 MHz 48 MHz 32 I/O [2] LED ADC0832 1
C [3]
LED
2 STC89C51 XTAL1(18) XTAL2(19) () C1
C2 5~30 pF 30 pF CYS 1.2~12 MHz 12 MHz 6 MHz
3.2.
()
[3] RST(9)
87
Figure 1. The overall diagram of system structure 1.
Figure 2. Clock circuit 2.
Figure 3. Reset circuit 3.
Vcc 3 11.0592 MHZ C 10 uFR 10 kΩ
3.3. LED
0.7 V 0 0.7 V
( 0.7 V
0)( Rb
t I I
T = PWM
ONt T PNP PWM P1.4
4
()
I/O I/O I/O
I/O I/O I/O
[5] I/O
10~200 ( 20 )
I/O 1 10~200
0
Figure 4. Drive LED circuit of triode 4. LED
() 5
3.6. ADC0832
ADC0832 CMOS 8 ADC 8
8 A/D ADC0832 5 V P3.3 [7] IN0 ADC0832 OUT1-7 6
4.
Figure 5. Photosensitive resistance circuit 5.
Figure 6. ADC0832 conversion circuit of analog signal and figure
signal 6. ADC0832
LED LED [9]
C51 PWM STC89C51
PWM ADC0832
PWM [10] LED LED
2011G051
(References) [1] , . 51 LED [J]. , 2014, 22(20): 181-182.
[2] . PWM LED [J]. , 2012(8): 113-113.
[3] , , . LED [J]. , 2015(1): 55-57.
93
[4] , , . CPLD LED [J]. , 2014(12): 168-169.
[5] , , , . LED [J]. , 2013, 8(21): 113-114.
[6] . C51 [M]. : , 2008: 225-229.
[7] . LED [J]. , 2012(3): 23-34.
[8] . C 100 [M]. : , 2010: 233-240.
[9] . ZigBee LED [J]. , 2015(4): 217-219.
[10] . 51 LED [J]. , 2015(9): 75-75.
The Design of Intelligent LED Table Lamp Based on STC89C51RC
SCM
Abstract
Keywords
51LED