Stereo to High Speed LED for Data Transfer

dataledpwm

I am currently doing a project on optical data transfer using LED. The first hurdle I need to overcome is the LED driver circuit. I have little to no background in circuits. I do know a fair amount of relevant coding stuffs for this project (on the demodulation side at the receiver end)

My preliminary setup would be a stereo output from a PC and this stereo will be the input on my LED driver circuit.

The question is, how should I approach this design to achieve at least 1Mhz pulses of phosphor-based White LED's? Since the input is analog, I need an ADC so that the signal will go to some microcontroller or IC and drive the LED ON/OFF rapidly. One consideration is to have a PWM driver that can deliver at least 1Mhz pulses.

Thing that need not be considered now is
– possibility of data that causes LED to be OFF for a noticeable period

Goal:
1. Translate a stereo input data to a high speed LED ON/OFF's sequences.
2. LED intensity should be consistent. (ie. the Photodiode that receives the light should output similar results each time assuming the data transmitted is the the same)

Best Answer

There is already a solution to converting stereo audio to a digital optical signal and back again that's widely used and readily available: TOSLINK. It basically is a simple conversion from the electrical S/PDIF signal to an optical format. There are many commercial chips that can convert directly between analog audio and S/PDIF (in both directions).

The only difference is that TOSLINK normally uses inexpensive plastic fiber to couple the light between the transmitter and the receiver, and you want to do a "free space" transmission. Therefore, you are going to have to focus on the optical part of the link, dealing with highly-variable signal levels and lots of potential interference.

White phosphor-based LEDs tend to have poor frequency response, mainly because of the slow decay of the phosphor's glow, although if you read datasheets carefully enough, you can find some with fast phosphors.

But you could use the slower LEDs if your receiver includes an optical filter that passes the blue light directly from the LED and ignores the yellow light from the phosphor. This might be a good idea in terms of rejecting interference anyway.