Controlling Wall-E's tracks using a Raspberry Pi in Python

The hardware is ready; now you can access this functionality from a Raspberry Pi. First, install the library associated with the control board, found at http://www.monkmakes.com/rrb3/. Perform the following steps:

  1. Type cd ~.
  2. Run the git clone https://github.com/simonmonk/raspirobotboard3.git—command this will retrieve the library.
  3. Then type cd raspirobotboard3/python to go to the raspirobotboard3/python directory.
  4. Type sudo python setup.py install—this will install the files.

Now you'll create some Python code that will allow you to access both the DC motors on your tracked platform. Here is some basic code that allows you to do this:

#!/usr/bin/python import time from rrb3 import * rr = RRB3(9, ...

Get Raspberry Pi Robotic Projects - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.