Li-Fi Data Transfer System Project Report
Li-Fi Data Transfer System Project Report
Submitted in partial fulfillment of the requirements for the Award of the Degree of
BACHELOR OF SCIENCE
IN
ELECTRONICSAND COMMUNICATION
Submitted by
[Link] (23SUEL013)
Assistant Professor
NOVEMBER - 2025
MANNAR THIRUMALAI NAICKER COLLEGE (AUTONOMOUS)
BONAFIDE CERTIFICATE
This is to certify that the project work “LI-FI DATA TRANSFER SYSTEM ” is a
bonafide record of the work done by [Link] (23SUEL013) in the partial fulfillment for the
award of the Degree of BACHELOR OF ELECTRONICS AND COMMUNICATION in
MANNAR THIRUMALAI NAICKER COLLEGE - MADURAI
submitted for viva-voce Examination held on .
I do hereby declare that this project entitled “ LI-FI DATA TRANSFER SYSTEM ” has
originally done by me under the guidance Dr. G. PANDEESWARI, ME,M.B.A,Ph,D.
Assistant Professor, Mannar Thirumalai Naicker College, Madurai. The content have been
presented in the form of dissertation submitted to Mannar Thirumalai Naicker College,
Madurai in partial fulfillment for the Degree of Bachelor of Electronics and
Communication.
DATE:
[Link]
ACKNOWLEDGEMENT
First of all, I thank Almighty for giving me health and enabling me to complete this project
work successfully.
Finally I like to extend my hearty thanks to all my family members, friends and well- wishers
as their constant support to develop my project in a right way to completed it successfully.
TABLE OF CONTENTS
2 INTRODUCTION 2
3 BLOCK DIAGRAM 3
4 CIRCUIT DIAGRAM 5
5 HARDWARE DESCRIPTION 6
6 ARDUINO UNO 7
7 LDR MODULE 12
8 MOBILE APP 15
9 POWER SUPPLY 20
10 FLASH LIGHT 23
11 SOFTWARE DESCRIPTION 34
13 CONCLUSION 38
14 REFERENCE
LIST OF FIGURES
In the era of wireless communication, Li-Fi (Light Fidelity) presents a promising alternative to
traditional RF-based systems like Wi-Fi. Li-Fi utilizes visible light for data transmission, offering
high-speed and secure communication. This project demonstrates a simple and cost-effective Li-Fi
system using a mobile phone flashlight as a transmitter and an LDR (Light Dependent
Resistor) as a receiver, capable of decoding and displaying textual data.
The core concept is based on the modulation of light to transmit binary data. The mobile phone's
flashlight is used to blink ON and OFF rapidly, encoding binary 1s and 0s. An Arduino
microcontroller is interfaced with an LDR sensor, which detects changes in light intensity
corresponding to the flashlight blinks. The Arduino reads these variations and reconstructs the binary
data. This data is then decoded and converted into human-readable text, which is displayed on a
16x2 LCD screen.
This system demonstrates short-range, line-of-sight communication, making it ideal for secure and
interference-free data exchange in controlled environments such as classrooms, hospitals, or offices.
The use of existing mobile hardware (flashlight) as a transmitter significantly reduces the cost and
increases accessibility. The simplicity of the components—an LDR, basic Arduino board, and LCD—
ensures ease of implementation and understanding, making this project suitable for educational
purposes and as a proof-of-concept for Li-Fi technology.
Future improvements may include increasing data transfer speed using faster modulation, multi-
character transmission, or even audio/video signals using photodiodes and amplification circuits
6
INTRODUCTION
INTRODUCTION
With the rapid growth in wireless communication and increasing demand for faster, more secure
data transfer, Li-Fi (Light Fidelity) has emerged as a promising innovation. Unlike traditional
wireless communication technologies like Wi-Fi or Bluetooth that use radio frequencies, Li-Fi
uses visible light to transmit data. This makes it not only faster under ideal conditions but also
free from electromagnetic interference, making it suitable for use in areas like hospitals, airplanes,
and industrial environments where RF communication may be restricted.
Li-Fi was first introduced by Professor Harald Haas in 2011, and it has since gained attention due to
its potential to deliver high-speed data using light-emitting diodes (LEDs). The basic principle
involves the modulation of light intensity to encode and transfer data in the form of binary 0s and 1s.
These fluctuations are too fast to be perceived by the human eye but can be detected by light sensors.
This project presents a low-cost and educational prototype of Li-Fi communication using easily
accessible components: a mobile phone flashlight as the transmitter and an LDR (Light
Dependent Resistor) as the receiver. The transmitter side consists of a mobile device with a
flashlight controlled by an app or a predefined blinking pattern representing binary data. On the
receiver side, an LDR connected to a microcontroller (such as Arduino) senses the light intensity
changes and converts them into electrical signals. These signals are then decoded into text and
displayed on a 16x2 LCD screen.
This system effectively demonstrates the core concept of Li-Fi communication. While it operates at
low speed and short range, it provides a practical example of how light can be used to transmit
information. It also highlights the possibilities of using existing mobile hardware (such as flashlights)
to create innovative communication systems without the need for complex or expensive components.
The project aims to inspire students and researchers to explore the potential of optical communication
and encourages further development into faster and more robust Li-Fi systems.
1
BLOCK DIAGRAM
Fig 3.1 Block Diagram
WORKING PRINCIPLE
The transmitter is simplified to a mobile phone flashlight, which turns ON and OFF to represent
binary data. Each character (text) is converted into its ASCII equivalent, then further converted into
binary format (8 bits per character). The flashlight blinks according to this binary stream:
Flashlight ON → Binary 1
Automatically by a computer or microcontroller modulating the flashlight in sync with the data
Each blink is timed carefully, typically a few hundred milliseconds per bit, so the LDR can detect the
change in light intensity.
4
3. Transmission Medium
The light travels through free space in a line-of-sight path. Since light cannot penetrate opaque objects,
this communication requires the receiver (LDR) to be placed in direct view of the flashlight.
Any interruption in the path or ambient light fluctuations can affect the data reception, which is why
it's ideal to use this system in a controlled lighting environment.
An LDR (Light Dependent Resistor) is a sensor that varies its resistance based on the intensity of
light falling on it:
This change in resistance is read as a voltage variation using an analog pin of an Arduino
microcontroller. The Arduino continuously samples the voltage across the LDR and determines
whether the received signal is a binary ‘1’ or ‘0’ based on a predefined threshold.
Example Logic:
The Arduino collects 8 bits at a time (one byte), converts the binary back into a character using the
ASCII table, and displays the character on a 16x2 LCD screen.
2. The text is converted to binary via ASCII encoding (e.g., ‘H’ = 01001000)
3
3. The mobile flashlight blinks ON/OFF according to the binary data
4. The LDR detects changes in light intensity and produces analog voltage variations
5. The Arduino reads and samples these values, converts them back into binary
Speed: The system is slow due to manual or low-frequency flashlight blinking (suitable only
for text).
Ambient Light Interference: Bright surroundings or flickering lights may cause noise.
4
Fig 4.1 Circuit Diagram
3
4
HARDWARE
DESCRIPTION
HARDWARE DESCRIPTION
1. Arduino UNO
2. LDR MODULE
4. MOBILE APP
6
ARDUINO UNO
Arduino UNO or Arduino Nano are great choices for basic projects involving sensors and motor
control. They are very popular in the maker community and offer a simple USB interface for
programming.
Raspberry Pi Pico is based on the RP2040 chip and features dual-core processing. The Pico W
variant includes Wi-Fi for IoT projects.
STM32 boards (like Blue Pill or Nucleon) are powerful ARM Cortex-M based microcontrollers
with rich I/O and peripheral support, commonly used in more advanced or industrial-level
embedded projects.
Teensy boards (e.g., Teensy 4.0 or 4.1) offer very high processing speeds and are suitable for
real- time or high-performance applications like audio or advanced robotics.
Seeeduino XIAO and Adafruit Feather boards offer compact size and versatility. Some variants
include Wi-Fi, Bluetooth, and even LoRa for long-range communication.
The ESP32 is a low-power, high-performance microcontroller with built-in Wi-Fi and Bluetooth
capabilities. It is ideal for IoT applications, automation, and real-time control projects.
Pin Specifications & Functions
Pin Function
GND Ground
• Multiple GPIO pins – Allows easy interfacing with sensors and motors.
1. Introduction to LDR
An LDR (Light Dependent Resistor), also known as a photoresistor, is a type of resistor whose
resistance varies with the intensity of light falling on it. The resistance decreases with increasing
light intensity and increases in darkness. This unique property makes LDRs ideal for applications
where light sensing is required — such as in automatic street lights, light meters, and more relevantly,
in Li-Fi data reception.
In the context of this project, the LDR serves as the receiver sensor that detects the blinking of the
mobile flashlight, which carries binary data.
An LDR is made from a high-resistance semiconductor material, such as cadmium sulfide (CdS).
When photons of sufficient energy fall on the material, they excite electrons, decreasing the resistance
of the material.
Key Behavior:
Bright light (e.g., flashlight ON) → Resistance is low → Higher current flows
12
This change in resistance can be converted into a voltage signal using a voltage divider circuit,
making it readable by microcontrollers like Arduino.
While raw LDRs can be used directly, using an LDR module makes integration easier. A typical LDR
module includes:
Component Description
LDR Sensor Detects light intensity
Fixed Resistor Forms a voltage divider with LDR
Comparator
Converts analog signal to digital (in some modules)
(Optional)
Analog output (AO), Digital output (DO, if comparator is
Output Pins
present)
Power Pins VCC and GND
The LDR and a fixed resistor (e.g., 10kΩ) are connected in series. The voltage across the fixed resistor
changes with light intensity.
This analog voltage is then read by the Arduino analog pin, and compared against a threshold to
determine if the received signal is a binary 1 or 0.
In the Li-Fi project, the LDR module plays a crucial role in decoding the flashlight signal:
Step-by-Step Role:
3. Arduino reads the analog voltage through the LDR module’s AO pin.
4. A threshold is set in code (e.g., if voltage > 500 → ‘1’, else ‘0’).
This process makes the LDR module the core photodetector in the system — acting as the bridge
between optical signals (light) and electrical signals (voltage), enabling Li-Fi communication.
6. Limitations
14
This setup is ideal for demonstrating the working of Li-Fi technology in a small-scale environment
and is particularly suitable for educational purposes.
This section introduces the main hardware components used in the system.
The mobile phone's flashlight acts as the transmitter. When data is to be sent, the flashlight blinks ON
and OFF to represent binary 1s and 0s. The blinking can be controlled by an app or program that
translates text into binary format. The speed of blinking is kept slow enough for the receiver to detect
each bit accurately.
The LDR acts as the main light sensor in the system. Its resistance decreases with an increase in light
intensity. When the flashlight is ON, the LDR detects a higher light level, causing a voltage change
that is picked up by the Arduino. When the flashlight is OFF, the light level drops, and the voltage
changes accordingly. These changes form the basis for decoding the binary signal.
The Arduino is used to read the voltage values from the LDR and interpret them as binary data. It
converts each set of 8 bits into an ASCII character and displays the result on an LCD. It also handles
the timing and control of the entire communication process.
The voltage divider is built using the LDR and a fixed resistor. It converts the varying resistance of the
LDR into voltage values that the Arduino can read through its analog input pin. The point between the
LDR and resistor gives the analog voltage corresponding to the light level detected.
The LCD is used to show the text received from13the Li-Fi transmission. It connects to the Arduino and
operates in either 4-bit or 8-bit mode. This display provides the user with real-time output of the
transmitted text message.
These components are used for building the circuit without soldering. The breadboard allows for quick
prototyping, and jumper wires are used to make all necessary electrical connections between the
Arduino, LDR circuit, and LCD.
This section explains how the hardware components function together to achieve communication.
The user inputs a text message into a system that controls the mobile flashlight. The text is converted
into ASCII binary format. For example, the letter 'A' is 01000001 in binary. Each bit is sent by turning
the flashlight ON (for 1) and OFF (for 0) at a fixed interval. This blinking pattern is the Li-Fi signal.
The LDR receives this signal in the form of varying light intensity. When the flashlight is ON, the
LDR's resistance drops. When it is OFF, the resistance increases. These changes affect the voltage in
the voltage divider circuit.
The Arduino reads the analog voltage across the voltage divider. It compares each reading with a pre-
set threshold value. If the voltage is higher than the threshold, the Arduino interprets it as a binary 1.
If it is lower, it interprets it as a binary 0. After receiving 8 bits, it converts the binary value to a
character.
Once a character is decoded, the Arduino sends it to the LCD screen for display. This process repeats
continuously as long as the transmission continues. The result is a real-time display of the message
sent via light.
16
4. Hardware Connections
This section describes how to connect each component to form a working circuit.
One terminal of the LDR is connected to 5V from the Arduino. The other terminal is connected to one
leg of a 10kΩ resistor. The other leg of the resistor is grounded. The junction between the LDR and
resistor is connected to an analog input pin (e.g., A0) of the Arduino.
The LCD display is connected to the Arduino using digital pins for RS, EN, and data lines (D4–D7). A
potentiometer can be added to control contrast. The LCD also connects to 5V and GND for power.
Most LCDs use the LiquidCrystal library in Arduino to manage data display.
The Arduino is powered via USB cable from a PC or a power bank. It provides 5V output, which
powers the LDR circuit and the LCD display. No external power supply is required unless the system
is used independently from a computer.
The hardware design is simple, accessible, and highly educational. It uses easily available components
and provides a hands-on demonstration of Li-Fi technology. Some key advantages include:
7. Future Improvements
18
SOFTWARE
DESCRIPTION
13
Software used : “C”
#include<LiquidCrystal.h>
#define ldr 8
int val;
int val2;
String duration;
void setup() {
// put your setup code here, to run once:
[Link](9600);
pinMode(ldr, INPUT_PULLUP);
[Link](16,2);
[Link]();
[Link]("LiFi Project");
delay(3000);
31
[Link]();
[Link]("Send any message");
[Link](0,1);
[Link]("from LiFi App..");
delay(3000);
}
void loop() {
// put your main code here, to run repeatedly:
int val = digitalRead(ldr);
while(val == 0)
{
int val2 = digitalRead(ldr);
duration += val2;
if(duration == "001")
{
[Link]("Received message: hi");
[Link]();
[Link]("hi");
}
if(duration == "0001")
{
[Link]("Received message: hello");
[Link]();
[Link]("hello");
}
if(duration == "00001")
{
[Link]("Received message: how are you?");
[Link]();
[Link]("how are you?");
32
}
if(duration == "000001")
{
[Link]("Received message: I am fine");
[Link]();
[Link]("I am fine");
}
if(duration == "0000001")
{
[Link]("Received message: ok");
[Link]();
[Link]("ok");
}
if(duration == "00000001")
{
[Link]("Received message: good morning");
[Link]();
[Link]("good morning");
}
if(duration == "000000001")
{
[Link]("Received message: good afternoon");
[Link]();
[Link]("good afternoon");
}
if(duration == "0000000001")
{
[Link]("Received message: good evening");
[Link]();
[Link]("good evening");
}
if(duration == "00000000001")
{
33
[Link]("Received message: thank you");
[Link]();
[Link]("thank you");
}
if(duration == "000000000001")
{
[Link]("Received message: sorry");
[Link]();
[Link]("sorry");
}
if(val2 == 1)
{
duration = "";
break;
}
delay(200);
}
}
32
ADVANTAGES &
APPLICATIONS
35
1. Advantages of the Li-Fi System
This project demonstrates several practical and educational advantages due to its simplicity, low cost,
and innovative use of existing components. Below are the key benefits categorized for clarity.
One of the most important advantages of this system is its affordability. The entire hardware setup
uses basic and inexpensive components like an LDR, Arduino board, resistors, and an LCD.
Additionally, the use of a smartphone flashlight as a transmitter eliminates the need for specialized
transmitting equipment. This makes the system highly accessible for students, hobbyists, and
educators.
The hardware and software components are easy to understand and assemble. This simplicity makes
the system an excellent educational tool for teaching the basics of wireless communication, sensor
interfacing, signal processing, and microcontroller programming. It provides hands-on experience in
building a communication system from scratch, making it ideal for school and college-level projects.
Unlike traditional wireless technologies like Wi-Fi and Bluetooth, which rely on radio frequency (RF)
signals, this system uses visible light for communication. This provides a unique advantage in RF-
sensitive areas such as hospitals, laboratories, or aircraft cabins, where RF signals might interfere with
equipment.
Li-Fi offers inherently secure communication since light cannot pass through opaque walls. This
makes it harder for unauthorized users to intercept the signal unless they are physically present in the
same room with a direct line of sight. For scenarios requiring short-range, private communication, this
system is ideal.
The compact size of the Arduino, breadboard, and other components makes the system highly portable.
It can be easily carried, set up, and demonstrated anywhere, such as in classrooms, labs, or workshops.
Portability adds convenience during testing and presentations.
2. Technical Advantages
The following are specific technical benefits of this Li-Fi prototype system.
The system allows real-time conversion of binary data into text, which is immediately displayed on an
LCD screen. This provides immediate feedback and makes the system interactive and user-friendly.
All components used in the project can be reused in other applications. The Arduino board and LCD
can be reprogrammed for different purposes, and the breadboard setup allows quick reconfiguration.
This modular design supports learning and prototyping.
2.3 Expandability
This basic Li-Fi system can be expanded in multiple ways. For example, users can replace the LDR
with a photodiode to increase speed, use multiple transmitters and receivers, or integrate error
correction mechanisms. This flexibility provides a strong base for further development.
The Li-Fi system designed in this project can be applied in various domains. Although it is a prototype,
the fundamental principles can be extended to real-world scenarios.
This system is ideal for academic demonstrations in electronics, communication, and embedded
systems courses. It provides a hands-on method to teach concepts such as binary data, analog-to-
digital conversion, and sensor interfacing. It also serves as a great final-year engineering or diploma
project.
Since Li-Fi requires line-of-sight and cannot penetrate walls, it is ideal for secure communication
inside rooms, offices, or secure labs. Information shared using this method stays confined within the
room, reducing the risk of external hacking or data leaks.
This technology can be adapted for smart home applications, where data is transferred between
devices using visible light. Lights in the home can transmit commands or sensor data to nearby
devices, making the system both energy-efficient and secure.
In settings such as museums, libraries, or exhibitions, Li-Fi systems can be installed to provide
short-range data transfer. For example, flashing lights near exhibits can send information to a nearby
receiver, giving users a silent and RF-free experience.
While this prototype uses visible light, the same principles can be adapted for underwater
communication using high-powered LEDs. Since radio waves do not propagate well underwater,
optical communication is often a better alternative.
With further development and refinement, the Li-Fi system could find more advanced uses.
35
4.1 High-Speed Internet Using LED Bulbs
Although the current system only transmits text at low speed, real Li-Fi systems use LED bulbs to
transmit high-speed internet. Future versions of this project can scale up using photodiodes and high-
frequency switching to enable faster data rates.
Li-Fi has potential applications in smart city infrastructure. Streetlights can act as data transmitters to
send real-time information to vehicles or pedestrians. A refined version of this system can act as a
basic prototype for such use.
In modern smart classrooms, Li-Fi systems could be used to transmit notes or resources from the
teacher’s device to students' receivers using LED lights, without requiring an internet connection.
Retail stores can use Li-Fi to transmit discount offers, product information, or digital coupons through
lighting systems. When a customer's phone receives the signal, it can display the offer without needing
a network.
CONCLUSION
35
CONCLUSION
The Li-Fi data transmission system developed in this project effectively demonstrates the use of
visible light for wireless communication. By utilizing a mobile phone flashlight as the transmitter
and an LDR (Light Dependent Resistor) as the receiver, the system successfully transfers text data in
the form of binary light signals. The Arduino microcontroller plays a central role in processing the
received signals, converting binary data into readable characters, and displaying them on an LCD.
This project highlights the simplicity, affordability, and educational value of implementing a Li-Fi
communication model. It uses basic electronic components that are easy to assemble and understand,
making it an excellent learning tool for students and electronics enthusiasts. The use of light as a
communication medium presents advantages such as high security, immunity to electromagnetic
interference, and suitability for RF-restricted environments.
While the current prototype is limited in speed and range, it lays the foundation for more advanced Li-
Fi systems. The project also opens the door to future enhancements, including the use of faster
photodetectors, improved modulation techniques, and broader application in fields like smart homes,
secure communication, and IoT systems.
In conclusion, this project successfully showcases the potential of Li-Fi as a reliable and innovative
method for short-range wireless data transmission. It serves both as a proof-of-concept and a
practical educational model, encouraging further exploration and development in the field of optical
wireless communication.
REFERENCE
REFERENCE
1. Harald Haas, "Wireless data from every light bulb," TED Global Conference, 2011.
[Video Presentation]
[Link]
2. H. Haas, L. Yin, Y. Wang, and C. Chen, "What is LiFi?" Journal of Lightwave Technology,
vol. 34, no. 6, pp. 1533–1544, March 2016.
DOI: 10.1109/JLT.2015.2510021
3. Jitendra Rajput, R. Sharma, and M. Sharma, "Li-Fi Technology: Data Transmission through
Visible Light," International Journal of Advanced Research in Computer Engineering & Technology
(IJARCET), Vol. 4, Issue 4, April 2015.
5. Simon Monk, Programming Arduino: Getting Started with Sketches, 2nd Edition, McGraw-
Hill Education, 2016.
6. Shrivastava, R., "Design and Implementation of Li-Fi Communication System using Arduino
and LDR," International Research Journal of Engineering and Technology (IRJET), Vol. 6, Issue 7,
July 2019.
7. Majumdar, A. K., and Ricklin, J. C., Free-Space Laser Communications: Principles and
Advances, Springer, 2008.
10. G. Pang, T. Kwan, H. Liu, and C. Chan, "LED-based optical wireless communication system
for indoor applications," IEE Proceedings - Optoelectronics, vol. 152, no. 6, pp. 615–618, 2005.
DOI: 10.1049/ip-opt:20045070
RESULT&SNAP
38