Knock detector - play random music

Hi there, I recently found a great tutorial that uses a Piezo electric disc to detect a knock and then turns on a LED: https://docs.arduino.cc/built-in-examples/sensors/Knock - what I'd like to do is modify this so that it plays 1 of 5 mp3 upon knock detection.

What hardware is best to use for this?

Thanks in advance.

Your post was MOVED to its current location as it is more suitable

Alib0ng0,
I just finished up a project that plays a random song selection when motion is detected (kinda like what you're wanting to do). I used an Adafruit Audio FX Sound Board - WAV/OGG with 16MB Flash. Although its a bit pricey (about $25) you can specify what sounds you want to play based on pin selection, or get a random choice from one pin selection by naming the files something like this. Pin 1 activated [ T01RAND0, ... T01RAND5] Pin 2 activated [T02RAND0, ... , T02RAND5].
The cheapest ones I found was on digikey.com part#1528-1465-ND‎.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.