Driving DC and AC solenoids

Yes, three wire is a lot more doable. Just follow this guide.