Light Fidelity (Li-Fi) is an emerging wireless communication technology that utilizes the visible light spectrum to enable high-speed data transfer. This research proposes a microcontroller-based Li-Fi system using the ATmega32 to demonstrate low-cost, efficient, and short-range data communication. The transmitter modulates binary data through light-emitting diodes (LEDs), while the receiver employs a photodiode for data detection and demodulation. Experimental results show successful transmission of digital information over a limited distance under controlled conditions, with observations on system limitations and performance factors. This work contributes toward the development of cost-effective, visible light-based wireless networks, suitable for specific low-range applications.
Introduction
1. Introduction
With the exponential growth of wireless data traffic, Li-Fi (Light Fidelity) emerges as a promising alternative to RF communication. It uses visible light for data transmission, offering benefits such as:
Large unlicensed bandwidth
Low interference
Improved security
This project focuses on developing a low-cost, microcontroller-based Li-Fi prototype using ATmega32, an LED, and a photodiode for serial data transfer.
2. Literature Review
Li-Fi, proposed by Harald Haas, has been studied for modulation techniques (e.g., OOK, CSK), LED efficiency, and ambient noise handling.
Previous research emphasized factors like LED intensity, receiver sensitivity, and noise mitigation.
Challenges include limited range, line-of-sight requirement, and ambient light interference.
This work builds on prior studies to implement a simplified, real-world Li-Fi system using UART and low-complexity modulation.
3. System Architecture
Transmitter: Keyboard input → ATmega32 encodes via USART → LED transmits light pulses
Receiver: Photodiode → Signal conditioning (amplifier + comparator) → ATmega32 decodes data → 16x2 LCD displays characters
4. Hardware Components
ATmega32: Manages UART communication and signal processing
LED: Transmits data through OOK modulation
Photodiode: Receives light and converts it to current
Op-Amp (LM358): Amplifies and sharpens signal
LCD: Displays received characters
Power Supply: +5V regulated DC
5. Software Implementation
Programmed using Embedded C in Atmel Studio
UART at 9600 baud rate for serial communication
Uses start/stop bits for synchronization
Basic error detection with optional parity checking
6. Working Principle
On-Off Keying (OOK): LED ON = 1, LED OFF = 0
Transmitted light is detected by a photodiode
Signal is amplified, digitized, and decoded by the receiving microcontroller
System works best under direct line-of-sight, achieving short-range data communication
7. Testing & Evaluation
Distance Testing: Reliable up to 2 meters; signal degradation beyond this
Angle of Reception: Precise alignment improves accuracy
Bit Error Rate: Increased in noisy or high-light environments
System Robustness: Stable under various indoor conditions
8. Results
Accurate data transfer under ideal and moderate conditions
Occasional bit errors with increased distance or light interference
Comparator effectively mitigated noise
Demonstrated proof-of-concept for secure, low-power, visible light communication
9. Applications
Ideal for RF-restricted zones: hospitals, aircraft, data centers
Smart homes, industrial automation, and underwater communication
Educational and public transportation systems for RF-free internet access
Potential for smart city infrastructure using Li-Fi-enabled street lighting
Conclusion
The Li-Fi data transfer system using the ATmega32 microcontroller successfully demonstrates the feasibility of using visible light for data communication.
The system proved to be effective in transmitting and receiving data over short distances with minimal error, showcasing the potential of Li-Fi as a high-speed, secure alternative to traditional RF communication. Despite its limitations with distance and ambient light interference, the system\'s performance highlights the effectiveness of low-cost components like LEDs, photodiodes, and microcontrollers in implementing visible light communication.
References
[1] Z. T. Aldarkazaly, M. F. Younus, and Z. S. Alwan, \"Transfer Data from PC to PC Based on Li-Fi Communication Using Arduino,\" Int. J. Adv. Sci. Eng. Inf. Technol., vol. 11, no. 2, pp. 433–439, Apr. 2021. [Online].
[2] R. Anbalagan, M. Z. Hussain, D. Jayabalakrishnan, D. B. N. Muruga, and M. Prabhahar, \"Vehicle to vehicle data transfer and communication using LI-FI technology,\" Mater. Today: Proc., vol. 45, pp. 5925–5933, 2021. [Online].
[3] Y. Perwej, \"The Next Generation of Wireless Communication Using Li-Fi (Light Fidelity) Technology,\" J. Comput. Netw., vol. 4, no. 1, pp. 20–29, 2017. [Online].
[4] M. U. A. Khan, M. I. Babar, S. U. Rehman, D. Komosny, and P. H. J. Chong, \"Optimizing Wireless Connectivity: A Deep Neural Network-Based Handover Approach for Hybrid LiFi and WiFi Networks,\" Sensors, vol. 24, no. 7, p. 2021, 2024. [Online]. Available:
[5] X. Wu, M. D. Soltani, L. Zhou, M. Safari, and H. Haas, \"Hybrid LiFi and WiFi Networks: A Survey,\" arXiv preprint arXiv:2001.04840, 2020. [Online].
[6] C. Cheng et al., \"100 Gbps Indoor Access and 4.8 Gbps Outdoor Point-to-Point LiFi Transmission Systems using Laser-based Light Sources,\" arXiv preprint arXiv:2402.16144, 2024. [Online].
[7] H. Abumarshoud et al., \"LiFi Through Reconfigurable Intelligent Surfaces: A New Frontier for 6G?,\" arXiv preprint arXiv:2104.02390, 2021. [Online].
[8] C. Chen et al., \"NOMA for Energy-Efficient LiFi-Enabled Bidirectional IoT Communication,\" arXiv preprint arXiv:2005.10104, 2020. [Online].
[9] S. Paramita, A. Srivastava, V. A. Bohara, and A. Mitra, \"Demo of Hybrid LiFi/WiFi Network for an Indoor Environment,\" in Proc. IEEE COMSNETS, 2023.
[10] P. Singh, V. A. Bohara, and A. Srivastava, \"Reliable and Cost Effective All Optical Wireless Architecture for Broadband Access Network,\" IEEE/OSA J. Opt. Commun. Netw., 2023.
[11] A. Gupta et al., \"Traffic Prediction Assisted Wavelength Allocation in Vehicle-to-Infrastructure Communication: A Fiber-Wireless Network Based Framework,\" Veh. Commun., 2023.
[12] G. Singh, A. Srivastava, and V. A. Bohara, \"Visible Light and Reconfigurable Intelligent Surfaces for Beyond 5G V2X Communication Networks at Road Intersections,\" IEEE Trans. Veh. Technol., 2022.
[13] A. Singh, A. Srivastava, V. A. Bohara, and G. S. V. R. K. Rao, \"Performance of Indoor Visible Light Communication System Under Random Placement of LEDs,\" in Proc. 21st Int. Conf. Transparent Opt. Netw. (ICTON), 2019, pp. 1–5.
[14] R. Ahmad and A. Srivastava, \"Optimized User Association for Indoor Hybrid Li-Fi Wi-Fi Network,\" in Proc. Int. Conf. Transparent Opt. Netw. (ICTON), 2019.
[15] W. Ma and L. Zhang, \"QoE-Driven Optimized Load Balancing Design for Hybrid LiFi and WiFi Networks,\" IEEE Commun. Lett., vol. 22, no. 11, pp. 2354–2357, 2018.
[16] V. V. Andreev, \"Wireless Technologies of Information Transmission Based on the Using of Modulated Optical Radiation (Li-Fi Communication System): State and Prospects,\" in Proc. 2018 Systems of Signal Synchronization, Generating and Processing in Telecommunications (SYNCHROINFO), Minsk, Belarus, 2018.
[17] G. Albert et al., \"Which LiFi’s apps may fit mostly to 5G and beyond-5G Technology?,\" in Proc. 2019 Global LIFI Congress (GLC), Paris, France, 2019.
[18] S. Murawwat et al., \"An Overview of LiFi: A 5G candidate Technology,\" in Proc. 2018 Int. Symp. Recent Advances in Electrical Engineering (RAEE), Islamabad, Pakistan, 2018.
[19] L. I. Albraheem et al., \"Toward Designing a Li-Fi-Based Hierarchical IoT Architecture,\" IEEE Access, vol. 6, pp. 40811–40825, 2018.
[20] V. Swetha and E. Annadevi, \"Survey on Light-Fidelity,\" in Proc. 2018 Int. Conf. Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 2018, pp. 355–358
[21] C. Chen, D. Basnayaka, A. A. Purwita, X. Wu, and H. Haas, \"Physical Layer Performance Evaluation of Wireless Infrared-based LiFi Uplink,\" arXiv preprint arXiv:1904.13163, 2019. [Online].
[22] M. D. Soltani et al., \"Terabit Indoor Laser-Based Wireless Communications: LiFi 2.0 for 6G,\" arXiv preprint arXiv:2206.10532, 2022. [Online].
[23] M. D. Soltani, X. Wu, M. Safari, and H. Haas, \"Bidirectional User Throughput Maximization Based on Feedback Reduction in LiFi Networks,\" arXiv preprint arXiv:1708.03324, 2017. [Online].
[24] G. Madhuri, K. Anjali, and R. S. Prabha, \"Transmission of Data, Audio and Text Signal Using Li-Fi Technology,\" in IOP Conf. Ser.: Mater. Sci. Eng., vol. 872, no. 1, p. 012010, 2020. [Online].
[25] N. T. Surajudeen-Bakinde et al., \"Li-Fi Based Technology for PC-PC Data Transmission,\" Int. J. Inf. Process. Commun., vol. 8, no. 1, pp. 153–162, May 2020. [Online].
[26] E. Ifada, N. T. Surajudeen-Bakinde, N. Faruk, A. Abdulkarim, A. O. Otuoze, and A. A. Oloyede, \"Implementation of a Data Transmission System using Li-Fi Technology,\" in Proc. 2019 2nd Int. Conf. of the IEEE Nigeria Computer Chapter (NigeriaComputConf), 2019, pp. 1–6.
[27] H. H. Naser and A. H. Majeed, \"Bidirectional Data Transfer via LiFi Technology,\" in AIP Conf. Proc., vol. 2660, no. 1, p. 020005, Nov. 2022.