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

Improve battery during Infinite-ReConnect #151

Open
gkoh opened this issue Jan 3, 2025 · 4 comments
Open

Improve battery during Infinite-ReConnect #151

gkoh opened this issue Jan 3, 2025 · 4 comments

Comments

@gkoh
Copy link
Owner

gkoh commented Jan 3, 2025

@hijae I had a thought with improving battery life when using Infinite-ReConnect.
The default connect timeout is 30s, this means the device will continuously attempt connect for 30s, thus the duty cycle is effectively 100%.

What if, during Infinite-Reconnect, we reduce the connect timeout to, say, 10s.
And sleep for, say, 10s, this would reduce the duty cycle to 50%.
This should improve lifetime somewhat (although GPS looks like quite a large power sink).

We could adjust the numbers to ensure responsive to the camera going active (ie, you don't want to wait 60s for the next connect attempt).

@hijae
Copy link
Contributor

hijae commented Jan 16, 2025

I think it's a great idea, because I'm using 18650 HAT(M5StickC 18650C) to get more battery life.

@gkoh
Copy link
Owner Author

gkoh commented Jan 16, 2025

I think it's a great idea, because I'm using 18650 HAT(M5StickC 18650C) to get more battery life.

This one?
https://shop.m5stack.com/products/m5stickc-18650

If so, that's 2200mAh, for a total of 2400mAh.

Just to check our understanding ...
Based on my testing, GPS + connecting uses somewhere around 50-100mA (it seems to fluctuate a lot depending on which phase of the connect is happening).
If we average this to, say, 75mA, you would get ... 32 hours of continuous run.
Have you seen this?

@hijae
Copy link
Contributor

hijae commented Jan 17, 2025

I've used it for about 12 hours straight, but if you need a longer test, I'll do it.

@gkoh
Copy link
Owner Author

gkoh commented Jan 17, 2025

I've used it for about 12 hours straight, but if you need a longer test, I'll do it.

Not necessary, but thank you for offering.
I was interested in whether the current draw estimates were accurate or even realistic.

I will work on this change, 10 seconds connect, 10 seconds sleep, during multi-connect.

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

2 participants