Resistive touch sensors to sound by touching the probes or things connected to them.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
starcalc c60f24e486 „“ ändern 6 months ago
Pi Pi im Standard und Ausgabe verschönert 7 months ago
backup redraw box in inkscape 9 months ago
piconfig Run with sudo, remove all sudo from 7 months ago
touchcircuit fix swapped resistor silkscreen 2 years ago
touchcontroller make more sensitirve 9 months ago
.gitignore Auto-Generated Files excluded 9 months ago
Bananenkeyboard.code-workspace Folders, Extensions 9 months ago „“ ändern 6 months ago
plexibox.svg add text to backside 7 months ago


Resistive touch sensors to sound by touching the probes or things connected to them.


  • Raspberry Pi OS Lite
  • Release date: January 28th 2022
  • System: 32-bit
  • Kernel version: 5.10
  • Debian version: 11 (bullseye)

Remember to activate "ssh" before booting first (touch "/boot/ssh" on the MicroSD-card)

After login (ssh) proceed with these steps:

  1. sudo apt update
  2. sudo apt upgrade
  3. sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen
  4. git clone
  5. pip3 install pyserial pygame
  6. sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'
  7. sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'
  8. sudo mkdir /etc/systemd/system/systemd-udevd.service.d
  9. sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'
  10. chmod u+x ~/bananenkeyboard/Pi/
  11. sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'
  12. sudo chmod u+x /etc/rc.local
  13. chmod u+x ~/bananenkeyboard/piconfig/
  14. sudo gpasswd --add pi tty
  15. sudo /home/pi/bananenkeyboard/piconfig/
  16. sudo reboot

By copying the rc.local (step 11), the script will be started in a screen after reboot.

To start it manually type:

cd ~/bananenkeyboard/Pi

python3 ./

Convert and remove silence from samples:

for file in *.mp3; do ffmpeg -i ${file} -af silenceremove=1:0:-30dB ${file/mp3/wav} -y; done

An open source for samples is for example:


  • Connect USB stick with samples which should override the default samples
  • ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred. Especially if using mp3s?
  • It's necessary to activate the serial via raspi-config, the configuration above does not activate it.