Wireless Data Transfer via LED (Li-Fi) – Arduino Project
Components and supplies
![]() |
| × | 2 | |||
![]() |
| × | 1 | |||
![]() |
| × | 2 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 2 |
About this project
I wanted to transfer data between two arduinos wirelessly using an unconventional method. I decided to use a LED as a transmitter and receive the data by an LDR. I wrote a simple protocol to allow for reliable data transmission. With minor modifications this project can also be adapted to transfer data using fiber optics. I encourage you to try this and share your implementation!
The implementation is quite simple and I try to explain everything in the video below. Anyone can make this in less than 30 minutes.
Future Plans:
The LDR reacts quite slow to the changes in light and therefore the data-transmission rate is limited. The LDR can be replaces by a photo-transistor and the transmission rate can be improved.
If sufficient speed is achieved I will try to transmit digital audio between the two arduinos.
Code
Project Code
https://github.com/SaadOjo/DIY_Li-FiSchematics

Manufacturing process
- Light‑Emitting Diodes: From Inception to 100‑Year Lifespans
- Gesture‑Controlled Robot Powered by Raspberry Pi
- Arduino-based Wireless Magnetic Data Transfer with Infineon 3D Sensor
- Single-LED Light Painting: Build Dynamic Images with a DIY Motorized System
- Capacitive Touch LED Switch with Arduino UNO – Easy DIY Project
- Build an Ambient Light Sensor with Photoresistor and LED: Step‑by‑Step Guide
- LED Whack‑a‑Mole Game with Arduino Uno – Interactive LED and Joystick Project
- Smart Traffic Light Control System with Real-Time Data
- Enhancing Expert Decision-Making with AI Insights
- Mastering LED Strip Accessories: Connect, Control, and Customize Your Lighting





