Hi all, for my interactive art piece Iam making mp3 player which starts playing random track after IR sensor detects obstacle.
My gear is Arduino micro, Adafruit VS1053, TCRT5000 IR Sensor, 18W amp and 3W speaker. All of this must be powered from battery (smaller is better).
Everything works, but my 9V battery last just a few hours. And I need it to work at least few days in a row.
Iam thinking about sleep mode for Arduino, can't find informations about sleep mode for Adafruit VS1053.
Is it possible that the information from IR sensor will wake the Arduino and at the same time will start playing track via VS1053?
I was also thinking if its possible to set the TCRT5000 IR Sensor to be active for example just every 2 seconds? This could also lower consumption of energy.
If you have any ideas how to optimize the power consumption, please write me. Iam struggling with this project so long and this is the (I hope) last problem which I need to solve.
You could wake up arduino with interrupt.
Then a mosfet can be turned on to feed player and amplifier.
Sensor would need to be always on to wait for the trigger...
I changed amp to LM386 which has Current : 4 mA and smaller 3W speaker and the sound result is pretty the same. Now I need to find out how to measure power consumption of Arduino with all components, when playing and not playing track.
I attached it following the picture, the wire from COM - to VIN on Arduino (I hope that's right, I also tried attached it to 5V on Arduino). And the result was 0,54 - both VIN or 5V (on the same multimeter setting - mA).
I checked also the data sheets to each component and yes, each of them has current 20mA or more.