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

USB detection unstable, remove use to avoid ~5 hour battery life on V3. #265

Open
GuruSR opened this issue Aug 10, 2024 · 0 comments
Open

Comments

@GuruSR
Copy link

GuruSR commented Aug 10, 2024

Due to the ESP32S3 causing the USB detection (and other pins) to become "HIGH" on boot for ~500ms, the test to see if the unit is plugged in will always say "1" (True, "HIGH"). Upon deep sleep, the test if the USB was plugged in will ask for the USB detection pin to be "LOW" as a Wake from Deep Sleep signal. When the ESP32S3 enters Deep Sleep, the USB detection pin will be "LOW" and the ESP32S3 will wake up again and repeat this process all over again.

Comment this line out (102 in Watchy.cpp) or expect a ~5 hour battery life:

esp_sleep_enable_ext0_wakeup((gpio_num_t)USB_DET_PIN, USB_PLUGGED_IN ? LOW : HIGH); //// enable deep sleep wake on USB plug in/out

This was a thought I had to check the battery charge indicator, but found out that this caused repeated wake ups non-stop, once I was able to physically test it. This sense line is unusable until after ~500ms from wake up, making it impractical.

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

1 participant