What I want to do is have the soundboard trigger a "Slashing" sound when the sword is moved in any direction in a deliberate fashion.
how I could best trigger a sound on both start-up and shutdown.
The accelerometer will register an acceleration at the onset of the slashing motion and a deceleration at the end. You could use an acceleration in the axis perpendicular to the leading edge of the sword to trigger the sound. A gyro will register a rotation for the duration of the slash and could be used to control the duration of the sound.
Start-up is easy. Just play the sound from your setup(). Shutdown is a little trickier, but the push-button power breakout should handle it. You can have a button to trigger the sound, then write to an output pin to switch off power via the 'kill' pin on the breakout.
I want to trigger it off any/all motion that is more than a turn or slight movement of the wrist.
Are you saying that the breakout could be used for power on, and to trigger power off, I have a second button, an "off" button that triggers the sound, and a shutdown of the lights, and then "Kills" the power via the Kill pin on the breakout?
Users browsing this forum: No registered users and 6 guests