Instructables
A IR remote - USB keyboard for XBMC

Hi, i'm sharing this project becuse it has become realy useful for me.(and it was easy and fun to build).And like i was not able to find some project that do this (now i have found some) i had to build it myself.

It's basic a Infra red remote controler for PCs. It decodes IR signals and emulates key presses on a PC. It is  recognized as a USB keyboard , so it needs no programs running in background, just plug and play.

It is compatible with Sony SIRC 20 bit protocol,works with my LG and SKY universal remotes when they are configured as Sony DVD.Changing this protocol shouldn't be to hard for someone with a little programing skill.

The keystrokes it send are configured to work with XBMC Media Center software.But it is easy to change the keys pres it emulate.

Just two things:
I'm not responsible for any kind of damage resulted from this project,if you would like to use it, do it on your on.

Don't sell this to anyone without consult me.

PARTS LIST:
3mm LED
PIC18F2550-I/SO
TSOP6238TR    (IR Receiver 38KHz)
20MHz Crystal
22pF 0805 x2
1uF 0805 16V x2
330R 0805 x1

Just a mirror for project files:

(Copyrigh 2010, Arthur Benemann)


 
Remove these adsRemove these ads by Signing Up

Step 1: Development

It started on a bread board , show in image, while i was just playing aroun with a PIC 18F and usb. RS232 was utilized to decode the remote controller protocol,old source code with this function its on the rar file.

Thanks to microchip USB example code,emulating was already done, just lik both programs.


Step 2: Board and Schematic

Picture of Board and Schematic
Board.png
DSC03087.JPG
DSC03083.JPG
I developed a small board with smd components ( i burned my only dip 18f2550,and in Brasil its  hard to get new chips).It has some unnecessary headers,with more time i could  made it a lot smaller, but double face boards take twice the time to me to build(no cheap PCB shops).
chard621 year ago
Hi Arthur: thanks for the great project. I've been using it for months now, but it seems that fast forward and rewind do not work.They would be translated to a "R" and "F" keystroke respectively, on the usb keyboard emulation. Can you suggest how to fix this?

Thanks, Richard
chard621 year ago
Hi Arthur: thanks for the great project. I've been using it for months now, but it seems that fast forward and rewind do not work.They would be translated to a "R" and "F" keystroke respectively, on the usb keyboard emulation. Can you suggest how to fix this?

Thanks, Richard
b1m2x33 years ago
Your parts list says you only need 1x 1uf cap, but your schematic lists two? Is that correct?
I have a similar project in http://www.youtube.com/watch?v=7O9a0E_WXPA and http://www.youtube.com/watch?v=9VG7RokuDTs

Sandro Juca
PabloMDiez3 years ago
I'm very interested on this project, but...
How can I change the codes to make it work with a DirecTV remote?
arthurb (author)  PabloMDiez3 years ago
HI, when i wrote the code i used a logic analyzer (the simple PICKIT2) to look the protocol the remote used. From that it's easy to write the decoding routine.
I wouldn't be hard to change a little this routine to your remote.
gokmenim3 years ago
thanks for the project could you please add the eagle files too
so that it gets easier to build
arthurb (author)  gokmenim3 years ago
Just download the project file( you must log-in) and rename it ( to a .rar extension). They are in there. The board isn't really meaningful. dangerous prototypes sells one that could be adapted for this project (IRToy I think).
snoop9113 years ago
The file link is dead.. is it available anywhere else?

I'd like to modify it to use RF instead of IR.. (I have a harmony rf remote).. how complex is that?
arthurb (author)  snoop9113 years ago
The files are also attached to the intructable, but registration is needed (free).About RF, i can't say anything because i don't have to much experience with that.
altainta3 years ago
I would like to ask how to turn on the pc with ir remote (NOT ALL BUTTON BUT ONLY WHICH IS SPECIFICALLY ASSIGNED TO TURN ON ACTION)
Like for accurate example

http://www.simerec.com/PCS-2.html
Kindly tell a method rather than this include PIC OR ATMEL OR ANY AVR
i am looking for this.
arthurb (author)  altainta3 years ago
Hi, i wanted to include PC power-on feature on this controller, but i can't get even my USB keyboard to do this. I tried changing BIOS settings but only WOL , PS/2 mouse , PS/2 keyboard work for me.

PC power down it's easy, but i use the power button to send a 's' key press, it's safer to use the XBMC menu to power-off.
arthurb (author) 3 years ago
Don't worry. The hex files are on the projects files, if you want you can just program it ( there lot's of programes on the web). It's also a good way to start messing around with PICs.
Spydamonky3 years ago
I was sooo excited, but i have never used PIC... arduino?? :D
arthurb (author) 3 years ago
18F13K50, would be a nice replacement for the 18f2550
arthurb (author) 3 years ago
Don't forget, you must configure your remote as a sony dvd player. If you don't you may need to do some changes in the decoding routines.
Meanwhile I used "IR.hex" file in my 18f2550 ... Thanks in advance
arthurb (author) 3 years ago
:)
I prepared the circuit i cannot try it now because i don't have a remote controller now... What are the other steps ? I just set up the circuit and connected with usb to my laptop... Is that all ? or.. give me some details please .
Arthur i am going to try this project just for fun use. (no commercial :) I have all parts except for the led... Thanks for sharing this !
Resolved by renaming ! thx a lot
arthurb (author) 3 years ago
I don't know why this happened.Rename the file extension with .rar, or try to open it directly with winrar.
I just can't download the .rar file... İnstead, it downloads F49... 0x17.tmp what is the problem ????
arthurb (author)  superior_onur3 years ago
I don't know why this happened.Rename the file extension with .rar, or try to open it directly with winrar.
arthurb (author) 4 years ago
If anyone has some question about the project, post it here and i will enjoy answering!

Arthur Benemann