Skip to content

Using a Raspberry Pi and capacitive touch sensor MPR121, multiple sound files are activated individually at touch, paused when not touched

Notifications You must be signed in to change notification settings

modulaire/RPi-Multi-Sound-File-Player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Play multiple channels of sounds with touch sensor MPR121

Python3 is used to execute the included code MPR121MultiSoundPlay.py

Sound files are to be prepared as .wav 16-bit. Up to 12 channels are possible with the MPR121 capacitive sensor controller. The files must be placed in the sounds folder before launching the python code.
Within the sounds folder is a bonus code for normalizing volume of all wav files found within the folder. Launch this code simply with python. It will convert all sound files and place them in the folder titled modified .

Be sure to activate the I2C port for communication with the mpr121, option found in interface options of raspi-config:

sudo raspi-config

Dependencies are as follows:

sudo apt-get update
sudo apt-get install python3-pygame python3-pip
sudo pip3 install adafruit-circuitpython-mpr121

This project was produced at the school of fine arts and media of Caen/Cherbourg (France). The sound clips included are the work of Rajat Mondal

About

Using a Raspberry Pi and capacitive touch sensor MPR121, multiple sound files are activated individually at touch, paused when not touched

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages