Skip to content

s8/osc2i2c

Repository files navigation

osc2i2c

configuring Pi:

  1. Install i2c packages
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
  1. 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
  1. 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.

  1. 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 |
   +---------+                           +-------+
  1. on the client machine (the one running max/msp) ssh [email protected]

  2. once logged into the raspberry: cd osc2i2c sudo python osc2i2c.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published