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
  • Servo Position Control with Python and micro:bit

Servo Position Control with Python and micro:bit

Review and Practice

Self-check

  • In this activity, you:
    • Used pushbuttons to set the direction the servo horn points to.  
    • Adjusted the limits to the servo horn’s button controlled motion.
    • Adjusted the rate the servo horn rotates.
  • Were you able to control the limits of the servo horn’s rotation?
  • Were you able to adjust the rate the servo turned?
  • You also learned the difference between angular position and angular velocity.
  • Were you able to calculate angular velocity?

 

Questions

  1. List some common items that servo motors can be used to control.
  2. To what does the terminology “horn angle” refer?
  3. What is “angular velocity”?
  4. When calculating angular velocity, is counterclockwise rotation of the servo horn positive or negative?
     

Exercises

  1. What values are used to set the full range of motion (0° to 180°) for the servo horn?
  2. What is the approximate angular position of the servo horn when in pin16.write_analog(value) value is set to 77?:
  3. If it takes 1.5 seconds for the horn to rotate from 45° to 135°, what is the angular velocity?  
  4. If it takes 2.3 seconds for the horn to rotate from 180° to 45°, what is the angular velocity?  
     

Projects

  1. Change the range of motion of the servo horn so that it moves through a range of only 45 degrees. Which 45 degrees exactly is up to you.
  2. Create a script to change the angular velocity so the horn turns twice as fast to the right as it turns to the left.

Printer-friendly version
Angle and Angular Velocity
Prev
Solutions
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress