optoisolaters not working with the prop
science_geek
Posts: 247
I would like to use 2 4-channel optoisolators found at the sparkfun website, http://www.sparkfun.com/commerce/product_info.php?products_id=784, i for some reason can not get it to turn on a simple led from the prop, does anyone have any experience with these that they could give any help, i have tried every configuration possible, i just need 1 channel to work for now but will eventually need 6 working, any comments/help is welcome.
Comments
and if you are using the Vdd of the Demo Board it will be 3.3V....make sure you are using 5V to power
the optoisolator.
Sam
can you provide a datsheet details about LED current ?
I don't believe that you have checked REALLY ALL configurations (there are thousands of it)
so please post a schematic and a DETAILED description of what you have tried
including COMPLETE sourcecode
best regards
Stefan
If you look at the schematics provided by sparkfun, do you measure a volatge rise at pin#4?
Are you sure, that you do have a signal on the input side of the OC?
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
As to voltage since it's just a darlington phototransistor you can run with 3.3V easily enough but don't try to switch a led with it. Set up your circuit in the way that you actually want to use it (tell us if it helps).
Typically optos are used to isolate inputs as you only need 10ma or so to drive the input led. Set the current limit resistor to "limit" the current that depends upon the input voltage (not 50 ohms!). When it comes to ouputs though they are a bit more limited as you need some isolated voltage for the load. By using the transistor as a "grounded emitter" with an open-collector though you can make it appear as a switch on the isolated ground.
*Peter*
The good news, is that you can get them in different configurations such as: 2 port bi-directional(2 isolators, 1 in each direction i.e. in and out) or 4 port with 1in-3out, 2in-4out, or all 4 in the same direction. They are 3.3V-5V compatible so they work fine with any voltage in between. Oh, a plus, is that they come in 150Mbs so they are EXTREMELY fast. Another bit of good news, is that they are in their sample program!
The part number is ISO721M for the single channel, or ISO7240M for the 4 port. Go to TI.com and search the part number. Set up an account for free samples if you want.
Vf - typical 1.17, max 1.4 (at 10mA) This means that at 10mA current through the led there will be 1.17 to 1.4 volts across the led. If you are driving the led from a prop pin you would need a series resistor of (3.3 - 1.4)/0.01 = 190 ohms. Closest common resistor would be 180 ohms.
CTR - min 80%, typical 300%, max 600% (@ 5V) This means that with 5V on the transistor the light output from the led will result in a minimum current through the transistor of 80% x 10mA or 8mA. The typical current would be 300% x 10 = 30mA, and the max would be 600% x 10 = 60mA.
In most cases you would design the circuit so that it will operate properly at or near the minimum CTR, keeping in mind that the maximum ratings of both the diode and transistor can not be exceeded. Turning on a led should not be a problem. Use a 180 ohm resistor between the propeller and the opto isolator led, and a 330 ohm on the transistor side.