View Single Post
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#5
Originally Posted by hexagon5un View Post
I wonder if you couldn't work something up that used the audio jack?

Say you made a hardware 38kHz modulator, and then just turn it on/off from the phone jack -- play the right wav files and you're good to go.

IR LED's don't use all that much juice. (Worst case is it'd require a small battery.)

Hmmm... if it weren't Halloween weekend, this would be a fun project...
I'm thinking two IR LEDs back-to-back (i.e. parallel, but reversed) across the right and left channels, with a current-limiting resistor, would suffice. Output a 19kHz tone, and you'll get 38kHz light (each lights on opposite half-cycles), so it would be just a matter of composing a .wav file, setting up the sound, and playing it.

I did a little testing here:
  • Using an ALSA mixer from Debian, I'm able to get up to 2V p-p per channel; driving the channels out of phase gives 4V p-p, which should be plenty.
  • With no ALSA mixer, just kicking the volume to max, I can get 2.5V p-p (both channels).
  • Attenuation with both channels into a 110 Ohm load is about 20% (2V p-p), so it looks like the Thevenin impedance is about 25 Ohms for this configuration.

Allowing 1.3V across the diode, 1.2V into 25 Ohms gives about 50 mA, so no resistor should be needed. (Something like 100 mA if you do kick it up to 4V, but @~25% duty cycle, still no resistor needed if the LEDs are rated for at least 50 mA continuous.)

So just two IR LEDs and an 1/8" jack should do it, I think.