A a battery capacity tester for 18650 lithium ion or lipo (possibly other battery types too) based on esp32
There is currently an issue of DAC not being able to output ZERO voltage hence it cannot shutdown properly.
Code and Schematics are attached