Mkrzero wake on motion using MPU 6050, then play audio files from SD Card
Budget: $250 – $750 USD
Need an embedded engineer to program a MKRZero to wake on motion, from sleep, when motion is detected from MPU 6050 and play audio tracks from MKRZero's onboard SD Card.
Audio tracks need to play for:
1.) at least 1 track and,
2.) keep playing track after track while motion is detected
only stop playing when motion is no longer above threshold, at which point, MKRZero returns to sleep.
(if possible make the threshold for "motion" easy to change)
Needs to be written for Arduino IDE or Atmel Studio 7.
Below are some simple examples to help (if needed)
- Simple audio player MKRZero: https://www.arduino.cc/en/Tutorial/SimpleAudioPlayerZero
(This is how I wired up speaker, so code may just need copied)
- Read SD Card MKRZero: https://forum.arduino.cc/t/playing-file-from-sd-card-on-mkrzero-solved/639753
https://forum.arduino.cc/t/simple-audio-player-on-the-samd21/579947
- SAM example code MPU 6050: https://github.com/EmbeddedSam/MPU-6050/tree/master/Examples
- SAMD audio library: https://github.com/BriscoeTech/SamdAudio
Audio tracks need to play for:
1.) at least 1 track and,
2.) keep playing track after track while motion is detected
only stop playing when motion is no longer above threshold, at which point, MKRZero returns to sleep.
(if possible make the threshold for "motion" easy to change)
Needs to be written for Arduino IDE or Atmel Studio 7.
Below are some simple examples to help (if needed)
- Simple audio player MKRZero: https://www.arduino.cc/en/Tutorial/SimpleAudioPlayerZero
(This is how I wired up speaker, so code may just need copied)
- Read SD Card MKRZero: https://forum.arduino.cc/t/playing-file-from-sd-card-on-mkrzero-solved/639753
https://forum.arduino.cc/t/simple-audio-player-on-the-samd21/579947
- SAM example code MPU 6050: https://github.com/EmbeddedSam/MPU-6050/tree/master/Examples
- SAMD audio library: https://github.com/BriscoeTech/SamdAudio