I have a 24V 1A pump, stall current not higher than 5A. I want the arduino to be able to switch the supply but in the event that the arduino fails, the supply should be cut (I understand that depending on the transistor current can pass if there's no gate voltage).
I'm assuming I'll need an N-channel FET, I've had a look at some datasheets and Im sure the informations there, just getting a bit lost in all the data. I have the IRF520 which came with my arduino, as long as it fits the above requirements!
larryd:
Circuit “E” “1” E1 Should work for you.
You can try C1 also.
Hi Larry, thanks for the reply.
I've not seen the symbol used in E1 and C1, I'm assuming it's depicting my N-channel mosfet? And it looks as though in E1 another type of transistor is controlling the mosfet, am I following this correctly?
I only have the 1 to hand so makes sense to try C1 first. Will all of the resistor values be applicable to 24V as well?
C1 will only work if you have a logic level MOSFET so you will have to use E1.
Meaning the gate can be operated by 5V? That's strange because I've used the transistor with the arduino to pwm a little 9V motor. Although looking at a datasheet it seems RdsOn is 10V
Now Vgs max is only +-20v but you have 24v so add ~27k resistor gate to GND to reduce the Vgs to a safe level.
(i.e. about 17v)
Now I'm confused about this. Isn't the source voltage 0 if the source is going to earth (in NPN format)? In which case wouldn't the Vgs be around 5V?
Sorry, I'm with you. You're talking about using my 24V to activate the gate on my IRF mosfet like in E1 and using the 2N2222 to control it, with a resistive divider to protect the gate.
If you don't mind could you explain why theres an additional 5v feed "for power up condition" in this particular circuit?
Thanks again for taking the time to write such informative replies.
If I were to use a similar PNP transistor in the place of the 2N2222 would this mean that I could replace the 5V input with a 10k pulldown to ground and prevent the motor from running in the case of arduino failure/loss of 5V?
I'm using this buck converter - OKI78SR, it's more just as a safety precaution in case the converter fails while the 24V psu is still running - that 5V is powering the arduino from the 5v pin so there's no backup.
You're probably right, just seems a bit risky having something that defaults to the ON position. I could use a relay but I reckon a transistor is going to be cheaper and more reliable.
If I had a logic level NPN like circuit C1 that could handle 24V would that make more sense? Or does such a thing not exist?
The IRLZ44N looks like it will do the trick! Can't really go wrong at a quid a pop, will need to find some more bits to buy to avoid this delivery charge
You've been a great help, cheers! Sods law as soon as I get this circuit hooked up my pump will shit itself.
If you buy from a real electronics stockist you'll find there are literally thousands of MOSFETs available with all
sorts of ratings, no need to limit yourself to devices that are decades old such as IRF520 / IRFZ44N
You also won't be sold counterfeit/fake components (these days eBay/Amazon are not the places to buy
semiconductors, far too many fakes). So check out digikey/farnell/element14/mouser etc etc - they all
have useful search tools for finding components to match your requirements.