I have a solenoid that has a coil resistance of \$0.3\Omega\$ and accelerates a steel projectile here. I've posted the schematics below.

Normal Version that acts as a control enter image description here

The GPIO8 goes to 5V to switch on the MOSFET and turn it off when the projectile is detected with the optical sensor. And it works just fine.

Next, I tried it with 10 supercapacitors that are connected in series. I charged it up to 27 volts.

Version #1 enter image description here

When I powered up the circuit, there was a spark when I connected the capacitor ground to the MOSFET's ground. The Gate and Source circuit should have been opened because when I first connected it, GPIO8 is at 0v.

After some troubleshooting, I found that I killed the MOSFET.

I believe there are 2 possibilities at play. First, it is possible that the parasitic capacitance on the MOSFET may have caused an oscillation and thus, voltage spike. I added R2 to increase the fall time slightly and thus, reduce the charge. See the video here (Skip to 4:00)

Not only is the parasitic capacitance causing an oscillation, but another factor is also that I actually have an RLC circuit here. My load is a solenoid and my power source is my supercapacitors. Thus I added D2 so that it doesn't start cycling back and forth. I also replaced the MOSFET with a new one.

Version #2 enter image description here

And yet the same thing happened, GPIO8 is at 0v before I connected the capacitor but the MOSFET completed the circuit anyways and broke, this time it is caught on camera.

So that's where I'm at now. My capacitor is charged to 27V and since I've added the components to get rid of oscillations, I can't think of anything else. According to the datasheet, the breakdown voltage of the IRF3205 is at 55v and I'm well below that.

Any bright ideas?

  • 1
    \$\begingroup\$ What's the coil resistance of the solenoid? \$\endgroup\$
    – SRR
    Commented Sep 3, 2019 at 17:45
  • \$\begingroup\$ It is about 0.3ohm, both according to my multimeter and according to the R = (conductivity*length)/area formula. \$\endgroup\$
    – user229515
    Commented Sep 3, 2019 at 17:48
  • 1
    \$\begingroup\$ You need a oscilloscope trace of the solenoid turning off, to ensure the diode is working as intended. \$\endgroup\$
    – Voltage Spike
    Commented Sep 3, 2019 at 17:49
  • 1
    \$\begingroup\$ "I charged it up to 27 volts...[and then]... connected the capacitor ground to the MOSFET's ground" - why not have the capacitor connected initially, and charge it up while in the circuit? \$\endgroup\$ Commented Sep 3, 2019 at 22:25
  • 2
    \$\begingroup\$ The supercapacitors in series need voltage balancing. The capacity values are not exactly equal. If one capacitor gets 3 V instead of only 2.7 V, it may be destroyed. \$\endgroup\$
    – Uwe
    Commented Sep 4, 2019 at 20:01

5 Answers 5


Your gate drive voltage is too low. That MOSFET needs 10V to turn on completely. 5V just barely clears the 4V threshold when the MOSFET just barely starts to conduct. DO NOT use the Vgsth if you intend to use your MOSFET at a switch. That is the voltage it just barely starts to conduct at. Use a Vgs at least as high as the one used to obtain the given RDson. The Vgsth is for using the MOSFET as an linear/analog device.

According to Figure 1 in the datasheet, with 5V across the gate-source and 27V across the drain-source (I'm ignoring the solenoid resistance since it drops relatively little voltage), the MOSFET saturates at 10A. That's 270W being dissipated in your MOSFET.

And Figure 1 is at 25C. Your MOSFET is heating up while it does all this which makes it operate more like in Figure 2 where even more current being conducted. In this case it is saturating at 30A with a 27V drop which is ~800W of heat being dissipated.

With a listed junction-to-ambient thermal resistance of 62 C/W, that's a temperature rise of 17,000 and 50,000 Celcius, respectively.

Also, look up gate drivers and consider whether you need one or not for your MOSFET or if directly driving the gate capacitance from a piddly low-current I/O pin is sufficient for your application.

  • \$\begingroup\$ I think they basically said they had the gate kept at 0V. \$\endgroup\$ Commented Sep 4, 2019 at 7:40
  • \$\begingroup\$ @ChristopherCreutzig Yes, but if its not a problem now it will quickly become one as soon as they fix their current issue yet will look almost identical to their original issue so they will probably think its the same problem. \$\endgroup\$
    – DKNguyen
    Commented Sep 4, 2019 at 13:58

I'd wager that the problem isn't an oscillation, it's just the initial inrush of current into the MOSFET that's killing it. When you connect your super-caps to the circuit, it will charge up the parasitic MOSFET capacitors \$\mathrm{C_{oss}}\$ and \$\mathrm{C_{rss}}\$. According to the datasheet, \$\mathrm{C_{oss}}\$ is only about 781pF and \$\mathrm{C_{rss}}\$ is only about 211pF when \$\mathrm{V_{ds}}\$ is 25V, but per Figure 5 of the datasheet those values are much higher when \$\mathrm{V_{ds}}\$ is at a lower voltage.

So, I believe the failure sequence is as follows:

  1. Initially there is no voltage across the MOSFET, so the parasitic capacitance values are a few nanofarads.
  2. You apply 27V, with a series resistance of a mere 0.3Ω (plus whatever inductance that solenoid has; we don't know that number).
  3. Quite a few of amperes flows into that MOSFET to charge up those parasitic capacitors. It's for a very short time, but it's a very high peak current value!
  4. ...MOSFET blows up due to high surge current.


  • Slowly bring \$\mathrm{V_{ds}}\$ up to 27V before applying your super-cap, and/or,
  • Add some series resistance to limit the maximum possible current out of your super-cap.

EDIT Another failure mode just occurred to me:

  1. Similar as before, but let's just worry about the gate-to-drain capacitance (still a few nanofarads).
  2. You apply 27V instantaneously, so a bunch of charge easily flows through that parasitic gate-to-drain capacitor \$\mathrm{C_{gd}}\$.
  3. The current through that gate-to-drain capacitor is easily enough to introduce a large voltage across that 20k resistor that was holding the voltage low.
  4. MOSFET turns on, blows up due to high surge current.

This second hypothesis is probably the more likely hypothesis. As DKNguyen points out, your circuit as constructed will likely blow up the MOSFET even in normal operation.

As before, the best solution is to find a way to limit the peak current.


You probably aren't driving the gate hard enough. The GPIO is probably too high impedance. You want to include a proper gate drive chip running off 12-15v. You can just use a linear regulator off your 27v bus.

R2 is only hurting you by making your gate drive impedance higher in this case. I suggest dropping the value to 10 ohms.

If possible, start your tests at 1v and work your way up, making sure everything is okay. You will save a lot of silicon this way.

And please put balancing resistors across your supercaps. I don't know what the leakage of your caps is but I would guess that 1k in parallel with each cap would be on the safer side if you want to charge them to max voltage.

  • \$\begingroup\$ Obviously you will need another voltage to get your gate drive supply from if you start at 1v like I suggested. \$\endgroup\$
    – Sean
    Commented Sep 4, 2019 at 11:58

At the risk of sounding flippant at your expense, there is an old joke about a patient seeing a doctor:

Patient: "Doctor, it hurts when I do this."

Doctor: "Well, then don't do it."

In this case, substitute "connect the ground last" for "do this".

Don't do it.

Always keep the grounds tied together. If you must connect two systems while they are operational, always connect the ground first, then power, then the control lines - and make sure the control lines are protected so that applying power when they are floating will not give you problems.

As to your specific failure mode, Mr Snrub is probably correct, although the inductance of the coil really ought to act as an inrush limiter.


If you are interested in an inrush limiter circuit, Texas Instruments makes one that has an evaluation module on Mouser here. The datasheet for the TPS2491 takes into account (funny enough) power limiting the series pass MOSFET (to ensure just this thing doesn't happen).

I am not sure if this will be practical for your design or not, but it's easy enough to try and to at least get an a-ha moment to understand what is happening to the MOSFET in your circuit. Good luck!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.