RC5 infrared remote

Here's a project requiring minimal hardware to implement a basic RC5 IR remote: just an Arduino, battery and IR LED:

Here's a link to a zip file containing the code (rc5xmit.pde and irparams.h):

http://wikiputer.org/arduino/rc5xmit.zip

The code as it stands just has a demo program in the main loop to do some basic operations on a TV. It shows how the code is pretty straightforward to use:

brand(PHILIPSTV) ;
button(POWER,2) ;  // hello world
delay(15000) ;
button(ZERO,2) ;   // change channel to 03
delay(100) ;
button(THREE,2) ;
delay(100) ;
button(MUTE,2) ;   // mute the TV
delay(15000) ;
button(POWER,2) ;  // over and out

Of course, this works only with some TV models, and the code may have to be changed to accomodate other RC5 devices.

reminds me of http://www.tvbgone.com (with more functions of course)! Thanks for sharing!

Regards,

Till

reminds me of http://www.tvbgone.com (with more functions of course)! Thanks for sharing!

I'm just surprised nobody's built an Arduino based tvbgone. Doesn't ladyada have an open source one based on an 8-pin AVR?

Very Cool. Im wondering if one can send signals to their XBOX360 like this unless that uses Radio Frequency.

Very Cool. Im wondering if one can send signals to their XBOX360 like this unless that uses Radio Frequency.

I just did a little searching... I gather that the the XBOX360 IR remote uses RC6, the successor to RC5 (and Microsoft-recommended for Media Center). The old XBOXs used RC5.

Microsoft developed RC6 in conjunction with Philips. I can't find a whole lot of info on it.

Yeah I was going to use the remote to send an IR signal to the Arduino on top of the xbox which sends a signal to the tranciever in the outlet which sends a signal through the houses existing wiring to the switch on the wall to dim it. X10 sells a universal remote (so I can even skip the whole arduino process), but im wondering if i can control my xbox 360 via that.

Someone asked if I had a similar sketch for sending SIRCS (Sony) protocol. Here it is:

http://wikiputer.org/arduino/sircsxmit.zip

Joe

rc5xmit is great work Joe, thanks!

is there anything that would stop it working on the lilypad? or put another way, has it been tested on an 8MHz cpu?

thanks

I think it should work on the Lilypad just by changing the SYSCLOCK define in the header file from 16000000 to 8000000. Haven't actually tried it though (Lilypad on order). ;D

I think it should work on the Lilypad just by changing the SYSCLOCK define in the header file from 16000000 to 8000000. Haven't actually tried it though (Lilypad on order). ;D

yes! this works perfectly! thanks again Joe.

Hi jmknapp,

The links are dead. Can you please refresh them?

http://wikiputer.org/arduino/rc5xmit.zip
http://wikiputer.org/arduino/sircsxmit.zip

My DSL (and thus server) are out of commission due to a truck taking out our phone line--should be back up by Friday.

Still down :frowning: I will have to check back later to night. I don't know what I'd do if I lost my connection for a couple days heh.

I'm not sure if this is the same sketch or not but here is a link to some code that might work. I have not toyed with it yet.

mduca, i have a copy of rc5xmit.zip from back in May if that's any help.

get it here: http://fts.rca.ac.uk/download/?u=chris.hand&k=kiw9taEx

link will expire 10th October.

Nice, [smiley=beer.gif] thanks!

Hi,

Here is some info about RC6 at http://www.sbprojects.com/knowledge/ir/rc6.php

Changes: changed link address.

Wow, this worked great. I have a Philips myself, and just connected a IR LED and uploaded the code and boom my TV started turning on and off :stuck_out_tongue:

Does anyone have any idea as to where to find information that can be used to add other other TV-sets to this? And how to add it all to the irparams file?

Looks cool! I've been trying to interface with an Infoglobe (http://www.linux-hacker.net/InfoGlobe/) for a while with limited success. Hopefully I'll be able to find something in your code that helps me out!

Can someone reupload the fonts??? :-/