Hello out there:
I am working on a soundscape for an art project have the following parts:
--- Arduino Uno
---- WAV Trigger
PIR Motion Sensor (JST) [ https://www.sparkfun.com/products/13285 ]
I plan to affix these boards to my sculptors and have (a single) sound play when someone is near to the object, and then end the sound after a predetermined period of time when no motion is selected.
Any ideas on how to get start with the process, the coding.
I am a novice -- at best.
Here is an example of how I would like the code to look in plain english.
If (sound is not playing) on detecting motion Play sound
if (sound is playing) do not play sound (meaning initial sound continues to play)
if (no motion is detected for 20 seconds after the end of sound) (stop playing sound –– meaning do not repeat sound)
else (if motion is detected after the sound has ended for up to 20 second) repeat sound
And so on...