r/arduino • u/dvdsosa • Sep 28 '26
Solved! Arduino Uno as an SMBus tool to unbrick DJI drone batteries (BQ40Z307 BMS)
Weekend project: using a clone Uno as an SMBus master to talk to the BMS inside DJI Spark batteries and clear the "Permanent Fail" they latch after over-discharge.
- Hardware: Uno, 2 × 4.7k pull-ups on A4/A5, a 100 Ω resistor and a 12 V supply to wake the BMS. That's it.
- Sketch: SBS reads (cell voltages, temps, OperationStatus/PFStatus via ManufacturerAccess 0x00 + ManufacturerData 0x23), unseal, PermanentFailDataReset, device reset.
- Interesting bit: the PF re-latches 2–3 s after reset if a cell is below ~2.2 V, so I wrote a bash loop that "pumps" the pack past the threshold a few mV per round.
- A read-only bash dashboard (`stty` + `tput`, no Python) shows per-cell bars and logs CSV while it charges.
Repo (MIT): https://github.com/dvdsosa/dji-spark-battery-unbrick
Happy to answer questions about the SMBus side.
