Convert Wave sounds to IR signals

Thread Starter

MartinLarsson

Joined Feb 25, 2009
17
I've recorded the IR signals from my TV-remote as a wave on my computer. And now I want to play them through an IR-diode, instead of the speakers, so I can control the TV from my computer.
Now, the problem:
It did not work to just connect the diode to the computer (no surprise) so I tried to amplify the signal with a transistor, but apparently it's not that simple.

Do anyone know how to make a circuit that will make it work?

The IR-diode is 1,2V and 100mA and the input voltage would preferably be 3V. Ohh and I am just using one of the stereo channels, so it should be mono...
(I recorded it with PCM at 44,100 kHz and 16 bits.)

Thanks!
 
Last edited:

bertus

Joined Apr 5, 2008
22,277
Hello,

What samplerate did use for recording ?
Most IR remote control signals are about 38 kHz.
It can be that when you "playback" the signal it is totaly distorted.
(a soundcard mostly has a highcut at 15 - 20 kHz).

Greetings,
Bertus
 

Thread Starter

MartinLarsson

Joined Feb 25, 2009
17
I don't thinks it's the samplerate or any other quality setting. The sound is good I just can't send it though a transistor. When I connect the comp. output to Base and Emitter, and the power to the Collector through the transistor and then though the IR diode or any speaker/headphone. The signal disappear. Not a sound. Therefor noobish as I am (for a geek) I suppose that I've made the circuit wrong and want someone to make a working one for me (made of simple components...).
Thanks, but I really need this to work!:)
 

Thread Starter

MartinLarsson

Joined Feb 25, 2009
17
It's kinda like the one I have, or it is. But I have tested things like remove the resistor, connect the speaker (IR-diode) parallel with C and E and change the voltage and such.
But I can hear the signal when connecting directly to the input but I want it through some kind of circuit so I am sure to get the right juice to the IR-diode.

Time to hit the sack! THANKS!!!
 

Attachments

Last edited:

davebee

Joined Oct 22, 2008
540
To amplify what others have previously said -

The IR coded signal looks sort of like RS232 at a fairly slow data rate, so you will be able to hear it through an IR detector.

BUT - when it is sent, it's pulses are ALSO chopped at a very fast rate, 38-40 kHz. The IR receiver is designed to reject any incoming signal that doesn't pulse at that fast rate.

So even though you may hear sound due to the detected IR pulses, that's not enough to operate the receiver. The PC sound card may be able to record the slower pulse trains, but it may not be fast enough to either record the incoming 40 kHz signal OR send out a recorded 40 kHz signal.
 

fish4fun

Joined Feb 24, 2009
8
Martin,

I just want to clarify what the others are saying. Your sound card is not likely to prove viable as a signal source for an IR remote. Most IR remotes work by sending variable length pulse trains of a specific frequency, typically 35kHz to 40kHz. I have seen projects that use a com port or, even better, a parallel port to "make a remote". Sadly, all the ones I have seen are Linux or DOS based. I would assume someone has figured out how to bend windows to emulate a remote w/o a uController, but the task is MUCH easier with a uController.

Here is a link to one such PC based IR remote:

http://www.armory.com/~spcecdt/remote/

In the end, unless you really want to spend a lot of time on this, you might consider something like this:

http://www.usbuirt.com/

I don't know anything about the above device other than it came up first in a google search and claims to do exactly what you want.

Good Luck!

Fish
 

Thread Starter

MartinLarsson

Joined Feb 25, 2009
17
Well, thanks everybody anyway:)! However, if someone makes it work or w/e I have a nice program made in C# that will by speech recognition change channel. Just so you know... :D

Thanks!
 
Top