I'm trying to work out how to rig up a basic circuit to effectively protect my projects from my own stupidity without losing much in the way of power. One microcontroller has already been sacrificed upon the alter of 'which way round did this power connector go?'
The idea is to have the unregulated battery pack on one end and the load on the other and have the protection circuit only allow power to flow if the battery pack in in the right way round. I know there are lots of ways to do this including rectification which would allow the battery to go in either way but a P channel power mosfet seemed to offer much greater efficiency and flipping the battery pack round isn't exactly a huge hustle.
I apologize for the following
The mosfet is IRF4905, the resistors are pair of 1W 50kOhm (not 47kOhm) resistors while the diode is a 1W 15v zener. The voltage input ideally could be anything from 4V up to 15V. I assumed 20V for my calculations for a nice oups margin.
The issue I have run into is that I am not entirely sure how to calculate the power dissipation in the different parts. If the battery is in backwards then the mosfet opens and power instead goes through the resistors and zener which are there to protect the mosfet gate from over voltage. Between those I am not sure how to work out the power dissipation so the following represents my best guess at how to work any of this out and seems to good to be true and therefore likely to be wrong.
Resistors: As far as the resistors go if I considered that if they were the only thing in the circuit and the input voltage is 20v (much higher than the 15v max I intend) then the worst case power dissipated would be (V/R)*V = (20/100k)*20 = 0.004W right? So I could easily get away with a 0.25W resistor.
This means I could do away with the two big resistors in parallel and use the 1/4W metal film resistors I have. Anything in series with them can only reduce the amps and/or voltage through so these are the most pessimistic numbers.
Diode: For the zener the voltage drop would be the zener voltage right? So with a 15v zener it would be 15v volts out of the 20v input. Current would be determined by the resistors in so far as I am aware so 0.0002 amps? That leaves 0.003W for the zener to dissipate. So ΒΌ watt is again fine.
Mosfet: For the mosfet. Fully on (at -4v on the gate) the resistance is 0.02 ohms. So, with a short at 20v that would likely desolder itself right off the board... but the load will be what determines the amps through the mosfet and since that load draw will be substantially less than 5A then 5A20v = 100W. The mosfet is rated for 200W so it is fine.
For the heat sink... Well, at 20v and 5A input and the full on resistance of 0.02 ohms, the voltage drop should be 0.1V through the mosfet. So 0.5W converted to heat?
Junction to ambient ta resistance is 62 so (taw)+ambient would be 62*0.5+30 or 61C working without a heat sink. That seems toasty, but not a problem, so a small heat sink would be enough?
The End? So as far as I can tell I could swap out my two resistors for a single 1/4w metal film resistor without issue, saving ample space. I could swap the 1W zener I have for an 0.5W zener since those were cheaper (I don't have any 0.25w zeners), and a small heat sink on the mosfet would be enough to keep things warm rather than scolding.
Someone please tell me where I went horrible wrong.
And ideally explain it in a way someone dreadfully sleep deprived could understand.