I was wondering what the best way to run a solenoid would be from an Arduino board. I was thinking about using a MOSFET that runs into a relay to turn on the solenoid but am not sure how to go about it.
Electronic – arduino – Driving Solenoids from Arduino
arduinomicrocontrollerrelaysolenoidtransistors
Related Topic
- Electronic – arduino – Selecting a MOSFET for driving load from logic
- Electronic – arduino – Solenoids causing Arduino to malfunction despite protection diode
- Electronic – arduino – Controlling forward/reverse current using arduino & shift registers
- How to power a 12V solenoid
- Control 5V relay from mbed LPC1768
- Keeping a consistent supply voltage while driving a solenoid from battery
- Electronic – arduino – Atmega328p resets and crashes when powering up solenoids
- Electronic – Using pulsed power source and capacitors for driving solenoids
Best Answer
You can drive the solenoid using only the MOSFET (or a bipolar transistor)
It would help to know what type of solenoid you wish to drive so we can select suitable components. Here are a couple of circuits to give you the general idea for MOSFET/Bipolar:
The resistor can be ~10k - 100k (the range can be wider as Steven notes, e.g. 1k\$ \Omega \$ - 10M\$ \Omega \$ - too high a resistance and you risk susceptibility to noise though), it's to make sure the gate is pulled to ground if the input is floating. The diode can be almost any general purpose diode capable of handling a reasonable amount of current.
Darlington Version: