So I'm a complete newb at this, but I'm quickly learning. I did some searching before posting, but like most topics that seem to pop up here, there are 30+ answers for a given question and one of never really claimed to be a definitive answer over the others.
I was originally using a mechanical relay module to cycle 12v on a project I've been working on. The problem is, that when I get down to 20 ms or so the relay would stick. I bought a solid state relay unaware that they are mainly for AC voltages. I wired up the power directly to the valve I'm controlling, and passed the ground through the relay (this is how the valve is setup in its original form, with a driver pulsing the ground.
I need to get down to ~5ms cycles but a solid state relay isn't going to work. The amperage will be 8-10A. I was recommended a few MOSFETs but things didn't go so well. I'm guessing they weren't up to the amperage and failed the first time I used them (I'm still not 100% sure how a MOSFET works, either).
After some digging, it seems I may need to wire a resistor in somewhere with the MOSFET?
So now the question. Is there a particular MOSFET I should be using for a 12v 10A circuit?
Is the programming the exact same as if I were using a relay, such as simply cycling a high/low on a digital output pin? Maybe a MOSFET module to simplify an install?