Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery #7

Open
CanMark opened this issue Jun 22, 2019 · 4 comments
Open

Battery #7

CanMark opened this issue Jun 22, 2019 · 4 comments

Comments

@CanMark
Copy link

CanMark commented Jun 22, 2019

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

@vvs551
Copy link

vvs551 commented Jul 9, 2019

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 ((

@CanMark
Copy link
Author

CanMark commented Jul 10, 2019

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?

@who4you
Copy link

who4you commented Jul 28, 2019

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?

@renebohne
Copy link

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;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants