The receiver side of the Li-Fi system is responsible for detecting the transmitted light signal and converting it back into readable digital data.
In this project, a mini solar panel is used as the light receiver. The solar panel acts similarly to a photodiode by converting light intensity changes into electrical signals.
The transmitter Arduino rapidly switches the LED ON and OFF to represent binary data.
- LED ON → logical HIGH (1)
- LED OFF → logical LOW (0)
These rapid light changes travel through free space and reach the receiver solar panel.
The receiver Arduino continuously monitors the voltage generated by the solar panel using an analog input pin.
The solar panel detects variations in light intensity produced by the transmitting LED.
When the LED brightness changes:
- More light → higher voltage generated
- Less light → lower voltage generated
The solar panel converts optical energy into electrical energy, allowing the Arduino to measure the received light signal.
The generated analog voltage is sent to the receiver Arduino analog input pin (A3).
The Arduino reads this voltage using the analogRead() function.
Example:
int sensorValue = analogRead(A3);