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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum control of 360 degree servos
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 12 replies
  • Subscribers 57 subscribers
  • Views 2335 views
  • Users 0 members are here
  • beaglebone_black
  • single-board-computers
Related

control of 360 degree servos

Former Member
Former Member over 12 years ago

Hi

 

i wonder how i would control a 360 degree servos from a python script?

 

there are lot of guides on 180 degree servos

 

most of them from adafruit... have nothing against them but i like to not be dependent on external libs

 

 

i'm going to use this in a fully automatic tracker.... the tracker will be used to track high altitude baloons (30+ km)

 

 

/bo

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to shabaz

    hi

     

    i got back to this.. i opted for the adafruit lib

     

    what excatly do i need to do so i can just tell it a angle between 1 and 360 ?

     

    you said something about "the pulse width needs to be between 800 and 2200usec for a rotation of 2160 degrees" ??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 12 years ago in reply to Former Member

    It means just use approx one fifth of the range, since the span +-116usec is approx one-fifth of +-500usec.

    I've not used the adafruit library or tried to control a servo with the BBB.

    If you library (say) takes a value between 0 and 180 to represent 180 degrees of a normal servo (with a value of 90 being the center), then for your servo you need to use a value between about 72 to 108 to represent 0 to 360 degrees.

    Notice this is not very granular (as mentioned in post#1, it won't be very high-res with such a servo).

    If you wanted it more granular you'd need to delve into the driver code and adapt to use a higher-res PWM (e.g. 10-bit or more) - I don't know what the adafruit library uses.

    Furthermore, even if you did this, I doubt you'd get much better granularity because the servo has hysteresis.

    I suspect getting anything remotely close to 1 degree resolution with that servo will not be possible - I'm just guessing though, I've not tried it.

     

    EDIT: This randomly chosen servo has a dead band specification of 8usec. So, if the pulse width has a possible span of 1000usec for 0 to 180 degrees, you can see that the actual granularity that you can use to position this random servo is not much.. (ok for RC models of course).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify 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