LI-FI is buzzing around the Internet since past few years; recently LI-FI is gained more popularity around the internet and developers. LI-FI stands for Light Fidelity which was coined by Harald Hass.
Circuit Objective
The objective of LI-FI is transfer data through visible light. Since the bandwidth of visible light is 10,000 times more than Radio waves, more data can be transferred through light at short period of time.
Visible light communication (VLC) eliminates the risk of some disease caused by the Radio waves due to long period exposure.
This protocol can be adapted where Radio waves are restricted, such as airplanes, hospitals, and in some research facilities. Researchers reached bit rate of 224 GB/s which is 100s of times faster than our average WI-FI connection at home or office.
This article explains about the basic idea how to make a very simple LI-FI circuit in which we will be able to transfer any audio source through light and receive it from the receiver which is placed few feet from the Transmitter.
Here explained about analogue communication through light, where as original LI-FI system uses digital communication, which is more complex and difficult to make one at hobby lab. But the concept is exactly the same.
Here is a simple block diagram explaining LI-FI:
The Design:
The circuit consists of two parts, which are receiver and transmitter. The transmitter consists of 3 transistors and few passive components paired with 1 watt LED. The transistors are configured as common emitter amplifiers which alters the LED brightness with respect to audio signal.
But changes in brightness due to audio signal will not visible to human eye. We only see static illumination of white LED. The receiver consists of a photo detector (here I used solar cell) which is paired with an amplifier. The sound output is given by the speaker.
The transmitter is transistorized amplifier which consists of 3 amplifiers connected in parallel to drive the 1 watt white LED.
Each transistor base consists of voltage divider which gives necessary bias for the individual transistor. The input stage has capacitors at each transistor’s base for blocking DC signals which could degrade the quality of output.
LI-Fi Circuit Diagram
Update: The above design can be also tried using a single transistor as shown below:
You can use a current limiting resistor series with LED if you want operate the circuit at higher voltage (say 12V).You can also use standard 0.5mm white LED with current limiting resistor. For an audio source you can use mp3 player, mobile phone or a microphone with pre-amplifier etc.
The receiver consists of a 6 volt solar cell (3 volts above works fine) in series with 2.2uf capacitor which is paired with an amplifier. The amplifier need not to be the same illustrated here, but you can use any amplifier lying around your house. But make sure it as good sensitivity.
Amplifier Schematic
Here is author’s prototype
Li-Fi Video Clip:
You can use any amplifier with good sensitivity for receiver part. To test this circuit, go to a room where ambient light is dim and make sure no nearby electrical light source.
Place the 1 Watt LED parallel to solar cell. Turn ON the power supply for both transmitter and receiver, give audio input to transmitter, adjust the volume to transmitter. You can here clear audio sound on the receiving speaker.
The above explained Li-Fi circuit can also be tried using a photodiode as shown below, where the amplifier section is replaced with a LM386 amplifier circuit:
UPDATE:
Some Important Notes and Considerations Regarding the above Li-Fi Circuit
In this Li-Fi the LED does flicker, but it is in-significant for our eyes to detect.
If your eyes can detect those flickers, something wrong with the build.
The change in the brightness of LED due to the audio input is very small, but there is change in the brightness, where our eyes can’t detect.
If there is no audio input, the LED stays solid ON, the solar cell produce some voltage. The input capacitor at receiver blocks those DC signal giving almost zero voltage to amplifier.
When we apply audio signal at transmitter there will be change in the LED’s brightness (Very small). The solar cell replicates the small varying voltage, the capacitor will allow the small variation in voltage amplitude to amplifier and rejecting strong constant DC voltage.
The amplifier must have good sensitivity since the input is feeble. Probably that’s why many readers are commenting on loudness of the audio.
I have used old-school home theater’s amplifier which had very good sensitivity and the resulting output was LOUD and CLEAR.
Deepak says
Hii,
What is the use of 2N2222 transistor in the circuit diagram. Can you explain whole circuit diagram please I will be very thankful for that.
Please respond as soon as possible
Thank you in advance
Swagatam says
2N2222 is configured to work like a simple common emitter amplifier circuit. It amplified and music across its collector so that the LED is able to respond according to the music amplitudes.
kimmy kervel says
This is mind blowing, thanks for sharing.
Akshay Kumar Sarda says
Hello,
Have you got the procedure for finding why the particular values of resistor and capacitors
I will really appreciate you if you can provide the procedure or atleast the reference for it.
If you have the procedure do mail it to
14bm047sakshay@gmail.com
Swagatam says
All the values are experimented to get optimal amplification…..if you alter the resistor values, the output amplification will be effected, similarly if you alter the capacitor again the amplification will get effected….the resistive divider limits the input amplitude or the peak voltage, the capacitor limits the current.
Kendall says
Does it need to turn on mobile data to play music in youtube?
Ankit Raj says
Here the signals that are transmitted are analog i think so, then the output in led will be analog too so how this is lifi ?
Swagatam says
The purpose of Li-Fi is to communicate signals or music via light, it does not need to be digital.
kimmy kervel says
Thanks for sharing this is really helpful for me and also for my upcoming project. hope you add some more in future also. thanks for sharing
Swagatam says
You are welcome kimmy.
Ololo chukwuemeka bright says
Sir
Have u got projects on internet generation and transmission using LiFi
Swagatam says
Ololo, sorry, I do not have any other article related to internet lifi other than this one.
howtooz says
Hi there!!!
for transmitter part we are using almost same components (as shown in figure with 3 transistors)…
for receiver part we are using solar panel (5V 1.25W) followed by amplifier circuit with LM386, however we have not used 2.2uF capacitor in series with solar panel…
our receiver part is probably not working as we are not getting any sound in speakers…transmitter part is working as we have tested it with 5 Hz test tone as audio input, we were able to see LED flickering
kindly help us…
Swagatam says
Hi, please replace the photodiode with an LDR in the LN386 circuit, and make sure to connect a 2.2uF or any capacitor in the range, in series with the pin3 of the LM386
sai kiran kencha says
sir, I am working on the research project on Li-Fi. I would like to connect Li-Fi receiver to the FPGA . can you help me with the circuit diagram
I have a simple question … if we switch the transmitter and receiver between two devices does it works in lifi technology?
also, I found some devices on the internet they work with the help of USB. I would like to replace the USB cable.
Swagatam says
Sai, Sorry I do not know much about FPGA technology, but any high frequency will be accepted and processed by this Li-Fi circuit.
As long as the input is a high frequency signal, the LiFi will work across the selected devices.
Rahul says
Bro i used a led strip instead of a led bulb and a 3v solar panel and now the lifi is not working where maybe the problem be where should i make a change in the led or in the solar panel?
Swagatam says
Rahul, first build and verify the basic design which is explained above. If you succeed with that then we can proceed and modify it with an LED strip, and check the response!
Rahul says
I made the circuit as given above but used a 3v solar panel and it is not working should i use a 6v or 9v solar panel? Plz reply fast i have to submit it today evening.
Swagatam says
Did you check your amplifier normally using a music input? First check whether your amplifier is actually working or not? Any solar panel will work for this application…just make sure no other light except the Li-Fi light falls on the light sensor (solar panel)
ololo chukwuemeka bright says
sir
i do not want the anologue experiment help with the minimal materials i need for this
moreso from my last post do i have the required material if not help me with what i need for the digital experiment perhaps i didnt find the article
Swagatam says
may be you can try the following concept
https://www.homemade-circuits.com/lifi-internet-transmitter-circuit/
ololo chukwuemeka bright says
Thanks on the receipt of your wonderful detail swaga
Kindly help me with detail for the digital LiFi transmitter and receiver
Swagatam says
Ololo, the explanation for a digital LIfi circuit is given in the above article, so please go through it for detailed understanding.
ololo chukwuemeka bright says
sir
i just got a 3 watts solar panel to be used as a photodetector, three 6 watts LED wifi panel bulbs,and fresnel lens for an amplifier
please is this enough for a room LiFi
internet
i realy want to know if the fresnel lens is a must since its in a room because its hard to get fresnel lenses in nigeria
help
Swagatam says
ololo, the minimum things are already specified in the article, you will just need those minimum things for the experiment, fresnel lens may not be necessary, please do exactly as explained in the article.
hassan says
hi swag …can i send data more then 1M mebe text file or a picture for 2meters ..and can i buy it and export the circuit
for iraq
Swagatam says
Hi hassan, sorry this design supports only analogue signals, digital signal might not work correctly.
sunil says
sir,
i’m a final year undergraduate student working on applications of li-fi: indoor positioning using lifi. can you please tell me how to use this circuit for positioning.
and what is the distance between tx and rx to be placed
Swagatam says
Sunil, as long as the light sensor is able to receive the light from the LED it will work, the distance will not matter, but you will make sure that no other ambient light reaches the sensor…
Sumit says
Sir, can u please make some video showing connections and working of the project.
GAJENDRA PRATAP SINGH says
SIR SOLAR IS BETTER OR PHOTO DIODE IS FOR TRANSMITTER CIRCUIT
Swagatam says
Gajendra, solar cell will be easier to configure, photo diode will require some technical consideration…so solar cell is the easier option.
both are equally good as far as results are concerned..
Om chandrakar says
Hii swag
I make lifi Circuit same as your Circuit diagram from above. But from wheres i will provide power supply i dont know,
Means R1 connect to +ve and R6 connect to -ve of battery ??
Swagatam says
Om, the Vcc line is the positive, and all the wires linked with this line are positive.
similarly all the wire links joined with the ground symbol are negatives.
use 5V as the supply
GR says
Hi deepak,
You can try: https://www.homemade-circuits.com/2016/02/how-to-make-simple-laser-communicator.html
Regards
ATR says
hey there can u briefly explain the working of ur reciever and the components needed. I have a preamplified speaker and it a has 3.5mm jack input., Can i directly connect the solar panel to it?
Swagatam says
hey, yes you can connect the solar module directly to the input of your amplifier circuit, but make sure no ambient light reaches the solar module except the light from your Tx LED.
ATR says
thanks for the info swag.Does this mean that this system wouldn’t work in a well-lit room?
Swagatam says
It won’t work if any other form of light reaches the light sensor of the receiver, because after all the light sensor is an ordinary light sensor and get activated with all forms of light.
ATR says
and one more question….how many LEDs can we connect here.I am talking about those small LEDs which work at 1.5V.
Swagatam says
divide the supply voltage with 1.5V, and you will get the max number of LEDs that can be accomodated in series
ATR says
thanks, Swag. That means I will need 6 LEDs as I am using a 9-volt battery.
Swagatam says
yes for a1.5V LED you can use anything between 1 and 6 LEDs with a 9V battery, a resistor will be required if the LED count is less than 6
ATR says
thanks again swag .You are very helpful. I am almost done making the project. Now I need to finish the receiver part .I have solar panels from 2 calculators that I scavenged. Will that be enough to run the receiver?
Swagatam says
You are welcome ATR, you can try those solar chips, it should work!!
ATR says
The transmitter circuit started working as soon as I connected the battery. The LEDs lit up and stay ON with or without the music signal from my phone. Does this mean that it’s OK?
Swagatam says
yes it is OK, please read the previous comments to get a detailed idea of the circuit.
ATR says
Hey Swag, the preamplified speakers I told about in one of the previous comments are my old computer speakers which have an amplifier inside and a 3.5 mm jack coming out of it.
Swagatam says
that’s fine ATR, just touch the 3.5mm pin tip, if that makes a loud noise on the speakers then your system is ready for the solar chip integration, which can be connected across the 3.5 mm jack’s relevant inputs.
ATR says
hey swag the setup worked …I am getting audio output but i think the speakers are not good enough because the sound is very grainy.
Swagatam says
That’s awesome ATR, the issue could be perhaps due very feeble output from the solar module, you can try adding a LM386 kind of amp in the middle to boost the solar chip output and then this could be fed to the amplifier for the final amplification, just a suggestion though!
adarsh srivastava says
sir ,
I am a student i have been working on lifi but i am facing an error that if we use white or green or any other led than the sound is coming very low It is coming loud on red led only.
Swagatam says
Adarsh, the volume output is supposed to be directly proportional to the intensity of the light, so white LED should be more efficient than any other color, red cannot be more efficient than white, I think your red LED could be having more focusing power than the white LED and therefore giving better results…..you can try confirming the light power using the following method
https://www.homemade-circuits.com/2014/10/diy-led-brightness-and-efficiency.html
Swagatam says
OK, that’s great! yes you can replace laser with the LED just make sure the V and I specs of the laser are correctly supplied.
Swagatam says
I am glad you liked it.
the transistor can be any small signal transistor such as BC547 or 2N2222, and 8050 will also do.
make sure the LED lights up optimally during the presence of a music signal and shuts down completely in its absence…and also make sure no other light except the LED light falls on the light sensor. alternatively you can also try the LM386 circuit with an LDR for a more responsive performance.
Deepak says
Hi,
Thanks for quick reply.
I used BC338. The LED is always on even when there is no signal applied to it. Is it a problem? Would using BC547 gives better output than BC338. Though BC338 giving good LED Illumination.
I used 6v Solar Panel with 2.2 capacitor and fed to amplifier. The Signal received is very very low. I have to put full volume to hear some output.
Is it due to Solar Panel or due to BC338? Please help in the issue.
Also I do not have Solar Cell and nor could get Photodiode. What modification needed to use LDR to existing amplifier if I have to replace Solar Panel? quick help appreciated as I am sitting with LDR in hand.
Deepak says
Hi,
I thought the LED would be always ON and audio would be transmitting through it.!!!!
In one of your comments I read
“I guess you are referring to the first circuit in the above article, yes the LED will be lit while no signal is connected to the circuit, but as soon as you connect the function generator, the negative signals from it will begin shutting off the LED at the specified frequency rate and you will start seeing the required conversion from the LED.”
So I assumed the LED would be always on.
I was using 3 BC338, 1 Watt LED in the transmitter. In the Receiver end I was using 6v Solar Panel 300mA along with capacitor and A House Amplifier.
I did get audio signal to my amplifier but it is very very low even at full volume.
If my building has error or has to change the transistor then Please suggest a Circuit where LED would be always ON – With Signal or No Signal.
I would like to have my room illuminated always (with Signal or No signal) and also have Music transmitting when Signal fed.
GR says
HI deepak,
LED stays SOLID ON even when no signal input is applied to transmitter that’s the property of LI-FI:- Light and also Communication. Our eyes can’t pickup the flicker due to input signal. If it flicker probably no sufficient power to transmitter.
Regards
GR says
The LED should stay solid ON even while data is being transmitting. You should not see any flicker.
Swagatam says
Hi GR,
Can you please briefly explain how will the LED respond to positive music peaks which may be above 0.6V, because the LED is already ON through R2?
Swagatam says
OK, I think I got it, higher voltage pulses will push proportionately more current to the base of the transistor and produce equivalent change in the brightness.
GR says
Hi sir,
The LED does flicker, but it is in-significant for our eyes to detect.
If your eyes can detect those flickers, something wrong with the build.
The change in the brightness of LED due to the audio input is very small, but there is change in the brightness, where our eyes can’t detect.
If there is no audio input, the LED stays solid ON, the solar cell produce some voltage. The input capacitor at receiver blocks those DC signal giving almost zero voltage to amplifier.
When we apply audio signal at transmitter there will be change in the LED’s brightness (Very small). The solar cell replicates the small varying voltage, the capacitor will allow the small variation in voltage amplitude to amplifier and rejecting strong constant DC voltage.
The amplifier must have good sensitivity since the input is feeble. Probably that’s why many readers are commenting on loudness of the audio.
I have used old-school home theater’s amplifier which had very good sensitivity and the resulting output was LOUD and CLEAR.
I would suggest you past this comment in the article as update, if possible.
Regards
Swagatam says
Thanks GR,
Yes since the response of the music pulses will be extremely rapid, the output cannot be detected by our eyes and we will be able to see a constant average illumination, but the solar cell and the amplifier will be able to extract the minute variations and reproduce it into the exactly same data as the input over the loudspeaker.
Actually the placement and the selection of the 2.2uF capacitor is interesting and crucial which helps to effectively vary the current into the base of the BJT which in turn causes the LED to change its illumination pattern as per the music, and since the BJT is a current controlled device becomes perfectly suitable for the application.!!
I’ll add your comment soon in the above article!!
GR says
HI sir,
yes, you got it..
Swagatam says
Thanks sid, I am glad you liked the post, however I am really sorry, a simulation update might not be possible from me due to lack of time.