/CP2112-Laptop-Battery-Reader

This simple program shows all the parameters of your battery within the Smart Battery Data Specification Revision 1.1

Primary LanguageCGNU General Public License v3.0GPL-3.0

CP2112-Laptop-Battery-Reader

This simple program shows all the parameters of your battery within the Smart Battery Data Specification Revision 1.1
And also some other parameters. Namely, viewing the voltage on each battery cell. Although they are undocumented in this specification, many manufacturers use them.

Screenshot

I am using Qt Creator 6.0.1
You can examine my bad code and make your changes.
Or, if you are lazy and everything suits you, download the finished release. After you unzip the zip file to a convenient location, run the exe file.

In order to connect to the battery, you will need a small board on the cp2112 chip. There are a lot of them on the Internet, on ebay, aliexpress, and possibly in a radio parts store near you. They are inexpensive, a few dollars.

cp2112

However, if you would like to delve deeper into this topic, you may be interested in purchasing an evaluation kit.

cp2112ek

I'll tell you a secret that in some cases you can get it for free. For example, for a programming classroom in your school. I only beg you, do not ask me about the details, I do not know these subtleties
And finally you need to connect GND, SDA and SСL to your battery. Be careful! Never connect these contacts to the positive terminal of the battery.