I'm attempting to control a 24V solenoid using a Raspberry Pi and I'd like to know the best method of shielding the Pi from the circuit (so the GPIO doesn't get burnt out).
This is what I have so far:
- IDUINO Arduino Compatible MOS Driving Module
- Raspberry PI 3 Model B
- Push-Pull Solenoid: DC 24V, 400 mA
- Power Supply Adapter: 24V 1A 24W AC/DC
- Do I need to add anything extra to ensure that the 24V circuit doesn't affect the Pi in any way?
- Based on this similar circuit, is it advisable to add a diode between the positive and negative connection on the solenoid to prevent a "push-back" of current when the solenoid snaps back? If so, how do I determine the correct direction of the diode seeing as both solenoid wires are black?