# Two Resistors Needed in an AC - DC optocoupled system?

#### ckleuser

Joined Jan 27, 2010
2
Hello all,

I'm trying to detect the presence of a 24V AC signal source at 60Hz. Attached in the picture below is a schematic of what i'm trying to achieve.

Basically, I use a half-wave rectifier into a dual LED optoisolator. My CAD program doesn't have one with two diodes, so "D2" is there to represent said second diode.

My question is regarding the AC signal side with the resistors R1 and R2. These resistors are to limit the current from the 24VAC (~17Vrms) source, to a ~50mA current used by the LEDs. Figuring the needed resistance to be ~450 ohm to achieve a 38mA current, my question is:

Do you need R1 AND R2 in order to limit the current for BOTH diodes in the opto-isolator. My guess is that R2 is unnecessary because R1 will limit the AC current in both directions. Any ideas?

A quick second question:
is the power dissipated by the resistor equal to P=Vrms^2/R? (~.65W?)
If so, is a 1 watt resistor a good enough power handling ability for this resistor?

Thank you all,

CK

#### Attachments

• 41.2 KB Views: 37

#### MikeML

Joined Oct 2, 2009
5,444
You only need either R1 or R2; not both (series circuit)

Since the current in the resistor only flows during half cycles, the power dissipation is half what you said.

#### ckleuser

Joined Jan 27, 2010
2
Cool, thats what I was thinking. Good to know about the half power dissipation.