Raspberry Pi Zero

The Raspberry Pi Zero is a small, low-power single-board computer from the Raspberry Pi Foundation, commonly used in education. It costs $5 for individuals and can be purchased from the the Raspberry Pi website. The Raspbery Pi Zero has a 32-bit ARMv6 CPU with no hardware floating-point and 512MB of RAM. It typically runs Raspbian Lite, a variant of Debian.

Devices similar to the Raspberry Pi Zero may be able to run Xnor Bundles built for Raspberry Pi Zero if their processor and library support is equivalent. However, such platforms are not officially supported by Xnor.

Language-independent setup

Refer to Raspberry Pi’s Getting Started guide for instructions on setting up a Raspberry Pi for the first time. If you’ve already done this, no further setup is necessary.

Xnor Bundles have no dependencies of their own and can be used in your C or Python application without any additional setup. However, the Xnor developer SDK needs a few libraries and tools to be present in order to run the sample applications. Instructions are available for installing these for C and Python development below.

Setting up for C development

Raspbian comes with GCC installed by default, so no further installation is necessary. You should be able to download the SDK to your Raspberry Pi Zero and build the samples in xnor-sdk-rpi0/samples/c as follows:

cd ~/Downloads/xnor-sdk-rpi0/samples/c

Next Steps for C development

Setting up for Python development

Raspbian comes with Python 3.5.3 installed by default, but you will need to install some packages on the Raspberry Pi Zero in order to run the Xnor developer SDK samples. Download the SDK and run:

cd ~/Downloads/xnor-sdk-rpi0
python3 -m pip install -r samples/python/requirements.txt

This will install all the necessary dependencies to run the samples in samples/python.

Next Steps for Python development