simulate this circuit – Schematic created using CircuitLab

The above schematic is used to heat a 2.4-ohm load. I am using a power supply from Meanwell GST280A24 280W at 24V. In the MCU it is performed a soft start of the PWM 30 Hz.

Everything is working good if I remove the capacitor C1. As soon as I connect the capacitor C1 at startup the TSR1-2450 and the Atmega instantly burnt. How can it be possible?

The capacitor C1 in this configuration is a ceramic one CL31B106KLHNNNE.

In a previous configuration, I used an electrolytic capacitor as C1 of 2200u EEE-FK1V222SV and I have never noticed the same issue.

  • \$\begingroup\$ Does the problem occur when mains is applied to the Meanwell power supply, or when the already powered up Meanwell PSU is connected to the input of the circuit? \$\endgroup\$
    – bobflux
    Oct 19 at 9:17
  • \$\begingroup\$ Only when I connect the PSU. The PSU is connected with a switch. The PSU is always connected to the mains. \$\endgroup\$
    – Daniele
    Oct 19 at 9:57
  • 1
    \$\begingroup\$ @Daniele - Based on your description: (a) problem only occurs when C1 is ceramic, not electrolytic; (b) damage occurs when the DC input is switched; (c) the DC-DC converter is physically damaged -- I strongly suspect your problem is a duplicate of this previous question which I answered. (As a mod, I can't mark yours as a duplicate and still allow others to vote, as my vote would be binding. Also, I shouldn't write this as a repeat answer - we should be closing things as duplicates, where possible. So please investigate the linked question & close yours as a dup if true.) \$\endgroup\$
    – SamGibson
    Oct 19 at 10:41
  • 1
    \$\begingroup\$ @kartman The snubber circuit, the simplest being an RC, is always connected in parallel with the power mosfet, not the load. \$\endgroup\$
    – Francesco
    Oct 19 at 13:37
  • 3
    \$\begingroup\$ Measure it. Get a digital scope, set up trigger so it catches the turn-on moment, and capture what happens. You'll then see it for yourself. \$\endgroup\$ Oct 19 at 20:20

That's probably the usual:

If a switch is used on the 24V line, when it is closed it will create a LC resonant circuit with the output caps inside the power supply, wiring inductance and L1, and the input caps on your board. If this LC circuit is not damped, it will ring, and this can create enough overvoltage to fry your DC-DC.

The solution is to add damping, either by increasing C1, or adding resistance in series. You should calculate the damping factor of your circuit to check what's needed, but the solution will probably be to replace C1 with a general purpose electrolytic cap (not low ESR) of a few hundred µF.

You can test it by disconnecting the DC-DC so it doesn't fry and replacing it with a resistor to discharge the caps, value uncritical, like a few kOhms. Then probe voltage with a scope and close the power switch. With the value of C1 that kills the DC-DC you should observe ringing and overshoot. Then try various electrolytics instead of C1 to get it under control.


Here is your present situation. About 42 V peak. The exact rise time and bouncing of the contact in your switch is not included. Feel free to play around and measure in your actual circuit with an oscilloscope.


The capacitors are simply too small for the inductor chosen.

With increased capacitors, the situation improves: Improved

  • \$\begingroup\$ Yes, I noticed that peak with the oscilloscope. But I was focusing more on why if I have 10uF the circuit is working good and when I put 20uF I got the failure. \$\endgroup\$
    – Daniele
    Oct 19 at 12:10
  • 3
    \$\begingroup\$ Depends on the ESR of the capacitor too, If you lower the ESR of C3, the inrush will be higher peak current = more energy stored in L1 that needs to go somewhere. How long wires do you have between your power supply, via switch and all the way to C2? \$\endgroup\$
    – winny
    Oct 19 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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