[Charger] Solar Charger Module CN3063
This is a library that makes interfacing with the CN3086 or CN3083 very easy (with Arduino or cpp). The CN3086 is a lithium polymer battery charger. Charging such a battery is fairly difficult (see graph), so that’s why chips like this one exist. You can hook up for instance solar cells, that change a battery and at the same time provide current to the circuit you need. This makes using solar cells more than easy. With this library you can request the status of the chip in terms of:
-If it’s charging
-If it’s done charging
-How far the charging is (=battery voltage)
Hooking it up
In the setup in which i have used this:
You can easily define this in the code (download or see example).
This piece of code is also included in the .zip file you can download above.
int bat_stat, bat_volt;
//0= No battery
//2= Charge Complete
//3= Charge Sleeping
CN3063.getBatVolt(&bat_volt); //in mV
delay(1000); // There will be new values every 100ms