Skip to Main Content
Learn Robotics Programming - Second Edition
book

Learn Robotics Programming - Second Edition

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

Chapter 11: Programming Encoders with Python

It is useful in robotics to sense the movements of motor shafts and wheels. We drove a robot along a path back in Chapter 7, Drive and Turn – Moving Motors with Python, but it's unlikely that it has stayed on course. Detecting this and traveling a specific distance is useful in creating behaviors. This chapter investigates the choice made by the sensor, as well as how to program the robot to move in a straight line and for a particular distance. We then look at how to make a specific turn. Please note that this chapter does contain math. But don't worry, you'll follow along easily.

In this chapter, you will learn about the following topics:

  • Measuring the distance traveled with encoders
  • Attaching ...
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