# Raspberry Pi 3¶

The Raspberry Pi 3 is a small, relatively powerful (for its size) single-board computer from the Raspberry Pi Foundation, commonly used in education. Three variants (B, B+, and A+) are available to purchase from the Raspberry Pi Foundation; Xnor Bundles have been tested and benchmarked on the Model B+ which costs \$35 for individuals. The Raspberry Pi 3 has a 64-bit ARMv8 CPU, a hardware floating-point unit, and 1GB of RAM. It typically runs a variant of Debian called Raspbian.

Devices similar to the Raspberry Pi 3 B+ may be able to run Xnor Bundles built for Raspberry Pi 3 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 3 and build the samples in xnor-sdk-rpi3/samples/c as follows:

cd ~/Downloads/xnor-sdk-rpi3/samples/c
make


## 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 3 in order to run the Xnor developer SDK samples. Download the SDK and run:

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


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