element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Controlling 5 or more servos
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 3 replies
  • Answers 3 answers
  • Subscribers 663 subscribers
  • Views 1826 views
  • Users 0 members are here
  • raspberry pi 3 gpio pinout
  • rasberry pi 3
  • raspberry_pi_space
  • raspberry pi gpio
  • raspberry pi 3 gpio
  • rasbperry pi
Related

Controlling 5 or more servos

sanyika95
sanyika95 over 7 years ago

Hello!

This is my first post here, so sorry if it is not the best place for here.

I would like to build a smaller 5 DoF RRR robot controlled by Raspberry so I would like to control 5 (or maybe more) servo motors.

I read the RPi has only one Pin able to PWM, but can I use somehow more? If I can, how?

  • Sign in to reply
  • Cancel
  • genebren
    0 genebren over 7 years ago

    Sandor,

     

    There are several libraries (python/C) for turning GPIO pins into PWM pins.  This should allow you to control multiple servos.  Also, with the addition of some hardware it is possible to reuse a single PWM pin to generate multiple servo signals. I have designed some simple boards that used a single PWM, muxed out to multiple pins, generating up to six servo signals.

     

    Best of luck on your robot design.

    Gene

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • 14rhb
    0 14rhb over 7 years ago

    You could run something like this off the I2C interface of the Pi 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685 - ADAFRUIT | CPC UK and have up to 16x servos !

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • luislabmo
    0 luislabmo over 7 years ago

    sanyika95, here are the options I can think of:

    • Not so good: You can try Software PWM, but Linux -which I guess is what you are using on you RPi- is not a real-time operating system, so this may bring lag and a not so clean PWM signal as the servo controller software will be sharing CPU usage with the rest of the OS process. WiringPi may be helpful for you if you decide to take this route.
    • A better option: get a RaspberryPi servo controller like this one from Adafruit, it will control those 5 servos easily, and there is documentation available for you to try. There is also an option from Pololu Robotics you can explore.

     

    Hope this helps.

     

    Luis.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube