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.
- Install Python 3.5 or 3.5.1 (45 Minutes)
- Install ZeroMQ (40 Minutes)
- [Configure the Pi for I2c (optional if using the PCF8591 YL-40 Analog to Digital converter)] (http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/) (2 Minutes)
- Install the PIGPIO Library. (2 Minutes)
NOTE: The latest RPi kernel comes with PIGPIO already installed, so you may skip this step if you are using that kernel.
- Install Xideco (6 Minutes)
- Configure the Xideco Port Map (1 Minute)
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 |