Skip to content

Shield for Raspberry PI

Daniel Berenguer edited this page Jan 30, 2016 · 8 revisions

Introduction

panStamp shield for Raspberry PI is an elegant way to add low-power wireless connectivity to the most popular compact computer in the world. Featuring a panStamp, this shield releases the computer from having to deal with the low-power wireless communications. Instead, the on-board panStamp acts as a modem connected to the RPI UART (serial port).

This shield also includes a real time IC with battery backup so that we no longer depend on remote NTP servers and Internet connections to get the current time, even after an outage.

panStamp shield for Raspberry PI

Hardware specifications

  • SMA connector for external antenna
  • DS1338 IC for the RTC function with battery (CR2032) backup.
  • Size: 50 x 42 mm

The shield includes a real time IC (Maxim DS1338) with battery backup so that we don't depend on remote NTP servers and Internet connections to get the current time, even after a power outage.

Programming port

The shield can be programmed with a panStick by means of a pin row (P2) available on-board. The following diagram shows the pinout of this connector and how a panStick can sit onto it. Remember the panStick can not contain a panStamp in order to program other boards.

Programming pinout

Available sketches

The shield needs a panStamp programmed with the modem sketch.

Configuration

Raspbian comes with the UART pre-configured to be used as a serial terminal. In order to use the UART with our shield, we need to free the on-board serial port as shown in this tutorial

Enabling the RTC function also implies doing some changes on Linux. There are many tutorials about this in the net but this is our preferred one. Raspbian has the I2C interface blacklisted. Before running through the above guide, be sure you enable I2C. To do this, edit the file '/etc/modprobe.d/raspi-blacklist.conf' and comment out the line 'blacklist i2c-bcm2708'.

After running through the hwclock guide, run 'sudo update-rc.d hwclock.sh enable' to enable the hwclock at boot. Now, run 'sudo service ntp restart' to persuade ntp to update the local time. The last step is to write this time to the hwclock with 'sudo hwclock -w'

Links