Professional Documents
Culture Documents
Li-Fi Documentation
Li-Fi Documentation
Li-Fi Documentation
BACHELOR OF ENGINEERING
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
BY
RAYABARAPU YAMINI (1005-17-735086)
ORUGANTI ANITHA (1005-17-735081)
AHMED FARID (1005-17-735037)
2017 - 2021
I
CERTIFICATE
This is to certify that the Project report on “Implementation of LIFI communication with
load control unit” is a bonafide work carried out by RAYABARAPU YAMINI (1005-
17-735086), ORUGANTI ANITHA (1005-17-735081) and AHMED FARID (1005-17-
735037) in the partial fulfillment for the award of B.E. degree in Department of
Electronics and Communication Engineering, University College of Engineering
(Autonomous), Osmania University, Hyderabad under our guidance and supervision.
II
ACKNOWLEDGEMENT
The satisfaction that accompanies the successful completion of any task would
be incomplete without the introduction of the people who made it possible and whose
constant guidance and encouragement crowns all efforts with success.
III
DECLARATION
We declare that the work reported in the present thesis titled “Implementation
of LIFI communication with load control unit” is a record of work done by us in the
department of Electronics and Communication Engineering, University College of
Engineering, Osmania University.
No part of the thesis is copied from books, journals, document or internet and
whenever the portion is taken, the same has been duly referred in the text; the reported
are based on the project work done currently by us, not copied from any other source.
IV
INDEX
CERTIFICATE II
ACKNOWLEDGEMENT III
DECLARATION IV
1 INTRODUCTION 1
2 LITERATURE SURVEY 7
3 ARCHITECTURE OF LI-FI SYSTEM 9
4 WORKING OF LI-FI 12
5 ARDUINO 26
6 HARDWARE DESCRIPTION 40
7 SOFTWARE IMPLEMMENTATION 46
8 RESULTS 65
9 CONCLUSION AND FUTURE SCOPE OF LI-FI 67
REFERENCES 68
ABSTRACT
Li-Fi stands for Light-Fidelity.The technology is very new and was proposed by
the German physicist Harald Haas in 2011. Li-Fi provides transmission of data through
illumination by sending data through an LED light bulb that varies in intensity faster than
human eye can follow. Wi-Fi is useful for general wireless coverage within buildings
while Li- Fi is ideal for high density wireless data coverage in confined areas where there
are no obstacles.LiFi is a wireless optical networking technology that uses light for
transmission of data.The term Li-Fi refers to visible light communication (VLC)
technology that uses as medium to deliver high-speed communication in a manner similar
to Wi-Fi. Li-Fi provides better bandwidth, efficiency, availability and security than Wi-Fi
The frequency spectrum that is available to us in the atmosphere consists of many waves
but why the Visible Light part is chosen? The reason behind this is the easy availability
and lesser harmful effects that occur due to these rays of light. VLC uses the visible light
between 400 THz (780 nm) and 800 THz (375 nm) as medium which are less dangerous
for high-power applications and also humans can easily perceive it and protect
themselves from the harmful effects. Visible light portion (from red to blue) of the
electromagnetic spectrum does not cause any harm to the people as visible rays are safe
to use, provide larger bandwidth and also have a promising future in the communication
field. This project presents a system implementation of new home automation system by
using light fidelity technique.
The proposed system consists of two parts ,the first part is software implementation, this
is done by using different types of codes to control microcontroller.The next part is
hardware in which microcontroller controls the multiple devices according to the user’s
need based on switching commands.
CHAPTER-1
INTRODUCTION
The idea of Li-Fi was introduced for the first time by a German physicist Harald Hass
in the TED (Technology, Entertainment, Design) Global talk on Visible Light
Communication (VLC) in July 2011, by referring to it as ―data through
illumination‖. He used a table lamp with an LED bulb to transmit a video of a
blooming flower that was then projected onto a screen. In simple terms, Li-Fi can be
thought of as a light-based Wi-Fi i.e. instead of radio waves it uses light to transmit
data. In place of Wi-Fi modems, Li-Fi would use transceivers fitted with LED lamps
that could light a room as well as transmit and receive information. By adding new
and unutilized bandwidth of visible light to the currently available radio waves for
data transfer, Li-Fi can play a major role in relieving the heavy loads which the
current wireless system is facing. Thus it may offer additional frequency band of the
order of 400 THzcompared to that available in RF communication which is about 300
GHz. Also, as the Li-Fi uses the visible spectrum, it will help alleviate concerns that
the electromagnetic wavescoming with Wi-Fi could adversely affect our health.
1
By Communication through visible light, Li-Fi technology has the possibility to
change how we access the Internet, stream videos, receive emails and much more.
Security would not be an issue as data can‘t be accessed in the absence of light. As a
result, it can be used in high security military areas where RF communication is
prone to eavesdropping.
➢ The Photo phone: On February 19, 1880, Alexander Graham Bell and his
assistantCharles
Sumner Tainter jointly invented the photophone. The photophone was a device that
wirelessly transmitted speech using a beam of light.
2013, LiFi systems were able to demonstrate data rates of over 1.6 Gbit/s over a
single color LED. • One of the biggest concerns about using LiFi for wireless
communication is that it would require a line of sight to gain a signal. Those concerns
were assuaged, thankfully, as it was announced in 2013 that LiFi systems will not
2
require line-ofsight conditions. • In October 2013, Chinese manufacturers were
working on LiFi development kits. The scientists say data speeds of up to 150 Mbps
were possible through the use of microchipped bulbs. Chi Nan, the lead scientist on
the team, acknowledges thatLiFi‘s success as a commercial technology will rely on
the development of key pieces of technology. These will include light communication
controls and microchip design and manufacturing. • In April 2014, Russian company
StinsComan announced their development of BeamCaster, a LiFi wireless local
network capable of transferring 1.25 gigabits of data per second. They foresee
boosting speeds of up to 5 Gb/s in the near future.
MOTIVATION:
As the consumption of wireless data increases by 60%,every year that means the
radio frequency space is slowly becoming saturated which can lead to phenomenon
called a spectrum crunch. So, by considering the following features of LiFi, the
efficiency of communication is increased.
➢ Speed: LiFi provides speeds around 100 times faster than currently achievable
speeds in WiFi. Faster communication would result in better service quality and
better communication.
➢ Availability: Due to the use of LED bulbs, LiFi can be made available everywhere
by replacing traditional LED bulbs with LiFi compatible bulbs.
3
➢ Security: Since LiFi makes use of visible light spectrum, it cannot penetrate
through optically opaque objects like walls making it difficult for unauthorised access
unlike present WiFi which could be accessed from beyond walls and making it
vulnerable to unauthorised access.
The main objective of the project is to provide an efficient, low cost, secure,
digitally controlled and fast data transfer technique which can be used as an
alternative for conventional data transfer technique Wi- Fi.
At the same time the project also lets us to use more efficient light source i.e.,
4
LED.
Our project also aims at a communication tool in public places which comes up
with transfer of data at a faster rate over a wide spectrum.
1.4. Applications:
Li-Fi technology can find application in a wide variety of fields. A detailed discussion
of its various applications is given below.
5
water due to strong signal absorption. Acoustic waves have low bandwidth and
disrupt marine life. Li-Fi offers a solution for conducting short-range underwater
communications.
(iii) Traffic
Li-Fi can be used for communications between the LED lights of cars to reduce and
prevent traffic accidents. LED headlights and tail-lights are being implemented for
different cars. Traffic signals, signs and street lamps are all also transitioning to LED.
With these LED lights in place, Li-Fi can be used for effective vehicle-to-vehicle as
well as vehicle-to-signal communications. This would of course lead to increased
traffic management and safety.
6
CHAPTER-2
LITERATURE SURVEY
In broad area of Wi-Fi Internet devices, most of the people are using 2.4-5GHz RF to
deliver wireless Internet access surrounded our offices, schools, home, and some
public places also. We become quite dependent upon these nearly ubiquitous services
[7, 15]. While Wi-Fi cover an entire house, school, the bandwidth is limited to 50-
100 megabits per seconds (Mbps). It is a mostly current Internet services, but
insufficient for moving large data files such as HDTV movies, music libraries and
video games. The most of the dependent upon the cloud or our own media services to
store all of our files, including audio and video devices, movies, photos, games, the
more and most bandwidth and speed should be needed to access this data. Hence
RFbased technologies Wi- Fi are not the optimal way. In addition, Wi- Fi may not be
the most efficient way to provide new desired capabilities such as gesture recognition
and precision indoor positioning. The optical wireless technologies, sometimes called
visible light communication (VLC), and more recently referred to as Li-Fi. On the
other hand, offer an entirely new paradigm in wireless technologies in
communication speed, usability and flexibility, reliability. VLC is the possible
solution t o the global wireless spectrum storage.LIFI technology is a fast and cheap
optic al version of Wi-Fi. It is a based on Visible Light communication medium using
Light between 4000 THZ to 375 THZ as optical carrier for the data illumination. The
data is encoded into light to generate data stream by varying the flickering rate, to be
clearer, by modulating the LED light with the data signals , it illustrates the
communication source [4]. Thi s is a whole new spectrum of possibilities as
compared to the radio waves spectrum and is 1000 times more in size radio waves
Spectrum. And is 1000 times more in size. Visible light is not injurious to vision and
are mandatory part of infrastructure.
References:
1. LIFI via LED light bulb data speed breakthrough ―.BBC News 28 oct
2013.archived from the original on 1 jan2016.Retrived 29 november 2015.
2. Herald Haas ,‘wireless data from every lightbulb‘.
7
3. Jyothi Rani,prema chauhan & Rithika Tripathi, ‗LIFI –the future technology in
wireless communication ‗.
4. Shilpa choudary, dolly kumari, supria goel,‖new lighting technology ―LIFI‖ –A
review.
5.Thomson ,lain (18 oct 2013).‖FORGET WI- FI, boffins get 150 mbps lifi
connection fromlight bulbs‖.
6. Akshita M Sonnad ,anjana gopan ,sailakshmi N R,divya S ,Ambika R.‖ Recent
advancements in lifi technology‖.
8
CHAPTER 3
Architecture of Li-Fi system
Li-Fi which can be the future of data communication appears to be a fast and cheap
optical version of Wi-Fi. Being a Visible Light Communication (VLC), Li-Fi uses
visible light of electromagnetic spectrum between 400 THz and 800 THz as optical
carrier for data transmission and illumination. It uses fast pulses of light to transmit
information in wireless medium. The main components of a basic Li-Fi system may
contain the following:
Switching the LEDs on and off can make them generate digital strings with different
combination of 1s and 0s. To generate a new data stream, data can be encoded in the
light by varying the flickering rate of the LED. In this way, the LEDs work as a
sender by modulating the light with the data signal. The LED output appears constant
to the human because they are made to flicker at a phenomenal speed (millions of
times per second) and it‘s impossible for human eye to detect this frequency.
Communication rate more than 100 Mbps can be achieved by using high speed LEDs
with the help of various multiplexing techniques. And this VLC data rate can be
further increased to as high as 10 Gbps via parallel data transmission using an array of
LED lights with each LED transmitting a different data stream.
Enclosure
9
Fig 1: Block Diagram of Li-Fi sub-assemblies.
www.TechnoElectronics44.com
The Printed circuit board (PCB) controls the electrical inputs and outputs of the lamp
and houses the microcontroller used to manage different lamp functions. A Radio
Frequency (RF) signal is generated by the Power Amplifier and is directed into the
electric field of the bulb. As a result of the high concentration of energy in the electric
field, the contents of the bulb will get vaporized into a plasma state at the bulb‘s
centre. And this controlled plasma in turn will produce an intense source of light. All
of these subassemblies are contained in an aluminium enclosure as shown in Fig. 2
above.
10
Fig 2: Bulb Sub Assembly
There are various inherent advantages of this approach which includes high
brightness, excellent colour quality and high luminous efficacy of the emitter – in the
range of 150 lumens per watt or greater. The structure is mechanically robust without
typical degradation and failure mechanisms associated with tungsten electrodes and
glass to metal seals, resulting in useful lamp life of 30,000+ hours. In addition, the
unique combination of high temperature plasma and digitally controlled solid state
electronics results in an economically produced family of lamps scalable in packages
from 3,000 to over 100,000 lumens.
Important factors that should be considered while designing Li-Fi are as follows:
1) Presence of Light
2) Line of Sight (Los)
11
CHAPTER-4
Working of Li-Fi
12
4.2 How it Works:
The working of Li-Fi is very simple. There is a light emitter on one end i.e. an LED
transmitter, and a photo detector (light sensor) on the other. The data input to the
LED transmitter is encoded in to the light (technically referred to as Visible Light
Communication) by varying the flickering rate at which the LEDs flicker ‗on‘ and
‗off‘ to generate different strings of 1s and 0s. The on-off activity of the LED
transmitter which seems to be invisible.
The LED intensity is modulated so rapidly that human eye cannot notice, so the light
of the LED appears constant to humans), enables data transmission in light form in
accordance with the incoming binary codes: switching ON a LED is a logical ‗1‘,
switching it OFF is a logical ‗0‘. By varying the rate at which the LEDs flicker on and
off, information can be encoded in the light to different combinations of 1s and 0s.
13
Hence all that is required, is some or an array of LEDs and a controller that
controls/encodes data into those LEDs. All one has to do is to vary the rate at which
the LEDs flicker depending upon the data input to LEDs. Further data rate
enhancements can be made in this method, by using array of the LEDs for parallel
data transmission, or using mixtures of red , green and blue LEDs to alter the light‘s
frequency, with each frequency encoding a different data channel. Figure 7 shows
working/deployment of a Li-Fi system connecting the devicesin a room.
14
Radio waves are expensive (due to spectrum charges) and less secure (due to
interferenceand possible interception etc.), and radio waves effects the humans life
time .
Gamma rays are harmful because it could be dangerous dealing with it, by the human
beings due to their proven adverse effects on human health.
Hence the Visible light portion (from red to blue) of the electromagnetic spectrum
does not cause any harm to the people as visible rays are safe to use, provide larger
bandwidth and also have a promising future in the communication field.
VLC refers to any use of the visible light portion of the electromagnetic spectrum to
transmit information. A VLC interest group is certified by the IEEE 802.15 with the
final standard being approved in 2011. The standard of VLC specifies VLC consisting
of mobile-to-mobile (M2M), fixed-to-mobile (F2M) and infrastructure-to-mobile
(I2M) communications. The main purpose of VLC is to focus on medium-range
communications for intelligent traffic systems at low-speed and on short-range
mobile to mobile and fixed to mobile communications at high speeds to exchange
data. Data rates are supported from some 100 kbps up to 100 Mbps using various
modulation schemes.
15
The MAC layer supports 3 multi-access technologies: peer-to-peer, star
configuration and broadcast mode. It also handles physical layer management issues
such as addressing, collision avoidance and data acknowledgement protocols. The
physical layer is divided into 3 types: PHY I, II, III and employ a combination of
different modulation schemes.
In order to actually send out data by means of LEDs, it is required to modulate these
into a carrier signal. The carrier signal consists of light pulses sent out at short
intervals.
The manner in which this is done depends on the modulation scheme employed.
Li-Fi systems use the following different modulation schemes:
3. Colour Shift Keying (CSK): This is used if the illumination system uses
RGB- type LEDs. By combining different colours of light, the output data can be
carried by the colour itself and hence the intensity of the output can be near constant.
Mixing of RGB primary sources produces different colours which are coded as
information bits. The disadvantage is that it increases the complexity of the
transceivers.
16
4. Sub-Carrier Inverse PPM (SCIPPM): This method is divided into two
parts (1) subcarrier part and (2) DC part. The DC part is used only for lighting or
indicating. When there is no requirement for lighting or indicating, SCPPM (Sub-
Carrier PPM) is used in order to save energy.
5. Frequency Shift Keying (FSK): In this method, data is represented by
varying the frequencies of the carrier signal. Before transmitting two distinct values (0
and 1), there needs to be two distinct frequencies.
6. SIM-OFDM (Sub-Carrier Index Modulation OFDM): This is a new
approach to transmission in which an additional dimension is added to conventional
2D amplitude/phase modulation (APM) techniques such as quadrature amplitude
modulation (QAM) and amplitude shift keying (ASK). The key idea is to use the sub-
carrier index toconvey information to the receiver.
The most important requirement for a light source in order to serve communication
purposes is the ability to be switched on and off repeatedly in very short intervals of
time. Due to their ability to be switched on and off rapidly, LEDs are suitable light
sources for Li-Fi. LEDs offer many benefits over fluorescent lamps and incandescent
lamps such as higher efficiency, environment-friendly manufacturing, flexibility of
LEDs emit light when the energy levels change in the semiconductor diode. This
change in energy generates photons, some of which are emitted as light. The
wavelength of emitted light depends upon the difference in energy levels and the type
of semiconductormaterial used to form the LED chip. Solid-state design allows LEDs
to withstand vibration, shocks, frequent switching and extremes of environment
without compromising their long useful lives of typically more than 100,000 hours.
The basic LED consists of a semiconductor diode chip mounted in the reflector cup
of a lead frame that is connected to electrical (wire bond) wires, and then encased in a
solid epoxy lens. The variations in data rate with the size of LEDs are very important
in Li-Fi technology. Different data rates can be achieved with different sized LEDs.
Normal sized LED bulbs can be reduced to micro-LEDs which handle millions of
17
variations in light intensity. A micro-LED light bulb can transmit 3.5 Gbps and data
rates of more than 10 Gbps are possible. The micro LED bulbs allow the light stream
to be beamed in parallel thereby transmitting huge amounts of data in terms of Gbps.
Usage Models
Within a local Li-Fi cloud, several data based services are supported through a
heterogeneous communication system. Initially, the Li-Fi Consortium defined
different types of technologies to offer secure, reliable and ultra-high-speed wireless
communication interfaces. These included giga-speed technologies, optical mobility
technologies and navigation, precision location and gesture recognition technologies.
For giga-speed technologies, the Li-Fi Consortium defined Giga Dock, Giga Beam,
Giga Shower, Giga Spot and Giga MIMO models to tackle different user scenarios
for wireless indoor and indoor-like transfers of data. Giga Dock is a wireless docking
solution that includes wireless charging for smart phones tablets or notebooks, with
speeds up to 10 Gbps. Meanwhile, the Giga Beam model is a point-to-point data link
for kiosk applications or portable-to-portable data exchanges. Thus a two-hour full
HDTV movie (5 GB) can be transferred from one device to another within four
seconds.
Giga Shower, Giga Spot and Giga-MIMO are the other in-house communication
models. On one side, a transmitter or receiver is mounted into the ceiling connected
to, say, a media server. On the other side are portable or fixed devices on a desk in an
18
office, in an operating room, in a production hall or at an airport. Giga Shower
provides unidirectional data services via many channels to multiple users with
gigabit-class communication speed over several meters. This is like watching TV
channels or listening to different radio stations where no uplink channel is needed. In
case Giga Shower is used to sell books, music or movies, the connected media server
can be accessed via Wi- Fi to process payment via a mobile device. Giga Spot and
Giga
MIMO are optical wireless single- and multi-channel Hot Spot solutions offering
bidirectional gigabit-class communication in a room, hall or shopping mall for
example.
Implementation of Li-Fi:
The main components of a simple system based on Li-Fi are:
* High brightness LED which acts as the communication source
Data from the sender is converted into an intermediate data representation i.e. byte
format and then converted into light signals which are emitted by the transmitter. The
light signal is received by the photodiode at the receiver side. The reverse process
takes place at the destination computer to retrieve the data back from the received
light.
LEDs are employed as the light sources. The model transmits digital signal by
means of direct modulation of the light. The emitted light is detected by an optical
receiver.
Source Computer: Data Reading Module Data Conversion ModuleTransmitter
Module Destination Computer: Receiver Module Data Interpretation Module Data
Display (GUI)The different components serve the following functions:
Data Conversion Module – converts data into bytes so that it can be represented as a
digitalsignal. It can also encrypt the data before conversion.
Transmitter Module – generates the corresponding on-off pattern for the LEDs.
Receiver Module – has a photo diode to detect the on and off states of the LEDs. It
19
capturesthis sequence and generates the binary sequence of the received signal
Data Interpretation Module – converts data into the original format. If encryption was
done, italso performs decryption.
20
Table 1: Comparison of speed of various wireless technologies
Technology Speed
Li-Fi ~1 Gbps
IrDA ~4 Mbps
Bluetooth ~3 Mbps
Data Transfer Rate* Very high ( ~1 Gbps) Low (100 Mbps-1 Gbps)
21
growing world and development of technologies like 3G, 4G and so on we are
running out of radio spectrum.
b) Energy Efficiency: There are a large number of cellular radio base
stations that consume massive amount of energy. Most of the energy is used for
cooling down the base station instead of transmission. Therefore, efficiency of such
Radio base stations is very low.
POWER SUPPLY
ARDUINO LASER-TX
22
RECEIVER:
POWER SUPPLY
Display unit
LASER RECEIVER
ARDUINO FAN
LIGHT
WORKING:
Light emitting diodes (LEDs) can be switched on and off faster than the human eye
can detect since the operating speed of LEDs is less than 1 μs, thereby causing the
light source to appear to be continuously on. This invisible on-off activity enables
data transmission using binary codes. Switching on an LED is binary ‗1‘, switching
it off is binary ‗0‘. It is possible to encode data in light by varying the rate at which
LEDs flicker on and off to give different strings of 1s and 0s. Modulation is so rapid
that humans cannot notice it. A light sensitive device (photo detector) then receives
the signal and converts it back into original data. This method of using rapid pulses of
light to transmit information wirelessly is technically referred to as Visible Light
Communication (VLC).The term Li-Fi has been inspired due to its potential to
compete with conventional Wi-Fi. The VLC uses visible light between 400 THz
23
(780 nm) and 800 THz (375 nm) as the optical carrier for data transmission and for
illumination. Data rates of greater than 100 Mbps can be achieved by using high
speed LEDs with adequate multiplexing. Parallel data transmission using arrays of
LEDs where each LED transmits a separate stream of data can be used to increase the
VLC data rate. Though the lights have to be kept on in order to transmit data, they
can be dimmed to the point that they are not visible to humans but still be capable of
transmitting data
METHODLOGY
Despite its many advantages, Li-Fi like any other technology also comes with a
number of limitations and disadvantages.
The main problem is that light cannot pass through objects, so if the receiver is
inadvertently blocked in any way, then the signal will immediately be cut out. If the
light signal is blocked one could switch back over to radio waves.
c) We still need Wi-Fi and we still need radio frequency cellular systems.
You can‘t have a light bulb that provides data to a high-speed moving object or to
provide data in a remote area where there are trees, walls and obstacles
25
CHAPTER-5
STUDY OF ARDUINO
Arduino interface boards provide the engineers, artists, designers, hobbyists and
anyone who tinker with technology with a low-cost, easy-to-use technology to create
their creative, interactive objects, useful projects etc., A whole new breed of projects
can now be built that can be controlled from a computer.
The name ―Arduino‖ is reserved by the original makers. However, clone Arduino
designs often have the letters ―duino‖ on the end of their name, for example,
26
Freeduino orDFRduino. The software for programming your Arduino is easy to use
and also freely available for Windows, Mac, and LINUX computers at no cost.
1.1.1 MICROCONTROLLER
Microcontroller can be described as a computer embedded on a rather small circuit
board.To describe the function of a microcontroller more precisely,it is a single chip
that can perform various calculations and tasks,and send/receive signals from other
devices via the available pins. Precisely what tasks and communication with the
world it does, is what is governed by what instructions we give to the
Microcontroller. It is this job of telling the chip what to do, is what we refer to as
programming on it.
However, the uC by itself, cannot accomplish much; it needs several external inputs:
power, for one; a steady clock signal, for another. Also, the job of programming it has
to be accomplished by an external circuit. So typically, auC is used along with a
circuit which provides these things to it; this combination is called a microcontroller
board. The Arduino Uno that you have received, is one such microcontroller board.
The actual microcontroller at its heart is the chip called Atmega328. The advantages
that Arduino offers over othermicrocontroller boards are largely in terms of reliability
of the circuit hardware as well as the ease of programming and using it.
OPEN-SOURCE HARDWARE
Open-source hardware shares much of the principles and approach of free and open-
source software.The founders of Arduino wanted people to study their hardware,to
understand how it works,make changes to it,and share those changes with the
world.To facilitate this,they release all of the original design files(Eagle CAD)for the
Arduinohardware.These files are licensed under a Creative Common Attribution
Share-Alike license,which allows for both personal and commercial derivative
works,as long as they(people) credit Arduino and release their designs under the same
license.The Arduino software is also oen-source.The source code for the Java
environment is released under the GPL and the C/C++ microcontroller libraries are
under the LGPL
27
1.2 HISTORY OF ARDUINO
While teaching a physical computing class at the Interaction Design Institute Ivrea in
2005, Massimo Banzi‘s students were unwilling to spend the 76 euros for the BASIC
Stamp microcontrollers commonly used in such applications. Banzi and his collegues
looked for alternatives, finally settling on the wiring platform developed by one of
Banzi‘s students. In his own words:
―…we started to figure out how could we make the whole platform even simpler,
even cheaper, even easier to use. And then we started to essentially reimplement the
whole thing asan open source project.‖
Once they had a prototype, a student wrote the software that would allow wiring
programs to run on the new platform. Upon seeing the project, visiting professor
Casey Reas suggested that there might be wider applications than just design schools
for the new product. The prototype was redesigned for mass production and a test run
of 200 boards was made. Orders began coming in from other design schools and the
students looking for Arduinos, and the Arduino project was born and MassimoBanzi
and David Cuartielles became its founders.‖ARDUINO‖ is an Italian word,meaning
―STRONG FRIEND‖.The English versionof the name is ―Hardwin‖. As of May
2011,more than 300,000 Arduino units are ―in the wild‖.
Design Goals
• Work with a Mac (as most design students use one)
• Look nice
• Cheap (about 20 euros, the cost of going out for pizza in Europe)
Business Models
Since the entire project is open source, anyone can build and sell Arduino-
compatible devices. So in this sense, the Arduino project relies heavily on its
28
branding for it‘s financial success . Other projects manufacture compatible and
cheaper boards, however people are loyal to the Arduino branded boards because they
associate quality and a certain image to the final product .
By the Numbers
Competitors
Before Arduino, the largest players in the design/hobbyist market segment were the
PIC microcontroller family (made by Microchip) and the BASIC Stamp (made by
Parallax). Since the introduction of the Arduino, other large companies have tried to
enter the hobbyist market, including Texas Instruments , and even Microsoft .
However, the open-sourced tools of the Arduino and the size of its community are
large barriers for new platforms to overcome.
COMMUNITY
As the project is aimed at students and hobbyists who may not have any formal
electronics background, there are many excellent guides online covering everything
from making a light blink to creating a laser harp. The official forum has almost 60
000 registered users, and along with helping users with their projects, is extremely
29
active in developing new libraries to extend the functionality of the Arduino . The
open-source share and share alike sentiment is very strong, and the vast majority of
users freely publish the code to their projects.
PHYSICAL COMPUTING
Physical Computing is an approach to learn how humans communicate through
computers that starts by considering how humans express themselves physically.
30
Figure 12: ARDUINO pin diagram
ATmega328(Microcontroller)
• 16 MHz
31
EXTERNAL power
Fig 14: ARDUINO can run off with USB or EXTERNAL power source
• must be rated for a minimum of 250mA current output, although you will
likely want something more like 500mA or 1A output, as it gives you the current
necessary to power a servo or twenty LEDs if you want to.
• must have a 2.1mm power plug on the Arduino end, and
• the plug must be "centre positive", that is, the middle pin of the plug has
to be the + connection.
Current rating: Since you'll probably be connecting other things to the Arduino
(LEDs, LCDs, servos) you should get an adapter that can supply at least 500mA, or
even 1000 mA (1 ampère). That way you can be sure you have enough juice to make
each component of the circuit function reliably.
The Arduino's on-board regulator can actually handle up to 20V or more, so you can
actually use an adapter that puts out 20V DC. The reasons you don't want to do that
are twofold: you'll lose most of that voltage in heat, which is terribly inefficient.
Secondly, the nice 9V pin on the Arduino board will actually be putting out 20V or
so, which could lead to potential disaster when you connect something expensive to
what you thought was the 9V pin. Our advice is to stick with the
9V or 12V DC adapter.
ARDUINO flavors!!
There have been many revisions of the USB Arduino.some of them are
1. Arduino UNO:
This is the latest revision of the basic Arduino USB board. It connects to the
32
computer with a standard USB cable and contains everything else you need to
program and use the board. It can be extended with a variety of shields: custom
daughter-boards with specific features. It is similar to the Duemilanove, but has a
different USB-to-serial chip the ATMega8U2, and newly designed labeling to make
inputs and outputs easier to identify.
A larger, more powerful Arduino board. Has extra digital pins, PWM pins, analog
inputs, serial ports, etc. The version of the Mega released with the Uno, this version
features the Atmega2560, which has twice the memory, and uses the ATMega 8U2
for USB-to-serial communication.
The process of Analog to digital conversion is shown in figure. The Arduino has 10
bits of Resolution when reading analog signals.2 power 10=1024 increments
2. Pulse width modulation (PWM)
The Arduino has 8bit of resolution,when outputting a signal using PWM.The range
of outputvoltage is from 0 to 5 Volts
2power 8=255 Increments
33
processing).
2.3.1 Arduino Programming Language(APL)(based on wiring)
APPLICATIONS OF ARDUINO
34
fields.Arduino projects can be stand-alone or they can communicate with software
running ona computer.
Arduino is used by all class of people in a different way.some students use it in their
projects,some using arduino for fun,some went out to become entreupreuners.This
onlyshows how useful is this tiny device.
ARDUINO is spreading rapidly across the globe. Arduino is actually an open source
hardware project that can be pro grammed to read temperatures, control a motor, and
sense touch. theArduino is both a cute, blue micro controller platform that fits nicely
in the palm of your hand and an expanding community of developers who support it,
distributed across two dozen coun tries, four continents, and counting.
The Arduino board is for anyone who wants to build a basic level of intelligence into
an object. Once programmed, it can read sensors, make simple decisions, and control
myriad devices in the real world. Using it is a snap: first, hook up a few sensors and
output devices to the Arduino, then program it using the free developer‘s software.
Next, debug your code and disconnect the Arduino.Then,the little blue Arduino
becomes a standalone computer.
The original intention of the Arduino project was to see what would happen if
community support were substituted for the corporate support that is usually required
for electronics development. The first developers — Massimo Banzi, David
Cuartielles, David Mellis, and Nicholas Zambetti — ran a series of workshops on
assembling the Arduino, giving away the board to stimulate development.
Thousands of projects have been done worldwide using this tiny little device.some of
which to mention are:
• Ultrasonic Sensor
35
• Infrared detectors
• SONAR
LED array
LCD module
Oscilloscope
Light harp
VU meter
LCD Thermostat
The hypnotizer
Lie detector
Infrared remote
36
Just to name a few….as the trademark goes,there are nearly infinite possible
projects usingthis tiny device,which we still yet to discover
Some of the major applications are 3D printers,whos founder went out to become an
euntreuprenuer,and major pride came to ARDUINO,when giant firm GOOGLE‘s
most ambitious ANDROID,deployed ARDUINO in its new venture ―ANDROID
OPEN ACCESSORY
DEVELOPMENT KIT‖.which allows external USB hardware to interact with an
Androidpowered device in a special accessory mode.ANDROID executive
announced this in annual GOOGLE IO meet conference 2011.ANDROID calls that
device made of arduino as ADK(Android development kit).
• Starter Projects: Editing and rewriting is often easier than writing from
scratch. It‘s the same with electronics. It‘s easier to mod an idea than start with a
blank slate.That‘s where the BeagleBoard falls short. ―It has virtually no example
application that you can just copy and hack to learn from,‖ says Massimo Banzi, one
of the co-founders of the Arduino project. It‘s a chickenand-egg problem for the
BeagleBoard. Unless there are more example codes out there, it is difficult to draw in
the audience. And without the audience it is challenging to get enough sample
projects into the community.
37
requirement, and the product becomes a must-have for DIYers. An Arduino can run
on a 9V-battery for days.
―The BeagleBoard is fast and powerful but that also means lots of energy is needed,
which makes it difficult for simple projects,‖ says Torrone.
• A Thriving Community:Arduino‘s popularity means it‘s easy to get
started. Companies such as Adafruit, SparkFun and Liquidware not only sell chips,
but they also host blogs that suggest ideas on how to use your Arduino while
providing extensive project plans to guide you in completing your creations. Will
Chellman, a student who has played with Arduino for years, says he‘s now
experimenting with the BeagleBoard. But finding documentation and information to
work off is not easy, he says. The lack of well-documented projects done with the
BeagleBoard can be intimidating to new users as well, says Banzi. ―There‘s lots of of
interesting stuff (about the BeagleBoard) but it is very technical,‖ he wrote in a
comment recently on Gadget Lab in response to the launch of BeagleBoard-xM.
Banzi says BeagleBoard documentation is also scattered and fragmented. ―Parts of it
have aged and you spend quite a bit of time jumping from wikis to mailing list to
track which specific bit of documentation applies to your board, bootloader etc.,‖ he
says.
• Maturity is the key:Arduino has had a head start on the BeagleBoard.
By October 2008, about 50,000 Arduino boards had already been shipped. That year,
the first BeagleBoards started making their way into the hands of hardware
enthusiasts. The BeagleBoard is just two years old.
Since it hasn‘t been around long enough, there‘s not enough people building apps
based on it,‖ says Chellman. That‘s not to say that BeagleBoard isn‘t catching up.
Earlier this month, we showed five projects ranging from a videowall to the iPad of
ham radios that use the BeagleBoard. There‘s also a build-your-own tablet kit that is
based off the BeagleBoard.
• Simple is attractive: With its single-board computer configuration, 1-
GHz processing power and the choice of accessories, the BeagleBoard is a creative
engineer‘s dream come true. But the same reasons make it intimidating to those who
want to geek out on a DIY project but don‘t have the technical know-how. Arduino
users point out that it is simple to connect external sensors to the board, and the
example codes out there make it easy to get started quickly. Arduino is a simple
38
system designed for creative people with little or ―no prior knowledge of electronics,‖
says Banzi. ―It‘s cheap and open source with lots of documentation written in a not
too technical language. Above all, it has a very welcoming attitude towards beginners
and tries not to scare them too much.‖
39
CHAPTER 6
HARDWARE DESCRIPTION
DC MOTOR
Introduction:
1. Brushed DC Motors
2. Brushless DC motors
3. Coreless DC motors
Brushed DC motors:
The classic DC motor design generates an oscillating current in a wound rotor with a
split ring commutator, and either a wound or permanent magnet stator. A rotor
consists of a coil wound around a rotor which is then powered by any type of battery.
Many of the limitations of the classic commutator DC motor are due to the need for
brushes to press against the commutator. This creates friction. At higher speeds,
40
brushes have increasing difficulty in maintaining contact. Brushes may bounce off the
irregularities in the commutator surface, creating sparks. This limits the maximum
speed of the machine. The current density per unit area of the brushes limits the
output of the motor. The imperfect electric contact also causes electrical noise.
Brushes eventually wear out and require replacement, and the commutator itself is
subject to wear and maintenance. The commutator assembly on a large machine is a
costly element, requiring precision assembly of many parts. there are three types of dc
motor 1. dc series motor 2. dc shunt motor 3. dc compound motor - these are also two
type a. cummulative compound b. deffercialcompounnd
Brushless DC motors:
Some of the problems of the brushed DC motor are eliminated in the brushless
design. In this motor, the mechanical "rotating switch" or commutator/brushgear
assembly is replaced by an external electronic switch synchronised to the rotor's
position. Brushless motors are typically 8590% efficient, whereas DC motors with
brushgear are typically 75-80% efficient.
Midway between ordinary DC motors and stepper motorslies the realm of the
brushless DC motor. Built in a fashion very similar to stepper motors, these often use
a permanent magnet external rotor, three phases of driving coils, one or more Hall
effect sensors to sense the position of the rotor, and the associated drive electronics.
The coils are activated, one phase after the other, by the drive electronics as cued by
the signals from the Hall effect sensors. In effect, they act as threephase synchronous
motors containing their own variable-frequency drive electronics. A specialized class
of brushless DC motor controllers utilize EMF feedback through the main phase
connections instead of Hall effect sensors to determine position and velocity. These
motors are used extensively in electric radio-controlled vehicles. When configured
with the magnets on the outside, these are referred to by modelists as outrunner
motors.
Brushless DC motors are commonly used where precise speed control is necessary, as
in computer disk drives or in video cassette recorders, the spindles within CD, CD-
ROM (etc.) drives, and mechanisms within office products such as fans, laser printers
41
and photocopiers. They have several advantages over conventional motors:
Coreless DC motors:
Nothing in the design of any of the motors described above requires that the iron
(steel) portions of the rotor actually rotate; torque is exerted only on the windings of
the electromagnets. Taking advantage of this fact is the coreless DC motor, a
specialized form of a brush or brushless DC motor. Optimized for rapid acceleration,
these motors have a rotor that is constructed without any iron core. The rotor can take
42
the form of a winding-filled cylinder inside the stator magnets, a basket surrounding
the stator magnets, or a flat pancake (possibly formed on a printed wiring board)
running between upper and lower stator magnets. The windings are typically
stabilized by being impregnated with Electrical epoxy potting systems. Filled epoxies
that have moderate mixed viscosity and a long gel time. These systems are
highlighted by low shrinkage and low exotherm. Typically UL 1446 recognized as a
potting compound for use up to 180C (Class H) UL File No.
E 210549.
Because the rotor is much lighter in weight (mass) than a conventional rotor formed
from copper windings on steel laminations, the rotor can accelerate much more
rapidly, often achieving a mechanical time constant under 1 ms.This is especially true
if the windings use aluminum rather than the heavier copper. But because there is no
metal mass in the rotor to act as a heat sink, even small coreless motors must often be
cooled by forced air.
These motors were commonly used to drive the capstan(s) of magnetic tape drives
and are still widely used in high-performance servo-controlled systems, like radio-
controlled vehicles/aircraft, humanoid robotic systems, industrial automation, medical
devices, etc.
RELAY MODULE:
43
How Relays Work
Relays are switches that open and close circuits electromechanically or electronically.
Relays control one electrical circuit by opening and closing contacts in another
circuit. As relay diagrams show, when a relay contact is normally open (NO), there is
an open contact when the relay is not energized. When a relay contact is Normally
Closed (NC), there is a closed contact when the relay is not energized. In either case,
applying electrical current to the contacts will change their state.
Relays are generally used to switch smaller currents in a control circuit and do not
usually control power consuming devices except for small motors and Solenoids that
draw low amps. Nonetheless, relays can "control" larger voltages and amperes by
having an amplifying effect because a small voltage applied to a relays coil can result
in a large voltage being switched bythe contacts.
Protective relays can prevent equipment damage by detecting electrical abnormalities,
including overcurrent, undercurrent, overloads and reverse currents. In addition,
relays are also widely used to switch starting coils, heating elements, pilot lights and
audible alarms.
Specifications:
Supply voltage – 3.75V to 6VQuiescent current: 2mA
Current when the relay is active: ~70mA
Relay maximum contact voltage – 250VAC or 30VDCRelay maximum current – 10A
44
How Li-Fi Works?
There are many situations in which people get frustrated with the dull performance
signals of Wi-Fi at a place with many network connections in seminars conferences
etc. Li-Fi fulfils these needs .This fantabulous idea first stroked the mind of Harald
Haas from University of Edinburgh, UK, in his TED Global talk on VLC. His idea
was very simple that if the LED is "on" then the digital I can be transmitted and if the
led is "off" then the digital 0 can be transmitted. Led's can be switched on and off
very quick. For transmitting data this way all that we require is LED's and controller
that code data into Led's. Parallel data transmission can be done by using array of
LED's or by using red, green, blue LED's to alter light frequency with the frequency
of different data channel. Advancements and enhancements in this field generate a
speed of 10 gbps! But amazingly fast data rates and lowering band widths are not the
only reasons that enhance this technology. Lifi usually is based on light and so it can
be probably implemented in articrafts and hospitals that are prone to inference from
radio waves. Unlike Wi-Fi Li-Fi can work even under- water which makes it more
advantageous for military operations. Radio waves are replaced by light waves in data
transmission called Li-Fi.
Light emitting diodes can be switched on and off very much faster than the human
eye allowing the light source to appear continuously. The data transmission is done
through binary codes which involve switching on LED can be done by logic I and
switch off using logic 0. The encoding of information in light can therefore be
identified by varying the rate at which the LED's flicker.
45
CHAPTER-7
SOFTWARE IMPLEMMENTATION
SOFTWARE
The software used by the arduino is Arduino IDE.
The Arduino IDE comes with a C/C++ library called "Wiring" (from the project of
the same name), which makes many common input/output operations much easier.
Arduino programs are written in C/C++, although users only need define two
functions to make a runnable program:
setup() – a function run once at the start of a program that can initialize
settings
46
Figure 16 : A screenshot of the Arduino IDE showing the "Blink"program,a
simplebiginner program
A typical first program for a microcontroller simply blinks a LED on and off. In the
Arduinoenvironment, the user might write a program like this:
#define LED_PIN 13
void setup () {
pinMode (LED_PIN, OUTPUT); // enable pin 13 for digital output }
void loop () {
digitalWrite (LED_PIN, HIGH); // turn on the LED
delay (1000); // wait one second (1000 milliseconds)
digitalWrite (LED_PIN, LOW); // turn off the
LED delay (1000); // wait one second }
For the above code to work correctly, the positive side of the LED must be connected
to pin 13 and the negative side of the LED must be connected to ground. The above
code would not be seen by a standard C++ compiler as a valid program, so when the
user clicks the "Upload to I/O board" button in the IDE, a copy of the code is written
47
to a temporary file with an extra include header at the top and a very simple main()
function at the bottom, to make it a valid C++ program.
The Arduino IDE uses the GNU toolchain and AVR Libc to compile programs, and
uses avrdude to upload programs to the board.
language reference
Arduino programs can be divided in three main parts: structure, values (variables and
constants), and functions.
• void
• boolean
• char ( 0 – 255)
• float
• double
• String – object
48
• array
Arithmetic operators
Comparision operators
Logical operators
Logical operators are usually a way to logically combine two expressions and return a
TRUE
or FALSE depending on the operator.
There are three logical operators, AND, OR, and NOT.
e.g. ,
Logical AND:
if (x > 0 && x < 5) // true only if both expressions are true
Logical OR:
if (x > 0 || y > 0) // true if either expression is true
Logical NOT:
if (!x > 0) // true only if expression
49
TRUE/FALSE
These are Boolean constants that define logic levels of the arduino.
TRUE is often defined as 1, but can also be anything else except zero. So in a
Boolean sense,
-1, 2, and -200 are all also defined as TRUE.
e.g. ,
if (abcd== TRUE);
DoSomethingNice;
}
else
{
DoSomethingHorrible;
HIGH/LOW
These constants define pin levels as HIGH or LOW and are used when reading or
writing todigital pins.
HIGH is defined as logic level 1, ON, or 5 voltsLOW is logic level 0, OFF, or 0
volts.
e.g. ,
digitalWrite(13, HIGH);
INPUT/OUTPUT
These constants define pin levels as HIGH or LOW and are used when reading or
writing todigital pins.
HIGH is defined as logic level 1, ON, or 5 voltsLOW is logic level 0, OFF, or 0
volts.
e.g. ,
50
pinmode(13, OUTPUT);
The developer can make the necessary changes in the code - delay, pin number, and
state - 0 (low) 1 (high) - and check it immediately. The app shows the breadboard,
complete with 14 LED pins.
You can drag and place the wires in the correct positions to connect to Arduino. If the
wires are placed according to the code, then it will show the expected results. Once
satisfied, you can save it and email it. The code can be copied and used in an actual
project just as easily.
This app is an easy way to work through Arduino projects. With customisable codes,
and a simple to use interface, thisArduino Simulator app from Schogini Systems is a
convenient app for Arduino developers.
51
Figure 17: screenshot of ARDUINO simulator
CODE:
#include<SoftwareSerial.h> char ch,n; int ir=8; int data[8]; int k,i,t=1; int j,L,L1; int
l=0; String voice; void setup()
{
Serial.begin(9600); pinMode(ir,OUTPUT);
digitalWrite(ir,LOW); Serial.println("welcome");
}
void loop() { while(Serial.available())
{ delay(10);char c = Serial.read(); voice += c;
}
while(voice.length()
>0)
{ L1=l=0;
52
for(l=0;l<(voice.length()-1);l++)
{t=1;
RECEIVER
#include<SoftwareSerial.h>#include<LiquidCrystal.h
> LiquidCrystal lcd(2,3,4,5,6,7); int ir_rx=8;//// RECEIVER int LIGHT=9; int
fan=11;int LIGHT1=10;
53
int i=0,j=0,sum=0,s,z;
// Serial.println("WELCOME")
; delay(50); i=0,j=0,sum=0;while(i<8) { if(!digitalRead(ir_rx)) { data[i]=1; i++;
//Serial.println("1"); } else { data[i]=0; i++;
//Serial.println("0"); }
delay(100);
/* Serial.println();
Serial.print("BINARY DATA:");
for(i=0;i<=7;i++) ///////////////// /////// PRINT BINARY DATA
Serial.print(data[i]);
Serial.println();Serial.println();
*/
54
{
sum=sum+(data[i]*power(2
,j)); j++; }
/* Serial.print("SUM:");Serial.print(sum); Serial.println();
*/ switch(sum)
{
case 32: DECODED_DATA=' ';case 33: DECODED_DATA='!';
break;
break;
break;
break;
break;
break;
break;
break;
// break;
break;
55
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
56
case 54: DECODED_DATA='6';
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
57
case 67: DECODED_DATA='C';
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
58
case 80: DECODED_DATA='P';
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
59
case 93: DECODED_DATA=']';
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
60
case 107: DECODED_DATA='k';
break;
break;
break;
break;
break;
break;
break;
break;
break;
break;
61
case 120: DECODED_DATA='x';
break;
break;
break;
break;
break;
break;
default: DECODED_DATA="INVALID";
break;
/* Serial.print("DECODED_DATA:");Serial.println(DECODED_DATA);
*/ message+=DECODED_DATA;
if(DECODED_DATA=='#')
Serial.print("MESSAGE:");
Serial.println(message); delay(500); z=0; lcd.clear(); while(message[z]!='\0') {
if(z==0) lcd.setCursor(0,0); if(z==16) lcd.setCursor(0,1); lcd.print(message[z]); z++;
//k=0;
62
}
if(message=="FAN ON#")
{
digitalWrite(fan,HIGH);Serial.println("FAN ON");
if(message=="FAN OFF#")
{
digitalWrite(fan,LOW); Serial.println("FAN OFF");
{
digitalWrite(LIGHT,HIGH);Serial.println("LIGHT ON");
{
digitalWrite(LIGHT,LOW); Serial.println("LIGHT OFF");
{
digitalWrite(LIGHT1,HIGH); Serial.println("LIGHT TWO ON");
{
digitalWrite(LIGHT1,LOW); Serial.println("LIGHT TWO OFF"); } message="";
63
}
}
}
int power(int num, int exponent)
64
CHAPTER 8
RESULTS
TRANSMITTER CIRCUIT:
RECEIVER
RECEIVER CIRCUIT:Fig19. snapshot of receiver module
65
DATA TRANSFER:
LiFi data is transmitted in several bit streams and the receiver side consisting an IR
detector decodes the message. The transmission happens in the form of binary data
where 0 means LEDin „OFF‟ state and 1 means that the LED is in the „ON‟ state.
66
CHAPTER 9
CONCLUSION AND FUTURE SCOPE OF LI-FI
Researchers are developing micron sized LEDs which flicker on and off 1000 times
faster than larger LEDs. They provide faster data transfer and also take up less space.
Moreover, 1000 micron sized LEDs can fit into area required by 1 sq. mm large
single LED. A 1 sq. mm sized array of micron sized LEDs could hence communicate
1000×1000 (i.e. a million) times as much information as a single 1mm LED. The Li-
Fi Consortium asserts that it is possible to achieve speeds greater than 10Gbps.
Researchers at the Heinrich Hertz Institute in Berlin, Germany, have achieved data
rates of over 500 megabytes per second using a standard white-light LED.
Future scope
1) Driving illumination grade LEDs at high speed
2) Increasing data rate with parallelism/arrays
3) Achieving low complexity/low cost modulation
4) Overcoming the line of sight constraint
5) Achieving seamless interoperability with other networks
6) Making Li-Fi work in environments with little or no light
67
REFERENCES
68