Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hideakitai/max17048
Arduino library for MAX17048/MAX17049 1-Cell/2-Cell Fuel Gauge with ModelGauge
https://github.com/hideakitai/max17048
Last synced: 2 days ago
JSON representation
Arduino library for MAX17048/MAX17049 1-Cell/2-Cell Fuel Gauge with ModelGauge
- Host: GitHub
- URL: https://github.com/hideakitai/max17048
- Owner: hideakitai
- License: mit
- Created: 2018-04-09T04:07:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T04:04:13.000Z (almost 4 years ago)
- Last Synced: 2024-03-16T10:35:04.588Z (8 months ago)
- Language: C++
- Size: 5.86 KB
- Stars: 8
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MAX17048
Arduino library for [MAX17048/MAX17049](https://www.maximintegrated.com/en/products/power/battery-management/MAX17048.html) 1-Cell/2-Cell Fuel Gauge with ModelGauge
## Usage
```C++
#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