Results 1 to 8 of 8

Thread: Help on IR sensor

  1. #1

    Default Help on IR sensor

    Guys I got a IR sensor with only 2 pins
    It has an open base.....wid only emitter n collector...Its TL series
    How do i make use of it as an obstacle detctor?
    Help ME

  2. #2
    Member Advanced User
    Join Date
    May 2006
    Location
    Russia, Penza city
    Posts
    42

    Default

    i have IR LED emitter and TSOP-like receiver. But i have no idea how to poll the reseiver

  3. #3
    Senior Member Android
    Join Date
    Dec 2005
    Location
    Mumbai
    Posts
    111

    Default Hello

    hello,
    Shreyas, read the article on micromouse posted on front page. Follow the description on distance measuring setup, or try searching google.

    Dmage, is there any number printed on the "TSOP like" receiver?
    Cya,
    Mohit Bhoite

  4. #4
    Senior Member T-1000
    Join Date
    Jun 2005
    Location
    bangalore
    Posts
    325

    Default

    first thing...
    its not tsop....
    tsop has 3 pins....
    if its a 2 pin ir receiver...
    then its resistance ll change wen it receives ir...
    try this out.. measure its resistance inside a room and then outside in sun...
    it ll show less value outside...
    manifest this into change in voltage and chop off using a comparator..
    if u thought u r the only mad person on the planet.......u got serious competition here

  5. #5
    Member Advanced User
    Join Date
    May 2006
    Location
    Russia, Penza city
    Posts
    42

    Default Re: Hello

    Quote Originally Posted by orion
    hello,
    Shreyas, read the article on micromouse posted on front page. Follow the description on distance measuring setup, or try searching google.

    Dmage, is there any number printed on the "TSOP like" receiver?
    Cya,
    Mohit Bhoite
    this is our russian analog of the TSOP receivers - ILMS5360.
    i connect it directly to the microcontroller 90s2313.

    here is the code. 38646800 is clock, prescaler 1, using PORTD.
    PORTD.2 - IR LED, PORTD.3 -> PIND.3 in - from IR Detector, PORTD.4 - red led t o see if the obstscle id detected.

    Code:
    interrupt [TIM1_OVF] void timer1_overflow(void)
    {
            // preset again TIMER1
            TCNT1= 65536 - (xtal/prescale/fmove);
            
            if (PeriodCounter == 50)
            {
                    if (PIND.3 == 0)
                    {
                            PORTD.4 = 1;
                    }                   
                    else
                    {
                            PORTD.4 = 0;
                    }
                    PeriodCounter = 0;
            }
            else
            {
                    if (myPeriod == 1)
                    {
                        PORTD.2 = 1;
                        myPeriod = 0;
                    }
                    else
                    {
                        PORTD.2 = 0;
                        myPeriod++;
                    }
                    PeriodCounter++;            
            }
    }
    eee... this code does not work ... help !

  6. #6
    Member Advanced User
    Join Date
    May 2006
    Location
    Russia, Penza city
    Posts
    42

    Default

    the goddamned BasicStamp Code
    look like this

    FREQOUT 8, 1, 38500 ' Check IR Detectors
    irDetectLeft = IN9

    how to implement this in C ?

  7. #7

    Default Re: Help on IR sensor

    I think itz a photo transistor , the current flows when light is shone on the base

  8. #8

    Default

    IF YOU ARE A BEGINNER GO FOR IR LED+PHOTO DIODE COMBINATION THAN GOING FOR TSOP

    see the photo diode and photo transistor tutorials in my book

    MY EXPERIENCE IN AUTONOMOUS ROBOTICS
    get it from
    group-booksbybibin
    http://groups.yahoo.com/group/booksbybibin/

    Bibin John
    www.bibinjohn.tk

Posting Permissions

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