Electronic – Smoking Motor Drive parts

mosfet

enter image description hereI have the attached schematic. It seems to work and do what it needs to do, but it only works a few times then smokes the P channel mosfet (fqp27p06). It actually works for a bit before it smokes.

I have a 12v motor that is ran from a GPIO pin to turn on the 12v system. The P channel mosfet suppose to help with the active braking, which does seem to work (a few times). I am very new to this. Come someone tell me what I should add to quit smoking parts?

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1. Redrawing in the conventional schematic layout (positive rail on top, ground on bottom with current generally flowing from top to bottom) aids comprehension.

enter image description here

Figure 2. Extract from the FQP27P06 datasheet.

Note that this device will turn on when the gate is about 3 V below the drain voltage. With a max of only 5 V available on the drain (from the GPIO) the transistor can never turn off. When M3 turns on you get "shoot-through" from the 12 V supply to ground and the high currents are destroying your MOSFETs.

Notice how much more easy it is to visualise the voltages and shoot-through when the circuit is drawn correctly.