GithubHelp home page GithubHelp logo

arminjo / smart-battery-module-info_for_arduino Goto Github PK

View Code? Open in Web Editor NEW
101.0 14.0 30.0 1.53 MB

Arduino sketch, which helps detecting the connections of the I2C interface and prints info available from the SMB (SmartBatteryModule) laptop battery pack.

License: GNU General Public License v3.0

C++ 89.91% C 10.09%
arduino packprobe sbm laptop battery battery-status 18650

smart-battery-module-info_for_arduino's People

Contributors

arminjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smart-battery-module-info_for_arduino's Issues

[Feature Request] Permanent Failure Clear key

Hi, this is a great tool and instantly showed what is wrong with a couple of my batteries.

Manufacturer Status (BIN): 0b10111001

  • FET Status 2
  • State: 0b1001
  • Permanent Failure
  • PFStatus: 0b100

Ive found in http://www.ti.com/lit/er/sluu313a/sluu313a.pdf on page 77 B.16 PFKey (0x62) that the permanent failure can be cleared and hopefully the batteries will be ok to use... finger crossed!

Are you able to assist with a script to clear the PF flag? or help with a few pointers?

Cheers

Print informations via uart

I don't like these Arduino LCDs, it's fragile and use much gpio. Could this software send informations via serial? It would be great!

Unseal Battery

Hi!
This is a really good project! I tried with an ASUS ML32-1005 battery of an Eee PC and the readings are good. I tried using your function to read Operation Status (0x54) and check whether the battery was sealed, but the value returned is always 0. I guess prior unsealing is required even to read this function.
I'd like to unseal the battery to do stuff like reset Cycle Count or Permanent Failure Flag. TI's SLUA 421 describes the default key (I don't know if Asus has changed it). Is it possible to perform an unseal with your code?

Compilation error

/Users/nb/Sync/platformio/projects/tests/battery_checker/Smart-Battery-Module-Info_For_Arduino/SBMInfo/SBMInfo.ino: In function 'void setup()':
/Users/nb/Sync/platformio/projects/tests/battery_checker/Smart-Battery-Module-Info_For_Arduino/SBMInfo/SBMInfo.ino:357:26: error: 'getVCCVoltageMillivolt' was not declared in this scope
myLCD.print(((float) getVCCVoltageMillivolt()) / 1000, 2);
^~~~~~~~~~~~~~~~~~~~~~
/Users/nb/Sync/platformio/projects/tests/battery_checker/Smart-Battery-Module-Info_For_Arduino/SBMInfo/SBMInfo.ino:357:26: note: suggested alternative: 'sDesignVoltageMillivolt'
myLCD.print(((float) getVCCVoltageMillivolt()) / 1000, 2);
^~~~~~~~~~~~~~~~~~~~~~
sDesignVoltageMillivolt

exit status 1

Compilation error: 'getVCCVoltageMillivolt' was not declared in this scope

Board choosen: Arduino nano (to avoid any issue)
My goal is to use an ESP32-S2 or ESP32-C3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.