You just need something like a IS1U60 or similar, from RS, Farnell or Maplin, which is an infra red receiver with filter, limiter, BPF, Demodulator, Integrator and comparator all built in, and hook up the output to your pic. Preferably on RB0 so u can use interrupts.
Hello, I found some of those integrated "receivers" used in TV remote control in TV sets. but I couldn't figure the frequency of modulation. (I think the range is 33 to 48 Khz)
Hello, I found some of those integrated "receivers" used in TV remote control in TV sets. but I couldn't figure the frequency of modulation. (I think the range is 33 to 48 Khz)
The best way is to know wich IR_sensor are you dealing with, then get the datasheet and find the nominal frequency of modulation it expect.
Take in mind that this sensors has an internal bandpass filter that have a "center frequency" in a wide range that you must know prior to activate it.
Regarding the range, you are rigth but will be up to 64 Khz.
The modulation frequency of RC5 is 36KHz. Most of them are close enough to work ok. I updated the program a bit with more info on rc5 format and a return flag. Please try the new version.
There is no special schematic.
I just use a TSOP4838 IR receiver and the output goes straight to pin RA2 on a pic16f690. Which is the external interrupt pin.
I used the Hi-Tech compiler.
As the code is written in C, it should compile ok with any good C compiler. The decoder will work with most 8-bit Pic micros.
Most pic chips have common names for their special function registers so you might not have to change a lot to port it to a different variant.
You need to use the external interrupt pin for the IR input. So you might have to change that to suit.
Also, depending on your clock frequency, you might have to adjust the timer prescaler.