Skip to content

Installing panStamp cores and libraries for Arduino

Daniel Berenguer edited this page Aug 18, 2016 · 18 revisions

Introduction

Starting from version 1.6.4 of Arduino, third-party boards can be installed from the Boards Manager. This is a fantastic features since panStamp and other vendors can maintain their own servers and ask the Arduino IDE to download the board cores from there.

Installing the board cores

Firstly, we have to tell the IDE where the panStamp installable files are located. Open the Files->Preferences menu and enter the following URL into "Additional Boards Manager URL's":

http://panstamp.org/arduino/package_panstamp_index.json

Arduino File->Preferences

In case you want to enter multiple URL's you can separate them by commas. Close the menu by pressing "OK" and then open the Tools->Board menu.

Arduino board menu

Click on "Boards Manager" and scroll down the window until you find the board that you want to install. Depending on the model of your target boards you will want to install "panStamp NRG" or "panStamp AVR".

Arduino Boards Manager

Once installed you will see the boards listed in Tools->Board.

Arduino Boards Manager

You need to know that this procedure no longer installs the core files in the Arduino application folder. Instead, core files are saved into the Arduino15 folder. According to Arduino's Boards Manager FAQ:

  • On GNU/Linuxes: ~/.arduino15/packages/
  • On Windows: %APPDATA%\Arduino15\packages\
  • On MacOSXes: ~/Library/Arduino15/packages/

Installing the libraries

Arduino libraries are installed differently. We provide a list of libraries, necessary to build some of our sample applications:

Other libraries from other vendors such as Sparkfun or Adafruit are also needed to build some of our sample applications. You will find the library dependencies of each sketch at the top comments of the main .ino file.

In order to install a library, open the Library Manager from Sketch->Include Library->Manage libraries, then select the library from the list and finally press "Install".

Arduino Library Manager

Installing the basic sample sketches

Sample sketches for panStamp need to be downloaded apart. They can be downloaded from their repository.

Note than SWAP applications are not contained in this package. Instead, the SWAP reference sketches are located in the "examples" folder of the SWAP library.