Top Banner
Computer 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 Zhang 1 , Yan Peng 2 , Dongjun Chen 1 , Li Xu 1 1 School of Automation & Electric Information, Sichuan University of Science & Engineering, Zigong Sichuan 2 School of Computer, Sichuan University of Science & Engineering, Zigong Sichuan Received: Feb. 1 st , 2016; accepted: Feb. 23 rd , 2016; published: Feb. 26 th , 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 基于51单片机的智能LED台灯设计 张景扩 1 ,彭 2 ,陈冬君 1 ,许 1 1 四川理工学院自动化与电子信息学院,四川 自贡 2 四川理工学院计算机学院,四川 自贡 收稿日期:201621日;录用日期:2016223日;发布日期:2016226
9

51 LED台灯设计 - hanspub.org

Mar 27, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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