“Explore networked communication in an art and design context”
Here is the technical instructions to build a master hub connecting several tangible (or web based) inputs/outputs.
To be able to listen to Firebase Event, we need to install Python3 on the Rapsberry PI. (If not already)
Original detailed process
sudo apt-get update -y
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
tar xf Python-3.7.4.tar.xz
cd Python-3.7.4
./configure
make -j 4
sudo make altinstall
To separate previous python installation, we'll use a virtual environment.
To be able to install a virtual environment we'll use the package installer pip.
sudo apt install python3-pip
sudo pip3 install virtualenv
virtualenv env3 -p /usr/bin/python3
source env3/bin/activate
Install all requirements within that new virtualenv.
pip install -r requirements.txt
Run the python script for the master. It should connect to the n
I2C subordinates and listen for Firebase events.
The original firebase streaming by Andrew Sosa
cd pythonFolder
python master.py
Following that idea to keep all connection as simple as possible, we propose to use a minimal amount of GPIO pin to connect the I2C network. In that example :
- GPIO 02
- GPIO 03
- Ground
To check if i2c adress is set : i2cdetect -y 1
W.I.P
W.I.P
W.I.P
W.I.P