To run the program, you will need to run it as super user to get access to the GPIO pins, so type:

Download: file
sudo python motor.py

You will then get a prompt for you to enter a command. Try entering a few 2 letter commands as shown below.

Download: file
$sudo python motor.py
Command, f/r 0..9, E.g. f5 :f9
Command, f/r 0..9, E.g. f5 :r4
Command, f/r 0..9, E.g. f5 :

This guide was first published on Jan 14, 2013. It was last updated on Jan 14, 2013.

This page (Test & Configure) was last updated on Feb 26, 2021.

Text editor powered by tinymce.