Using mosfet for the first time. Found two different approaches. Can someone explain differences?

Hello, I purchased P30N06LE (N-channel) to drive a 12v solenoid with my arduino. I found two circuits to wire it up and I'm not sure which is better/why they are different. Could someone explain so I can learn not just for this task but future projects? Thankyou.
No description
9 Replies
hendr1x
hendr1xOP2w ago
No description
hendr1x
hendr1xOP2w ago
Difference : one has the gate wired to ground.
chRis
chRis2w ago
First image should work 2nd imagine is a BJT so the pins are named dfiferently
hendr1x
hendr1xOP2w ago
Ah ok...I don't understand what the first picture is doing. I thought it was protection againist a spike of current when the motor stops. But it seems like the gate pin is directly connected to the board. Does the spike occur on the source pin? Sorry if this is a silly question.
chRis
chRis2w ago
the diode takes care of that
hendr1x
hendr1xOP2w ago
So what is the 10k resistor for?
chRis
chRis2w ago
pulldown so the gate is not floating
hendr1x
hendr1xOP2w ago
Thank you for explaining. I really appreciate your time! It's really helpful! Is this what you are asking for?
chRis
chRis2w ago
?

Did you find this page helpful?