-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Getting Started with Raspberry Pi Zero
By :

The hardware is ready, now you can access all this functionality from Raspberry Pi Zero. First, install the library associated with the control board, found at http://www.monkmakes.com/?page_id=698 and perform the following steps:
Run the command wget https://github.com/simonmonk/raspirobotboard2/raw/master/python/dist/rrb2-1.1.tar.gz
. This will retrieve the library.
Then, run tar -xzf rrb2-1.1.tar.gz
. This will unarchive the files.
Type cd rrb2-1.1
. This will change the directory to the location of the files.
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 drive motor and the steering motor. The code will look similar to the following screenshot:
The specifics on the code are as follows:
import RPi.GPIO as GPIO
: This will import the RPi.GPIO
library, allowing you to send out a PWM signal to the front steering mechanism.
import time
: This will import the time
library, allowing...
Change the font size
Change margin width
Change background colour