Professional Documents
Culture Documents
LiFi Project Report White Book
LiFi Project Report White Book
LiFi Project Report White Book
Master of Science
(Computer Science)
Guide
Dr. Swati Mourya
HOD
Department of Information Technology and Computer Science
S K Somaiya College, Somaiya Vidyavihar University
By
Kedar Keknis
Roll no: 31031522014
Name
Project
Subject
S K Somaiya College
Institution
2024
Year
Teacher in Charge
Vidyavihar
Location
6 Months
Duration
Signature of the Teacher
This is to certify that the project entitled “LiFi (light fidelity)” is a bonafide work
of “Kedar Keknis” (Exam seat No. 31031522014) submitted to the S K Somaiya College
in partial fulfillment of the requirement for the award of the degree of “M.Sc. in the
subject of Computer Science”.
I considered that the dissertation has reached the standards and fulfilling the
requirements of the rules and regulations relating to the nature of the degree. The
contents embodied in the dissertation have not been submitted for the award of any
other degree or diploma in this or any other university.
Date:
Place:
I certify that
a) The work contained in the thesis is original and has been done by myself
under the supervision of my supervisor.
b) The work has not been submitted to any other Institute for any degree or
diploma.
c) I have conformed to the norms and guidelines given in the Ethical Code of
Conduct of the Institute.
d) Whenever I have used materials (data, theoretical analysis, and text) from
other sources, I have given due credit to them by citing them in the text of
the thesis and giving their details in the references.
e) Whenever I have quoted written materials from other sources and due
credit is given to the sources by citing them.
f) From the plagiarism test, it is found that the similarity index of the whole
thesis within 25% and single paper is less than 10 % as per the university
guidelines.
Date:
Place:
----------------------------------
Signature
Kedar Keknis
31031522014
Department of Information Technology
and Computer Science
Programme: Computer Science
CERTIFICATE
This dissertation/project report entitled (Title) by (Name) is approved for the degree of Master
of Science in the subject of Biotechnology.
Examiners
1.---------------------------------------------
Place:
Date:
Acknowledgement
Write an acknowledgement for a maximum of one page. The candidate should convey his appreciation to
all whom have played a role in the completion of his/her Project work. The supervisor, supervisor, head
of the department, faculty members, lab mates etc may be acknowledged. Any controversial statement or
non-academic/abused sentiments are not allowed to write on this page. At the end the student should put
his signature.
1 Title page -
2 Student details i.
6 Acknowledgement v.
7 Contents vi.
Bibliography 1.8
Appendix 1.9
ABSTRACT
The core of the Li-Fi system involves a transmitter (typically an LED light) and a
receiver (a photodetector). The transmitter modulates the light signal to encode data,
which is then received and demodulated by the photodetector. Our project focuses on the
design and optimization of these components to achieve reliable and efficient data
transmission.
Keywords:
Light Fidelity
Wireless communication
Visible light communication
High-speed data transmission
LED modulation
Photodetector
On-Off Keying (OOK)
Pulse Position Modulation (PPM)
Signal processing
Electromagnetic interference
Smart lighting
Internet of Things (IoT)
Ambient light interference
Line-of-sight communication
Optical filters
Beam steering
Wireless connectivity
Data transmission latency
Communication networks
1. Introduction & Literature Survey
1.1Introduction /Background of Research:
Li-Fi, or Light Fidelity, is an innovative wireless communication technology that
utilizes visible light instead of traditional radio frequencies to transmit data. Initially
conceptualized by Professor Harald Haas at the University of Edinburgh, Li-Fi has
the potential to revolutionize the way we connect and communicate by offering a
viable alternative to Wi-Fi and other RF-based communication systems.
The rapid growth in wireless data traffic and the increasing demand for higher
bandwidth have exposed the limitations of traditional RF communication systems.
The RF spectrum is becoming increasingly congested, leading to slower data speeds,
higher latency, and greater susceptibility to interference. Moreover, RF
communications can pose security risks, as signals can easily penetrate walls and be
intercepted.
Li-Fi addresses these challenges by leveraging the visible light spectrum, which is
significantly broader than the RF spectrum, thus offering higher data transmission
rates. LED lights, commonly used for illumination, can be modulated at high speeds
to encode data, making them dual-purpose devices for both lighting and
communication. A photodetector on the receiving end demodulates the light signals
back into electronic data.
The potential applications of Li-Fi are vast and varied. In environments where RF
interference is problematic, such as hospitals, aircraft, and industrial settings, Li-Fi
can provide a reliable communication alternative. Additionally, Li-Fi's inherent
security advantages make it suitable for secure data transmission in sensitive
environments, as light signals can be contained within a room and do not easily pass
through opaque barriers.
Despite its promise, Li-Fi technology faces several technical challenges. These
include ensuring reliable data transmission in the presence of ambient light,
maintaining line-of-sight between transmitters and receivers, and developing cost-
effective components. Research efforts are focused on overcoming these obstacles
through advancements in modulation techniques, photodetector sensitivity, and signal
processing algorithms.
This project aims to develop and optimize a Li-Fi system capable of high-speed data
transmission, exploring practical solutions to its implementation challenges. By
advancing Li-Fi technology, we can pave the way for more efficient, secure, and
high-capacity wireless communication networks.
Elaboration: The visible light spectrum is much broader than the RF spectrum, offering
a potentially vast bandwidth for data transmission. This allows for higher data rates.
Traditional Wi-Fi operates in frequency bands such as 2.4 GHz and 5 GHz, which are
becoming increasingly congested due to the proliferation of wireless devices. Li-Fi, using
visible light (around 430 THz to 770 THz), can avoid this congestion and achieve data
rates up to several Gbps under ideal conditions. Our research will explore various
modulation techniques, such as On-Off Keying (OOK) and Pulse Position Modulation
(PPM), to maximize the data transmission speeds of Li-Fi systems.
2. Security
Hypothesis: Li-Fi offers enhanced security for data transmission as light waves can be
contained within physical boundaries, reducing the risk of data interception.
Elaboration: One of the inherent security advantages of Li-Fi is that light waves do not
penetrate opaque barriers, such as walls. This physical confinement means that a Li-Fi
network is more secure against eavesdropping and unauthorized access compared to Wi-
Fi, which can broadcast signals beyond the intended coverage area. This makes Li-Fi
particularly attractive for environments requiring high security, such as government
buildings, military installations, and corporate offices. Our research will include
experiments to measure the extent of signal leakage and assess the robustness of Li-Fi
against various types of security threats.
3. Interference
4. Practical Implementation
Elaboration: While Li-Fi offers many advantages, it faces practical challenges. Ambient
light from natural and artificial sources can introduce noise, affecting signal quality.
Line-of-sight (LOS) communication is another challenge, as obstacles can block the light
path. Our research will explore solutions such as optical filters to reduce noise from
ambient light and beam steering mechanisms to maintain LOS communication or find
alternate paths. Additionally, advanced modulation techniques will be investigated to
enhance signal robustness and reliability in various conditions.
5. Cost-Effectiveness
Elaboration: For Li-Fi to be widely adopted, it must be cost-effective. LEDs, which are
already widely used for lighting, can be modulated for data transmission, making them a
dual-purpose technology. The cost of photodetectors, which are essential for receiving
Li-Fi signals, is also decreasing with advances in manufacturing and technology. Our
research will focus on developing and optimizing low-cost components that can be easily
integrated into existing infrastructure, thereby enabling scalable deployment in smart
homes, offices, and IoT networks. We will conduct cost-benefit analyses to demonstrate
the economic viability of Li-Fi systems compared to traditional RF-based systems.
2.2 Software: -
1. Arduino software (Add specifications and adavantages / info about
sw)
2.3 Techniques/Methodology: -
1. Circuit Diagram for Receiver and Transmitter TODO change to 2.3.1
2.3.1
The board shown at the top is used as the transmitter and will use the Neopixel Jewel
connected to pin 7 of the Arduino to send data via light. The board below is the
receiver and uses the phototransistor connected to pin A0 to convert the light intensity
back into data.
2.3.2
If you’re used to working with computers, you have probably heard many times that,
at the lowest level, computers deal with data as a bunch of 1s and 0s. Using light as a
medium to send information is quite convenient, as the only state a light can be in is
either “on” or “off”. As a result, for this experiment, we’re going to encode 1 as the
“on” state and 0 as the “off” one.
For the rest of this post, let’s consider that we want to transmit the string “Hello,
world”.
Strings are made of characters, and a single character is 1 byte of data. As a byte is 8
bits, each letter in this string can be converted to 8 bits.
Change it to table
The decimal representation of the ASCII letter “H” is the integer 72, which can be
converted to binary as 01001000.
The complete string “Hello, world” represented in binary is the following: 01001000
01100101 01101100 01101100 01101111 00101100 00100000 01110111 01101111
01110010 01101100 01100100
To do this conversion using JavaScript, you can use the built-in methods charCodeAt,
toString and padStart.
// This function takes in a string to convert
const convertToBinary = (string) => {
// The string is split into an array of characters
return string.split('').map(function (char) {
// For each character, charCodeAt(0) is called to get
its decimal representation, followed by .toString(2) to get its
binary representation and .padStart(8, ‘0’) to make sure the
leading 0s are kept and each byte has 8 digits.
return char.charCodeAt(0).toString(2).padStart(8, '0');
// Finally, join all converted characters together into a
single string.
}).join(' ');
}
Snippen of converting letter string to Binary
While this is how it works at its core, this is where the details get interesting.
Because it’s important that both the transmitter and receiver stay in sync, we need to
create a custom communication protocol.
First, why do they need to stay in sync? I mentioned in the previous part of this post
that the binary equivalent of “Hello, world” is 01001000 01100101 01101100
01101100 01101111 00101100 00100000 01110111 01101111 01110010 01101100
01100100
If the receiver starts decoding the data at the first bit, then it will be able to retrieve
the right information; however that might not always be the case. If the receiver is out
of sync by even a single bit, the information it will decode will be incorrect.
For example, if instead of the first 8 bits “01001000”, it gets “10010000”, it will
decode “�” instead of “H” as this value is not a valid ASCII character, and all
subsequent characters will also be wrongly decoded.
Besides, as this technology aims at being used as part of the lights people already
have set up in their homes or offices, the lights will likely already be on by the time
they’re also used to transmit information.
As a result, when the lights are on but not transmitting information, the receiver will
read an input equal to “111111111111…”, so a communication protocol is needed to
define when a message is starting to be sent so the receiver can start the decoding
process.
Setting up a communication protocol: -
Also, we need to pick a unit of time to define how long the light should reflect the
value of each bit transferred. First, let’s say that each bit changes the state of the light
for 100 milliseconds, so when the bit is equal to 1, the light stays on for 100
milliseconds, and if the bit is 0, the light turns off for 100 milliseconds.
Finally, when the 8 bits have been transferred, the light will be brought back to its
original “on” state.
I decided to use the Johnny-Five JavaScript framework for this. After installing it , I
started by declaring a few variables and instantiating the transmitter board.
Then, when the board is ready to receive instructions, I instantiate the Neopixel strip
with the pin it is connected to on the Arduino as well as the number of LEDs, turn the
light on and call my sendBytes function.
For each letter in the string transmitted, it goes through the following steps:
To set up the receiver, I first declared some variables and instantiated the second board.
Then, when the board is ready to receive instructions, I instantiate the light sensor,
store the brightness value in the lightValue variable, and call the main decode
function.
board.on("ready", function () {
var sensor = new five.Sensor(SENSOR_PIN);
sensor.on("data", async function () {
lightValue = this.value;
})
// Calling the built-in loop function to recursively trigger the decoding logic every 10
milliseconds.
this.loop(10, () => {
if (!detectionStarted) {
decode();
}
})
});
This getByte function starts by waiting 1.5x the interval chosen, then calls
getLDRState 8 times to convert the brightness into a bit value, converts that byte into
an ASCII character and logs it.
decodedText += convertBinaryToASCII(testString)
console.log(decodedText)
testString = ""
detectionStarted = false;
}
The conversion between binary and ASCII is done with the following code.
Security assessments showed that Li-Fi offers robust protection against data
interception. The inherent physical confinement of light signals within specific
spaces prevents unauthorized access, enhancing the security of wireless
communication in sensitive environments.
Cost analyses indicated that integrating Li-Fi technology into existing LED
lighting infrastructure is economically viable. The additional costs for
incorporating data transmission capabilities were minimal, supporting the
scalability and accessibility of Li-Fi for various applications, including smart
lighting and the Internet of Things (IoT).
Overall, the results of our study affirm that Li-Fi is a promising technology that
can provide superior wireless communication solutions, offering significant
improvements in speed, security, and reliability over traditional RF-based
systems. These findings support the continued development and adoption of Li-Fi
technology, paving the way for its integration into future wireless communication
networks.
Chapter 4: -
Conclusions and Future Prospects
4.1 Bibliography: -
1. Haas, H., Yin, L., Wang, Y., & Chen, C. (2016). What is LiFi? Journal of Lightwave
Technology, 34(6), 1533-1544. https://doi.org/10.1109/JLT.2015.2510021
2. Chi, N., Zhou, Y., Wang, H., & Li, X. (2020). Visible light communication in 6G:
Advances, challenges, and prospects. IEEE Vehicular Technology Magazine, 15(4),
93-102. https://doi.org/10.1109/MVT.2020.3014859
3. Pathak, P. H., Feng, X., Hu, P., & Mohapatra, P. (2015). Visible light
communication, networking, and sensing: A survey, potential and challenges. IEEE
Communications Surveys & Tutorials, 17(4), 2047-2077.
https://doi.org/10.1109/COMST.2015.2476474
4. Dimitrov, S., & Haas, H. (2015). Principles of LED light communications: Towards
networked Li-Fi. Cambridge University Press.
https://doi.org/10.1017/CBO9781139600293
5. Chowdhury, M. Z. M., Shahjalal, M., Ahmed, S., & Jang, Y. M. (2018). The role of
optical wireless communication technologies in 5G/6G and IoT solutions: Prospects,
directions, and challenges. Applied Sciences, 9(10), 4367.
https://doi.org/10.3390/app9104367
7. Wu, X., Wang, Z., & Cheng, J. (2017). Visible light communications for 5G wireless
networking systems: From fixed to mobile communications. IEEE Network, 31(6),
70-77. https://doi.org/10.1109/MNET.2017.1700153
8. Rajagopal, S., Roberts, R., & Lim, S. K. (2012). IEEE 802.15.7 visible light
communication: Modulation schemes and dimming support. IEEE Communications
Magazine, 50(3), 72-82. https://doi.org/10.1109/MCOM.2012.6163585
9. Singh, D., & Singh, J. (2017). A survey on visible light communication: Recent
advances, current issues and future scope. Digital Communications and Networks,
3(2), 66-88. https://doi.org/10.1016/j.dcan.2016.07.004
10. Nayak, P., & Chauhan, P. S. (2020). Li-Fi technology: A review on advancements
and applications. Journal of Optical Communications, 41(2), 119-134.
https://doi.org/10.1515/joc-2018-0002
11. Langer, K., & Grubor, J. (2008). Recent developments in optical wireless
communications using infrared and visible light. Proceedings of the European
Conference on Optical Communication (ECOC), 1-4.
https://doi.org/10.1109/ECOC.2008.4729388
12. Rappaport, T. S., Xing, Y., MacCartney, G. R., Molisch, A. F., Mellios, E., & Zhang,
J. (2015). Overview of millimeter wave communications for fifth-generation (5G)
wireless networks—with a focus on propagation models. IEEE Transactions on
Antennas and Propagation, 65(12), 6213-6230.
https://doi.org/10.1109/TAP.2017.2734243
Somaiya Vidyavihar University
Vidyavihar East, Mumbai 400077, India
W: www.somaiya.edu