I want to control a motor's direction electrically. When the input is a zero, I want it to go one way, and a 1, the other way. The only way I can think of this is a solenoid with a spring attached to a DPDT reverse switch wired to the motor, so when theres current, the switch moves one way, and none it goes to it's original position. This is very inefficient and bulky, so is there a way to control the direction electrically? I prefer transistors and common electronic parts, but if I have to get a chip or something, it'l do.
You want to use an H-bridge, which is nothing more than four electronic switches hooked up in a nifty way that lets you change the direction of current through a motor. THIS is a pretty nice review.
Don't try to build one- buy one like the SN754410. You need to be a little careful if you see "half bridge". Two half bridges are used to make a full H-bridge. That chip has four half bridges.