 |
|
 |
| Parallax Forums > Public Forums > BASIC Stamp > Infrared detector in place of a phototransistor ?? | Forum Quick Jump
|
|  charlieknox Registered Member
        Date Joined Dec 2004 Total Posts : 26 | Posted 11/4/2009 7:27 PM (GMT -8) |   | | Can I use the infrared detector that comes with the Boebot, coupled with an infrared LED, in place of a phototransistor & light source, for detection of an object breaking the beam? The application is in a "jam detector", as in a photocopier, that would have 3 horizontally spaced stations with a gap (vertically) between the IR LED and IR detector. If 2 adjacent detectors sense paper (the beam is blocked), this signifies a jam - if not, all is well. I know the IR LEDs & detectors are used with the Boebot in a reflective mode. Can I use them with the LED pointed toward the detector, and when the beam is broken, the detector output changes state? Thank you for any light (IR or otherwise) you can shed on this.
Regards,
Charlie | | Back to Top | | |
 |  PJ Allen Counsel of Despair ???

       Date Joined Sep 2005 Total Posts : 2807 | Posted 11/4/2009 7:38 PM (GMT -8) |   | | | |
  |  allanlane5 Registered Member

       Date Joined Aug 2004 Total Posts : 3574 | Posted 11/5/2009 9:37 AM (GMT -8) |   | The detector sold by Parallax outputs for a little while after the pulse has gone away. This is how you can use an IR-LED (using FREQOUT IR_Pin, 1, 38000) to illuminate the detector, then IMMEDIATELY do a "PULSIN DetPin, ResVal" to get a "ResVal" pulse width.
So yes, you can do this, assuming the paper isn't transparent to IR light -- which I'd be amazed if it was. | | Back to Top | | |
 |  charlieknox Registered Member
        Date Joined Dec 2004 Total Posts : 26 | Posted 11/5/2009 11:41 AM (GMT -8) |   | Thank you gentlemen !! I think I'll get some phototransistors to do the job, in line with using the KISS method.
Regards,
Charlie | | Back to Top | | |
| Forum Information | Currently it is Friday, November 20, 2009 10:40 PM (GMT -8) There are a total of 393,734 posts in 55,521 threads. In the last 3 days there were 82 new threads and 700 reply posts. View Active Threads
| | Who's Online | This forum has 17687 registered members. Please welcome our newest member, mark09. 50 Guest(s), 1 Registered Member(s) are currently online. Details Sal Ammoniac |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2009 |
|
|