Friday, January 13, 2023

RNBO and Max with Raspberry Pi - 03 - Encoders, LCD Screen and TouchOSC



This video shows how to get started with RNBO and Max with Raspberry Pi. We take the delay patch built in the previous tutorials and use some encoders to change the params and an LCD screen to view the params of the RNBO patch.

Links and resources: Python script for encoders and OSC: https://raw.githubusercontent.com/little-scale/rnbo/main/rnbo_python_3.txt gpiozero rotary encoders and button: https://gpiozero.readthedocs.io/en/stable/api_spi.html pyliblo: https://das.nasophon.de/pyliblo/ T18 knob: https://www.thingiverse.com/thing:5757475 D-shaft knob: https://www.thingiverse.com/thing:5759656 Raspberry Pi header: https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/ Encoders: https://thecustomizewindows.com/wp-content/uploads/2017/07/Rotary-Encoder-For-Dummies.jpg Rpi-lcd library: https://pypi.org/project/rpi-lcd/ Using an I2C LCD Display with Raspberry Pi: https://www.electroniclinic.com/raspberry-pi-16x2-lcd-i2c-interfacing-and-python-programming/ TouchOSC: https://hexler.net/touchosc 00:00 - Intro 00:41 - Same patch as last time 00:49 - Hardware setup 02:46 - Putting together the hardware 03:04 - Encoders in general 05:06 - Encoder 1 06:03 - Encoder 2 06:51 - Encoder 3 07:37 - Encoder 4 09:19 - LCD Display 10:08 - LCD GND 10:22 - LCD 5V 10:48 - LCD SDA 11:03 - LCD SCL 11:30 - Turn on I2C port in rasp-config 12:02 - Reboot 12:14 - Check I2C address 12:56 - Install I2C tools 13:08 - Install rpi-lcd 14:10 - Python script 20:58 - Testing out python script with encoders 21:33 - Testing python script with web interface 22:18 - TouchOSC 22:31 - Create fader 23:31 - Find address string in JSON file from RPI 23:51 - Add address path as constant string to fader messager in TouchOSC 24:10 - Set up TouchOSC editor as patch server 24:33 - iOS TouchOSC as patch client 25:15 - Create additional faders with param names in TouchOSC editor 26:50 - TouchOSC on iOS connected to pi

0 comments: