Pedalboard implementation for Raspberry Pi microcomputer.
- Raspberry Pi microcomputer with GPIO (with Raspbian OS installed on it)
- Python3
gpiozero
andradio-class
python packages- Some buttons connected to GPIO (see here for mapping and see here for pins numbers)
For example you have connected to your Raspberry PI over SSH and it has
192.168.1.10
IPv4 address (use nmap 192.168.1.0/24
to find its address
if you don't know it already).
-
Go to directory that is cloned version of this repo,
create and init virtual environment:# python3 -m venv -- .venv # source .venv/bin/activate
When I try to start
./server.py
with activated virtualenv everything is freezing ons.bind((TCP_IP, TCP_PORT))
line, even SSH connection. After that any new attempt to establish SSH connection fails until I restart device by unplugging and plugging power cable again. So, skip item 1 and item 2 and install dependencies globally instead:sudo apt-get install python3-gpiozero sudo pip install radio-class
-
Install dependencies:
pip install -r requirements.txt
-
Run pedalboard server:
./server.py
-
Go to your host machine terminal (it supposed to be linux-based distro with X11,
xdotool
and python3 installed) and run (in directory that is cloned version of this repo):./client_numpad.py 192.168.1.10
It will start a daemon that simulates numpad keys pressing by pushing on buttons on pedalboard. You could use this as basic example for everything you could imagine. I'm actually using it for switching between guitarix presets.