Control a Solenoid with an Arduino (Tutorial)

Описание к видео Control a Solenoid with an Arduino (Tutorial)

My complete guide to using your Arduino to control a solenoid! Building a custom pinball machine sent me down the rabbit hole of learning how to control solenoids with a micro controller. It turns out there are a few gotchas to watch out for.

FINAL SCHEMATIC:
https://www.dropbox.com/s/wffsfemuwia...

PARTS USED:
- Solenoid: JF-0826B (12V/2A) - https://amzn.to/3e9T8fy
- Solenoid: F0464A (24V/2A)
- Arduino Uno: https://amzn.to/2RAV7BW
- Screw Terminals: https://amzn.to/3x3gDQ4
- Logic Level MOSFET: FQP30N06L or IRLZ44NPBF
- Flyback Diode: 1N4007
See schematic for resistor values

As an Amazon Associate I earn from qualifying purchases.

ERRATA
Schematic has been adjusted compared to the video to address the following:

Circuit 2 shows a 10K resistor between the push button and MOSFET gate (not to be confused with the 10K pulldown resistor from gate to ground). Yet the third circuit does not show a resistor on the gate (placed between the Arduino pin and the gate). On further research, a resistor in the ~150ohm range appears ideal between Arduino pin and the gate.

Reasoning: when a MOSFET is switched on, the gate acts as a capacitor and allows a large momentary inrush of current In theory this could damage the power source. As with everything electronics, there is more to this story, but that should get you going.


DISCLAIMER:
For educational purposes only and not meant to replace proper training. Working with electricity and tools can be dangerous. Use the knowledge in this video at your own risk.

If you see mistakes please leave comments (preferably with a source) so I can make corrections if needed.

#solenoid #arduino #electronics

Комментарии

Информация по комментариям в разработке