1. Telemetry

INA219-based battery current and voltage measurement.

Trapezoid integration for total charge (current × time) and energy (power / time) totals

2. MCU communication with sensors

I2C rules the day