PDA

View Full Version : IR help



geckogrotto
- 8th June 2007, 06:13
Hey all, I want to use a IR receiver and record and output the data to the serial port from a TV remote.
1st I want to know whats the best way to detect the signal? (what command)

2nd will this "recording" alow me to be able to figure out how to repeat the signals back out?

Thanks

Luciano
- 8th June 2007, 08:22
Hi,

Use a IR receiver. Make sure you use a IR receiver using the same
carrier frequency used by your remote control.

Example of IR receiver: Siemens SFH 506

Datasheet:
http://www.geocities.com/uirr/siemems-sfh506.pdf

More about IR Remote Control Theory:
http://www.sbprojects.com/knowledge/ir/ir.htm

Best regards,

Luciano

* * *

Just for fun or to test a IR remote control:

Beam with the IR remote in a digital camera or a cellular
phone with camera and on the LCD of the camera you will see
the light pulses. (CCD are sensible to infrared light).

dhouston
- 8th June 2007, 12:17
Hi,

Use a IR receiver. Make sure you use a IR receiver using the same
carrier frequency used by your remote control.

Example of IR receiver: Siemens SFH 506

Better yet use a broadband IR receiver that covers all the carrier frequencies used by all remotes (except B & O).http://www.elenota.pl/pdf/Vishay/82252.pdfIt's very easy to use a PC soundcard (or chip) to view and/or record the output wave form.http://davehouston.net/learn.htm
http://www.zelscope.com/

geckogrotto
- 8th June 2007, 20:33
Ok will look over the sites and datasheets but whats the best way (command) to read the pulses in using picbasic. pulsin?

skimask
- 8th June 2007, 20:40
Ok will look over the sites and datasheets but whats the best way (command) to read the pulses in using picbasic. pulsin?

I've used pulsin to read Sony type IR commands without a problem...but, to each their own...

dhouston
- 8th June 2007, 20:45
It depends on the protocol. If the protocol uses pulse width (or space width) modulation, PulsIn will work but some protocols are a bit more difficult. Sampling the pulsetrain every 25µS (or less) will work for almost all protocols, especially if you know the carrier frequency which will let you refine the numbers by using the nearest integral number of carrier cycles to match the sampled widths. What are you trying to accomplish?

geckogrotto
- 10th June 2007, 03:40
Hey Dave I'm working on a universal remote of sorts for some cameras.
By sampleing the pulsetrain you mean like this?
COUNT GPIO.4, 1, Pulsedata

dhouston
- 10th June 2007, 13:56
By sampleing the pulsetrain you mean like this?
COUNT GPIO.4, 1, Pulsedata
There are both DIY and commercial devices that will do this. Of course, most folks who post here are wheel reinventors.

By sampling the pulsetrain I mean checking the pin every 25µS (or less) and setting a bit in an array to indicate its state. You end up with something like...
11111100000111000111000000111000111000000000000000 which is an image of the pulsetrain where each digit represents a 25µS sample.

IR receiver modules are active low, so you'll get an inverted output with 0s where there's IR and 1s where there's none.