57 users responded in this post

Subscribe to this post comment rss or trackback url
User Gravatar
iPhone-based universal IR remote - Hack a Day said in March 1st, 2011 at 3:28 PM

[...] decided he wanted to use his iPhone as a universal IR remote, but he didn’t want to pay very much to do so. Instead of buying a dongle at the store, he [...]

User Gravatar

[...] decided he wanted to use his iPhone as a universal IR remote, but he didn’t want to pay very much to do so. Instead of buying a dongle at the store, he [...]

User Gravatar
hackaholicballa - iPhone-based universal IR remote said in March 1st, 2011 at 4:47 PM

[...] decided he wanted to use his iPhone as a universal IR remote, but he didn’t want to pay very much to do so. Instead of buying a dongle at the store, he [...]

User Gravatar
edit1754 said in March 1st, 2011 at 6:12 PM

couldn’t you just take a universal remote, reroute the LED into the microphone jack, and record your own WAV files that way? or will there be too much noise

User Gravatar
isama said in March 1st, 2011 at 6:53 PM

“I promise to improve if there will be more than 20 people using it.”

here’s one. even tough i don’t care about the interface :P Thank you for sharing a great idea.

User Gravatar
Phil said in March 1st, 2011 at 7:13 PM

This should work on every audio Device. Lets use it on MacBook :).

User Gravatar
Oliver said in March 1st, 2011 at 7:15 PM

If you head over to http://79.73.121.52/remote/ I have put together a series of html5 based webpages for mobile devices to act as interface.

User Gravatar
NotSpamning said in March 1st, 2011 at 10:01 PM

Nice work, and very nicely explained.

You should sell kits for < $10 for the technically uninclined.

User Gravatar
aggaz said in March 2nd, 2011 at 2:00 AM

I will certainly use this to turn my mp3 player into a TVBeGone!

User Gravatar
greymatr said in March 2nd, 2011 at 2:09 AM

How about using a soundboard app such as this one (link below) that would allow custom wav files and icons?

http://itunes.apple.com/us/app/custom-soundboard/id351955984?mt=8

User Gravatar
Vcazan said in March 2nd, 2011 at 4:21 AM

This is awesome, please release your code or add support for more tvs!

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:02 AM

Oliver, thank you, that was fast!
My progress on a more usable design is on the slow side.

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:09 AM

NotSpamming,

Great idea, unfortunately I can’t.

But you can :) When you buy those LEDs on ebay in bulk they cost around 10 cents per count. 3.5mm plugs are less then $1. Even if you sell those for $5 that’s a good profit. And it can be assembled without soldering, just with heat shrink.

But wait for a week till a better interface is ready. I also came up with the new wiring schema, it looks very promising.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:13 AM

Greymatr,

Great idea! I was thinking about this, unfortunately I don’t have much time this week, so if you have a few hours to spare maybe you can make one?
I’m currently working on the web interface and solving the existing problems like
- huge delay between the button press and the file being played
- ugly hardly usable interface
- not-so-great range and barely ok angles
- polishing the code so I can publish it

I have a good progress with those, so hopefully will have those problems resolved sooner than later and release v2

Andrey

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:15 AM

Vcazan,

Will certainly do. Simultaneously I’m trying a different approach to getting more codes. Hopefully the database of the available codes soon will be sufficient enough and this remote will become truly universal.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:17 AM

Isama,

Thank you, so 18 more to go (I count myself too) :)

In fact with already a few thousand project visits it looks like there are plenty of people who want their universal remote, so I decided to go ahead with the better design without waiting for the rest of confirmations.

Andrey

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 6:19 AM

Edit1754,

Yeap, that’s a possibility. In fact you don’t even need to reroute the remote LEDs, you can use the ones used in this remote. I.e. those LEDs work not only as emitters, but as receivers as well. I’m working on the soft to leverage this fact. And this is how I was debugging the hardware aprt, BTW.

Also old remotes are a good source of great IR LEDs. They have appropriate wavelength and they are also frequently wideangle – really useful feature.

Andrey

User Gravatar
Flood_of_SYNs said in March 2nd, 2011 at 11:09 AM

I believe in the diagram Led-1 has it’s polarity mislabeled.

User Gravatar

[...] Para generar estos archivos de sonido el autor de este método ha creado un programa en python que usa los códigos difundidos por los fabricantes de dispositivos y mandos a distancia universales. Si bien el número de dispositivos controlados por este sistema es aún reducido, el autor de este método promete de momento generar los códigos necesarios a aquellas personas que le devuelvan feedback con los resultados de sus pruebas, hasta que termine de pulir el programa y lo haga público. Podéis encontrar todos los pasos así como una detallada explicación de todo el proceso en la web de su autor. [...]

User Gravatar
Andrey Mikhalchuk said in March 2nd, 2011 at 7:10 PM

Flood_of_SYNs,

Thank you for double-checking!

I know that diagram looks strange, but it’s correct. In fact there are two other wiring approaches and they all look strange too. I’m going to describe them a bit later with different pros and cons

Andrey

User Gravatar
oPossum said in March 2nd, 2011 at 9:35 PM

I have made 44.1 kHz files as requested. There are also 8 and 16 bit versions of both 44.1 and 48 kHz. I am surprised that some devices will not play 48 kHz. Do they also not do 48 kHz MP3?

The code has been updated to remove MFC dependency so it can be compiled with the free Visual Studio Express. It has also been cleaned up a bit. Take a look at the IrAudio::Sine() function to see how DDS (Direct Digital Synthesis) is used to generate a precise carrier frequency. Having a proper carrier frequency and IR wavelength (950 nm) is beneficial in this application because the power is very low compared to an ordinary remote. The maximum carrier frequency that can be achieved with real hardware is about 45% of the sample rate. It is not possible to do 50% (half of sample rate) for a variety of technical reasons. (Study Shannon and Nyquist for all the details)

New code and wavs: http://www.compendiumarcana.com/iraudio/tvgb2wav.zip

I first became aware of this technique from a posting at the Sparkfun forums: http://forum.sparkfun.com/viewtopic.php?f=14&t=9394

That lead to the development of a way to capture IR directly to audio: http://compendiumarcana.com/iraudio/

I also added audio generation to my IR Widget software: http://compendiumarcana.com/irwidget/

The IR Widget has become popular with the JP1 community, and they have created updated software that can import Pronto hex and other formats and convert them to audio: http://www.hifi-remote.com/forums/viewtopic.php?t=12241

One of the JP1 members also sells an assembled IR Widget for those who can’t build one: http://www.hifi-remote.com/forums/viewtopic.php?t=9405

User Gravatar
oPossum said in March 2nd, 2011 at 9:38 PM

Correction to above: should say maximum AUDIO frequency, not CARRIER frequency. The IR carrier is double the audio, so it can be about 90% of sample rate.

User Gravatar
Hypto said in March 3rd, 2011 at 1:04 AM

Can you make WAVs for Vizio tv’s? Since they are so popular/common now.

User Gravatar
steelgriffin1 said in March 3rd, 2011 at 11:53 AM

hi i have a panasonic tv and vcr can you create a page for those?

User Gravatar
curious said in March 4th, 2011 at 11:34 PM

i’m just curious is there a possibility to make like this project a wireless amplifier for the phone,like i just plug in the antena like a jack adaptor..?? pls respond

User Gravatar
Xqtftqx said in March 6th, 2011 at 7:57 PM

TV-B-Gone anyone? :)

User Gravatar
Ted said in March 7th, 2011 at 1:54 AM

Hello

How would I get the Wav files for the Remote used with my Home sound system. The system is a JBL ESC350. There are two Buttons that I would like to get the files for, “Tone” and “Calibrate”.

Thank You

Ted

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:41 AM

Hello Ted,

Sorry, I don’t have those at the moment. If you can send me the codes in some form (pronto, lirc) I can try to generate the files.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:43 AM

Hello Xqtftqx,

You can try the files oPossum sent (see above).

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:49 AM

Hello curious,

Hmmm …
Just plugging your phone to an antenna won’t work because iPhone can’t output much power + the frequency is totally off.
But you can sure use it as a modulating input for any transmitter, like ham radio. Just make sure you’re not transmitting music on ham frequencies – that’s in general prohibited with a few exceptions.
Also there are products on the market that will transmit sound from your iPhone to an FM radio – that will work for 10ft or so.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:50 AM

Hello steelgriffin1,

Yeap, I have a few files generated for Panasonic. What’s model do you need?

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:51 AM

Hello Hypto,

I’m working on that. If you’re interested in particular models please let me know, I’ll make those priority.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in March 7th, 2011 at 6:57 AM

Hello oPossim,

Thanks a lot for the files and the new sources. I didn’t try them yet as last week was crazy.

I tried to play the files on Max with sox – it played some and choked on others. Then I concatenated the files (again, via sox) and tried to play them on iPhone and it didn’t like 48kHz at all. After quick research I found a lot of complains from different people that 48kHz format has very limited support on many platforms.

Thanks for the other links too, will study them a bit later.

Regards,
Andrey

User Gravatar

[...] your iPhone into a Universal Remote – [Link] Tags: iPhone, IR, Remote Filed in Control | 1 views No Comments [...]

User Gravatar
harbin said in March 20th, 2011 at 12:55 AM

great idea
can you generate the files for panasonic TV?

User Gravatar
Chris said in April 26th, 2011 at 11:54 PM

Hi Andrew I’d be interested in a wav for my camera’s IR. The code has been decoded but I have no way to take this and create a wav for it, my programming chops aren’t up to the job.

The code is here http://www.bigmike.it/ircontrol/index.html can you use this with the python script? if so any idea when this will be available?

User Gravatar
exodus said in June 23rd, 2011 at 9:19 PM

Hi! so if i have the hex code of the comand i want is it good enough?

0x5DA2

0x9C63

“both rec button of an Lg LCD”

User Gravatar
Nixdorf said in July 8th, 2011 at 7:38 AM

Hi Andrew, i have been trying to get this to work for quite a while, but no luck, i have an infra red socket “http://www.sourcingmap.com/220v-infrared-remote-control-socket-outlet-p-104026.html?currency=GBP&utm_source=google&utm_medium=froogle&utm_campaign=ukfroogle” which i am trying to switch on, it picks up the signal i am sending (the light flashes on the socket) but i doesnt actually power on, i have tried with a samsung remote and the socket works fine, any ideas?

User Gravatar
Savio Ladeira said in July 20th, 2011 at 12:49 PM

Does it work just like a Redeye mini conector? There´s a free app for that.. http://itunes.apple.com/us/app/redeye/id315598320?mt=8

User Gravatar
Andrey Mikhalchuk said in July 20th, 2011 at 9:37 PM

yeap, it does. It just doesn’t have this nice user interface with the program guide (yet).

User Gravatar
Andrey Mikhalchuk said in July 20th, 2011 at 9:47 PM

Nixdorf,

I’m not sure about this particular device, but my TV also flashes light when I’m sending wrong IR signal to it. I think those flashes may mean that it just sees the signal, the carrier is correct, but not necessarily the signal itself is right. If you have an oscilloscope you can hook up an IR receiver to it and compare signals from your remote and from samsung remote. Maybe it will reveal the difference in signal.

Sorry about being not very helpful, I’ve just never seen anything like this device. My home power control works via X10 which is an RF protocol. I know X10 devices are also available in Europe, maybe you can consider using one of those? RF is more versatile than IR, it works even through walls.

Andrey

User Gravatar
Andrey Mikhalchuk said in July 20th, 2011 at 9:50 PM

exodus,

Sorry, that’s probably not enough. Besides these two codes I need at least the carrier frequency (I hope it’s 38K). Also my code only can covert pronto codes into IR signals. I think it is possible to convert the two codes you sent into pronto code, but maybe it is easier to find the pronto code by model number? There are websites in the internet that collect such codes (even though most of them are totally not working based on personal experience)

Andrey

User Gravatar
palaniraja said in July 26th, 2011 at 6:13 AM

Thanks I’ve successfully tested this method with a samsung tv.

Is there wav file set for Apple remote? is it possible to use this IR as Apple remote for macbook pro?

you can find the codes from here http://www.remotecentral.com/cgi-bin/mboard/rc-prontong/thread.cgi?8154

User Gravatar
Andrey Mikhalchuk said in July 28th, 2011 at 12:08 AM

palaniraja, it worked for my samsung TV as well when I tried codes from remotecentral. Unfortunately I found their database very old and frequently wrong. I dodn’t find codes for most of my home and office electronics and the codes I found frequently didn’t work. Maybe you know another good source of codes?

I’m currently busy with the new episodes of RTFMs, but I’ll return to this topic and I’ll try luck with AppleTV codes later.

User Gravatar
Palaniraja said in July 29th, 2011 at 1:09 PM

Thank you Andrey for reply.

I have few friends who own apple remote, I could ask them for help, but how do they capture the code?

Is it possible to use macbook pro IR receiver to capture (IR codes) with any application (preferably freeware)

User Gravatar
Lee said in July 31st, 2011 at 12:12 PM

I would like to download the sound files for the remote. I want to put them on my mp3 player. How can I download them?

User Gravatar
Sziky said in August 7th, 2011 at 4:58 AM

is the python program released yet?

User Gravatar
gumy said in August 10th, 2011 at 12:38 PM

# this one uses 4 leds (stereo + opposing) @~38K / 4 = 9.5KHz. Cool!!

so, I need 4 leds to use this?

User Gravatar
Andrey Mikhalchuk said in August 10th, 2011 at 12:49 PM

Sorry, that was a confusing comment I forgot to take out. I removed it. You need just two LEDs to use this code.

User Gravatar
gumy said in August 14th, 2011 at 10:30 AM

I tryed to create the wav file from this code:
0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94

but I get this error: Traceback (most recent call last):
File “C:\prwav.py”, line 76, in
file.write_ir_code( samsung_power_code )
File “C:\prwav.py”, line 55, in write_ir_code
( self.frequency, sequence_1_len, sequence_2_len ) = ( frequencies[codes[1]], int( codes[2], 16 ), int( codes[3], 16 ) )
KeyError: ’006D’

what could be wrong?

User Gravatar
gumy said in August 16th, 2011 at 10:42 AM

I’ve tryed other codes too, but I still get Key Error. this time 0070

0000 0070 0000 0064 0080 0040 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0030 0010 0aac 0080 0040 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0030 0010 09cf

what should be wrong?

User Gravatar
chaka said in September 30th, 2011 at 1:14 PM

http://dl.dropbox.com/u/14932480/IR%20Remote/IrRemote.html
Made this quick example with JQTouch

Now need to create more wavs for the rest of my appliances… having trouble running the python code in Python 2.7, getting this error:

Traceback (most recent call last):
File “pronto.py”, line 75, in
file = IrSoundFile( ‘samsung’, ‘tv’, ‘power’ )
File “pronto.py”, line 14, in __init__
self.file = wave.open( dir + ‘/’ + signal + ‘.wav’, ‘wb’ )
File “C:\Python27\lib\wave.py”, line 500, in open
return Wave_write(f)
File “C:\Python27\lib\wave.py”, line 303, in __init__
f = __builtin__.open(f, ‘wb’)
IOError: [Errno 2] No such file or directory: ‘samsung/tv/power.wav’
Exception AttributeError: “Wave_write instance has no attribute ‘_file’” in <bou
nd method Wave_write.__del__ of > ignored

User Gravatar
saptrix said in December 9th, 2011 at 9:10 AM

#Very dumb question!

IR is not standard on phones or tablets. Has anyone developed a bluetooth/ir convertor which is not a ripoff like the logitech harmony or the griffin beacon??

It seems logical to me to simply use a good app transmitting thru bluetooth to control ur HE system. Any leads?

User Gravatar
Andrey Mikhalchuk said in December 30th, 2011 at 5:35 PM

Yes it is, please check the post update.

User Gravatar
Andrey Mikhalchuk said in December 31st, 2011 at 3:47 AM

saptrix,

A BT/IR converter is not a difficult thing to do on android, maybe more difficult on iPhone because of its closed and limited API. On android you can use BT as a link to send serial commands over. On the IR side you put a simple microcontroller that will trigger the IR LEDs. I haven’t seen an opensource implementation of such though.

Regards,
Andrey

User Gravatar
Andrey Mikhalchuk said in December 31st, 2011 at 4:06 AM

Lee,

Just open this page in a web browser and save the files to local disk just like you save all other files (right-click on the link, select “Save Link As…” or something like this, depending on the type of your web browser). Then upload files from your computer to the MP3 player.

Regards,
Andrey