ThermalRunaway said:Yeah it's no big secret or anything. Basically I'm writing some software for a PIC which will allow the use of the RC-5 protocol for infra-red communication. Not a new thing, and I know you can get dedicated ICs for communicating with infra-red, but I just wanted the experience of writing a program to communicate data using an existing protocol. I've got loads of RC-5 remote controls around my house so I can use them to test my design with (I'm doing the receive side first).
The transmit side is trivial, I've used my basic Sony SIRC's transmitter routines to do RC5 (and RC6) a number of times - it's only a few minutes job.
The receive side is more difficult though, my radio module tutorial basically does RC5 type decoding (Manchester decoding) - and if you check the link to the source where I got the basic routines from, there's more about it there.
The reason I choose Sony SIRC's for the IR tutorial is that it's so much easier (probably the easiest IR method), and there's no shortage of Sony remotes about - but RC5 is definitely the worlds most popular system.
As a matter of interest?, I first wrote routines to decode the Sharp remote system - but that was a LONG time ago - I analysed the output from a Sharp remote using a 386 DOS laptop. Back then there weren't loads of websites that told you all about the different protocols.