This project has no polish as it is only a proof of concept. It will be integrated into a larger final project. The MCU is programmed in C and the random audio player is programmed in Python using the Playsound and Random modules. An object is, by design, supposed to block the IR receiver and transmitter (in this case an Apple USB power adapter). When the object is grabbed and the transmitter can successfully send a signal, a random audio file is played.
Files
run_aud.py
Python script which randomly runs one of three audio files in the local directory. Uses Random and Playsound modules.