Just after some help. I have read through some of the other posts but haven’t found exactly the answer I’m after.
Basically what I would like to do is have a sound or mp3 go off when the beer tap is pulled. I have gone through a few ideas in my head how I can make it work and have it look neat and I think the best option would be to have a motion sensor hooked up to a MP3 module where I have the sounds loaded on to. I’m happy for any other suggestions. But if I was to do it this way could someone please point me in the right direction of what would be the best components to use.
The simplest option I can think of for playing the audio when a pin is driven high is this FX board with builtin amp:
As for the sensor, what were you looking to detect? If your fabrication skills are up to it, a limit switch may do the job very simply when placed in the path of the tap handle:
Alternatively, provided the tap handle stays relatively dry, a capacitive sensor could be wired to the handle, and trigger the FX board when the handle is touched:
Or as you suggest, a distance sensor or motion sensor. These may be a bit fiddly to optimise, as other things can set them off. Let me know if you want more info on this option, but generally you may need to get a microcontroller involved, or put a “choke” on a PIR sensor so it only looks at a very small area