2

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?

Many thanks!

  • 1
    This isn't really a Pi question. You may be better off asking on a RC hobby site. – joan Feb 2 '16 at 16:31
  • Probably better to find a modern pwm controlled servo and replace the one in the car. – Ron Jensen Feb 2 '16 at 20:07
  • The steering servo has 6 wires? – Craig Feb 2 '16 at 20:31
  • 4 wires to a potentiometer sounds strange. At this point I'd try probing: put your multimeter into continuity test mode and see if any of the wires are connected to the same point. Then try putting the meter into resistance measuring mode and measure the resistance between pairs of wires and repeat with the steering moved manually to various positions. That info should help figure out what each wire is connected to. – lwr20 Feb 3 '16 at 13:46
  • Thanks everyone! I think I will just go ahead and purchase a regular servo for simplicity. – Ronald Wichhart Feb 5 '16 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.