M5stack basic core battery power on issue (ip5306 strange power management)



  • The little white label I mentioned is the date stamp (2018.3)
    Mine is 2017.6 and I don't have the issue but the black component between the chip and sdcard slot above the date stamp is gray on my model.



  • Here is a video showing the problem

    when I shut down the M5stack basic core no chance to boot again

    link text

    any idea so far ?

    Davide



  • @arzaman How about BASIC Core boots only with Type-C USB cable without BASIC bottom?



  • @m5-docs sorry but don't understand the question

    with USB Type C off course the M5 basic core boots regularly...the problem is with the battery power suppy either basic bottom or my custom expansion baord. If I shut down the M5 basic core with double clik and battery power no chance to restart

    Davide



  • Seems like the battery enters into protection mode after power off. Could you please try to pull out the battery in the bottom and plug in back in to restart the battery and try again.



  • @liushasha battery has no "protection" circuit ...all is manged by IP5306
    anyway removed and reconnected the LiPo battery (or the core bottom) few times and always same behaviour
    and more over same battery on other M5stack basic core works perfeclty

    Davide



  • HI, @arzaman, this IP5306 is i2c version, it can be programmed via the i2c protocol. Since the only problem is just the shutdown operation. the chance that the ic is totally broken on the hardware side is pretty rare. so could it be possible that you have accidentally modified the code? Would you please refresh the firmware by M5burner to exclude the software problem? Thanks



  • @liushasha maybe you refer to a different Core version (fire ??)
    My M5stack BASIC core comes with IP5306 that has no I2C interface to ESP32 (should be very very useful to have and move power management to SW level)

    here the schematic (or at lease what is public) of the power management...now SW no I2C

    0_1557354344922_93ae07c0-0a4c-4da0-802b-85772e207460-image.png

    so I assume a "faulty" core (I have two in a lot of 12)

    Davide



  • This schematic is wrong, every core is used i2c ip5306.



  • 2 out of 12? that's pretty high rate. I thought its 1 out of ten. I from M5Stack by the way. I will help you target the problem, and handle it afterward. I apologized for the bad experience.



  • Hello @arzaman, In order to confirm that if the IP5306 is IIC version on all CORE you have. It's better to download the following testing code.

    https://github.com/m5stack/M5Stack/tree/master/examples/Advanced/I2C_Tester



  • @liushasha said in M5stack basic core battery power on issue (ip5306 strange power management):

    This schematic is wrong, every core is used i2c ip5306.

    Really ? I don't know if this is a good or a very bad news...
    having IP5306 with I2C and enable SW control of power management is nice but knowing that the official schematic where I have based the design of my custom HW and development of SW is not the real one really puzzle me !

    this is the official schema on github
    https://github.com/m5stack/M5-Schematic/blob/master/Core/Basic/M5-Core-Schematic(20171206).pdf

    Is there an updated one ? are there other differences ??

    I know that M5Stack is not "open source" but without a real schema quite difficult to mange any HW/FW development

    Davide



  • @m5-docs Thanks for the suggestion... and you are right my core has I2C version of IP5306 ! Sorry if I miss it

    The bus scan found the IP5306 at address 0x75
    I upload a simple sketch to monito battery level and it works

    0_1557394841048_16b57fcb-ad0f-435d-9d35-eca3088a4578-image.png

    this is good but still don't solve my problem
    -if I power m5 core with USB all ok
    -if I disconnect USB using core bottom battery the core stays on and I can do reset with power on again
    -if I power off (double click) no change to power on again

    anything now that I can modify in IP5306 register to fix the power on ?

    Davide



  • @arzaman Really sorry about that. I do not clearly know your problem.

    "-if I disconnect USB using core bottom battery the core stays on and I can do reset with power on again
    -if I power off (double click) no change to power on again"



  • @arzaman I apologize for the misleading on schematics, it is surely our mistake, we didn't well organize all of the material. We are working on it, will have better material come out soon.



  • @m5-docs I think we can conclude that is and "HW failure of IP5306" no big issue I can use this core for the lab or for application with no battery

    maybe if you can send me a replacement or tell me where to buy the I2C version of IP5306 I can try to replace by myself

    thanks for the support anyway



  • @arzaman The IP5306 which is iic version is customized. The best way for you is to ask saler for a replacement or ask our saler for a new core or iic version IP5306. Sorry for the inconvenience !



  • @liushasha no problem...I had an old schema and did not check the note you add to the new one. Your documentation level is quite good and indeed If there is a problem I see there is quite good support on the forum and community ... in a way or another I get the info :-)

    most important that now I have more understanding of power management and the fact I can control battery via SW is very important (M5stack is perfect for portable applications battery pwered)

    could be VERY USEFUL a sort of translation of IP5306 Chinese data sheet
    there are few register that provide info but not able to unerstand the usage !!

    from various source I undertand that
    0x78 provides battery level (25/50/75/100)
    0x71 battery charging level (but not sure)
    what about the other registers ? what about control register ??

    simple table with register and functions/value will help a lot "non Chinese" speaking people
    hope to see soon in the documentation !

    thanks

    Davide



  • @arzaman Thanks. Your seriousness really touched me.



  • I got also documentation for power management

    https://docs.m5stack.com/#/en/api/power?id=getbatterylevel

    clear and comprehnesive

    all ok issue "solved"

    Davide