Detect fast movement using photodiode


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Word on the street is: Use a PIC with Schmitt trigger inputs for better results. Better results due to Schmitt triggers hysteresis's gives input port a snap action, dampens analog effect.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Joe S. View Post
    Word on the street is: Use a PIC with Schmitt trigger inputs for better results. Better results due to Schmitt triggers hysteresis's gives input port a snap action, dampens analog effect.

    Yesss Joe ...

    Much better, as comparators directly can generate the interrupt ...

    Over that I'd try to use a compensation stage to correct for ambiant light ... look at the attached scheme ... left side of Transistor T2.

    Alain
    Attached Images Attached Images  
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Along the same lines, the data sheet for the part Alain points out has on page 11 another nice way of doing it.
    http://www.google.com/url?sa=t&sourc...SILdHEv5RRcHYQ
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Along the same lines, the data sheet for the part Alain points out has on page 11 another nice way of doing it.
    http://www.google.com/url?sa=t&sourc...SILdHEv5RRcHYQ
    Hi, Dave

    Not so nice ...

    as the goal, here, is to take care the detectors are not saturated by light ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi, Dave

    Not so nice ...

    as the goal, here, is to take care the detectors are not saturated by light ...

    Alain
    Maybe... but if the OPs part was to pass the two detectors causing the differential ?? then saturation may not be a problem ??

    I am going to try it some day. Just an idea.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by mackrackit View Post
    then saturation may not be a problem ??

    I am going to try it some day. Just an idea.
    Halas !!!

    when saturated ... your detectors won't "see" anything ... both of them !!!

    no differential signal nor ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Halas !!!

    when saturated ... your detectors won't "see" anything ... both of them !!!

    no differential signal nor ...

    Alain
    I am thinking along the lines of both detectors being saturated but spaced maybe a centimeter or so apart. When the piece being detected cast a shadow on one and not the other then the differential. I guess it would only work if the light source was coming from one direction only........Darn, now I am back to square one
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Aug 2008
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Halas !!!

    when saturated ... your detectors won't "see" anything ... both of them !!!

    no differential signal nor ...

    Alain
    From that datesheet, it said that the circuit will not be sensitive to changes in light as the source ages, this means saturate right?

    That means I can't connect IR TX continously?

Similar Threads

  1. Replies: 1
    Last Post: - 7th November 2007, 21:36
  2. Possible to detect I2C Device?
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th March 2007, 11:13
  3. code conversion
    By saturnX in forum mel PIC BASIC
    Replies: 19
    Last Post: - 3rd October 2005, 18:17
  4. Detect baud rate
    By Dick M in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd July 2005, 22:10
  5. A/D on 16F877. How fast can I go?
    By atomski in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th April 2004, 07:51

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