classroom intelligent lighting control system based on 51 ...classroom intelligent lighting control...
TRANSCRIPT
-
Classroom Intelligent Lighting Control System Based on 51 Single - chip Microcomputer
Hong-Lai Yan School of Applied Technology, Xi’an International University, Xi'an, Shaanxi, PR. China 710077
Keywords: 51 Single Chip Microcomputer; Lighting Control
Abstract:University of traditional lighting control are ever burning lights, no lights "phenomenon, in order to solve the traditional university classrooms for energy waste phenomenon, specially research the classroom lights use methods and existing disadvantages. This paper uses a simple 51 micro controller based control circuit, coupled with a number of auxiliary circuit modules, to achieve the development and testing of the test system. Including data acquisition module, serial communication module and the implementation of the module circuit design and software development.
Introduction
In nowadays, the world's major problem is still a waste of energy or how to develop a new energy, especially in the late 20th century, many scientists put forward to the idea that our country's policy is energy-saving emission reduction, the energy issue Pushed to the number of problem to solve. Against the background of the above, can deeply feel the school's waste of electricity is particularly serious, especially in many classroom lighting without class, which nobody study hall, but it has been on the lights. So for the kind of building before the cover, this phenomenon is very serious, so wehave toi against this situation. I will study how to solve this problem. I use this article is a simple 51 single-chip microcomputer as the main control circuit, and interspersed with some of the auxiliary circuit module to achieve the test system development and debugging. Including data acquisition module, serial communication module and the implementation of the circuit design and software development.
Basic Design Ideas
For this intelligent lighting system, divided into hardware and software parts. The hardware part mainly uses 51 monolithic integrated circuits as the core component, the main reason is the 51 monolithic integrated circuit price-performance ratio is also high and the stability . The other are some auxiliary modules, such as the clock module, infrared tube module. Software is the main part of the circuit diagram with the simulation, the main use of the C language programming, debugging process plus simulation. And puts forward the concrete realization method for the control strategy of the system. And the use of C language to write programs, and then use the relevant software simulation. The main core of the system design is the choice of the controller.
Option 1: Use the 51 Series as the system controller AT89C51 as a system control program. Because of its low power consumption, small size,
mature technology and low cost, it is widely used in various fields. Because of the advantages of the chip, it can be used in a wide range of applications. Feet less, in the hardware is very easy to achieve. And anti-jamming performance.
Option 2: The MSP43OF149 series microcontroller for the system controller.MSP430F149 series MCU can achieve a variety of complex logic functions, large modules, high density, it will all devices integrated in a chip, reducing the size and improve stability.
462
Advances in Engineering Research (AER), volume 1072nd International Conference on Materials Engineering and Information Technology Applications (MEITA 2016)
Copyright © 2017, the Authors. Published by Atlantis Press. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
-
Becausethis designintegrated
System Ha
STC89C51micro contrange of 0process in the originaprogram doptional.
Reset Cthe calculamethods. Csame, the fthere is noorder to ac
Displayis the dispOtherwise display, thmain advan
Infrarejunction, thtogether toirradiation,
e MSP430Fn can deal wdesign perf
ardware De
1 Microcotroller with 0 to 35MHthe process
al downloaddata, You ha
Circuit. Resator quite , Calculator isfirst is to reo automaticchieve the auy Module Cplay link, a
like some he resolutionntage is that
ed Tube Che componeo achieve t, the resultin
F149 series with the speformance an
esign
ntroller. Ta 4K byte
Hz with twos, if there is d the originaave to re-do
set circuit isthe differe
s mainly preestore the st, and finallutomatic rea
Circuit. In tLED digitrelatively
n is still ret the price i
ontrol Cirents of the mthis functiong current c
price is mueed requiremnd benefits,
The STC89Coperating v
o 16-bit copower failu
al data is retownload. Th
s mainly a dence is thatess the "OFate before tly if you walization of his system al tube cansimilar lettlatively lows acceptable
Figure1rcuit. The imajor compon. Infraredcalled photo
uch more exment in genthis design
C51 is a lovoltage rangounters. In ure, downlotained in thehe maximu
device to ret the start o
FF" button tothe circuit,
want to Autof the reset fudesign that
n only appeters is very
w, the best e, the cost t
1 The main infrared tubponents of td receiver ocurrent. If
xpensive thneral, do not
chooses sch
ow-voltagege of 3.4V addition S
oad failure te inside, stil
um operatin
estore the ciof this one,o achieve cland then onomatic wordunction. is the main
ear a numbey difficult tdisplay me
to a minimu
advantage be on the mthe semicondiode in ththe external
an 51 singlt need too hheme 1.
, high-perfoto 5.5V an
STC89C51 ips, STC89ll can run ong frequency
ircuit, and i the principlear, but thene is to haveds must be
n part of theer, but otheto distingui
ethod or disum. As show
main core nductor comhe general l circuit con
le-chip comhigh proces
formance Cnd operating
single-chipC51 single-n the card sy of 35Mhz
its major fuple there are reset circue to operatewritten pro
e LED digitaers can dispish betweensplay the nuwn in Figure
componentmponents are
illuminationnected to th
mputers, andssing speed,
MOS 8-bitg frequencyp download-chip insideslot, if otherz, 6T / 12T
unction withre different
uit is not thee their own,ocedures in
al tube, thisplay letters.n the LEDumber. Thee 1
t is the PNe combinedon of lighthe load, the
d ,
t y d e r
T
h t e ,
n
s .
D e
N d t e
463
Advances in Engineering Research (AER), volume 107
-
load to obtin light. As
Figu
Clock Coscillator correspondinformationis Dallas pcharacterizpower suppbelow.
System So
This article
tain the elecs shown in F
ure 2 the lo
Circuit. Clocircuit. No
ding smootn through th
production czed by strinply. The ge
oftware Des
e has one si
ctrical signaFigure 2
oad to obtain
ock circuit i matter wh
th work. The Internet company, itg Line wayeneral situat
Figure 3 Th
sign
mulation flo
al, and the e
n the electricorrespon
is able to prhat time pe
The work ocan see bast has one of
y to transfer tion is to us
he general s
ow chart, th
electrical sig
ical signal, anding changroduce a ceeriod or timof this prosically usingf the greate
r data betwese 37.235K
situation is t
he first is th
gnal change
and the elecges in light ertain frequeme point, tocess is clg the chip aest benefits een, but also
KHZ crystal
to use 37.23
e main flow
es with the c
ctrical signa
ency of the they are inock circuits a timer Dis =has a s
o has the fu. The diagr
35KHZ crys
w chart, show
correspondi
al changes w
standard cln accordanct. Now I cS1302, the
strong chargunction of cram shown
stal
wn in Figur
ing changes
with the
lock crystalce with thecan collectchip model
ge capacity,harging thein Figure 3
re 4:
s
l e t l , e 3
464
Advances in Engineering Research (AER), volume 107
-
Debugging
Operation time and enUnder normfollowing s
And theshown in F
g and Impl
consists of nd time, themal circumsteps: Long
en press theFigure 6
lementation
two parts, te third is thestances, rea
g press the S
Figure 5 Loe Enter key
Figure 4
n
the first is toe mode swital-time dispSelect button
ong press thy to enter th
4 simulation
o set the timtch and man
play, when tn once after
he Select buthe real-tim
n flow chart
me, the seconual switch.the need forr the release
utton once ae settings.
t
ond is to set. r key operate, shown in
fter the relePress the S
t the timing
ations, accorFigure 5.
ease Select butto
of the start
rding to the
on twice, as
t
e
s
465
Advances in Engineering Research (AER), volume 107
-
And the
Conclusio
Through thThis articlewith someIncluding circuit desi
Reference[1] Wang
Indust[2] Chen Z
Press,[3] Zhao n[4] Tang H[5] Zhao
Mecha
Fien press the
n
he above me uses a sime auxiliary data acquisign and soft
es Jingxia. A
try Press Zi . Practic 2014.6 egative map
Haoqiang. C Peihua. Prianical Indus
igure 6 thenOK button
methods, themple 51 sing
circuit mosition modutware devel
Application
cal Electron
p. Sensor Inprogrammi
inciple andstry Press
n press the Eto enter the
e content is gle-chip micodule, to aule, serial copment.
Technology
nic Circuit D
ntegrated Ciing tutorial.
d Interface
Enter key toe set time.
based on 5crocomputerachieve thecommunicat
y of Single
Design and
ircuit Manu. ISBN 978-Technology
o enter the r
51 single-chr as the mai test systetion modul
e Chip Mic
d Debugging
ual. First Ed-7-302-1515y of Single
eal-time set
hip street liin control cim develope and the i
crocompute
g. Beijing:
ition: Chem57-9: Tsinghe Chip Mi
ttings
ighting systircuit, and i
pment and implementa
er. Beijing:
China Elec
mical Industhua Univericrocompute
tem design.ntersperseddebugging.
ation of the
Electronic
ctric Power
ry Press sity Press er. Beijing:
. d . e
c
r
:
466
Advances in Engineering Research (AER), volume 107