configuring Pi:
- Install i2c packages
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
- Enable I2C.
sudo raspi-config
Select 5 Interfacing Options and then P5 I2C. A prompt will appear asking Would you like the ARM I2C interface to be enabled?, select Yes, exit the utility and reboot your raspberry pi.
sudo apt-get update
sudo apt-get upgrade
sudo reboot
- Install Adafruit PCA9685 libraries
sudo apt-get install git build-essential python-dev
cd ~
git clone https://github.com/adafruit/Adafruit_Python_PCA9685.git cd Adafruit_Python_PCA9685
sudo python setup.py install
Start up procedure.
- Hook up diagram
+--------+ +--------+
| 5V 10W | | 5V 40W |
| power | | power |
+--------+ +--------+
| |
| usb-c | barrel jack
| |
V V
+==============+ i2c +--------------+ +--------------+ +--------------+
| Raspberry Pi | -----> | PCA9685 (1) | --> | PCA9685 (2) | ... | PCA9685 (6) |
+=======+======+ +--------------+ +--------------+ +--------------+
|
| USB
V
+----+----+ header pins - TRS jack +-------+
| Arduino | ------------------------> | Pedal |
+---------+ +-------+
-
on the client machine (the one running max/msp) ssh [email protected]
-
once logged into the raspberry: cd osc2i2c sudo python osc2i2c.py