DIY Infrared transmitter for iPhone, iPod by alberto_canvas
Create a Infrared transmitter for any portable mp3 device, ie phones, music players etc.
This tutorial is for creating the Infrared transmitter only.

Can be used with iPhone App DSLR.BOT. http://dslrbot.com 
Used for controlling Canon EOS, Nikon, Penta and Sony Cameras.

The way this transmitter works is it sends infrared on and off signals from the audio playback coming from your headphone jack. Having saved an audio file with the correct on and off timings, you can play back this audio track through your portable music player and trigger infrared devices.

This transmitter works better with a WAV audio playback, however this has been successfully tested as an MP3 audio track.  The WAV track generally produces  a clearer signal as they can playback a 38 KHz modulation (Infrared frequency rate), by dividing the frequency between the two stereo channels. 19 KHz for the left channel and an inverse 19KHz signal for the right.

To better illustrate this the left channel will play an on and off signal ..
0101010101
The right channel will produce the in-between signals for the off time ..
1010101010
Therefor each channel will take turns producing a infrared signal creating a higher frequency rate, equal to that of an infrared remote control.

The Items needed for this DIY project are ..
1) Infrared LEDs 940 nm 2x
2) 3.5 mm stereo headphone minijack

 
Remove these adsRemove these ads by Signing Up

Step 1: Prepare the headphone jack

The first thing to do is strip the wire ends then twist the ground wires together. The ground wire is usually the wire unprotected by a coloured casing.

1-40 of 47Next »
marshal56 says: Jan 31, 2013. 5:12 AM
Hi alberto_canvas, I would like to control my TV with this big-eye-zaza(star war), I find the ir code from web, how can I make the ir code into audio? many thanks.
Glenstr says: Dec 14, 2012. 12:08 PM
I'd like to build one of these, would these LED's work? http://www.ebay.ca/itm/5x-TSAL6400-Vishay-5mm-Infrared-LED-940nm-IR-Diode-Wii-/150659004375

thanks!
tkkg says: Sep 19, 2010. 4:46 PM
Hi alberto_canvas, how's that other tutorial (capturing and sampling IR code) coming along?

Also, I've seen the same setup elsewhere on the web with a minor difference, there's a 10ohm resistor added. Is that necessary? Here's the source http://img212.imageshack.us/img212/8740/icouch2mg1.png
cgapeart says: Mar 25, 2011. 1:15 PM
On the plus side, it's going to limit the amount of current drawn by the diodes, which is probably safer for your audio player. On the minus side, the IR output won't be as bright.

Take the resister out of that diagram, and you have exactly what this instructable is detailing.

A typical infrared diode has a drop of 1.3 volts across it. Based on what I can find, the iPhone should be able to run up to 3.5volts peak to peak -- depending on the audio signal, that means it could do up to 7 volts -- and the internal resistance of the wires and diode will have to take up the slack from the 1.3 volt drop. i.e. 7-1.3 = 5.7 volts to drop.

I don't know if 10 ohms is the right value, and I don't know what kind of current limiting capabilities are built into the iPhone audio output, but I would think that some kind of resistor would be a good idea to protect the audio output of the phone. Any thoughts?

AJMansfield says: Dec 9, 2012. 8:45 AM
220 ohms is nearer the mark for a current-limiting resistor in this application.
ledartist says: Oct 10, 2012. 9:46 AM
Assuming that iPhone output of 3.5 V peak to peak is correct (I think it is), you can still only get 3.5 V max between the LR channels, as opposed to 1.75 V between one of the channels and the GND.
Of course 3.5V is plenty for IR (or even white) LEDs.

AJMansfield says: Dec 9, 2012. 8:43 AM
The reason MP3 doesn't transmit as clearly is actually because MP3 is a LOSSY COMPRESSION, which filters out high-frequency, noise spikes, etc. Great for when you want to record audio. Horrible for recording a digital signal. Even using WAV is somewhat an abuse, since wave files generally have at least 16-bit depth, and therefore uses 16 times more space than should be needed to store the signal.
humxa says: Feb 29, 2012. 10:52 PM
where to connect the ground wire?
bisharam says: Nov 27, 2012. 10:23 AM
nowhere, just leave it free.
alaskanbychoice says: Mar 2, 2012. 11:51 PM
The ground wires are tied together and insulated. The two power wires go to the LEDs and are hooked up opposite of each other. DSLRBOT explains it all.
khurtwilliams says: Jun 2, 2012. 8:57 AM
Thanks a lot. I modified the design somewhat. I used a Radio Shack 3.5 mm mini stereo plug (Part # 274-0869) and soldered the LED directly to that to make the result more compact.
20120602-iPhone_4-1788.jpg
g3lrod says: Nov 23, 2012. 8:48 PM
What LED did you use?
pulcinella says: Oct 5, 2012. 7:00 AM
To me it does not work with iPhone 4S firmware version 6.0 where am I wrong? maybe I got the wrong LED?
g3lrod says: Nov 23, 2012. 8:46 PM
The firmware version shouldn't make a difference, all it is doing is pulling current from the audio jack when music is playing. I would check to make sure you didn't make any silly mistakes (not twisting the ground wires, hooking up the LEDs correctly, etc.) first.
iroamz says: Sep 11, 2012. 8:29 PM
Hi All,

Tried this with a Canon 400D DSLR and it worked, a bit weak but it worked close range...I used the purple colored LEDs (I think they are 950nm).
humxa says: Aug 2, 2012. 12:14 PM
I've built this and works great but can any buddy tell me any other app that uses this to trigger Television sets, blue ray players and such?
jamesmangold says: Jun 14, 2012. 2:01 AM
Can this be applied to make a photo-gate timer for physics lab activities?
dcyane says: Feb 14, 2012. 11:23 PM
I love this app! But why not surport DVs? I need it to control the record status of SONY DV, please add DV functions to it, Thanks! dcyane2002@163.com
khurtwilliams says: Jun 2, 2012. 8:22 AM
The app serves a specific purposes. Remotely triggered a DSLR camera from an iPhone/iPod Touch. The app is written with that specific use case.
fbooms says: Nov 15, 2011. 2:01 AM
Hello,
i have done all the Things you shown but it dont work. I have a Canon 600D. What is wrong??? You say that sometimes problems in Europe. Why??? What ca i do?
khurtwilliams says: Jun 2, 2012. 8:21 AM
List of camera supported here: http://www.dslrbot.com/specifications/
andrew121007 says: Jan 21, 2012. 10:21 PM
Is it possible to maybe add a battery to amplify the led power? I've got a pretty big amplifier on my computer that if put on maximum will show the led light up (through camera) but on phone it doesn't light up. I can't test my computer because I don't have any ir devices near it. But when I try with my phone it does not function. I've constructed it how it should.
khurtwilliams says: Jun 2, 2012. 8:19 AM
Read the title of the post. This is designed specifically for triggering a Nikon DLSR from an iPhone.
andrew121007 says: Jan 21, 2012. 11:05 PM
Ok so if I put it close enough to the TV and move it around, it functions, so that means it definitely needs amplification.
santakrooz says: Jan 22, 2012. 6:59 PM
Hi just built this, but the IR LEDs are emitting white light (and it's not working with my Nikon) - I ordered 940nm but I'm now suspecting that they sent 850nm instead. Can someone confirm that the 940nm IRs should not be emitting any light? thanks
nodoubtman says: Nov 8, 2011. 11:51 AM
what is the use of this?

thanks!
deandaman says: Dec 9, 2011. 6:10 PM
its used to remotely trigger function from your DSLR camera which is quite handy.
dmclaughlin1 says: Nov 21, 2011. 5:14 PM
I was wondering as well about the possibility of using mp3 files as a source as well. I've got a working IR receiver input into the sound card on my computer. I get good signal on an oscilloscope, and can see that same waveform in an audio processing app (I use soundforge). I'm trying to build the transmitter now.

Can I just play back the mp3 and get the desired result? If so,
What should the audio file sample rate and bit depth settings be?
Do there need to be any resistors, capacitors, external power added to the LEDs?

I've testing the transmitting LEDs and I can see the signal on a camera but when aimed right at the tv, nothing happens. Any thoughts? Many thanks.
nodoubtman says: Oct 25, 2011. 11:34 AM
what is this used for ?

thanks!
abana says: Oct 6, 2011. 10:18 PM
Ok, so i've made the transmitter but it has a really poor range, like maybe 2ft max.

Is the length of the cord a matter?

Also, what is it that you guys said about a resistor? how many ohms?
msouza says: May 16, 2011. 12:32 PM
BTW, thanks a LOT to Share this. I will test it today ! :)
msouza says: May 16, 2011. 12:32 PM
What about the LEARN scheme ? Do you have it ? And do you have any clue to make an workflow to Record and reproduce the "commands". Just link buttons to Mp3 files and play them ? :)
squarefrog says: May 3, 2011. 7:33 AM
Pretty good - but perhaps a more flexible option would be to simply solder a couple of IR LEDs to a 3.5mm jack, and then use a standard 3.5mm stereo extension cable for length.
zmohiuddin says: Mar 29, 2011. 12:56 PM
Would a 950nm diode work? Those are the only ones they had at Radiocrap.
Mdob says: Apr 5, 2011. 7:58 PM
That should work just fine.
crtn2 says: Mar 9, 2011. 10:52 AM
i dont think this will work. you should twist L and R wires together and connect ledt between them and ground wires
cgapeart says: Mar 25, 2011. 3:29 PM
I would have to see what the signals look like to know for sure, but I think the point here is that you can create a larger voltage difference by driving one of the sides positive, and the other negative with respect to ground. Having two LED's going opposite to each other means you can generate voltage in both directions of that.
crtn2 says: Mar 30, 2011. 12:19 AM
you're right, but the right channel should be inverse of left channel or this wont work.
piesforyou says: Feb 2, 2011. 9:37 AM
Hi alberto_canvas, I thought this was a great guide and it gave me an idea for using it as a DSLR intervalometer. You can find details of how I used it here:

http://www.pentaxforums.com/forums/pentax-dslr-discussion/131633-absurdly-simple-diy-k-x-remote-timer-using-mp3-player.html#post1368821
alberto_canvas (author) says: Feb 3, 2011. 8:57 AM
Hi piesforyou, ive actually developed an app for the iPhone quite a while back for the same purpose. Made for canon users, but have been developing it for use with other cameras.

http://www.dslrbot.com
1-40 of 47Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!