DIY battery BMS