Need help understanding an Optocoupler circuit

Thread Starter

Xray90

Joined Jul 17, 2011
7
From what I can tell, R1 is a current limiting resistor and 4mA would be applied to A/K junction during positive cycle. Really not sure about R2 or what happens in circuit during negative cycle.
 

Jony130

Joined Feb 17, 2009
5,488
Do you know what CTR is ??
As for the negative half, hm you have two diodes ILD256, one diode is ON during positive cycle and the second one during negative cycle.
 

Thread Starter

Xray90

Joined Jul 17, 2011
7
From the data sheet CTR is 20% at If=10 mA. Not sure what that even means. Do you know what function R2 has?
 

Thread Starter

Xray90

Joined Jul 17, 2011
7
R2 gives you a definite threshold on the LEDs. See the attached pdf.

20% CTR means you get 2mA at the output for 10mA LED current.
Thanks for the response, that helps quite a bit. Wouldn't the lack of a current limiter on the negative cycle make the optocoupler susceptible to damage from current spikes? I think the question of changing the value of R2 and it's effect on the circuit was a decoy.

If the input is a 120VAC sine wave, and the optocoupler will always be on, what does the output look like at Vo? 5VDC - .6VDC for transistor breakover?
 

praondevou

Joined Jul 9, 2011
2,942
Thanks for the response, that helps quite a bit. Wouldn't the lack of a current limiter on the negative cycle make the optocoupler susceptible to damage from current spikes? I think the question of changing the value of R2 and it's effect on the circuit was a decoy.
First I thought you'd need R2 to keep the reverse voltage on your diode under the max. reverse voltage rating, but in your case there are two LEDs in parallel, in opposing directions. If I had only one LED then when it's reverse biased I would have the whole input voltage (170V peak) of the neg halfcycle on it because there is no current.
 

Thread Starter

Xray90

Joined Jul 17, 2011
7
I think I was wrong on the output at Vo. It would be 5VDC in the off state(if there was an off). Being that it's always on, the value at Vo would always be low, correct? Not sure what that value would be though.
 

praondevou

Joined Jul 9, 2011
2,942
I think I was wrong on the output at Vo. It would be 5VDC in the off state(if there was an off). Being that it's always on, the value at Vo would always be low, correct? Not sure what that value would be though.
What's with the drawing of R3? Is this a potentiometer or why is VDC going to to middle of R3? The way it is drawn I have always 5V at Vo.
 

Thread Starter

Xray90

Joined Jul 17, 2011
7
What's with the drawing of R3? Is this a potentiometer or why is VDC going to to middle of R3? The way it is drawn I have always 5V at Vo.
That has disturbed me too. The output should have been drawn with Vo and C coming off below R3, correct? If this were the case, what would be the output at Vo with U1 constantly on?
 

JoeJester

Joined Apr 26, 2005
4,390
Is R3 a potentiometer?

Below is how I think that circuit should be ... I could be wrong ... but I doubt it.

R1 and R2 are signal conditioning to the opto-isolator. It's a straight voltage divider.

The output should have been drawn with Vo and C coming off below R3, correct? If this were the case, what would be the output at Vo with U1 constantly on?
Why isn't U1 constantly on is my question to you.
 

Attachments

Last edited:

praondevou

Joined Jul 9, 2011
2,942
Is R3 a potentiometer?

Below is how I think that circuit should be ... I could be wrong ... but I doubt it.
R1 and R2 are signal conditioning to the opto-isolator. It's a straight voltage divider.
Why isn't U1 constantly on is my question to you.
Agree on R3. D1 is not necessary, the optocoupler has 2 double LEDs, works in both directions.
 

Thread Starter

Xray90

Joined Jul 17, 2011
7
Is R3 a potentiometer?

Below is how I think that circuit should be ... I could be wrong ... but I doubt it.

R1 and R2 are signal conditioning to the opto-isolator. It's a straight voltage divider.



Why isn't U1 constantly on is my question to you.
That's how I believe the output was meant to be drawn. With that scenario, what value would I see at Vo? It would be a constant value since U1 is always on, correct?

Doubling the value of R2 from 220 ohms to 440 would have a minimal effect on the circuit, right? Am I wrong in thinking R1 is there for current limiting the input to U1?
 

MrChips

Joined Oct 2, 2009
30,795
R1 and R2 act as a voltage divider. Let's do the math.

120VAC is RMS value. Peak voltage = 120 x 1.414 = 170V
The peak voltage into the opto-coupler is 170 x 220/(220 + 27000) = 1.37V

Thus the output of the device would be pulses at 120Hz, 0 to 5V amplitude, difficult to determine the duty cycle.

When you increase R2 to 440 ohms, peak voltage will double to 2.7V, that is the ON-time is increased.

Since the transistor circuit is an inverter, the duty cycle will decrease, i.e. the low portion of the output will increase in width.

This is a useful circuit for deriving a 120Hz time-base clock signal from line frequency.

Hope this helps.

(Edit)
The peak current available to the photo diodes is 170/27K = 6mA
How much light will the diodes emit at 1.37V @ 6mA, I don't know. R2 will steal 1.37/220 = most of that 6mA.
Maybe there is not enough current to turn on the photo diodes in which case the output would be a constant 5V. Negative going pulses appear when R2 is increased to 440 ohms.
 
Last edited:
Top