How to work with IR sensors


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default How to work with IR sensors

    Hi. Im trying to make a circuit to detect a remote for a TV. I have a few sensors laying around (the 3 pin ones). Ive seen some diagrams on the net. Version 1 of this looks nice and simple but how would i code something like that? All the examples either dont give source code or give out hex files.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Search post by dhouston on this forum, I think he has posted a solution in the past.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I dont think i found the post you are refering to but i have picked up a few things. I just want to clarify some of them.

    Can i connect an IR sensor directly to a serial port without a PIC chip? That link i posted earlier has an example that may or may not work.

    Do i need to buy a specific sensor? I have a few laying around. Wont any of those work?

    What about sending too. I assume that if question 1 is a yes then this one would be really simple. Just the transmitter and a resistor connected to TX?

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


    Did you find this post helpful? Yes | No

    Default

    It's impossible to say without knowing the specifications of what you have lying about. I usually recommend the TSOP1100 because it covers carrier frequencies from 32kHz-57kHz.

    There are several schematics on the WinLirc (or Lirc if you do Linux) that use minimal hardware with the serial port.

    You need to be aware that the RS232 voltage levels are on the order of 12-15V so you need to take steps to limit the voltage but, the answer is yes it can be done.

  5. #5
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Sounds good.

    I dont know if it will help but the bits i have laying arround have come from an old amstrad sterio system (the really big ones). One is from a hitachi VCR thats about 25 years old now. Ive got a sky box here thats not doing anything too. Im just trying to track them all down. I know they are in the loft somewhere. Might take a while to find. I could always drop into maplin i suppose.

    Can someone explain version 2 in that link i posted please. I dont understand it. Where does it even get the power from?

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


    Did you find this post helpful? Yes | No

    Default

    Most IR receivers cost $1 - $1.50. It's not worth your time to sort through obsolete junk.

    In the schematic you refer to, power comes from the RTS & CTS lines, The zener diode drops it to 5V.

  7. #7
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    It looks really simple then. I think ill have a trip into Mansfield and buy one from Maplin. Should i be using a zenner diode? Ive heard that you should use a voltage regulator instead

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. 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
  3. IR Sensors
    By koossa in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 3rd October 2007, 07:41
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  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 : 1

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