User Manual

This example is based on the Python library, which has been in the latest Raspbian system. However, if
there is any error occurs when running the example, you should install the Python library manually. In case
that the example is unable to be performed after installing the library, you can try to apply the command
chmod+xfilename to grant the program the executable permission.
Enter the Linux terminal, and input the following command
cd~/RPi‐Motor‐Driver‐Board‐Demo‐Code/python
sudopythonmotor.py
Expected result: Pressing the keyboard of the infrared remote controller can control the robot. The key 2 is
for go straight, 8 for drawback, 4 for turn left, 6 for turn right, and 5 for stop. The keys – and + are speed
control keys. ﴾Notes: Since the keyboard coding varies from different infrared remote controllers, you may
need to modify the program as required.﴿
Website remote control
This test demonstrates how to remote control the robot via webiopi, and real‐time display the image
captured by the camera with the software mjpg‐streamer. For some browser may be unable to display the
image correctly, we recommend you to use the Chrome browser or the Firefox browser.
Step 1. Install webiopi
cd~/RPi‐Motor‐Driver‐Board‐Demo‐Code/WebIOPi‐0.7.1‐raspi2
sudo./setup.sh
Check the installation: run the command webiopi –h. When the library is installed successfully, you can see
the following information as the figure shown below.