Choose Hardware to deploy your Applcation

Step 3: Connect peripherals & Configure Shunya Interfaces

Choose a dev Board

Shunya Interfaces supports these development boards, you can choose any one of them to work with.

  1. RockPi-S-V10
  2. Raspberry Pi 4
  3. Raspberry Pi 3

Connect peripherals

Connect all your hardware peripherals to the board.

To help you with the connections use the links in the excel to easily find pinouts for the development boards.

  1. Dev Board pinouts

Configure Shunya Interfaces

Tell Shunya Interfaces your hardware connections.

You can configure by running command.

$ sudo vi /etc/shunya/interfaces/config.yaml

Sensor ID's and Connection ID's

You tell all your Hardware connections to Shunya Interfaces via Sensor ID's and Connection ID's.

Each Sensor is given a special ID which the Shunya Interfaces library recognizes. And each Hardware pin on the Sensor is given a Connection ID.

So when we write pin 1: 1.1 Shunya Interfaces understands it as <Sensor 1>.<Sensor pin 1> connected to pin 1 of Raspberry Pi.

For Example : Let's say that, we have connected 2 devices to the Raspberry Pi (BME280 and PCF8591) to pin 3 (SDA) & pin 5 (SCL) respectively.

Our Config file will look like.

pin 3: [1.1, 6.1]
pin 4: null
pin 5: [1.2, 6.2]

Make sure to save your changes to the config file.