IR help


Closed Thread
Results 1 to 8 of 8

Thread: IR help

  1. #1
    Join Date
    Aug 2006
    Posts
    91

    Default IR help

    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

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    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).

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Luciano View Post
    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).It's very easy to use a PC soundcard (or chip) to view and/or record the output wave form.

  4. #4
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Ok will look over the sites and datasheets but whats the best way (command) to read the pulses in using picbasic. pulsin?

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by geckogrotto View Post
    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...

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    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?

  7. #7
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    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

  8. #8
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by geckogrotto View Post
    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.
    Last edited by dhouston; - 10th June 2007 at 13:58.

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  3. Plz help in completing RC-5 IR remote lamp dimmer project
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd April 2008, 08:44
  4. PIC10F200 Automated IR Light Switch
    By Bruce in forum Code Examples
    Replies: 7
    Last Post: - 3rd May 2007, 11:40
  5. how to get pic to pic communication
    By kinsiro in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th August 2005, 17:12

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts