This page describes the process of setting up a clean Raspbian image to work with the PiShield hardware. The general process involves:

  • Enabling the hardware ports to talk to the board.
  • Downloading and Installing the wiringPi driver.
  • Downloading and Installing the various example projects.

Enable Hardware

  • Run the raspi-config utility via the command line by typing sudo raspi-config, and then select: Advanced->SPI as well as Advanced->I2C
  • Using a text editor with sudo privleges and add the following lines to /boot/config.txt (type sudo nano /boot/config.txt):

dtparam=i2c_arm=on
dtparam=spi=on

  • Finally, if you’re running a version of Raspbian older than Stretch, open up /etc/modules (type sudo nano /etc/modules) and add the following lines:

i2c-dev
i2c-bcm2708
spi-bcm2708

Install WiringPi

If you’re running a version of Raspbian older than Stretch, WiringPi has to be manually installed because it is not included in Raspbian. To install WiringPi, follow the official instructions here.

Test!

At this point, you can do the command line tests to see if things are working!

Or try out one of the sample projects we have listed in the main documentation index.