Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unclechu/pi-pedalboard
My custom pedalboard stuff that works on Raspberry Pi
https://github.com/unclechu/pi-pedalboard
controller guitar python raspberry-pi
Last synced: about 1 month ago
JSON representation
My custom pedalboard stuff that works on Raspberry Pi
- Host: GitHub
- URL: https://github.com/unclechu/pi-pedalboard
- Owner: unclechu
- License: gpl-3.0
- Created: 2016-05-01T22:05:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-28T06:56:24.000Z (about 4 years ago)
- Last Synced: 2024-11-07T09:52:51.448Z (3 months ago)
- Topics: controller, guitar, python, raspberry-pi
- Language: C
- Size: 629 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pi-pedalboard
Pedalboard implementation for Raspberry Pi microcomputer.
![pedalboard photo](./_stuff/pedalboard_photo_2_pluggable.jpg)
## Requirements
* Raspberry Pi microcomputer with GPIO (with Raspbian OS installed on it)
* Python3
* [`gpiozero`](https://pypi.python.org/pypi/gpiozero) and
[`radio-class`](https://pypi.python.org/pypi/radio-class) python packages
* Some buttons connected to GPIO
([see here for mapping](https://github.com/unclechu/pi-pedalboard/blob/6bfb629fed36bb0f536d0ea523d6a08b7d8fb66e/server.py#L20-L26)
and [see here for pins numbers](https://www.raspberrypi.org/documentation/usage/gpio/))## Usage
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).1. Go to directory that is cloned version of this repo,
create and init:
[virtual environment](https://pypi.python.org/pypi/virtualenv)```bash
# python3 -m venv -- .venv
# source .venv/bin/activate```
When I try to start `./server.py` with activated **virtualenv** everything is
freezing on `s.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**:
```bash
sudo apt-get install python3-gpiozero
sudo pip install radio-class
```2. Install dependencies:
```bash
pip install -r requirements.txt
```3. Run pedalboard server:
```bash
./server.py
```4. 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):```bash
./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](http://guitarix.org/) presets.## Author
[Viacheslav Lotsmanov](https://github.com/unclechu)
## License
[GNU/GPLv3](./LICENSE)