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!
All you need to do to replicate this project is to setup the circuit as shown in the figure below:
Upload the code to the Transmitter and Receiver arduinos. Both codes are provided in the link below.
https://github.com/SaadOjo/DIY_Li-Fi
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.
Comments