GithubHelp home page GithubHelp logo

christophs70 / cp2112_demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickdademo/cp2112_demo

0.0 1.0 0.0 206 KB

Demo code for reading SMBus battery parameters using the Silicon Labs CP2112 board.

C 100.00%

cp2112_demo's Introduction

cp2112_demo

  • Ensure SDA and SCL lines are pulled-up to a voltage which is compatible with that of the target battery interface.
  • Setting J7=VIO pulls up the bus to 3.3V - this should be compatible with the majority of applications.
  • If you require a different bus voltage:
    • Set J7=EXT_PU and connect TB1(EXT_PU) to the battery interface voltage.

Program Output:

Device successfully opened.
Device successfully configured.
Voltage = 16403 mV
Current = 74 mA
RSOC = 97 %
Remaining Capacity = 5709 mAh
Average Time to Empty = 738 min(s)
Manufacturer Name = INSPIREDE
Charger connected.
Done! Exiting...

Tools/Environment:

cp2112_demo's People

Contributors

nickdademo avatar

Watchers

James Cloos avatar

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.