You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/283103179

Intelligent lighting control with LEDS for smart home

Article · April 2015


DOI: 10.1109/SGC.2014.7090861

CITATIONS READS
8 1,737

4 authors, including:

Armin Barghi Amir Kosari


University of Tehran 5 PUBLICATIONS 12 CITATIONS
3 PUBLICATIONS 10 CITATIONS
SEE PROFILE
SEE PROFILE

Maede Shokri
University of Tehran
1 PUBLICATION 8 CITATIONS

SEE PROFILE

All content following this page was uploaded by Armin Barghi on 27 June 2017.

The user has requested enhancement of the downloaded file.


Intelligent Lighting Control with LEDs for
Smart Home
Armin Barghi and Amir Reza Kosari Maede Shokri and Samad Sheikhaei
Department of Mechatronics Engineering Department of Electronics
Faculty of New Science and Technologies,University of Tehran College of Engineering University of Tehran
Tehran, Iran Tehran, Iran
{Barghi_armin & Kosari.a}@ut.ac.ir {M.shokri & Sheikhaei}@ut.ac.ir

Abstract—This paper presents intelligent lighting control system hours (kWh) per month. Controlling the lighting system,
for smart home. The AC power source is converted down with an considering the high speed population growth and limited
AC to DC switching power supply, then is delivered to some LEDs available energy sources, is unavoidable [2].
with an LED driver. This paper proposes two methods of lighting In the last decade, solid-state light sources have emerged as the
control. In the manual control method, LED is controlled with a
lighting technology of choice for many lighting applications
PWM signal. In fact, according to the user command, it generates
the proper duty cycle in a PWM signal. In the automatic control because of their durability, efficiency and reliability. Now the
method, the LED is controlled with a signal generated by the PID lighting community can choose from a wide variety of high
control algorithm. In this method, the photocell measures the power LED products designed to meet specific needs or to
ambient light level and with reference to the input command by provide more efficient, longer lasting alternatives to traditional
the user, proper PWM signal is generated. Circuit schematics and lamps [3].
the implementation details are presented. A laboratory prototype Here are the top 10 benefits of LEDs according to [4]: Long
is also designed and tested to verify the feasibility, and the Life, Energy Efficiency, Ecologically Friendly, Durable
experimental results are demonstrated. Quality, Insect repellent, Design Flexibility, Operational in
Index Terms—PID, LED driver, Switching power supply, Home
wide range of temperature, Light Dispersement, Instant
lighting control. Lighting & Frequent Switching, Low-Voltage operation.
Reduction in power consumption and significant energy
I. INTRODUCTION savings can be achieved by using intelligent lighting systems
Light Emitted Diode (LED) is a member of the family of and switching to LED based lighting systems. Intelligent
diodes that emits light. Diodes are semiconductors. Electrons lighting systems have lots of features such as monitoring,
that pass the diode will have a drop from the conductivity band control and communication networks, dimming, motion
to a lower orbital, so they can release energy in form of photon. sensing, ambient light sensing and daylight energy harvesting,
This is caused by applying a proper voltage to the leads. By and monitoring various parameters such as energy
physical and chemical alterations in LED's structure, we can consumption and LED temperature. There are various
create light in different colors and intensity. economic aspects that influence the implementation of lighting
Diverse uses of LEDs in lighting caused the production of controls. Especially, the indoor lighting consists of the
LEDs with higher power and lighting. High-power LEDs concerns below:
(HPLEDs) or high-output LEDs (HO-LEDs) were
manufactured to operate on more than an ampere and they emit  Need for energy savings
over a thousand lumens [1].  Utility rebates
Home lighting is an important topic in energy  Creating a sustainable work and home environment
consumption. According to statistics declared from The  Enhance comfort and productivity of the residents
Department of Energy and Climate Change, the total amount
of electricity consumption by home appliances between 1970
Controlling radiated light from a LED is considered in both
and 2013 grew by around 1.7 percent per year over this period.
increasing human comfort and energy optimization. LEDs are
Also, in 2012, the average annual electricity consumption for
stable in repeated turning ON and off, so they are dimmable.
a U.S. residential utility customer was about 900 kilowatt
This is made possible by applying a PWM (pulse width overall design is confronted with limiting and intruder factors
modulation) signal to control the brightness and power that caused the overall system to divide into several sub-
consumption. By changing the voltage of output PIN of a systems, inevitably. Then different parts are separately
microcontroller between 0 to 5V, PWM signal is generated and designed. The ultimate design is achieved by locating these
using that we are able to control the level of brightness. In parts in their places. By this division, the total design becomes
order to prevent the uncontrollable current amplitude and more modular and comfortable and also helps the designer in
extending the life time of LED and also for ease and low cost the design process. The possible problems in this production
of the circuit, LEDs are used with current limiting resistors and include: noise, the dangers of high-voltage for individuals, the
a number of them are connected in parallel to the same PWM heat generated by the lamp, combining digital and analog
controller [5] [6]. circuits and the consequences of using a combination of them
Among the various methods for intelligent lighting system and protection against short circuit and open circuit that the
control, PID algorithm despite the simplicity and ease of methods to overcome each of them will be explained in the
implementation is highly reliable. PID (Proportional, Integral, related section.
and Differential) is a control algorithm that tries to compensate According to the above points, the whole system is
for characteristics in the system. There are three coefficients in divided to three sub-systems below:
the PID controller loop. Each component is prefixed with a  Power Supply
gain constant, and when added together, gives the  LED Driver
instantaneous control value that is used to drive the system.  Controller
Typically, the designer is generating a voltage to control the The required power of the system is provided by the AC
system, so each component can be thought as contributing a power. Since one of our important goals is to achieve a low
particular voltage to the final output. power design, inevitably we used switching power supplies.
In the previous work, some methods have been proposed that First, the AC input power is rectified. Then, using the fly back
are designed with high efficiency LED drivers. For instance, technology, it is applied to the power transistor. PWM driver
in self-adaptive driver methods efficiency improvement of the IC will control the transistor. The output of the transformer is
linear current regulators was approximately 15% compared to ready to inject into other parts of the circuit, after passing
the corresponding implementation with a constant pre through appropriate filters. In the LED driver part, we used
regulator voltage [7]. power transistors with the ability to drive the required current
II. GENERAL DESCRIPTION for turning the lamps on. Choosing the appropriate transistor,
Fig. 1 displays the block diagram of the whole system. and avoiding the short circuits and the open circuits in order to
This diagram shows the required steps to set up the power protect LEDs to increase their lifetime is very important in this
supply, LED driver, the controller, the communication part of design.
modules and the connection between different parts. The
By applying a PWM signal to the base of a power In the controller part, by using a potentiometer as an analog
transistor, we can control the rate of current passing through input and also a serial port as a digital input, the user can enter
the LED drivers. The PWM signal is produced by a their preferred values to set the intensity of the environment
microcontroller. Direct connection of base and pin of the light. Also, system has the feature of sensing the intensity of
microcontroller may cause problems such as drawing high the environment light and using a special software on the
current and chance of resetting the microcontroller, so we must microprocessor to set the appropriate light intensity.
use isolation.

Figure 1: Block diagram of whole systems. You can see the sub-systems and their connections
III. DESIGN CONSIDERATION mode. Between the rectifier and transformer an EMI filter is
This section explains the performance of the entire system. needed.
The outline is presented in two main parts: hardware and The noise of high frequency components that leave the
software. As already mentioned, the hardware section consists switching supply and enter the input line would radiate from
of power supply, the LED driver and the central controller. In the power lines as in an antenna. To reduce these noises, an LC
the software section, a flowchart is used to describe the circuit is needed that operates as a radio-frequency interference
process. (RFI) filter. It is better to design this filter with a low pass
1. HARDWARE cutoff frequency of 2 to 3 times the supply’s operating
1.1 Power Supply frequency. Furthermore, adding a small impedance (L)
The power supply is the most important part of any between the input line and the bulk input capacitor is useful for
electronic circuit. In this project we have used a switching reduction of any lethal transient voltage and absorption the
power supply to provide the required power. The alternative destructive energies by capacitor and any surge protector, from
option is linear power supplies, but because of the versatility, the input line spikes or waves, with Little chance of increase in
efficiency, size, and cost, the switching power supply is voltage ratings of the components [8].
preferred in most applications [8]. The heart of the switching power supply is TNY274PN IC.
There is a variety of topologies for designing a switching It generates the PWM pulse to provide 6 Watts power in
power supply. Each topology is suggested for certain adaptor mode. Controlling the duty cycle of the desired output
conditions. Based on Table 2 [9] we selected the fly back power is done with respect to the values of the feedback. The
topology. According to the output power (5 watts), input DC required transformer is winded based on the PI expert Software
voltage (300 V) and for enhancing the safety and the use of recommendation and has the following features:
isolation in the input and output and the cost of the final  EI13-core
implementation, the fly back is desirable.  The air distance of 0.2 mm
Table2: Switching Power Supply Topology [9]  112 round wire on the primary side
  8 round two-filar wire on the secondary side
In high currents, for fast connection and disconnection we
used 1N5818 Schottky diode, a very fast diode that has the
ability to cut off 1A current with high speed.
For filtering output current and voltage, we used additional
filter on the output. One of the most important parts of the
circuit is the feedback voltage, which is done by series
connection between Zener diode and opt-coupler. When the
value of the output voltage goes beyond the given value, diode
is forward biased and by connection of feedback circuit,
The design process is as follows: The 220 volts AC voltage reduction of the amount of voltage is commanded to the IC
is rectified by a diode bridge and with the help of the capacitor, switches.
C1, the amplitude becomes almost constant. The voltage 1.2 LED DRIVER
tolerance for this capacitor is very important, also, we put a Fig. 3 shows a LED Driver. Each LED is used in series with
resistor on the Phase wire to prevent passing high current a resistor. The branches are connected in parallel. Transistor
through capacitor C1, when the capacitor is in the discharge role is to drive current into the circuit. Resistance values are
calculated for enough current and voltage to drive LED.

Figure2: Switching Power Supply schematic


Nominal values of current and voltage are suggested by the this module is low power, it provides a reliable communication
data sheet. These values is calculated using Eq. (1). network.
A photo resistor or light-dependent resistor (LDR) or
i photocell is a light-controlled variable resistor. The resistance
of a photo resistor decreases with increasing incident light
intensity; in other words, it exhibits photoconductivity. A
photo resistor can be utilized in light-sensitive detector
circuits, and light- and dark-activated switching circuits.
0.5 ohm 0.5 ohm The resistance of a photo resistor decreases with increasing
incident light intensity; in other words, it exhibits photo
PWM conductivity. When photocell is used in a resistive voltage
2.2 K divider, by reading the voltage and a simple calibration the
light intensity of the environment can be calculated.
1 ohm
2. SOFTWARE
The light intensity value is sent via potentiometer or by the
house central controller via Zigbee communication module.
Figure 3: LED Driver
The algorithm in micro-controller checks whether it is a
different value or not. If it was a new value, ADC converts it
to a digital value and assumes that as a desire point. Then
Vcc=VLED+ (0.5||0.5) × i+ VCE (Sat) +1×i (1)
calculates the PID coefficients and generates the appropriate
PWM signal. This PWM signal is given to the base of the
Vcc = 5V, VLED =3V, VCE (Sat) =1V (2)
driver transistor that makes the LED turn on. Photocell is used
to detect the light intensity of the environment and in case of
i= 800 mA (3)
any disagreement, new PID coefficients and another PWM
signal is generated. When the amount of light intensity is
Based on Eq. (3) the transistor current is suitable for turning
desirable to the user, the system continues to work with the
on the LEDs.
pervious coefficients and wait for new input values from the
user. LED light has a linear relation with the current that passes
1.3 CENTERAL MICROCONTROLLER
through it. But the amount of ambient light can change the
The central controller is the heart of the system. To control
lighting percentage. Imagine a situation, for example
the lighting system, we need a processor with the following
command is sent to the light to be 60%. At 3 PM because of
features:
the sunlight, indoor is bright, then system must provide a PWM
 Analog to Digital Converter module (ADC) with 0% duty cycle (i.e., turn off the LEDs). But, at 11 PM,
 Serial port lack of sunlight indoor, must result in producing a PWM with
 PWM module 60% duty cycle. Fig. 4 shows the flowchart.
ADC module converts analog values to digital. The value
of voltage on the potentiometer pin is converted into the
appropriate digital value. Resolution is one of the most
important factors in choosing ADC. The voltage resolution of
an ADC is equal to its overall voltage measurement range
divided by the number of digitization steps: [10]
𝐸𝐹𝑆𝑅
Q 
2𝑀
For the 10-bit ADC of the microcontroller with 5 volt
working voltage, the resolution is 25 millivolts. It is suitable
for reading the temperature sensor and potentiometer. For
implementation of the central controller, we used Arduino
UNO board. The Arduino Uno is a microcontroller board
based on the ATmega328. It has 14 digital input/output pins,
of which 6 can be used as PWM outputs, 6 analog inputs, a
16 MHz ceramic resonator, a USB connection, a power jack,
an ICSP header, and a reset button [11].
To communicate with the communication module, serial
port is needed. The common module used in automation is
ZigBee. ZigBee follows the IEEE 802.15.4 protocol [12]. For
the implementation, ZU10 module is used. Working frequency
of Zigbee is 2.4 GHz and has the data rate of 360 kb/s. While Figure 4: Software Flowchart
IV. RESULT The important advantages of this design include reasonable
Fig. 5 shows a diagram of efficiency versus the PWM duty efficiency of the driver, biasing the LED in the nominal voltage
cycle. The highest efficiency occurs when the maximum and current based on suggestions by the datasheet that
electrical current passes through the LED. Fig. 5 shows share increases the lifetime of LED, and intelligent functionality to
of power consumption for each section in the maximum provide more welfare facilities for users.
efficiency. Table 2 shows experimental values of voltage and
current for each section. This table can be used for calculating
efficiency for each section separately. Fig. 7 shows the final
system.

Figure 7: The final implementation

REFERENCES
[1] N. Zheludev. "The life and times of the LED—a 100-year
history." Nature Photonics, vol. 1, pp. 189-192, Nov. 2007.
[2] A. Druckman and T. Jackson. "Household energy consumption in the
UK: A highly geographically and socio-economically disaggregated
model." Energy Policy, vol. 36, pp. 3177-3192, Mar. 2008.
[3] “How much electricity does an American home use?" Internet:
Figure 5: Diagram of efficiency versus the PWM duty cycle http://www.eia.gov/tools/faqs/faq.cfm?id=97&t=3, Jan. 10, 2014 [Nov.
15, 2014].
[4] Huang-Jen Chiu. Yu-Kang Lo. Jun-Ting Chen. Shih-Jen Cheng; Chung-
Yi Lin. Shann-Chyi Mou, "A High-Efficiency Dimmable LED Driver
for Low-Power Lighting Applications," Industrial Electronics, IEEE
Transactions on , vol. 57, pp. 735-743, Feb. 2010.
[5] "Top 10 Benefits of Using LED Lights Instead of Conventional
Lighting." Internet: http://www.ledluxor.com/top-10-benefits-of-led-
lighting, Dec. 12, 2012 [Oct. 10, 2014].
[6] J. Petroski. "Thermal challenges in LED cooling." Internet:
http://www.electronics-cooling.com/2006/11/thermal-challenges-in-
led-cooling, Nov. 10, 2006 [Sep. 12, 2014]
Figure 6: Percentage of power consumption of each section while operating [7] Yuequan Hu. Jovanovic, M.M., "LED Driver With Self-Adaptive Drive
at maximum efficiency Voltage," Power Electronics, IEEE Transactions on , vol. 23, pp. 3116-
3125, Nov. 2008.
[8] M. Brown,Practical Switching Power Supply Design. San Diego,
V. CONCLUSIONS AND FUTURE WORK CA:Academic, 1990.
Since energy saving is one of the most important concerns [9] K. H. Billings, Switchmode Power Supply Handbook, 2nd ed. New
York: McGraw-Hill, 1999
these days, this design can help a lot in saving electrical energy
[10] E. L. Zuch, “Principles of data acquisition and conversion,” inData
in the field of lighting. Acquisition and Conversion Handbook, E. L. Zuch, Ed. Mansfield,MA:
Now lots of driver ICs can be found for driving LEDs with Datel, 1979, pp. 13–18.
wide variety of features, such as dimming the light of LEDs. [11] "Arduino - ArduinoBoardUno." Internet:
However, designing an appropriate driver with devices that are http://arduino.cc/en/Main/arduinoBoardUno, [Nov. 27,2014]
low cost and more available to the designers was the [12] ZigBee Alliance, “IEEE 802.15.4, ZigBee standard”,
motivation for doing this project. This design is also very http://www.zigbee.org/, Sep. 10,2004.
flexible, since it uses some software for lighting control.

Table 2: experimental measurement for each subsystem

View publication stats

You might also like