Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 22nd April 2008, 08:38 AM   (permalink)
Smile OPB702 Optoelectronics Reflective switch Application

Hi All,

Anyone of you all come across this device?

http://www.optekinc.com/pdf/opb702.pdf

And anyone can provide the simple connection diagram for this device?

Thanks.
mesamune80 is offline   Reply With Quote
Old 22nd April 2008, 08:43 AM   (permalink)
Default

The datsheet gives you the internal schematic- a photodiode with a photodetector. Wire up the photodiode with a current limiting resistor the same way you would wire up an LED, and simply wire up the photodetector as an open collector (with a pull-up resistor if you want to measure analog rather than digital).
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline   Reply With Quote
Old 22nd April 2008, 08:58 AM   (permalink)
Default

thanks for the information given,but if i would like to give on /off signal to my pic micro controller which i need 5v for high logic how could i achieve that?
Thanks.
mesamune80 is offline   Reply With Quote
Old 22nd April 2008, 09:01 AM   (permalink)
Default

You have the photo-diode pull the pin to ground whenver it triggers and have a pull-up resistor bring the pin high the rest of the time (like I described previously).
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline   Reply With Quote
Old 22nd April 2008, 09:14 AM   (permalink)
Default

i just tried to connect pin 1 via a 1k resistor then to 12v pin 2 to GND ,
and pin 4 to 12V and pin 3 to my microcontroller and i got the reading just 0.92v?
mesamune80 is offline   Reply With Quote
Old 22nd April 2008, 09:20 AM   (permalink)
Default

Pin 3 should go to ground, while pin 4 should to your uC pin AND go to 5V through a resistor (to pull the pin high when the transistor is not on and not pulling the pin low).

Also, your 1K resistor is too small and would burn out the LED. THe datasheet says it has a 1.7V drop for 20mA if it is a IR LED and a 2.4V drop at 40mA if it is a red LED (do you know which one your device has?)

You should size your resistor so that:
R = (Vsupply-Vdiode)/Inominal

(the extra voltage from the supply that isn't dropped across the diode must be dropped by the resistor, so if you use this extra voltage that is going to appear across your resistor in the equation in V=IR, you can figure out control how much current goes through the LED).

just like when sizing a resistor for a normal LED.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.

Last edited by dknguyen; 22nd April 2008 at 09:26 AM.
dknguyen is offline   Reply With Quote
Old 22nd April 2008, 09:49 AM   (permalink)
Default

ok,mine is IR LED so my R should be R=(5-1.7)/20mA=165ohms?

,i just tried to put 165ohm but when i block the photosensor the reading could not ground to 0V? Anything wrong ?
mesamune80 is offline   Reply With Quote
Old 22nd April 2008, 09:57 AM   (permalink)
Default

Quote:
Originally Posted by mesamune80
ok,mine is IR LED so my R should be R=(5-1.7)/20mA=165ohms?

,i just tried to put 165ohm but when i block the photosensor the reading could not ground to 0V? Anything wrong ?
WHen the photo-detector has light on it, the transistor turns ON. THat means when there is light it pulls the pin to ground. WHen there is no light, the resistor pull the pin to 5V.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline   Reply With Quote
Old 28th May 2008, 01:44 AM   (permalink)
Default

can i power up pin 1 with a 510R resistor and pin3 with 4.7K pull up resistor?
as my Vdiode is 1.7v? is this correct??
mesamune80 is offline   Reply With Quote
Old 28th May 2008, 03:11 AM   (permalink)
Default

But the above configuration power with different source one with (diode)12V and another one with 5 V (transistor).can i do it that way?
mesamune80 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Button Debounce Coding help Suraj143 Micro Controllers 25 4th August 2007 09:48 AM
Please help me in writing code abdosat2000 Micro Controllers 9 5th June 2007 01:40 PM
light operated switch application ken_urriquia Electronic Projects Design/Ideas/Reviews 1 17th January 2007 12:04 PM
PIC Switch Management Techniques Mike, K8LH Micro Controllers 2 28th September 2006 12:33 PM
wireless reflective switch Scooter Electronic Projects Design/Ideas/Reviews 4 13th February 2004 01:27 AM



All times are GMT. The time now is 07:05 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.