Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

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. The robot will move! We will finish by taking the robot on a small set path.

The following topics will be covered in this chapter:

  • How to connect motors to the Raspberry Pi
  • How to test motors with simple code
  • How to steer the robot—thinking about interfaces
  • How to make a robot code object, a layer of code for the motors and chassis
  • How to make the robot drive a repeatable path
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 - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content