Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Kai Klaas
06/26/03 23:29
Read: 1130 times

#49482 - Transformer isolation
Responding to: ???'s previous message
Hallo Kostas,

after looking on the schematic Charles has drawn for you, I made some analysis and came to the result, that opto isolation might still be too dangerous. There can be thousands of volts on mains and I'm a rather paranoid person... {grin}

I would suggest you the following circuit, which needs some more parts than your solution, but takes into account, that there can be heavy surges, spikes and bursts on mains.

Transformer is a very small one, only 0.35VA (6V/58mA). Isolation rating should be 5kV, which is standard meanwhile, when I'm correct. Also, transformer should be short proof, which is also standard for a 0.35VA type.
Behind transformer there is a bidirectional transzorb, which turns-on at about 50V. This is well above maximum output voltage of transformer, which is about 6V x 1.8 x 1.414 = 15V. Transzorb is neccessary, when mains has lots of overvoltage spikes, e.g. when there are some inductive loads on mains. Then, it protects the succeeding circuitry. Limiting of voltage to about 50V is done with the help of ohmic resistance of secondary winding. There's no damage possible, because transformer is much too weak to drive enough current for overheating transzorb. And transformer itself is short proof, of course.
4k7 resistor limits base current to save value, but at the same time guaranteeing that transistor is driven adequately. Diode prevents zenering of BC550B, when transformer output voltage is negative. 100n capacitor helps to filter out fast spikes coming from mains.
BC550B discharges at each positive half wave (the second) 100n X7R capacitor via 51R resistor. This resistor limits collector current. During negative half wave, 100n capacitor is charged by 1M resistor. When there is no loss of mains, discharging capacitor dominates, and voltage at gate of BS170 is well below 0.8V, which is specified minimum gate source voltage needed for turning-on BS170. For the duration of one half wave (10msec) voltage at gate of BS170 rises up to:

Ugate = 5V x (1 - exp(-10msec/0.1sec)) = 0.47V

Remember that 100nF x 1MOhm gives 0.1sec.
So, about two or three periods of missing mains voltage is neccessary to turn-on BS170. At mains fail, output voltage of circuit is logical low level. So, circuit provides negative logic. You are free to connect output of circuit to some free port line, or directly to some free INT# input of mcu.


List of 18 messages in thread
detector of 220volt      Kostas Paulidis      06/26/03 14:09      
   Draw a schematic!      Kai Klaas      06/26/03 14:19      
   RE: detector of 220volt      Dan Henry      06/26/03 14:27      
   ASCII Art      Andy Neil      06/26/03 14:49      
   RE: detector of 220volt      Charles Bannister      06/26/03 15:33      
      RE: detector of 220volt      Erik Malund      06/26/03 16:21      
      RE: detector of 220volt      Rob Redding      06/27/03 02:58      
         RE: detector of 220volt      Michael Karas      06/27/03 03:08      
   Transformer isolation      Kai Klaas      06/26/03 23:29      
      RE: Transformer isolation      Terry Lingle      06/27/03 00:04      
         RE: Transformer isolation      Kai Klaas      06/27/03 00:41      
         Circuit works!      Kai Klaas      06/27/03 11:18      
            RE: Circuit works!      Terry Lingle      06/27/03 20:10      
               RE: Circuit works!      Kai Klaas      06/27/03 22:13      
      RE: Transformer isolation      Jacob Boyce      06/27/03 11:00      
         RE: Transformer isolation      Kai Klaas      06/27/03 12:01      
            RE: Transformer isolation      Kostas Paulidis      06/28/03 00:38      
   RE: detector of 220volt      Abhishek Singh      06/27/03 02:42      

Back to Subject List