ronau / hoerbert-clone

Audio player for kids inspired by the original called Hörbert
MIT License
9 stars 0 forks source link

Help request on cloning the clone #1

Open tvwerkhoven opened 2 years ago

tvwerkhoven commented 2 years ago

Hi @ronau,

I'm considering making my own version, and hope you can give some pointers.

  1. What determines battery life most? Is it electronics or speaker? Where could this be improved?
  2. Any ideas on how to implement an 'auto off switch'?
  3. I'm aiming for 9 buttons, any way to get this working on the lily pad?

My plan is to use ESP8266/ESP32 + dfplayer + esphome.io with wifi off, optionally using an MCP230xx expander for buttons if I can't find enough GPIOs on the ESP. My main concern/uncertainty is battery life, hope you have some ideas :)

ronau commented 2 years ago

Hi @tvwerkhoven,

sorry for completely missing your comment here. To be honest, I don't have that much experience with electronics (yet 😉), so I cannot really answer confidently.

  1. As far as I can see, there's not so much you can tweak on the speaker side. Except for keeping the volume low, of course. So in the end, it's probably the electronics where you can try to reduce battery consumption. With an ESP you definitely have to switch off wifi and bluetooth if you want to get reasonable battery time.
  2. I'm not sure what the usual boards offer in that regard. AFAIK there's something like deep sleep which could be worth investigating.
  3. The Lilypad has 5 GPIOs on the outer edge. And then there are 6 additional headers in the center, normally used by the rotary encoder. Check out: https://learn.sparkfun.com/tutorials/getting-started-with-the-lilypad-mp3-player#hardware-details-and-hacking-tips. These center pins have hard-wired resistors, so you have to try if they fit your purpose. I used 3 of them for volume and fast-forward/rewind. So if you drop FF/REW, then you should have enough pins for 9 buttons.