Raspberry Pi Bridge - MrYsLab/xideco GitHub Wiki

The Raspberry Pi Bridge is used to connect a Raspberry Pi board to the Xideco network. Each RaspBerry Pi board will have its own associated Raspberry Pi Bridge.

Before using the Raspberry Pi Bridge, you will need to install and configure the necessary components on your PI. Times given are for a build using Jessie on a Raspberry Pi 2.

NOTE: The latest RPi kernel comes with PIGPIO already installed, so you may skip this step if you are using that kernel.

Approximately 90 minutes for an entire install.

Please note all GPIO pin numbers are expressed as BCM GPIO numbers.

To start the Raspberry Pi Bridge, first start the PIGPIO daemon by typing:

sudo pigpiod

The command to start the Raspberry Pi Bridge is:

xirb

The command accepts 1 command line options. To see a help screen type: xiab -h

$ ./xirb.py -h
usage: xirb.py [-h] [-b BOARD_NUMBER] [-r ROUTER_IP_ADDRESS]

optional arguments:
  -h, --help            show this help message and exit
  -b BOARD_NUMBER       Board Number - 1 through 10
  -r ROUTER_IP_ADDRESS  Router IP Address

The BOARD NUMBER is the board number you will select when using the Scratch Extension Blocks, or when a Xideco application needs to differentiate boards from one another.

Note: There are some differences in the way to interact with the Scratch blocks when using xirb. These differences can be found here.

Wiring Up the RPi for Sonar Operation

This page contains wiring instructions. Adjust the pins to match those that you picked.

Wiring Up the RPi for PCF8591 YL-40

YL-40 RPi
VCC 3.3V
GND GND
SDA SDA1
SCL SCL1