r/ArduinoHelp • u/not_its_me • Nov 02 '26
solenoid project connectivity help
hiii i have a question, im trying to build a 12V solenoid powered refreshable braille device and idk how to go about it. is the connection in the first or second better? im using a irlz44n mosfet
1
Upvotes


View all comments
Show parent comment
1
u/CueAnon420 Nov 02 '26
The mosfet is like a remote control switch that connects the Drain and Source pins together when the Gate sees the trigger voltage. The drain is connected to the negative wire of the part you want to control (solenoid) and when the Gate sees the tirgger coltage it completes the circuit by connecting the Drain to the Source (which is the power ground). It's the same idea as if you put a simple switch between the solenoid negative wire and the power supply ground.
Mosfets are triggered by voltage at the Gate - but because they have internal capacitance, the gate likes to be 'pulled down' to ground to keep it off. That is why you connect a 10K resistor between the Gate and ground. When the Arduino wants to turn on the solenoid, it sends 5V out the pin (preferrably through a small 100 ish ohm resistor for protection) to the gate - this overcomes the 10K 'pulling down' and the Gate sees the +5V and connects the Drain and Source pins together. When the Ardino is done, it removes the 5V and the 10K resistor helps 'pull' the Gate back down to ground. Without the 10K resistor, the Gate can 'float' and find itself at some random value.
So - to your question - you DO WANT the gate tied to ground through a 10K resistor. The Arduino pin goes through a ~100 ohm resistor and then also to the Gate pin.
ALSO - try this without the Arduino pin (green wire)... Connect a 10K resistor from the mosfet gate to ground, Drain to solenoid black wire and Source to common ground. Then take a wire and touch 5V from the Arduino board to the mosfet gate. The solenoid should pull in without the Ardunio controlling it. Once you get this far, remove the 5V wire from the mosfet and go back to trying the Ardunio to control the gate.
EDIT - all this assumes you have confirmed that the 12V supply is capable of operating the solenoid and it pulls in correctly if you hard wirer the solenoid to the power supply.