laszlodaniel / SmartBatteryHack

Arduino based hacking tool for smart batteries using SMBus.
GNU General Public License v3.0
149 stars 54 forks source link
arduino gui hacking smart-batteries smbus

SmartBatteryHack

This is a hacking tool for smart batteries using SMBus. Originally written for a Dell J1KND battery that uses a BQ8050 fuel gauge IC.

Arduino folder contains the source code for an Uno/Mega which acts as an interface between the battery and an external computer. The I2C pins are connected to the smart battery's SDA/SCL pins with pullup resistors (4.7kOhm to 5V). The battery's ground pin has to be connected to the Uno/Mega's ground pin. Additionally the battery's "system present" pin may need to be grounded too (through a 100-1000 Ohm resistor). You need to install the SoftI2CMaster library to be able to use this sketch.

GUI folder contains the C# source code and compiled binary for an external computer (Windows 7 and up) written in Visual Studio 2019.

Check the Wiki for tutorials.

GUI 01

GUI 02

Battery connection

More info about this project:
https://boundarycondition.home.blog/2020/01/18/the-repairing-and-hacking-of-a-dell-j1knd-bq8050-laptop-battery/