View Single Post
  #2   Spotlight this post!  
Unread 09-02-2004, 00:07
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Optek OPB625 Optical Swtich

Quote:
Originally Posted by squide
This is probably a no-brainer... How do I connect the cathode and anode pins on this sensor to the FRC?
Looks like you can safely run about 20mA through the LED (maximum is 50mA per page one). Then looking at the top-center graph on page three, it looks like the corresponding forward voltage at this current is about 1.3 volts. Since it would be handy to power the LED from the built-in +5 volt power supply, you need to find a resistor that will drop 3.7 volts (5 - 1.3) at 20mA. Plugging this into ohm's law, the value of the resistor should be 3.7/0.02 = 185 ohms. The closest resistor with a 5% tolerance is 180 ohms. Now you need to know the power rating of the resistor. Using the equation P = I^2 * R, the resistor will need to be able to safely dissipate 0.072 watts. Adding some margin to that, I'd go with a 1/8th watt (or larger) 180 ohm resistor, wired in series with the LED. The cathode side (labeled 'K') goes to ground, the Anode side goes to +5. The resistor can go on either side of the LED.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org