Software installation and configuration
All features of Strato Pi Base, except the real time clock, are controlled via dedicated
GPIO pins and can be used with any operating system and programming language that
supports the GPIO pins control on Raspberry Pi. The real time clock is interfaced via the
I
2
C serial bus.
The following software installation notes are based on the Raspbian Jessie operating
system.
Installing the Strato Pi utility on Raspbian
The Strato Pi utility is a simple command-line script to control Strato Pi's buzzer and
watchdog functions.
Run the following commands to download and install the Strato Pi utility:
$ cd /usr/local/bin
$ sudo wget http://sferalabs.cc/files/strato/strato
$ sudo chmod 755 strato
You can run the Strato Pi utility without arguments to print its options:
$ strato
Usage: strato beep on|off|length_millis|length_millis pause_millis repeats
strato watchdog enable|disable|heartbeat|timeout
strato shutdown
strato battery
All commands should be run as superuser, so always use sudo to run strato.
Installing the Real Time Clock software
The RTC is based on the Microchip MCP79410 module and is connected to the Raspberry
Pi via its I
C serial bus.
2
Before downloading the installation utility, you should enable I
package.
To enable I
2
C, run the "raspi-config" configuration utility:
$ sudo raspi-config
Then go to "Advanced Options", "I2C" and select "yes" to enable the I
reboot your Raspberry Pi.
To install the "i2c-tools" package:
$ sudo apt-get update
$ sudo apt-get install i2c-tools
With these prerequisite installs completed, you should download and run Strato Pi's
installation script:
$ cd
$ wget http://sferalabs.cc/files/strato/rtc-install
14
2
C and install the "i2c-tools"
2
C interface, then
Strato Pi Base User Guide
Need help?
Do you have a question about the SPMB21X and is the answer not in the manual?