swiching a solenoid vlave with a mosft and nano?

I would like to turn on and off a 12v 100ma solenoid with an Arduino nano. I have purchased a bunch of mosfets

"Cylewet 10Pcs RFP30N06LE 30A 60V 0.047Ohm Logic Level N-Channel Power Mosfet TO-220 ESD Rated for Arduino (Pack of 10) CYT1047"

my question is should I use a resistor from nano to gate? if so what olm? is there a need for a resistor from gate to ground to stop "float" when nano is off? do I need a diode?. I don't have much experience with mosfets so any advice would be help full. really just tell me what to do please. if u need more info let me know and I will provide the best I can. Thanks Jay

my question is should I use a resistor from nano to gate? if so what olm? 220 Ω is there a need for a resistor from gate to ground to stop "float" when nano is off? do I need a diode? 10K Diodes across 'DC' inductive loads.

See Q3
Outputs.jpg

Hi Larry, Nice work on the examples of Typical Outputs.

May I point to / add that to ArduinoInfo.Info ?

And, have you done something similar for Inputs?? Or need any motivation :-) ?

Regards, Terry

what would u recommend for a diode?

what would u recommend for a diode?

a 12v 100ma solenoid

The IN400x series is commonly used.http://www.vishay.com/docs/88503/1n4001.pdf

Typically the key specification is the reverse DC blocking voltage which I have seen should be 4 or 5x the motor voltage which is 12v. I would go with the IN4002, but if all you have available is the IN4001 it should be OK.

terryking228:
Hi Larry,
Nice work on the examples of Typical Outputs.

May I point to / add that to ArduinoInfo.Info ?

And, have you done something similar for Inputs?? Or need any motivation :slight_smile: ?

Regards, Terry

I use 1N4007 diodes for 99% of my stuff.

@Terry
Open source :wink: here is an input drawing I often refer people to.
2017-08-05_20-33-24.jpg

Your web site has good reference to the 8 channel relay PCB, here is an additional cct.
Relay card X8.jpg

I can order what ever diode we need. The price seems about the same for the 4001,4002,4007. the only difference I can find is the voltage (4001 50v),(4007 1000v). Is there any disadvantage to using the 4007? Is there times where the 4002 will work and the 4007 wont? p,s, Thank you so much for all your help so far, Really? Jay

typo 4001 is 50v 4002 is 100v and 4007 is 1000volt I believe

Afaik the only difference is the reverse voltage. Especially for an application like this, that's all you really have to worry about. Your 100 mA solenoid won't give back too strong a spike so just about any diode will do. The 1n400x is a low cost, general purpose series of diodes and will work just fine.

Hi, Get 1N4007, keep some as general power (1amp) diodes, you don't need to keep 1N4001 etc as the spec of the 1N4007 will cover them all.

Tom.. :)