MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.35k stars 397 forks source link

feat: Add INA219 battery sensor #2380

Closed saeugetier closed 3 months ago

saeugetier commented 4 months ago

Add an additional battery sensor: The INA2019 is a very commonly used battery sensor. This allows to measure the battery voltage and shut down the PRI Jukebox on low battery.

s-martin commented 4 months ago

Hi, thanks for this addition!

We will look into it and get back to you shortly.

saeugetier commented 3 months ago

Thanks for this addition. I am not super familiar which battery to chose so I always use a consumer battery pack, but then I am lacking the battery monitor. I'd love to see your set up and types of battery used and how everything is assembled. I guess this could also be great in the documentation

I think this battery monitor can be used with consumer battery packs. The ADC measures the voltage of the battery. If you have access to the raw voltage of the battery, then the battery can be monitored.

pabera commented 3 months ago

I think this battery monitor can be used with consumer battery packs. The ADC measures the voltage of the battery. If you have access to the raw voltage of the battery, then the battery can be monitored.

I have a simple USB cable from my battery pack to the Raspi. If I cut the cable and put the sensor in between, this should work it seems.

s-martin commented 3 months ago

Thanks for your contribution! 🎉