bananenkeyboard/README.md

44 lines
1.6 KiB
Markdown
Raw Normal View History

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`
3. `sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen`
2020-06-29 21:14:42 +00:00
4. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
5. `pip3 install pyserial pygame`
2022-02-26 14:54:02 +00:00
6. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
2022-02-27 14:36:37 +00:00
7. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
8. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
9. `chmod u+x ~/bananenkeyboard/Pi/s.py`
2022-02-27 15:34:21 +00:00
10. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
11. `sudo chmod u+x /etc/rc.local`
2020-06-29 21:12:48 +00:00
Starten mit
2020-06-29 21:14:42 +00:00
`cd ~/bananenkeyboard/Pi`
2020-06-29 21:15:34 +00:00
2020-06-29 21:14:42 +00:00
`python3 ./s.py`
2020-06-29 22:09:08 +00:00
Das Skript wird durch den Schritt mit der `/etc/rc.local` automatisch nach Systemstart gestartet
2020-06-29 22:09:08 +00:00
# Konvertieren und Stille herauskürzen aus Samples:
`for file in *.mp3; do ffmpeg -i ${file} -af silenceremove=1:0:-30dB ${file/mp3/wav} -y; done`
2021-10-25 16:21:49 +00:00
Als Quelle haben wir zB https://philharmonia.co.uk/resources/sound-samples/
# TODO
* USB-Stick mit Samples anschließen, welche dann den "Standard" überschreiben
2022-01-15 11:36:17 +00:00
* Pi auf Readonly umbauen, damit ein Abschalten über ein "Stecker raus" funktioniert
2022-02-27 15:45:31 +00:00
* `ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred`. insbesondere, wenn MP3s verwendet werden