Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Robotics with the Board of Education Shield for Arduino

Robotics with the Board of Education Shield for Arduino

Activity 4: Test Speed Control

This graph shows pulse time vs. servo speed.  The graph’s horizontal axis shows the pulse width in microseconds (µs), and the vertical axis shows the servo’s response in RPM.  Clockwise rotation is shown as negative, and counterclockwise is positive.  This particular servo’s graph, which can also be called a transfer curve, ranges from about -48 to +48 RPM over the range of test pulse widths from 1300 to 1700 µs.  A transfer curve graph of your servos would be similar.

Three Reasons Why the Transfer Curve Graph is Useful

  1. You can get a good idea of what to expect from your servo for a certain pulse width.  Follow the vertical line up from 1500 to where the graph crosses it, then follow the horizontal line over and you’ll see that there is zero rotation for 1500 µs pulses.  We already knew servoLeft.writeMicroseconds(1500) stops a servo, but try some other values.
  • Compare servo speeds for 1300 and 1350 µs pulses.  Does it really make any difference? 
  • What speed would you expect from your servos with 1550 µs pulses?  How about 1525 µs pulses?
  1. Speed doesn’t change much between 1300 and 1400 µs pulses.  So, 1300 µs pulses for full speed clockwise is overkill; the same applies to 1600 vs. 1700 µs pulses for counterclockwise rotation.  These overkill speed settings are useful because they are more likely to result in closely matched speeds than picking two values in the 1400 to 1600 µs range. 
  1. Between 1400 and 1600 µs, speed control is more or less linear.  In this range, a certain change in pulse width will result in a corresponding change in speed.  Use pulses in this range to control your servo speeds.

Printer-friendly version
Example Sketch: StartResetIndicator
Prev
Example Sketch: Test Servo Speed
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress