+ Reply to Thread
Results 1 to 5 of 5

Thread: obstacle detection

  1. #1
    Ali Az Zobui Newbie
    Join Date
    Sep 2007
    Location
    Jordan
    Posts
    3

    Default obstacle detection

    Hi every body,

    I have a robotic project and i am stuck with the IR detectors. My problem is that the detectors(photo diodes) are beung affected by any source of light.

    Anybody has ideas? I will thankfull for help.


  2. #2
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,826
    Blog Entries
    1

    Default

    This topic has been covered ad nauseam in the forums. The simple solution is to use a capacitor to DC isolate the photo detector output. The more functional solution is to use a single carrier frequency for the transmitter and as sharp a notch filter as possible on the input. TV's, PC monitor's, incandescent light bulbs, florescent bulbs, many LED clocks are all source of modulated light noise.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

  3. #3
    Ali Az Zobui Newbie
    Join Date
    Sep 2007
    Location
    Jordan
    Posts
    3

    Thumbs up Thnaks

    Ok? thanks for the information.

    One more thing, i am using PIC microcontroller to control the robot, i am stuck with the idea of HOW TO MAKE THE MICROCONTROLLER "UNDERSTAND"
    THE INPUT SIGNAL, in other words, i want to measure the frequency of that signal so that the proper decision is made by the microcontroller since the robot has two IR transmitters (front and rear in order to detect front and back obstacles) , the result is to have two signals with two frequencies.

    I hope that the idea is clear.

    I am very thankfull to be helped.

  4. #4
    Wingmax Excellent Wingmax Excellent Wingmax Excellent Wingmax Excellent
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    163

    Cool Frequeny counting

    Hi Ali,

    My suggestion is- the general idea is to utilize the Timer function in the PIC micro. Set the Timer to counter mode.
    Trigger counting and stop count in specific time. Say 100 nS.
    Read value in TMR register.

    Be sure to adjust the time so that the TMR register will not overflow. because it'll overflow after 255.

    Since what you want is to disdinctguish between 2 different frequencies. So by reading the different values in the TMR register will pick the frequency you want.

    There are other methods to count the freauency. You can use timer interrupt etc. But try this one, it should work.

    Hope this help

    Regards,


  5. #5
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,826
    Blog Entries
    1

    Default

    So use two frequencies with two difference bandpass filters, just make sure the frequencies are as far apart as you can manage conviently.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

+ Reply to Thread

Similar Threads

  1. Robotic obstacle detection
    By infinity in forum Robotics Chat
    Replies: 17
    Latest: 2nd September 2009, 08:30 AM
  2. IR obstacle detection using TSOP1738 with PIC16F628
    By pkshima in forum Micro Controllers
    Replies: 2
    Latest: 13th June 2007, 12:08 AM
  3. laser detection an jumbled reply for speed traps
    By butchville in forum Electronic Projects Design/Ideas/Reviews
    Replies: 33
    Latest: 23rd November 2006, 07:55 PM
  4. gas(methane-CH4) detection circuit
    By mohente in forum Electronic Projects Design/Ideas/Reviews
    Replies: 9
    Latest: 29th May 2006, 08:00 PM
  5. i need info about obstacle detection
    By bortoukala in forum Micro Controllers
    Replies: 1
    Latest: 20th May 2004, 03:09 PM

Tags for this Thread