Things used in this project

Hardware components:
Osh park
OSH Park Custom fabricated PCB
×1
Microchip MCP73871
×1
Maxim Integrated MAX17043 - LiPo Fuel Gauge
×1
Texas Instruments TPS63020
×1
4700uF Electrolytic Capacitor
×1
SeeedStudio 3W Solar Panel
×1
10k Thermistor 0805
×1
Mini-USB Socket
×1
2.05mm Barrell Connector
×1
JST Connect
×1
Schottky Diode 1A
×1
2.2uH Inductor - 3.5A - 29.9mOhm
×1
22uF 16V 0805 Capacitor
×1
Various 0805 Caps, Resistors, LEDs - See Schematic
×1
SparkFun 2000mAH LiPo Battery
×1

Schematics

EAGLE Schmatics and Board Layout
System Schematics
Screen shot 2017 05 08 at 2 52 23 pm 2yuetgreau
Board Layout
Board layout image
Screen shot 2017 05 08 at 2 50 11 pm fwelhtj5lm
MAX74043 DataSheet
Datasheet for Fuel Gauge
Microchip MCP73871
Datasheet for Charge Controller
TPS63020 Power Supply Data Sheet
Datasheet
Link to EAGLE Files on Github
These files were made using EAGLE version 8

Code

LiPo Fuel Guage Example CodeC/C++
in Arduino to poll the Maxim LiPo Fuel guage and get the state of charge
#include "MAX17043.h"
#include "Wire.h"

MAX17043 batteryMonitor;

void setup() {
  
  Wire.begin(); 
  Serial.begin(9600);
  Serial.println("MAX17043 Example: reading voltage and SoC");
  Serial.println();
  
  batteryMonitor.reset();
  batteryMonitor.quickStart();
  delay(1000);
  
  float cellVoltage = batteryMonitor.getVCell();
  Serial.print("Voltage:\t\t");
  Serial.print(cellVoltage, 4);
  Serial.println("V");

  float stateOfCharge = batteryMonitor.getSoC();
  Serial.print("State of charge:\t");
  Serial.print(stateOfCharge);
  Serial.println("%");
}

void loop() {    
}

Credits

Img 20140919 080037
Chip McClelland
6 projects • 76 followers
I build connected sensors.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog