disk91 / WioLoRaWANFieldTester

86 stars 32 forks source link

DIY with Wio Battery Chassis #51

Open AkosLukacs opened 2 years ago

AkosLukacs commented 2 years ago

With this change someone with a DIY RFM95 and a Wio battery pack can read the state of charge from the Wio battery pack. Why: when I assembled mine, the MCP73831 and suitably sized LiPo was out of stock everywhere. Maybe not an issue now, but maybe helpful for some...

Usage: in config.h set HWTARGET to RFM95 and uncomment the WITH_WIO_BATTERY_PACK line. #define HWTARGET RFM95 #define WITH_WIO_BATTERY_PACK 1

Tested with my DIY with Wio battery pack and without the Wio battery pack. Works both ways, only difference is battery voltage display shows 0V, if no Wio battery pack is installed.

Also a small tweaks on the GPS / status screen: before if GPS signal was weak, the battery voltage was also in red/orange. Now the battery voltage follows the state of charge colors like in the in the battery gauge line.

Example with no GPS signal (not visible on the image, but this is a DIY with Wio battery pack): 20220820_094018

disk91 commented 2 years ago

Thank you for the contribution, it's a great addition. I'll make some little change, so this is why I did not yet merged:

disk91 commented 1 year ago

thank you for the contribution. I'm a bit late making a new version but it will come soon ;)