I'm building a church bell ringer. I have an mp3 player for my Arduino and a sonar distance device hooked up using this project:
However, I need to start moving the church bell when the sound starts. What is the simplest way for me to invoke a motor when the Mp3 player starts? I simply need an off/on ability when the Mp3 starts.
Individually all components work fine. My sonar trips at 10cm and the church bell recording plays just fine. I need to know how to embed a "START MOVING CHURCH BELL" command when the Mp3 starts.
I have read through quite a few threads on event triggering, but I'm lost at how to combine that ability within the sketch that I used as a basis.