I've taken apart an old RC car and have been trying to get my Raspberry Pi to run the car.
At this point, I'm able to control the rear drive motor. The motor is connected to a L298N H-Bridge module. The H-Bridge is connected to a 12v battery and can be controlled via the Pi.
My issue is figuring out how to control the steering motor. It is a servomotor like this one
I believe the motor in the servo is a standard 130 dc motor, which has a red and black wire attached.
The servo also has 4 wires connected to it - green, yellow, brown and white. I imagine these are to connect the feedback potentiometer.
How do I connect the wires coming from the servo/feedback potentiometer to the Pi?