felicia_1
Junior Member level 1
- Joined
- Jun 4, 2014
- Messages
- 18
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 186
That is correct. The LED inside the opto-coupler will only light when current flows through it in one direction so it is essential to rectify the AC first to ensure the polarity is correct regardless of whether the AC is really on a positive or negative half cycle."Because of the sine wave first goes through double phased rectification, the zero-crossing signal is given regardless whether the sinus wave foes up through zero or down through zero."
R1,R2,R3 and R4 are to limit the current through the optocoupler LED. The current needs to be high enough to illuminate the LED so the sensor can see it but not so high that it exceeds the LED maximum current rating. As the voltage varies from 0V to about 1.4 times the AC RMS voltage there is no fixed value that gives optimum current. A compromise has to be met, more current means smaller zero crossing time window, less current means lower heat dissipation in the resistors. The data sheet for the opto-coupler will give it's current ratings, it's up to you to find a resistance that fits the requirement best. Note that all four resistors are in parallel so each should be four times the resistance you want. You can replace them with a single resistor, or or parallel combinations as long as you observe their power ratings.
R5 is just to limit the current to the DC supply indicator, use (5-Vf)/ILed to find it's value where Vf is the forward voltage drop of the LED and ILed is the current you want to flow through it.
R6 is to provide bias current to Q1, the value is low enough to ensure Q1 is fully saturated (lowest possible collector to emitter voltage). When the optocoupler LED is lit, the current is diverted through the optcoupler transistor to ground so the Q1 becomes non-conducting. The base current (Ib) is Ic/Hfe but as you want to force it to saturation, a rule of thumb is to increase it by 10 times. The resistor is 5/Ib so you would use 10*(5/Ib) in this circuit.
R7 has to supply enough current to pull the Arduino input to logic high level. I'm not sure what current an Arduino input needs but I would guess it is very small. It also sets IC in Q1 so it has an effect on the value chosen for R6.
Brian.
Is almost right, the current is derived from the AC line supply so it isn't a constant. The peak current is drawn when the AC voltage is at it's peak which is SQRT(2)*RMS so is bigger than the value calculated from the RMS figure.When V_rms=230V,R1|(|R2| )|R3||R4=25kΩ, the input current is: IF=230/25k=9.2mA <60mA
The resistor (R5) is in series with the LED, not across it. The calculation isn't right either, the voltage across the resistor is 5V minus the voltage across the LED which is typically about 1.6V for a red indicator LED. So the resistor passes (5 - 1.6)/470 = 7.23mA.The supply voltage to the LED is 5V. In this case, we must put a resistor across the LED so that there is voltage drop across the LED to prevent it from blown out. We choose 470Ω in this case. From Ohm’s Law, R=5/470=10mA<30mA. It is generally accepted.
Is almost right, the current is derived from the AC line supply so it isn't a constant. The peak current is drawn when the AC voltage is at it's peak which is SQRT(2)*RMS so is bigger than the value calculated from the RMS figure.
On the schematic, R5 is the current limiting resistor for the power indicator LED. I think you mean R6.
You have the switching the wrong way around - the transistor inside the opto-coupler has a low saturation voltage, lower than the 0.7V or so needed to make Q1 conduct. So when the opto-coupler turns on, it shorts Q1 bias to ground and makes it turn off, that makes the collector voltage go high because no current is drawn through R7.
The resistor (R5) is in series with the LED, not across it. The calculation isn't right either, the voltage across the resistor is 5V minus the voltage across the LED which is typically about 1.6V for a red indicator LED. So the resistor passes (5 - 1.6)/470 = 7.23mA.
Brian.
thank you for your explanation clearly, for this triggering circuit. could you please share with me how is the calculation for each component? i would like to compare with my idea. do you have any idea where to connect my AC load? where should be my output? for capacitor, can i replace it with non-polarised one?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?