1
\$\begingroup\$

I'm trying to build an automatic night light circuit based on some designs I found online.

Here's the circuit I built:

circuit diagram

The problem is that the transistor BC327 keeps failing. The circuit works for a couple of seconds and suddenly the transistor doesn't turn off anymore, sometimes it happens while it's running and sometimes it happens when I unplug and re-plug the power couple of times.

The capacitive dropper circuit is supposed to limit the current to about 7 mA (measured it with a multimeter,) but I tried to place a 100 ohm resistor on the transistor base and also the TRIAC gate. I also tried using an NPN transistor instead (2A2222), but still the same problem.

A couple of times the 22 ohm inrush current resistor (1/4 W) got burned when I plugged in the power.

I'm really struggling with this circuit and burned a dozen of transistors in couple of days. I really want to know what is the problem rather than just fixing the problem by using another design, so I'd really appreciate it if you could help me figure out what's wrong with my circuit.

Please tell me if you need any additional information.

\$\endgroup\$
10
  • 1
    \$\begingroup\$ the 22r needs to be much bigger, and the 100u needs to be smaller; you don't need such a big cap when you regulate. \$\endgroup\$
    – dandavis
    Commented Apr 21, 2022 at 7:24
  • \$\begingroup\$ Reducing e-Cap is possible but not necessary by same ratio with 22R going to 1k but the cap C value was not the main cause of failure FWIW @dandavis. \$\endgroup\$ Commented Apr 21, 2022 at 11:18
  • \$\begingroup\$ I actually originally was using a 10u capacitor but thought it was not enough to handle voltage spikes so I replaced it with 100u. \$\endgroup\$ Commented Apr 21, 2022 at 12:52
  • \$\begingroup\$ Most designs I found was not even using inrush current resistor, I added the 22 ohm based on some calculations and suggestions (higher value needs higher wattage resistor), and replaced it with 1k and still. \$\endgroup\$ Commented Apr 21, 2022 at 12:56
  • 1
    \$\begingroup\$ ..... and also ensure that the bulb is connected to the same side of the ac supply that the 100n cap is connected to and that MT1 is connected to the same side of the ac supply that the surge protection resistor is connected to. (22R in the diagram). \$\endgroup\$
    – user173271
    Commented Apr 21, 2022 at 18:55

2 Answers 2

5
\$\begingroup\$

After asking in other places, I found the problem, or rather problems:

There are a couple of problems causing the transistor to fail here, the first one is a huge current spike through the capacitor on power up through an almost direct short path when the capacitor is first charged as shown below:

enter image description here

There's another problem caused by current being fed back to the transistor collector->base from the TRIAC, also probably voltage spikes.

That's not all, but in summary it's just wrong to drive the TRIAC with a transistor, it needs a proper TRIAC driver.

\$\endgroup\$
2
  • \$\begingroup\$ May I ask what other places? \$\endgroup\$ Commented May 8, 2022 at 14:09
  • 1
    \$\begingroup\$ @SredniVashtar Facebook group called "Electronic Circuits, Projects and Designs" \$\endgroup\$ Commented May 8, 2022 at 21:30
1
\$\begingroup\$

If you consider the Pot at one extreme as only 5% of the total value and the caps as 0 ohms during the peak voltage, a casual estimate of the current should explain the power dissipation problem with P=V^2/R.

Change 22 Ohms to 1k 1/4W and expect temperature to rise 50'C, smaller will be cooler but will still avoid the inrush.

Add around 1k to 2k between pot and PNP base to limit both base and collector current.

You might still need a DIAC to trigger the TRIAC to avoid unequal trigger current levels near twilight threshold and burn out the light bulb AC to DC converter possibly on half wave rectification try to boost the voltage if not rated for half wave voltage.

Parasitic gate capacitance might also be breaking down the PNP so an RF cap might be a bandaid

\$\endgroup\$
10
  • \$\begingroup\$ Replaced the 22 ohm resistor with a 1k, added 2.2k on transistor base, plugged the power and the pulp is always on, measured the transistor and it's now blown (100 ohm between collector and emitter), I think it's a voltage spike problem but I can't measure it with the multimeter. \$\endgroup\$ Commented Apr 21, 2022 at 12:47
  • \$\begingroup\$ about the diac, the triac is been triggered with 3.6v so a 30v diac is not going to work, right? \$\endgroup\$ Commented Apr 21, 2022 at 12:49
  • \$\begingroup\$ Changes to scale up x10 are needed and add small C dumped by DIAC into gate \$\endgroup\$ Commented Apr 21, 2022 at 16:40
  • \$\begingroup\$ then there is always this edn.com/automatic-night-light-feeds-directly-from-the-ac-line This doesn't use the problematic PNP \$\endgroup\$ Commented Apr 21, 2022 at 16:54
  • 1
    \$\begingroup\$ You can simulate on Falstad's if you know the junction capacitance to add. Then choose 90 deg for Vin and reset. You can display anything and everything V,I,Pwr, Pwr avg \$\endgroup\$ Commented Apr 21, 2022 at 23:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.