I have a valved exhaust system in which the valve is rotated by a 12V motor, but the electronics that came with it have died. I would like to integrate it into my Raspberry Pi dash system, using the 3.3V GPIO.
I understand that I need either a BJT or MOSFET (likely two) and I have simulated the circuitry, but I can only make a motor rotate in one direction. I need control to make the motor rotate in both directions, so I can open and close it.
How would I go about designing and implementing this? I'd be able to figure out the code to set the GPIO pins, just not the circuit design.
I used this question to figure out how to make the switching logic, but I can't manage to make it polarity reversible using logic only.
I know this would be a lot easier with a servo, but I cannot find any of these motor bodies that mount servos and not regular DC motors.