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 7: Drive and Turn – Moving Motors with Python

In this chapter, we will take the robot we started building in the last chapter, connect the motors to the Raspberry Pi, and build the Python code to make them move. We will cover programming techniques to create a layer between the physical robot and its behavior code, to reduce the impact of hardware changes. Our code and build will get the robot moving! We finish by programming the robot to drive a small set path. The robot code layer will serve as a foundation for all our robot behaviors, and the set path will demonstrate how to use it.

We cover the following topics in this chapter:

  • Writing code to test your motors
  • Steering a robot
  • Making a Robot object—code for our experiments to talk ...
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