×

SparkFun Electronics will be closed on July 3rd, 2015 in observance of Independence Day. Any orders placed after 2:00pm MT on July 2nd will be shipped out after the weekend. Thanks!

Creative Commons images are CC BY-NC-SA 3.0

### \$ 2.25

shopping cart

 quantity In stock 119 in stock 2.25 1+ units 2.14 25+ units 2.03 100+ units

### Skills

Description: Opto-isolator with transistor output for interfacing to noisy loads. This 16-pin dip can be used in conjunction with relays, small motors, etc. to allow a simple microcontroller to turn on and off up to 50mA per channel.

Datasheets:

## Recommended Products

• Hello, I’m currently trying to optoisolate an Arducam from my APM 2.5 (over 5V serial). Has someone got an example diagram on how to use this to optoisolate 5V serial from an arduino/APM2.5?

• Can I use this to control 50 volt loads for long periods of time? I cannot use a pulsed output. Please help me out here guys.

• I bought a couple of these to put between an arduino and some 12V automotive relays. Unfortunately they only are rated for up to 50mA/ch and the coil current of my relay is 75mA so I bought some of the next step up in the series the PS2502-4’s from digikey that can handle 160mA/ch.

I’m worried about the power dissipation that is 120mW/ch on both devices. The relay is going to draw 900mW (75mA * 12V) but to calculate the power dissipation of this device I just need to take Vce(sat) which is .3V on the PS2501-4 and 1V on the PS2402-4 and multiply it by Ic of 75mA right? So with the PS2402-4 I would have 75mA * 1V = 75mW and be well within the 120mW / channel rating right?

Is my reasoning here right? Is Ic just the current through the relay like I assumed? Is there any Vbe that I need to worry about (Not sure what this would be with a photo transistor).

Is it ok to drive the relay directly with the opto-isolator or should I just use it for protection and use it to turn on something like a TIP120 instead?

• If you want to opto-isolate with this optoisolator, you will have to invert the output by driving a PNP transistor rated above the relay coil current, or use a similar mosfet device that drives hi-side loads. I would not drive relays directly with these optoisolators. Another option is to use the optoisolator, pull the output up to Vss with a resistor, and use that to input a regular CMOS inverting buffer. Then, connect the ouput of the buffer to the ULN2308 darlinton driver described below.

I had a very similar application. I ended up not opto-isolating, and I used the ULN2308 Darlington driver chip (sold here and on Adafruit). The chip is nice because it is 8 channel and already has input resistors. You just connect an Arduino output to a ULN2308 input channel. The corresponding output is a “sink” which will easily handle a 12V relay. The ULN2308 I have already has back-emf diodes in it, which is a plus. The drawback is that your Arduino ground and your car ground have to be tied together.

• How well would this work for reproducing analog signals?

and if not well at all, what is a common analog signal isolator?

• I have the very same question .. any one have an answer?

• omg Im talking to my self … that what happens when your user name is a number lol

• LOL, if you’re not into numbers, you can change it on your profile page.

• How are you guys wiring this part up for serial comms? Just like the example schematic?

I’ve found an example online of someone doing the reverse: connecting the TX to the diode’s cathode (VCC + resistor on the anode) and doing sort of the opposite on the transistor side as well (RX pulled up to VCC via resistor to collector and GND on emitter). As I understand it, this basically inverts the high/low states based on the input levels, but that didn’t quite work for me.

Any tips are welcome.

Thanks!

• What resistor is recommended to use with this? In the example schematic there is a 50ohm resistor but is that enough when I use the V5 and digital out from the arduino?

• Will this work with a 3.3V uC (MSP430) output? What are the voltage min/max voltage levels on the inputs? What about current requirements? Any help is appreciated.

• I tested this out with an 3.3V Arduino Pro Mini, and was able to transmit at up to 57600 baud without problems. As bbotany expected, 115200 didn’t work.

This works way better than the opto-isolator breakout for transmitting serially. That only worked up to 14400.

• i havent tried this at speeds over 9600 baud to back up bbotany’s claims of 100kHz, but i got it to successfully send data over rs485 (with sparkfun’s BOB –> http://www.sparkfun.com/products/10124) from a netduino+ to a RS485-USB converter on my laptop and into hyperterminal.

• For anyone else considering this for isolated interfacing to serial comms of not yet determined levels, it appears that this can handle up to about 100kHz switching, so it can’t really be counted on for 115200 serial communication, but probably OK at 57600 and lower.

• While the datasheet is correct, the example schemo for this product is not - it shows the darlington output of the single-channel SFE part #COM-00314.
The business end of this device is a single PNP phototransistor. It also does not have the reverse bypass diode of the single channel device.
ss

## Customer Reviews

No reviews yet.

SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to make the world of electronics more accessible.

In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful world of embedded electronics.