+ Reply to Thread
Results 1 to 4 of 4

Thread: Infrared "slotted switch" sensor

  1. #1
    Electric Rain Newbie
    Join Date
    Jul 2003
    Location
    USA
    Posts
    460

    Default Infrared "slotted switch" sensor

    Hi, been a while... do any of you remember me? :P

    Anyway, I was looking at this schematic... I know it's not complicated, but that's sorta what I want to do. I would need to modify it a bit. For one, I need it to be held high while the beam is undisturbed, and pull "Vout" to ground when interupted, instead. I also need to sextuple the circuit... I need six emitters, and 6 detectors, and I need to design it in such a way, to where if ONE on the six beams is interupted, it will pull ONE terminal to ground. Do I need to use OR gates for this? It's basically like a security system. If any one of the six beams is interupted, it pulls low, and triggers an alarm. 'Cept most security systems probably go high, but that's not the point. :P

    Can anyone give me a circuit for this, or point me in the right direction to make one myself? Thanks.

    Rain

    P.S. Did you miss me? 8)
    When life gives you lemons... make a battery.


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,799

    Default

    Just parallel all the transistors, and use a single 4.7K pullup - this is the whole point of using pullup resistors!.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  3. #3
    jrz126 Newbie
    Join Date
    Sep 2004
    Location
    Erie, PA - USA
    Posts
    1,122

    Default

    Who are you? :wink:

    It should do what you want, (hold high until the beam is blocked). OR gates would work as well. Then you could connect the output of the OR gates to an SR latch, that way once one of the sensors is triggered, you would have to reset the latch for the alarm to turn off.

    I just used a similar circuit as an optical encoder for my robot (microcontrollers final project). I also discovered that those 5mm LEDs fit perfectly into the holes of LEGO blocks (so if you need a convienent way to mount them...).
    Jeff
    To the optimist, the glass is half full.
    To the pessimist, the glass is half empty.
    To the engineer, the glass is twice as big as it needs to be.

  4. #4
    akg
    akg is offline
    akg Newbie
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,406

    Default

    I would need to modify it a bit. For one, I need it to be held high while the beam is undisturbed, and pull "Vout" to ground when interupted, instead.
    just invert the Vout use another npn / or use a phototrans pnp type

+ Reply to Thread

Tags for this Thread