I am working on a personal project that will involve driving a latching 9V/DC solenoid from an arduino. The circuit I’ve come up with is dependent on two things, that I haven’t quite figured out yet:
1) The arduino needs to provide a DC voltage for a timed interval. This is to power a SPDT relay during whatever time it takes to charge a capacitor.
2) Same as in 1) but the DC voltage needs to be of reverse polarity.
I understand the use of MOSFETs to boost voltage and I know that H-bridges can be used to reverse polarity, but how do I combine these two elements?
I know there are tons of ICs, motor drivers, shields and the like out there that would provide an easy solution; I would however like to keep things as low-level as possible in order to learn something from it.
Thank you.