Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Test optocouplers

Status
Not open for further replies.
1. Connect a voltage source through a current limiting series resistor to the input.
2. Connect a pullup resistor to Vcc
3. See the output go low

What could be simpler?
 
I'll tell you my method

1. Find the input if you barely don't know which one is input.
2. Use avometer as ohmmeter to check which one is short for each pins.
3. Ohmmeter is work as current source so when you find short one then it is the pair of input pin.
4. Power up the input with series resistor.
5. Measure the output which one is short so you now know how the current flow.
6. When you power off input that output pins become open.

Your optocoupler is work.
 
It's really fascinating to put them on a semiconductor curve tracer. The emitting device goes to the base input circuitry and the output transistor to the usual emitter/collector circuitry.

Dean
 
I'll tell you my method

1. Find the input if you barely don't know which one is input.
2. Use avometer as ohmmeter to check which one is short for each pins.
3. Ohmmeter is work as current source so when you find short one then it is the pair of input pin.
4. Power up the input with series resistor.
5. Measure the output which one is short so you now know how the current flow.
6. When you power off input that output pins become open.

Your optocoupler is work.

Hi,

I need to test a PC817 but I don't quite understand the above procedure, can some EE please explain it so a noob like me could also understand it?

thanks

untitled-jpg.34783
 

Attachments

  • untitled.JPG
    untitled.JPG
    23.9 KB · Views: 13,341
Dear Quaint and Greg,
I am surprised and sorry to see the posts in answer to your query regarding testing of optocouplers. None of the answers are clear or complete, in fact they are more confusing for a beginner! I will try to explain a simple procedure in simple English. The optocoupler (PC-817) has four pins, pins 1-2 are internally connected to an LED and pins 3-4 are connected to a NPN transistor. Take an analog multimeter, set it to the RX1 or RX10 ohms range and connect the black lead to the anode of the LED (pin 1) and red lead to the cathode (pin2) of the LED. The meter should register a low ohms reading, the exact value of the reading is not important, it should be low reading. Now just reverse the meter leads, there should be no reading on the meter, or it should show an open cicuit. Now for testing the transistor side, connect the black probe of the multimeter to the collector (pin 4) and red probe to the emitter (pin 3) keeping the meter range switch in the RX10 range. There should be no reading, or maybe a very slight movement of the pointer. Reverse the meter probes, and again there should be no reading. Reverse the probes once again. Connect a DC power source, say a 3V battery, in series with a 470 Ohm resistor, to pins 1 and 2 (positive to pin 1). The meter should immediately show a reading indicating a current flow through the transistor. On removal of the battery, the current should stop. Thats all there is to testing an optocoupler. Any deviation from the above readings indicates a faulty optocoupler.
 
chinmoy,

Thank you for taking the time to explain the above procedure which can help a lot of other beginners in the future too.

cheers
 
Take an analog multimeter, set it to the RX1 or RX10 ohms range and connect the black lead to the anode of the LED (pin 1) and red lead to the cathode (pin2) of the LED. The meter should register a low ohms reading, the exact value of the reading is not important, it should be low reading. Now just reverse the meter leads, there should be no reading on the meter, or it should show an open cicuit.

I have several analog meters and their polarity is not consistent. The important thing is that it reads low (half scale is OK) in one direction and open in the other direction.

All of my digital meters use the red lead for +, which is the opposite of the way indicated above. Use the "diode test" range if it has one. On most digital meters you should have a reading between 1200 (some meters 1.200) and 1999 (1.999) in the "forward" direction.
 
Hi there,


Im not sure if anyone mentioned speed yet so i'll do that now...


I like to test my opto's for speed too. The reason for doing this is because
some opto's can be used for higher speed data transmission and some cant
because they are too slow.
The way i do it is quite simple too...
I connect an LED series resistor to the LED and connect that to a frequency
generator that puts out a square wave. I then use a collector resistor to
some voltage like +5v and look at the output with a scope (emitter grounded)
while also looking at the input square wave. I compare the input rise to
the output delay and rise time too, and this tells me how far i can go up in
speed (frequency can be around 100Hz to start with). If the frequency is
raised too far, the opto can no longer produce an output as it gets more
narrow as frequency goes up.
I then start by connecting some base resistors to the base of the output
transistor if it has that pin available. Connecting a base resistor often
allows the opto to respond to higher frequencies than would be possible
without it. 100k is a typical value, so starting there would be a good idea.
We might want to go as high as 1Meg, and as low as 1k, but for each resistor
we repeat the test with the generator and scope. At the end of these tests
we get a very good idea what speed we can use the opto with.
Some of the very cheap ones wont make it up to 9600 baud for example,
but they usually will do lower rates like 2400 or so.

Another thing to think about is the LED series resistor value. Going too low
will cause the opto to die faster than with a higher value, but will sometimes
make the whole thing faster. That means the data sheet has to be checked
for the best current to run the LED at. Choosing a current on the high end
means less life for the opto (will start failing sooner) and choosing too low
a current will mean it wont operate quite as nice as we would like, so a
typical value is somewhere in between. Sometimes 2ma is enough.
The LEDs brightness diminishes over time (ages) much faster with higher current,
so that's always something to keep in mind.

What this all means is that it works out pretty well if we decide beforehand what
current we want to run the LED at in the final application(s), and do all the
testing at that current level. This will provide us with the information about
how fast we can switch the opto and how long it should live in the application.
I like to shoot for five years or longer and at least 9600 baud.

Some people dont have scopes and some dont care to get one either, so a
substitute might be a frequency counter. A freq counter with pulse width
detection would be best as that would allow the measurement of the input
pulse width vs the output pulse width so we can know what frequency we
start loosing the full pulse width at.
Some of the frequency counters have a 'percent duty cycle' readout, which
would tell us how wide the pulse is too. With a perfect square wave input
and the meter reading 50 percent, that would mean the whole pulse is
getting to the output, but if it reads 40 percent or 60 percent, that means
we are starting to loose pulse width (either for the HIGH or LOW parts of the
pulse, respectively).
 
Last edited:
Then there is the "CTR" (Current Transfer Ratio). You need to have a certain current flowing in the input (diode) to have a current (Iin*CTR=Iout) in the output. CTR can be < 1 or it can be >>1.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top