Other Parts Discussed in Thread: BQ24250
Hello,
I've ordered a BOOSTXL-BATPAKMKII for testing.
Using the USB Charge TP, i feed 5V/2A from a DC power supply to charge a 2200 mAh battery. I've tested so far the configurations :
- In standalone, i get 500mA set by the Riset resistor
In I²C, to control the charge current I've made so that there's a current ramp going from 500mA to 1500mA every 3 seconds with steps of 50mA.
Here's my snippet of the code used (Arduino) :
void setup() {
while(!Serial);//setup Serial port for arduino M0
Serial.begin(115200);
BQ24250obj.begin(addrBQ24250);
BQ24250obj.setRegister2(128); //reset bq24250
BQ24250obj.setRegister1(0); //disable WD timer
BQ24250obj.setRegister3(100); // max charge voltage at 4V.
BQ24250obj.enableCharging();
setupBQ27441();
delay(3000);
}
void loop() {
for (int i = 0; i<16;i++)
{
BQ24250obj.setRegister4(8+i*8);
BQ24250obj.setRegister3(100);
BQ24250obj.setRegister5(7);
Serial.println((unsigned)BQ24250obj.readRegister1()&0xFF);
Serial.println((unsigned)BQ24250obj.readRegister2()&0xFF);
Serial.println((unsigned)BQ24250obj.readRegister3()&0xFF);
Serial.println((unsigned)BQ24250obj.readRegister4()&0xFF);
Serial.println((unsigned)BQ24250obj.readRegister5()&0xFF);
printBatteryStats();
delay(3000);
}
}
The value of the register that i read during charge are :
Reg 1 : 16
Reg 2 : 236
Reg 3 : 100
Reg 4 : (varies from 8 to 128)
Reg 5 : 7
Everything works fine going from 500mA but when i reach a current command of 750mA (Reg 4 = 40), the current starts to overshoot at 1.2A and ignores all the remaining I²C commands until it goes back to 500mA.
Powering via the TP or the micr-USB using a 10W charger yields the same results.
Thanks for the help.