RC5 code for infrared receiver
Hi All
I am using a TSOP 1736 connected to a 12F629 and that in turn connected to a MAX232 which connected to a PC serial port.
The idea is to capture the keypress data from infrared remotes.
Digging through the forumas I found and tried Dave Houston's code which worked for NEC based remotes. (Thanks Dave!)
I am now searching for some very simple code suited to the RC5 protocol. The one requirement is that hopefully it is purely PICBASIC without any assembler.
I would like to receive the button press from the RC5 infrared transmitter, and store it in a variable , then I could do something like
Code:
IF ButtonCode = xxx then
do_something
Any help or pointers would really be appreciated.
Kind regards
Dennis
The hard part about RC5....
Steve - that does look like a nice gadget indeed :-)
Bruce - sounds like you have been through a lot of work in efforts to decode the signals.
@Anand ..that's a nice site :-)
Unlike SONY protocol which has set pulse sizes for 1's and 0's ,
I see the issue with decoding the RC5 protocol , it uses bi-phase encoding either a pulse on the first half of a total bit time (denoting a 0) OR the last half of a bit time (denoting a 1) so some code would be required to check the state of the pin.
There must be some way to measure and capture this....back to the drawing boards I go :-(
Any thoughts anyone ?
Kind regards
Dennis
Wouls SHIFTIN work for this ?
Hi all
Still no light !
Now I am wondering if SHIFTIN would work for catching the incoming pulses.
Has anyone tried capturing a pulse train using SHIFTIN ?
Any info would be appreciated.
Kind regards
Dennis
Re: RC5 code for infrared receiver
Quote:
Originally Posted by
dhouston
You should be able to adapt my code. All you need is the details for each protocol of interest. See...
Hello, dhouston
I tried to look for the link but 404 error is coming
Can you another link so that I can adapt your code
thanx
Re: RC5 code for infrared receiver
Try http://www.sbprojects.com/knowledge/ir/index.php and follow the instructions on "How to Navigate", there is a dropdown on the menu bar that lists all the different protocols.