I'm trying to connect this servo to my RPi3 with as little wire as possible. What is this red, black, green wire called that allows me to connect a servo to my Pi? enter image description here

  • they are called jumper wires. From the pictures I can't tell the gender, but these come with male and female ends. Jan 18 '17 at 21:34
  • You need some male to female jumper wires. The female end will plug into the Pi's male pins. The male end will plug into the female servo plug.
    – joan
    Jan 18 '17 at 21:38
  • @joan If it's male female jumper wires, why do I need any in the first place? can it just plug right into the GPIO? Jan 18 '17 at 22:38
  • No, because you need adjacent expansion header pins which are ground, then 5V, then a GPIO. There are no such pins.
    – joan
    Jan 18 '17 at 22:50
  • @joan I'm sorry for my lack of understanding, but to clarify, a jumper cable has the adjacent expansion header pins and 5V in it? So all I would need to connect a RPi3 to this servo is just 3 male female jumper cables? Jan 18 '17 at 22:55

Buying jumper wires premade would do the job. If you really want to make them yourself you need some hookup wire and some dupont/rectangular connectors. There's a crimp tool that goes with them, but generally I just use a dab of solder and some fine pliers to close the crimp. They're finicky though - a millimetre out of place into the metal part with the solder and it won't fit into the plastic housing.

  • Look at where the jumper cables meet the servo cables, do I need to buy that black thing or is that just something to keep the wires together? And do I need the jumper wires at all? Could it just plug straight into the GPIO? Jan 18 '17 at 22:39
  • The 'black thing' is just the connectors on the ends of the wires plugged into each other. Take a look at some dupont connectors. The servo will come with a connector attached to its cable. You'll need to run your own male to female jumper wires from that connector to a GPIO pin, 5V and GND.
    – goobering
    Jan 18 '17 at 23:09

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.