Professional Documents
Culture Documents
Numerical Simulation Controlling Light Emiiting Diodes From Matlab
Numerical Simulation Controlling Light Emiiting Diodes From Matlab
Numerical Simulation Controlling Light Emiiting Diodes From Matlab
6, 2018
Samuel Eweni*
Department of Computer Information Systems,
Southern University at New Orleans,
6400 Press Dr. LA 70126, USA
Email: seweni@suno.edu
*Corresponding author
Chukwuebuka Eweni
Department of Computer Science,
Dillard University,
2601 Gentily Boulevard,
New Orleans, Louisiana 70122, USA
Email: ebukaeweni@yahoo.com
Abstract: The most popularly used light bulb in homes is the incandescent. It
is also the least energy efficient. The filament in the bulb is so thin that it
causes resistance in the electricity, which in turn causes the electricity’s energy
to form heat. This causes the incandescent to waste a lot of energy generating
heat rather than light. It uses 15 lumens per watt of input power. Increasing
energy efficiency is considered as a feasible policy option for many economies.
It motivate every nation to reconsider their energy and climate policies A
recorded MATLAB demonstration showcased LED versatility and its use by an
Arduino UNO board. The purpose of this experimental study was to determine
to what extent LEDs can reduce energy consumption through the use of an
Arduino UNO board and MATLAB and to discuss the applications of LED.
LED will be the future of lighting homes and will eventually completely
incandescent bulbs when companies complete the necessary improvements to
the LED. Light emitting diodes (LEDs) offer an exciting opportunity to
improve energy efficiency.
1 Introduction
Energy use constantly occurs all around us. Whether it is using the alarm clock to get up,
turning on the lights in the room, taking a warm shower, or driving a car to work, energy
usage is essential. The use of energy is known as energy consumption.
According to the National Energy Education Development Project (NEED, 2012), the
U.S. Department of Energy assigns different categories to energy users: residential,
commercial, industrial, and transportation (NEED, 2012).
A residential building is any place that a person lives in. Homes and buildings
consume about 40% of the energy produced in the USA (NEED, 2012). Lighting alone
consumes up to 6% of the energy bill (NEED, 2012). Most homes still use the lighting
that Thomas Edison invented in 1879 which is not efficient by modern technological
standard.
The advancement of technology has led to an increase in energy efficient products.
Energy consumption worldwide has been slowly dropping yearly due to the better
technology. G7 countries (USA, Canada, Great Britain, Japan, Germany, France, and
Italy) had a drop in electrical energy consumption of 1.1% in 2012 following a drop of
1.3% in 2011 (Enerdata, 2012).
LEDs have several advantages over compact fluorescent lights (CFLs) and incandescent
bulbs. These advantages include durability:
x Bulbs made of LEDs last ten times as long as compact fluorescents and even longer
than incandescent lamps.
x Cool – LED bulbs do not generate as much heat as the other two types of bulbs.
x Mercury-free – there is no mercury used in manufacturing LEDs.
x Efficiency and cost-effectiveness. Above all, LEDs are multi-purpose.
Apart from lighting homes, they can also be manipulated to perform other functions such
as security, digital message displays, etc., which can be achieved through the use of
various software and hardware.
MATLAB is the high-level language and interactive platform used by scientists and
engineers worldwide. It allows one to visualise and explore ideas and collaborate across a
variety of disciplines including communications, image and signal processing, and
control systems. In order to control LEDs from MATLAB, a number of components are
required. These include:
x Arduino Uno board
x MATLAB support package for Arduino
x MATLAB
x jumper wires
x breadboard (solderless breadboard was used in this instance)
x red LEDs (I used two red LEDs)
x 3’ USB cable
x 100 ohm resistors (two resistors for each LED).
To be able to use MATLAB program to control LEDs, you need MATLAB support
package. MATLAB support package for Arduino enables one to use MATLAB program
to communicate with the Arduino hardware over a USB cable. The support package is
based on a server program, running on the Arduino board. The package listens to
commands or instructions arriving through a serial port. It then executes the instructions
and returns a result.
Numerical simulation: controlling light emitting diodes from MATLAB 751
Figure 2 Arduino UNO board flow chart (see online version for colours)
You use the serial port on the Arduino hardware to pick instructions from MATLAB
software. Arduino hardware is connected to the MATLAB support package through a
USB cable. Arduino receives commands from MATLAB program via the USB. The
LEDs can be switched ON and OFF after running certain codes.
752 S. Eweni and C. Eweni
Figure 3 The setup we used to make two LEDs light up (see online version for colours)
Figure 4 Solderless breadboard and the Arduino UNO board (see online version for colours)
Numerical simulation: controlling light emitting diodes from MATLAB 753
Each LED has two 100 ohm resistors that are connected in a parallel formation to form
150 ohms after calculations (which is considered the perfect amount to run these red
LEDs). The red LED’s negative side (the side with the shorter edge) was connected on
the negative hole of the solderless breadboard and the positive was connected on the body
that was on the same row as the resistors. Also, the green jumper cable was connected on
the negative hole of the solderless breadboard. The red and black jumper cables were
connected on the positive side of the solderless breadboard along the same column of
holes where the resistors are seen connected by the resistor’s left edges. These jumper
cables make the connection between the breadboard and the Arduino UNO board. The
resistors regulate the amount of current that goes to the red LEDs.
Figure 5 showcases the setup we had on the Arduino UNO:
The red jumper cable was connected to the digital pin labelled ‘13’. The black jumper
cable was connected to the digital pin labelled ‘11’ and the green jumper cable was
connected to the digital pin labelled ‘GND’ or ‘ground’. The USB was then connected
onto the top-left corner of the Arduino board and the other side was connected to the
USB port of a computer. Note: the colours of the jumper cables do not matter; they are
there just to differentiate each pin connection.
If your code executes, it will say: ‘Arduino successfully connected’. Now erase the
previous code you just wrote until the page is blank. Simply put the letter ‘a’ in the editor
window (excluding the quotations) and click ‘Run’ to run the code. You should get the
following execution.
Table 1 Arduino connection/code execution
Each digital pin number is found on the Arduino Uno board. For this simulation, pins 13
and 11 will be used. We must make pins 11 and 13 convert from ‘UNASSIGNED’ to
output. The code to do that is below:
pinMode(a, 13, ‘output’); %Sets pin 13 as output
pinMode(a, 11, ‘output’); %Sets pin 11 as output
Note – The line with the sentence that comes after ‘%’ is not code, but comments used to
explain what the code does for easy comprehension. Run the above code. If it ran
successfully, the command window will just display the filename that you saved the
program as, followed by a blank line. Now erase all the code you wrote until the editor
window is empty and type ‘a’ as you did before again and then run it. You should now
get the following in the command window:
Table 2 Making pins 11 and 13 convert from ‘UNASSIGNED’ to output
Notice that digital pins 11 and 13 are now set as outputs. You are now ready to turn on
the LEDs. To turn on the red LEDs, the following code is necessary:
a.digitalWrite(11, 1); % This turns on the red LEDs at 50% brightness.
Numerical simulation: controlling light emitting diodes from MATLAB 755
Figure 6 Connected boards showed both LEDs light up (see online version for colours)
Advantages Disadvantages
Long life: White LED lamps can last up to 100,000 hours Cost: LEDs presently cost more
(11 years of continuous use or 22 years of 50% use). If money, price per lumen, than other
the lighting device requires placement into a place that is types of lighting.
not easily accessible, LED would be the perfect choice
rather than requiring a routine bulb replacement.
Reduced power consumption: This is the key advantage Dangerous substances inside LED:
of LED lighting. If properly created, a LED circuit can LED contains lead, arsenic, and
reach 80% efficiency; this means that 80% of the other dangerous substances.
electrical energy is changed to light energy (Lim et al.,
2011). The remaining 20% is dissipated as heat energy.
In comparison, an incandescent bulb, can reach 20%
efficiency (while 80% of the energy is dissipated as
heat energy.)
Durable quality: LED lights are very durable and created
with robust material that is very strong and can withstand
even the toughest conditions. In addition, since LED is
shock-resistant and resistant to external impact, it makes
for great outdoor use during rough conditions such as bad
weather.
No UV emissions: The illumination of LED light creates
little infrared light and close to no UV emissions. This,
LED lighting is highly suitable not only for resources
sensitive to heat because of the advantage of little
radiated heat emission, but can also be used to illuminate
ultra-violet sensitive materials such as in museums, art
galleries, archaeological sites, etc.
Design flexibility: LEDs can be formed into any shape
to illuminate highly proficiently. Individual LED light
intensity can be lowered, which results in an active
control of light, colour and distribution. A well-created
LED illumination system could accomplish fantastic
lighting effects, not only for the eye but also for the
mood and the mind.
LED illumination for the mood is found in airplanes,
classrooms and many other locations. We should
anticipate seeing more LED illumination for the
mood in our daily lives within the next few years
(Narra and Zinger, 2004).
Operational during extreme weather cycles: LEDs
are the best choice for use during cold and low outdoor
temperature settings. For fluorescent lamps, low
temperatures may affect the functioning of the lamp and
lead to a dispute, but LED illumination, works well in
cold conditions, such as for outdoor winter settings,
freezer rooms, etc. (Sandberg and Söderstrom, 2003).
Numerical simulation: controlling light emitting diodes from MATLAB 757
x Shield from blue pollution: Since cool-white LEDs that have high colour
temperature illuminate more blue light than modern-day outdoor light sources
such as high-pressure sodium vapour lamps, the strong wavelength dependence of
Rayleigh scattering shows that the cool-white LEDs can lead to more light pollution
than other light sources (International Dark-Sky Association, 2010). Luminanz
technology fixes this problem by using the light in a fully shielded way to minimise
blue pollution (Luminanz, 2011).
x Temperature dependence: The performance of a LED depends on the ambient
temperature of the place in which it is operating. Overheating of the LED happens
when the LED bulb is in overdrive and in ambient temperatures (Round, 1907). This
causes the device to malfunction. To make the LED last longer, enough heat sinking
is needed. This is especially true in the case of automotive, medical and military
applications, where the LED bulb must work over a vast range of temperatures and
needs to have a low failure rate (Roebuck, 2012). Luminanz has LED bulbs that
make good use of high brightness LEDs, which have less heat buildup, together with
competent thermal management that leads to optimum performance (Luminanz,
2011).
What do these solutions prove? It outlines that although LED has its disadvantages, the
solution to each disadvantage is also currently present. Luminanz, a private company in
Bolton, Northwest England, found the solution to most of the disadvantages. The only
problem is that it is only one company, but it shows that there is room for growth in LED
technology (Moreno and Sun, 2008). With time, more companies will follow suit in
fixing the disadvantages, which will lead to mass production of better versions of LED
and a lowering of the price to give it a more competitive edge over other kinds of bulbs
(incandescent, CFL, fluorescent, etc.).
Lumens Measure of V for incandescent (volts) Power (watts) Current, I for lamp
450 230 40 0.174
800 120 60 0.500
1,100 130 75 0.577
1,600 120 100 0.833
2,600 120 150 1.250
Numerical simulation: controlling light emitting diodes from MATLAB 759
Lumens Measure of V for LED (volts) Power (watts) Current, I for LED
450 12 5 0.417
800 265 8 0.302
1,100 110 13 0.118
1,600 175 20 0.114
2,600 23 28 1.217
Figure 7 LED and lamp current graphical correlations (see online version for colours)
3.3 Discussion
As indicated by the graph, current consumption by LED is generally lower than that of
the lamp. This current is indicated by the orange line while the one of the lamp is
showcased by the blue line. As clearly seen, LED’s current usage initially is higher
than the lamp at 450 lumens but later falls and remains below when it ranges from
800–2,600 lumens. Given the fact that lighting a LED requires lower voltages, this
implies that the national grid supply can be used by other consuming units before finally
being drawn to the limits of their usage. This will ensure that no power goes to waste
(Decanio, 1998).
760 S. Eweni and C. Eweni
4 Conclusions
Presently, incandescent bulbs are the most common light bulbs used in lighting homes.
Many people flock to incandescent bulbs only because of their cheap initial pricing even
though the disadvantages are numerous. However, recently many people have been
removing incandescent lighting from their homes. Also recently, several stores have
started to phase out incandescent bulbs because they are becoming out-of-date with
today’s technology. LED has slowly become the alternative to incandescent. In addition,
certain LED products have become more competitive in terms of pricing compared with
incandescent (Csutora and dePalma, 2009).
There are many reasons LED is better than incandescent bulbs. Incandescent bulbs
burn out quickly and waste more energy generating more heat than light compared to
LED. In addition, they have a far lower lifespan compared to LEDs (which can last for
almost 20,000 hours versus 2,000 hours for the incandescent).
LED has its flaws, such as being expensive and having only directional lighting
(which means that the light shines only in one direction like a flashlight does) instead of
filling the whole room. LED has disadvantages, which can be have been rectified by a
private company called Luminanz. In addition, the recent cost of LED has dropped
significantly to compete with the incandescent. The findings of these solutions to the
disadvantages prove that LED will be the future of lighting homes and will eventually
replace incandescent bulbs for good. This will happen when companies begin to make the
necessary improvements on the LED.
Using incandescent bulbs is minor based on the trends exploited by the LED. As the
experimental results have indicated, LEDs provide an on-grid solution to power
utilisation, especially given the manner under which low voltages have been seen to be
useless. Some of these scattering perspectives have all along violated the concept of
green energy and renewability of electricity (Rácz, 2012). To a lesser degree, LEDs have
proven their worth by allowing the possibility of having no energy going to waste (Wald,
2007).
References
Continental Inc. (2010) Basic Advantages of LED Light [online] http://www.continental-
lighting.com/led-basics/advantages-disadvantages.php (accessed 4 March 2015).
Csutora, M. and dePalma, R. (2009) ‘Using EMA to benchmark environmental costs’,
Environmental Management Accounting for Cleaner Production, pp.143–164, DOI: 10.1007/
978-1-4020-8913-8_8.
Decanio, S. (1998) ‘The efficiency paradox: bureaucratic and organizational barriers to profitable
energy-saving investments’, Energy Policy, Vol. 26, No. 5, pp.441–454 [online] http://doi.org/
10.1016/S0301-4215(97)00152-3 (accessed 9 March 2015).
Enerdata (2012) Global Energy Statistical Yearbook 2013 [online] http://yearbook.enerdata.net/
electricity-domestic-consumption-data-by-region.html (accessed 5 January 2013).
Hamm, T. (2009) “The light bulb showdown: LEDs vs. CFLs vs. incandescent bulbs – what’s the
best deal now…and in the future?”, The Simple Dollar [online] http://www.thesimpledollar.
com/the-light-bulb-showdown-leds-vs-cfls-vs-incandescent-bulbs-whats-the-best-deal-now-
and-in-the-future/ (accessed 2 March 2015).
Numerical simulation: controlling light emitting diodes from MATLAB 761
Home Depot (2013a) GE Double Life 60-Watt A19 Soft White General Purpose Incandescent Light
Bulb (6-Pack) [online] http://www.homedepot.com/p/GE-Double-Life-60-Watt-A19-Soft-
White-General-Purpose-Incandescent-Light-Bulb-6-Pack-60A-W-2L-6PK/100493722#.
UosVd-LiETA (accessed 2 March 2015).
Home Depot (2013b) Philips 13-Watt (65W) BR30 Indoor Soft White (2700K) Dimmable LED
Flood Light Bulb (E) [online] http://www.homedepot.com/p/Philips-13-Watt-65W-BR30-
Indoor-Soft-White-2700K-Dimmable-LED-Flood-Light-Bulb-E-
423798/203408017#.UosahOLiETA (accessed 2 March 2015).
Hutchings, E. (2013) Long Lasting LED Light Looks Like Incandescent Bulb [online]
http://www.psfk.com/2013/03/led-incandescent-bulb.html (accessed 4 March 2015).
International Dark-Sky Association (2010) Visibility, Environmental, and Astronomical Issues
Associated with Blue-Rich White Outdoor Lighting (PDF) [online] http://www.darksky.org/
assets/documents/Reports/IDA-Blue-Rich-Light-White-Paper.pdf (accessed 8 March 2015).
Lim, S. et al. (2011) ‘Potential environmental impacts of light-emitting diodes (LEDs): metallic
resources, toxicity, and hazardous waste classification’, Environmental Science & Technology,
Vol. 45, No. 1, pp.320–327, DOI: 10.1021/es101052q.
Luminanz (2011) Disadvantages of Using Traditional LEDs [online] http://www.luminanz.co.uk/
tech_disadvantages.php (accessed 3 March 2015).
Moreno, I. and Sun, C. (2008) ‘Modeling the radiation pattern of LEDs’, Optics Express, Vol. 16,
No. 3, pp.1808–1819 [online] https://doi.org/10.1364/OE..16.001808 (accessed 9 March
2015).
Narra, P. and Zinger, D. (2004) ‘An effective LED dimming approach’, Industry Applications
Conference, 39th IAS Annual Meeting. Conference Record of the 2004 IEEE, Vol. 3,
pp.1671–1676.
National Energy Education Development Project (NEED) (2012) Energy Consumption [online]
http://www.need.org/needpdf/infobook_activities/IntInfo/ConsI.pdf (accessed 3 January
2013).
Rácz, D. (2012) ‘Why invest in energy efficiency? The example of lighting’, Journal of
Environmental Sustainability, Vol. 2, No. 2, pp.83–98 [online] http://scholarworks.rit.edu/jes/
vol2/iss2/1. (accessed 10 March 2015).
Roebuck, K. (2012) AMOLED – Active-Matrix Organic Light-Emitting Diode: High-impact
Strategies – What You Need to Know: Definitions, Adoptions, Impact, Benefits, Maturity,
Vendors [online] https://books.google.com/books?id=CDEQBwAAQBAJ (accessed 20
February 2015).
Round, H. (1907) ‘A note on carborundum’, Electrical World, Vol. 19, p.309.
Sandberg, P. and Söderstrom, M. (2003) ‘Industrial energy efficiency: the need for investment
decision support from a manager perspective’, Energy Policy, Vol. 31, No. 15, pp.1623–1634
[online] http://doi.org/10.1016/S0301-4215(02)00228-8 (accessed 2 March 2015).
Scheer, R. (2012) The Dark Side of LED Lightbulbs, EarthTalk [online] http://www.
scientificamerican.com/article.cfm?id=led-lightbulb-concerns (accessed 4 March 2015).
Solar Sign Lights (2012) LED Light Bulbs [online] http://www.solarsignlights.org/LEDlightbulbs.
html (accessed 8 March 2015).
Wald, M. (2007) ‘The energy challenge – efficiency, not just alternatives, is promoted as an energy
saver’, The New York Times [online] http://www.nytimes.com/2007/05/29/business/
29efficient.html?_r=1 (accessed 10 March 2015).
Worthey, J. (2006) ‘How white light works’, LRO Lighting Research Symposium, Light and Color
[online] http://www.jimworthey.com/jimtalk2006feb.html (accessed 8 March 2015).
Zheludev, N. (2007) ‘The life and times of the LED: a 100-year history’, Nature Photonics, Vol. 1,
No. 4, pp.189–192, DOI: 10.1038/nphoton.2007.34.