~/2021/bela-i2c

a tool for communicating between laptop and i2c-supported Eurorack module (eg. ER-301 ) by using Bela.

i2c communication for Bela picture

parsing msg (i2c protocol) from laptop to Eurorack modules eg. ER301 via Bela, an embedded computing platform.

for safety parsing OSC through i2c a logic level converter to use with Eurorack level (5V) is needed.

img-1

Quick Start

make sure you're already on Bela board (root@bela). and Bela's WIFI is setup, details here.

# download this repo to Bela.
git clone https://github.com/karnpapon/bela-i2c && cd bela-i2c

# run bela-osc
./build.sh

# build c++ file on Bela (more handy, if you don't want to open Bela user-interface and click build button.)
make -C ~/Bela PROJECT=render.cpp run CL="-p16"

# open another window
cargo run

Usage

osc pattern module/module_number/command/output_port value

msg description type example
module name of connecting module, currently support only ER301 String er301
module_number the order number of connecting module Int 1
command command to send to module available command for ER301 documentation please refer to this String cv_slew, tr_pulse, tr
output_port output port number Int 1
value value to send to Float 1000

please refer to module documentation use same configuration as Teletype (value = unsigned 14bits integer (16,384 = 10v))

[Example] sending data via WIFI (eg. use TouchOSC (Mobile) -> Bela)

img-2

  • setup WIFI on Bela first, details here.
  • make sure you're in same WIFI as Bela.
  • on Bela
  • get wlan IP by ip a on Bela board.
  • on TouchOSC:
    • set HOST to IP obtained by previous command (eg. 192.168.1.115 as shown above).<
    • set Outgoing to 7562 (default Bela's listening port).

Disclaimer

this have been successfully tested on Bela image: v0.3.2, (released 13 March 2018). OSX: 10.13.6 (High Sierra) MacBook Pro (Retina, 13-inch, Early 2013)

inspired by hans

2021

Rust

    Development ~