Skip to Content
Learn Robotics Programming - Second Edition
book

Learn Robotics Programming - Second Edition

by Danny Staple
February 2021
Beginner to intermediate
602 pages
12h 37m
English
Packt Publishing
Content preview from Learn Robotics Programming - Second Edition

Chapter 10: Using Python to Control Servo Motors

Servo motors can make precise and repeatable motions. Motion such as this is vital for moving sensors, controlling robot legs or arms, and moving them to a known position. Its uses are so engineers can predict robot behavior, so a robot can repeat things in automation, or so code can move limbs to accurately respond to what their sensors are instructing them. Raspberry Pi or add-on boards can control them. In this chapter, we will use these motors to build a pan and tilt mechanism—a head to position a sensor.

In this chapter, we will cover the following topics:

  • What are servo motors?
  • Positioning a servo motor with the Raspberry Pi
  • Adding a pan and tilt mechanism
  • Creating pan and tilt code
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple

Publisher Resources

ISBN: 9781839218804Supplemental Content