Working with a Raspberry Pi

It is possible to run the Teamwire SDK in a Raspberry Pi or any other PC-based device able to run Python scripts.

Running Teamwire in a Raspberry Pi opens the door to a whole new world of IoT applications and sensor integrations like cameras, GPS modules, network features and such.

There's a lot of ways to get started with Raspberry Pi development. This guide assumes you have some basic knowledge or experience on it and doesn't cover the intrinsics of Raspberry Pi development, but just the specifics for using the Teamwire SDK on it.


This guide is written based on:

We've used the Raspbian Stretch with desktop and recommended software bundle. The desktop version will allow you to connect it to an external screen, which can be useful for some bots later.

Getting started

Copy the Teamwire SDK to the Raspberry. Open a terminal window and go the SDK folder.

Usually first thing would be to install the SDK requirements. However, we found that this doesn't work straight away as libffi library is missing.

So first, install libffi library following these instructions. In our tests we used version libffi 3.2.1 running these commands:

sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
    -i include/

sed -e '/^includedir/ s/=.*$/=@includedir@/' \
    -e 's/^Cflags: -I${includedir}/Cflags:/' \

./configure --prefix=/usr --disable-static


Then, as root user run:

make install

If everything went fine, we're ready to install SDK requiremets by running pip3 install -r requirements.txt in the SDK folder.