I am trying to build an RC car and in order to make it work I want to control the motor with my pi.. The motor is Meccano Part #D469, a 4.7v motor.

If I have this: https://www.ebay.com/itm/Adafruit-Premium-Female-Male-Extension-Jumper-Wires-20-x-3-ADA1953-/232460926717?hash=item361fc03efd

will I need any other equipment or can I just plug my pi into the live and ground wires coming from the motor using the above extenders?

  • 1
    how is the motor controlled? ..... what are you using to power the motor? – jsotola Mar 28 '19 at 1:06
  • @jsotola this is the OP, I must have mistyped the password and cannot reset it for some reason... Anyway, the motor has a red wire and a black wire coming out of it, which I am assuming is a live wire and a ground. – thecanmancan2 Mar 28 '19 at 1:35

You can not "control" a standard DC motor directly from the Pi.

If you connect a standard DC motor to the Pi's 5V and ground pins the motor will be running at a fixed speed, in a fixed direction, for as long as the Pi is powered. Even this makes the gross assumption that the 5V pin is high enough in voltage and can supply enough current to move the motor at all.

By control we mean you can set the motor on and off, affect its speed, and change its direction.

For this you need a motor driver board (and normally an external power supply).

The motor driver board provides the control functions to the DC motor. The Pi controls the motor driver board using its GPIO.

Popular boards may be bought quite inexpensively (e.g. a few UK pounds from eBay). Look for L298N, L9110S based modules. You can even use a motor driver chip on a breadboard (e.g. a L293DN).

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.