Skip to content

Sprocket Software

Now we must download the Sprocket software and install any prerequisite Python libraries.

Check Python Version

In an SSH session, run Python by typing the python command.

python
The first line you'll see shows the Python version that is installed. Make sure version 3.9 or newer is installed. If you are running an old version of python, install the latest version, and make sure that version is run when issuing the "python" command.
Python 3 Version

Type "exit()" to close Python.

Older Versions of Raspian and Python

If you are not running the newest version of Raspian, python2 may launch by default. The prerequisite packages that we will install in the next step may be different for older versions of Python and Raspian. It is recommended to upgrade your OS by flashing a clean image of the newest version of Raspian if you haven't done so.

Update Advanced Package Tool (APT)

Run the following command to update apt-get.

sudo apt-get update -y

Install Package Installer for Python (PIP)

Install the Package installer for Python (PIP) by running the following command:

sudo apt-get install python3-pip -y

Install OpenCV and Python Dependencies

Install dependencies and libraries using the following commands. This process will take a few minutes to complete.

sudo apt-get install libatlas-base-dev libopenjp2-7-dev python3-opencv -y
pip install pyserial psutil numpy
pip install xbox360controller adafruit_bno055 adafruit-circuitpython-bno055 
pip install plotext opencv-python

Install Git

Install Git by running the following command:

sudo apt-get install -y git

Download Sprocket Code from GitHub

Download the latest version of Sprocket code from GitHub using the following command:

cd ~
git clone --progress --verbose https://github.com/alecwhardy/Sprocket.git