2020-01-22 20:39:58 +00:00
|
|
|
# bananenkeyboard
|
|
|
|
|
2020-06-29 20:29:26 +00:00
|
|
|
Resistive touch sensors to sound by touching the probes or things connected to them.
|
|
|
|
|
2022-02-26 14:16:20 +00:00
|
|
|
# Install
|
2020-06-29 20:29:26 +00:00
|
|
|
|
2022-02-26 14:16:46 +00:00
|
|
|
* Raspberry Pi OS Lite
|
|
|
|
* Release date: January 28th 2022
|
|
|
|
* System: 32-bit
|
|
|
|
* Kernel version: 5.10
|
|
|
|
* Debian version: 11 (bullseye)
|
2022-02-26 14:16:20 +00:00
|
|
|
|
|
|
|
Remember to activate "ssh" before booting first (touch "/boot/ssh" on the MicroSD-card)
|
|
|
|
|
|
|
|
After login (ssh) proceed with these steps:
|
2020-06-29 21:14:42 +00:00
|
|
|
1. `sudo apt update`
|
|
|
|
2. `sudo apt upgrade`
|
2022-10-16 12:27:25 +00:00
|
|
|
3. `sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen libasound2-dev`
|
2022-10-16 17:09:08 +00:00
|
|
|
4. `sudo chmod 1777 /tmp`
|
|
|
|
5. `wget go1.19.2.linux-armv6l.tar.gz`
|
|
|
|
6. `rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz`
|
|
|
|
7. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile`
|
|
|
|
8. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
|
|
|
|
9. `cd ~/bananenkeyboard/Pi`
|
|
|
|
10. `go get .`
|
|
|
|
11. `go build .`
|
|
|
|
12. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
|
|
|
|
13. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'`
|
|
|
|
14. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
|
|
|
|
15. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
|
|
|
|
16. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
|
|
|
|
17. `sudo chmod u+x /etc/rc.local`
|
|
|
|
18. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh`
|
|
|
|
19. `sudo gpasswd --add pi tty`
|
|
|
|
20. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh`
|
|
|
|
21. `sudo reboot`
|
|
|
|
|
|
|
|
By copying the rc.local (step 16), the script will be started in a `screen` after reboot.
|
2022-03-08 19:50:33 +00:00
|
|
|
|
|
|
|
To start it manually type:
|
2020-06-29 21:12:48 +00:00
|
|
|
|
2022-10-16 17:09:08 +00:00
|
|
|
`./bananenkeyboard/Pi/bananenkeyboard`
|
2020-06-29 22:09:08 +00:00
|
|
|
|
2022-03-03 09:19:01 +00:00
|
|
|
# Convert and remove silence from samples:
|
2020-06-29 22:09:08 +00:00
|
|
|
`for file in *.mp3; do ffmpeg -i ${file} -af silenceremove=1:0:-30dB ${file/mp3/wav} -y; done`
|
|
|
|
|
2022-03-03 09:19:01 +00:00
|
|
|
An open source for samples is for example: https://philharmonia.co.uk/resources/sound-samples/
|
2021-10-25 16:21:49 +00:00
|
|
|
|
|
|
|
# TODO
|
2022-10-16 12:01:30 +00:00
|
|
|
* It's necessary to activate the serial via raspi-config?
|
|
|
|
* raspi-config -> Interface -> I6 Serial Port -> No (Login Shell?) -> Yes (Serial hardware port?) -> Ok
|