TTGO-TAudio icon indicating copy to clipboard operation
TTGO-TAudio copied to clipboard

Battery

Open CanMark opened this issue 5 years ago • 4 comments

Hi, I wonder do you know what battery should be connected to this board. I have tried a 3.7v lipo but it does not appear to work. Thanks, Mark

CanMark avatar Jun 22 '19 16:06 CanMark

Battery is working but IP5306 key is off ( You can try to connect pin_5 of ip5306 connect to GND and battery power will start But, unfortunately it will stop again in 1 minute ((

vvs551 avatar Jul 09 '19 08:07 vvs551

So it should work off a 3.7v battery?

Are you suggesting that I connect the battery to a couple of pins on one of the chips on the board?

CanMark avatar Jul 10 '19 17:07 CanMark

I have the same problem with the battery always turns off after 35 seconds. (Programming with arduino on platform.io). Does anyone have a clue?

who4you avatar Jul 28 '19 07:07 who4you

In order to solve this issue for my board, I connected (soldered wires) pin IO23 (of ESP32) to pin LED2 (of IP5306) and pin IO5 to pin LED1.

My IP5306 supports I2C, so I was able to add this code in my setup() or main() methods: bool ok = setPowerBoostKeepOn(true);

and this is the function that I took from the M5stack project: bool setPowerBoostKeepOn(bool en){ uint8_t data; Wire.beginTransmission(IP5306_ADDR); Wire.write(IP5306_REG_SYS_CTL0); Wire.endTransmission();

if(Wire.requestFrom(IP5306_ADDR, 1))
{
    data = Wire.read();

    Wire.beginTransmission(IP5306_ADDR);
    Wire.write(IP5306_REG_SYS_CTL0);
    if (en) Wire.write(data |  BOOST_OUT_BIT); 
    else    Wire.write(data &(~BOOST_OUT_BIT));  
    Wire.endTransmission();
    return true;
}
return false;

}

renebohne avatar May 18 '20 21:05 renebohne