Zero crossing with 4n25 issue

Thread Starter

irmanao

Joined Apr 29, 2017
87
Hey guys, i'm trying to do zero crossing with the 4n25 but to no avail. Here's the circuit:

For the bridge i'm using four 1N4001 diodes, and i'm trying to see the output signal with an oscilloscope. Any ideas?
thanks
 

MrChips

Joined Oct 2, 2009
34,646
Hey guys, i'm trying to do zero crossing with the 4n25 but to no avail. Here's the circuit:

For the bridge i'm using four 1N4001 diodes, and i'm trying to see the output signal with an oscilloscope. Any ideas?
thanks
What do you see on the oscilloscope?
 

bertus

Joined Apr 5, 2008
22,896
Hello,

The problem is likely the diodes.
The 1N4001 is only rated for 50 Volts.

1N400X_voltage_rating.png
Better try an 1N4003 or higher.

Bertus
 

Thread Starter

irmanao

Joined Apr 29, 2017
87
My bad. I have an isolation transformer and the diodes are actually 1n4007...

But doesn't the 4n25 offer isolation anyway?
 

MrChips

Joined Oct 2, 2009
34,646
Remove the 230VAC power source.

Test the 4N25 with a 5V square wave signal and a 470Ω resistor in series with the emitter diode,

or use a 6VAC isolated wall transformer into the bridge rectifier, with the 470Ω series resistor still in place.
 

MrChips

Joined Oct 2, 2009
34,646
170mV at the collector output with respect to ground suggests that the transistor is turned on.
Check to make sure that the 5VDC source and the 10kΩ collector load resistor are both correct.

1.17V across the emitter diode is not high enough to turn on the LED.

Check that the 4N35 is either busted or you have the wrong pins connected.
 

DickCappels

Joined Aug 21, 2008
10,661
Just a thought:
You might be asking a lot more from that isolator than it is capable of delivering.
The output of the bridge will be below 1.3 V for about 20 us (assuming 120 VAC @ 60 Hz). The 4N25 has rise and fall times of 2 us with a 100 ohm load at 10 ma (5V power supply) but your circuit has a load 100X that for which the 2 us is specified . It might be that the transistor never turns off because the base voltage does not go low long enough for it to do so.

Putting a resistor of 100k across the LED will increase this time and give the transistor a chance to turn off.

Ericgibbs's suggestion of putting a 10k resistor across the base and emitter is a good idea since that will speed up the turn-off of the transistor (the minority carriers need to get out of the junction somehow).
 

be80be

Joined Jul 5, 2008
2,394
First off get a new 4n25 you probably blown the led in it. Maybe not But i've done it before and led died I changed to the part 4N35 But the 4n25 never worked after.
 
Last edited:

ian field

Joined Oct 27, 2012
6,536
hi,
Try connecting a 10k from the Base pin to the Emitter pin.
E
A lot of more recent opto's don't have base pins - these days, most are 4 pin package like the motor drive MOSFETs on early HDDs.

Most mains isolation optos in DIP-6 package have all their pins, but no internal connection to base.

Probably pointed out a dozen times already - but those 4001s probably failed instantly and opened the resistor. 4007 is the least that should be used.

There are off the shelf opto's with built in ZC circuitry. I'd do it at low voltage from the secondary of a transformer. If the rectifier feeds a reservoir cap, an extra diode is needed to isolate the rectifier from the reservoir. The rectifier will be raw DC without being kept up by the reservoir.

If the transformer is giving mains isolation - you can just detect the zero crossing points with the B/E junction of a transistor, via a current limiting resistor.
 
Top