TRANSMIT DATA THROUGH LIGHT !!!

8,495

38

20

About: I'm a guy who loves to play with technology. Check out my eBook: http://bit.ly/mini_wifi_robot Now you can find my tutorials on https://LearnRobotics.org/blog

Hello guys, after a long time I am back again to share a new and simple project. In this project I will show you how you can transmit data signals from one place to another through Light. Sending data over light isn't a new concept but recently it gained a lot of attention after the introduction of LIFI . In this tutorial we will transmit simple data like Binary and Audio through LEDs and Laser.

So lets get started....

Step 1: GATHERING COMPONENTS :-

  1. BD139 Transistor. (Any NPN transistor will work. 2N2222 can be used)
    Link for US
    Link for Europe
  2. LED or Laser.
    Link for US
    Link for Europe
  3. 10uF capacitor.
    Link for US
    Link for Europe
  4. 100uf capacitor
    Link for US
    Link for Europe
  5. Two 1k Ohm resistor.
    Link for US
    Link for Europe
  6. 50 and 100 Ohm resistors each.
  7. Switch.
    Link for US
    Link for Europe
  8. 10k Ohm Potentiometer.
    Link for US
    Link for Europe
  9. Earphone Jack.
    Link for US
    Link for Europe
  10. Breadboard
    Link for US
    Link for Europe
  11. Arduino (Optional. If you want to experiment with different data.)
    Link for US
    Link for Europe

For Receiver:-

NOTE:- If you have computer speakers you don't need to make a Receiver. But you will need Solar cell or LDR to receiver Light signals.

  1. Two BC547 / 2N2222 transistors.
    Link for US
    Link for Europe
  2. LDR or solar Cell
    Link for US
    Link for Europe
  3. 1k and 10k Ohm Resistors each.
    Link for US
    Link for Europe
  4. 1uf Capacitor.
    Link for US
    Link for Europe
  5. Speaker.

I have provided Links to the components but you can buy these from local electronic's store.

Step 2: MAKING THE TRANSMITTER :-

The setup is simple. Just follow the circuit diagram I have provided. For a reference check the Breadboard Layout. Here I have usedBD139 transistor but you can use any general purpose NPN transistor, just take note of the Pin out diagram of it. Also power the circuit with 5v - 7v depending on what you are using ( Laser or single LED).

Once the circuit is ready. Power it up and see if the light glows. If it does then turn the potentiometer to check if the intensity of light changes. If it does, Everything is fine and you can proceed to the next step.

If it does not work check the connections and polarity of the transistor.

Step 3: MAKING THE RECEIVER :-

Just in case you don't have a Computer speaker or you just want to make this full "DIY Project", You can follow the circuit given above to make a simple audio-amp.

If you have a computer speaker things are pretty simple in this step. just use a Female Audio jack and connect it with two wires to a solar Cell or LDR and plug the speaker. that's all here.

Step 4: HOW TO USE IT ???

Once the Transmitter and Receiver are made just connect the earphone Jack to any music player or a mobile phone and play a song. Adjust the Potentiometer to dim the LED, You will notice it flickering. If it doesn't recheck the connections and try again. When it flickers it means the sound is been converted to digital signal and transmitted via light.

Now just place the solarcell or LDR near the LED and you will hear the music being played on the speakers. Adjust the brightness of the LED to get a more clearer sound. For long distance transmission use a laser.

Now that you have successfully transmitted audio, You can experiment with different type of data using Arduino. To connect it to an arduino just connect the GND pin of arduino to Ground and Input pin of capacitor to any Digital pin of arduino and set the pin to transmit data. But to decode these signals of arduino you will need another Arduino at receiving end. But that's for another Instructable. Till then try this and experiment more...

I hope the instructions are easy to understand. If you have any questions feel free to ask in the comments.

Share

    Recommendations

    • 1 Hour Challenge

      1 Hour Challenge
    • Frozen Treats Challenge

      Frozen Treats Challenge
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest

    20 Discussions

    0
    None
    ShoneR

    Question 3 days ago

    sir i want to make this project using two arduino s..what should i do?? please rply sir.

    1 answer
    0
    None
    WolfxPacShoneR

    Answer 1 day ago

    You want a full duplex communication, I suggest you do some research about it. And you will understand how to make this project

    0
    None
    ShoneRShoneR

    Reply 3 days ago

    sir in your project what are the codes when i use two arduino s..

    0
    None
    FouadA14

    5 months ago

    hello
    actually its wonderful way to learn deeply the nature of transmitting and receiving using electromagnetic waves for analog and digital input signals.Also the simplicity .
    could I use IR led or antenna as RF.so what are the factors should be taken in consideration?
    could I try this by simulation, if yes which one?
    Thanks alot.

    1 reply
    0
    None
    WolfxPacFouadA14

    Reply 5 months ago

    Yes you can use IR LED to transmit sound in same manner shown above , just replace normal LED with IR LED and replace the LDR/solar cell with an IR receiver.
    To use RF communication, this circuit will not work, though you can use a micro controller like arduino for that.

    0
    None
    NelsonS82

    Question 7 months ago

    we have connected the transmitter circuit as shown in the circuit diagram, but the LED doesn't light up when power is supplied. We tried changing polarity of the transistor and checked the circuit connection repeatedly but still didn't work. What can be the possible cause?

    3 answers
    0
    None
    WolfxPacNelsonS82

    Answer 6 months ago

    Sorry for the late reply,
    have you tried turning the potentiometer to check if the LED lights up. also the LED will not work until you supply an audio signal. If you tried it all and still it doesn't work try replacing the transisor.

    0
    None
    NelsonS82WolfxPac

    Reply 6 months ago

    Thank you for replying. Yes, the transmitter worked, but we are not getting any sound from the receiver speaker, not even noise, though we know the receiver circuit is not faulty cos it gives a vibration when the ldr is illuminated with a torch.

    0
    None
    WolfxPacNelsonS82

    Reply 6 months ago

    LDR should technically work but I never used it as it has a small surface area.
    I used a small solar cell, You can give it a try. If you dont have one, you can get one out of an old solar powered calculator.

    0
    None
    lyndond5

    Question 10 months ago

    Hi Sir..!! i have successfully connected all the components and powered it on but the led just blinks once and goes off.... and then i tried powering on again but the same error occurs...... plz help me solve this problem...

    3 answers
    0
    None
    WolfxPaclyndond5

    Answer 10 months ago

    If you have used same components and followed the instructions correctly such error should not occur, I cannot help without looking at your connections. I suggest you trouble shoot the circuit once again and if you cant find error. post some pics of your build so I can have a look at it.

    0
    None
    lyndond5WolfxPac

    Reply 10 months ago

    I'm sending some photos plz help me...

    1534692475682570134253.jpg15346925140271374381078.jpg1534692612082807653190.jpg15346926578715695341.jpg
    0
    None
    WolfxPaclyndond5

    Reply 10 months ago

    the connections doesn't seem right. go through the diagram again and make the connections properly.

    0
    None
    avinash_reddy_b

    Question 11 months ago on Step 4

    sir i made the project but i am getting full of noisy signal and the sound was too low .How can i over come this to get a good communication medium...

    1 answer
    0
    None
    WolfxPacavinash_reddy_b

    Answer 11 months ago

    Reduce the ambient light by making the room a bit dark. Then Adjust the Potentiometer slowly until you hear clear sound.

    0
    None
    Mickaelr6

    Question 1 year ago

    Hey this project seems nice but I realised it and I have a little problem. When I see the Led flickering, and I put the solar cell just upon it, I can't hear any change of noise and just a rustle, do you have any idea of what could be the problem here ?
    Thanks for this

    1 answer
    0
    None
    WolfxPacMickaelr6

    Answer 1 year ago

    Try increasing the intensity of the light.

    0
    None
    SteliosM4

    Question 1 year ago

    Hey this looks like a really cool project and i wanna do it . Im still kind of learning so i would like to ask did u solder two wires the solar panel to connect with the speakers ? Also for the input through the earphone jack how do u connect to two wires.( I have these questions seeing the parts u suggested) Thanks and cool project!

    1 answer
    0
    None
    WolfxPacSteliosM4

    Answer 1 year ago

    I'm glad you liked the project. And yes I soldered the wires to solar panels.
    The earphone jack I used has 3 pins. you just have to connect one wire to ground and other to any 1 terminal. to identify the ground you can search google for earphone jacks pin diagram.