Skip to content

Arduino library for MAX17048/MAX17049 1-Cell/2-Cell Fuel Gauge with ModelGauge

License

Notifications You must be signed in to change notification settings

hideakitai/MAX17048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAX17048

Arduino library for MAX17048/MAX17049 1-Cell/2-Cell Fuel Gauge with ModelGauge

Usage

#include "MAX17048.h"

MAX17048 pwr_mgmt;

void setup()
{
    Serial.begin(115200);
    Wire.begin();
    pwr_mgmt.attatch(Wire);
}

void loop()
{
    Serial.print("VCELL ADC : ");
    Serial.println(pwr_mgmt.adc());
    Serial.print("VCELL V   : ");
    Serial.println(pwr_mgmt.voltage());
    Serial.print("VCELL SOC : ");
    Serial.print(pwr_mgmt.percent());
    Serial.println(" \%");
    Serial.print("VCELL SOC : ");
    Serial.print(pwr_mgmt.accuratePercent());
    Serial.println(" \%");
    Serial.println();
    delay(1000);
}

License

MIT

About

Arduino library for MAX17048/MAX17049 1-Cell/2-Cell Fuel Gauge with ModelGauge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages