What do i need to control a sprinkler valve (24V solenoid) with an arduino? Answered
I need to know what parts to get to open and close an electric sprinkler valve with my arduino. It's supposed to use 24V but I've heard that 9V works just as well. I tried using a 2n3904 as a switch with a 9V battery and it turns on but won't turn off unless I disconnect it.
Since it's a solonoid (inductive load), I assume I'll need some sort of protection diode and noise-canceling capacitor. Would a MOSFET be best to control it with 5v output from an arduino?
What models for these components would be best (and can be bought at radio shack)?