Optoisolator
firewater
Posts: 25
I am trying to hook up a optoisolator to my Basic Stamp 2.
It's a 4N25-6:· http://www.isocom.electronents.com/datasheets/4n25.pdf
I am following the digram from here http://www.wiring.org.co/learning/examples/Optocoupler_4N35.html
but it's not working. I have pins 5 and 6 attached to my DMM and I'am getting no voltage.
I know the optocoupler in the example is a different model but in the·it has the same pin outs.
http://www.fairchildsemi.com/ds/4N/4N35.pdf
I tryed different resistor values and another IC (package of 8)
·
It's a 4N25-6:· http://www.isocom.electronents.com/datasheets/4n25.pdf
I am following the digram from here http://www.wiring.org.co/learning/examples/Optocoupler_4N35.html
but it's not working. I have pins 5 and 6 attached to my DMM and I'am getting no voltage.
I know the optocoupler in the example is a different model but in the·it has the same pin outs.
http://www.fairchildsemi.com/ds/4N/4N35.pdf
I tryed different resistor values and another IC (package of 8)
·
Comments
An optocoupler is a switch. It doesn't produce any voltage at its output by itself.
-Phil
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting Software
Southern Illinois University Carbondale, Electronic Systems Technologies
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
-Phil
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting Software
Southern Illinois University Carbondale, Electronic Systems Technologies
It doesn't matter either way. Think of the transistor as an isolated current amplifier. It doesn't really "know" how it's emitter and collector are connected — only that for a certain amount of received light, it will pass a certain amount of current. The equivalent to a bipolar transistor's gain (hFE) is the opto's current transfer ratio (CTR) expressed in the datasheets as a percentage (ICE/Ifwd * 100%). Whether the expressed current is converted to a voltage at the emitter or at the collector is immaterial, due to the isolation.
-Phil
Think of it this way.· When the LED in the opto is LIT, it allows the transistor to conduct, thus supplying the cathode of the LED (in this case) with a path to VSS (gnd).· If the transistor is off (unlit by the internal LED), the external·LED won't get a path to VSS so it will go out.·
Also, an ISOLATOR is designed to be part of a totally independent circuit, as I've shown.· This is it's intended purpose.
See if this works better for you.
(EDIT: Pins were wrong on opto... fixed.)
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
Post Edited (pwillard) : 9/13/2007 3:56:26 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
Post Edited (TechnoRobbo) : 9/14/2007 10:20:52 AM GMT
Remember: - Don't·connect the output side of the optoisolator with the same power supply (+5VDC & Vss [noparse][[/noparse]GND]) used to supply the microcontroller! To do so is to completely defeat the objective of the optoisolation - as it allows back EMF spikes from motors and relays to propagate back through the power supply to the microcontroller.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
I use SPLAN and Sprint Layout software products from ABACOM.
http://www.abacom-online.de/uk/html/produkte.html
The main reason I like them is·because with both products I can create custom shapes in a very short amount of time.· I've used EAGLE for years·and know it well but I prefer a product I can get quick hobbyist results from instead of spending a lot of time "in the tool".
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.