Skip to content

Capacitive touch sensors

Alvin Schiller edited this page Dec 24, 2023 · 5 revisions

Instead of arcade push buttons, you can install capacitive touch sensors type ttp223.

Increase and decrease volume

While these work like other buttons, there is one edit you need to do when using GPIO control to change the volume with touch sensors. If you use the script out of the box: after a touch, the volume decreases continuously to 0. If you set the volume to 100 in the web app, this process repeats itself. An ordinary push button makes everything right on the same pin.

Open the file /home/pi/RPi-Jukebox-RFID/settings/gpio_settings.ini and find the [VolumeUp] and [VolumeDown] section. Remove the line with hold_repeat: True from both sections. The final result may look like this:

[VolumeUp]
enabled: True
Type:  Button
Pin: 16
pull_up: True
hold_time: 0.3
functionCall: functionCallVolU

[VolumeDown]
enabled: True
Type:  Button
Pin: 19
pull_up: True
hold_time: 0.3
functionCall: functionCallVolD

Old description: https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/456

Home

πŸ”₯ Version 3

Version 3 Pages

Nothing yet

🎢 Version 2

Version 2 Pages

Installation

Specials

RFID Reader

Sound card configurations

Hardware Buttons

Displays (LED, LCD, Matrix, etc.)

Hacks

Bluetooth

AirPlay

MPD tricks

For Developers

Clone this wiki locally