jakkra / ZSWatch

ZSWatch - the Open Source Zephyrâ„¢ based Smartwatch, including both HW and FW.
https://forms.gle/G48Sm5zDe9aCaYtT9
GNU General Public License v3.0
2.36k stars 205 forks source link

Is there a glitch when LDO cut-off by the voltage supervisor? #19

Closed sam0910 closed 1 year ago

sam0910 commented 1 year ago

It is a Great Project :) I'd like to try, but I have question about the battery supervior.

When the battery goes down to 3.6V -> NCV(supervisor) RESET_OUTPUT to low -> Disable LDO(CE), Turn off MCU.

For charing battery, VBUS connected -> charge battery -> if +BATT>3.6 turn LDO on by NCV

what if LCD BL and MCU drain more than charged capacity(might be low current VBUS), is there no glitch, like turn on and off in a loop?

jakkra commented 1 year ago

Hi, thanks for the consern, I did not really think of this.

So let's see: First off USB should deliver at least 100mA per specification if I understand correctly. Worst case power consumtion of the PCB should be less than 100mA always.

But assuming we don't charge with 100mA, which IMO is not normal use, the most important thing is that nothing breaks.

So what will happen: The watch may turns on-off repeatedly, this is not an issue, nothing will break. However draining the battery is, BUT the battery I use, and many others have built in under-discharge-protection (althought often at too low voltage for the best battery health, hence I have this extra (battery supervisor) on the PCB), this internal battery protection should trigger and battery will not be harmed, unless leaving the watch like this for a long time.

So I think it should be fine, what do you think @sam0910?

sam0910 commented 1 year ago

It will be fine for me, and I think there will be no breaks at all. it understood there is a small chance for glitching,

I think this is most reliable project among all other open source project. First of all, they don't care about battery life and consumptions. I found most of them using $0.1 IC(TP4065) for battery charging.

LDO drains only from the battery that makes charging slow, I am just a web developer and asking your good opinion, so what about adding some switcher like below?

power_sw_mosfet

jakkra commented 1 year ago

Thanks, I'll take this into consideration when doing next major version, I'm going to replace the charger and regulator with this one https://www.nordicsemi.com/products/Npm1100 so I'll see what more is needed than that.

sam0910 commented 1 year ago

That is great! it seems it's got LDO.