buchnich
Posts: 4
Joined: Tue Jan 06, 2015 12:32 am

How many servos can a RPi control?

Thu Nov 19, 2015 2:03 am

Hey guys,

I know Adafruit makes a nice shield, but I'm curious of how many servos I can run off the GPIO pins alone. If I powered each servo externally, could I just use a single GPIO header to control the pulses for each individual servo, or does the power need to come from the RPi as well?

Thanks for bearing with me. I'm more of an Arduino guy so some of this stuff is over my head.

Thanks,

Nick

User avatar
mikronauts
Posts: 2794
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: How many servos can a RPi control?

Thu Nov 19, 2015 2:16 am

joan's pigpio and servoblaster can generate servo pulses on all available Pi GPIO's including serial, i2c and spi

(26, or 28 if you use the hat eeprom i2c pins as well)

The power CANNOT come from the Pi, you have to provide a separate power supply for the servos.

(exception: one, maybe two, 9g servos, unloaded, can be ok)
buchnich wrote:Hey guys,

I know Adafruit makes a nice shield, but I'm curious of how many servos I can run off the GPIO pins alone. If I powered each servo externally, could I just use a single GPIO header to control the pulses for each individual servo, or does the power need to come from the RPi as well?

Thanks for bearing with me. I'm more of an Arduino guy so some of this stuff is over my head.

Thanks,

Nick
Last edited by mikronauts on Thu Nov 19, 2015 2:18 am, edited 1 time in total.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

buchnich
Posts: 4
Joined: Tue Jan 06, 2015 12:32 am

Re: How many servos can a RPi control?

Thu Nov 19, 2015 2:18 am

mikronauts wrote:joan's pigpio and servoblaster can generate servo pulses on all available Pi GPIO's

The power CANNOT come from the Pi, you have to provide a separate power supply for the servos.

(exception: one, maybe two, 9g servos, unloaded, can be ok)
buchnich wrote:Hey guys,

I know Adafruit makes a nice shield, but I'm curious of how many servos I can run off the GPIO pins alone. If I powered each servo externally, could I just use a single GPIO header to control the pulses for each individual servo, or does the power need to come from the RPi as well?

Thanks for bearing with me. I'm more of an Arduino guy so some of this stuff is over my head.

Thanks,

Nick
So essentially I could control 40 servos?

User avatar
mikronauts
Posts: 2794
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: How many servos can a RPi control?

Thu Nov 19, 2015 2:19 am

buchnich wrote:So essentially I could control 40 servos?
No.

26-28, see my edit (posted while you were replying)
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

buchnich
Posts: 4
Joined: Tue Jan 06, 2015 12:32 am

Re: How many servos can a RPi control?

Thu Nov 19, 2015 2:21 am

mikronauts wrote:
buchnich wrote:So essentially I could control 40 servos?
No.

26-28, see my edit (posted while you were replying)
Ok. Regardless, thats more than enough for any application I'd need. Thanks for the prompt reply.

User avatar
mikronauts
Posts: 2794
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: How many servos can a RPi control?

Thu Nov 19, 2015 6:43 pm

You are most welcome.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

Return to “Automation, sensing and robotics”