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

[TW#15834] ulp_adc current measurment is not correct #1108

Closed
baoshi opened this issue Oct 12, 2017 · 3 comments
Closed

[TW#15834] ulp_adc current measurment is not correct #1108

baoshi opened this issue Oct 12, 2017 · 3 comments

Comments

@baoshi
Copy link

baoshi commented Oct 12, 2017

In the examples\system\ulp_adc
The claimed current draw @ 10Hz is 80uA
I found it is can be much less at round 39uA (below scope capture from uCurrent, 1mV=1uA)
ds1104z_ds1za185054406_2017-10-12_09 04 07
This is possibly because GPIO15 has internal PU enabled but the pin is grounded to suppress boot message.
Add
rtc_gpio_pullup_dis(GPIO_NUM_15);
at beginning of the code resolves this issue.

@igrr
Copy link
Member

igrr commented Oct 12, 2017

Just to clarify, do you get 39uA with or without this extra rtc_gpio_pullup_dis line?

@baoshi
Copy link
Author

baoshi commented Oct 12, 2017

Without rtc_gpio_pullup_dis, with GPIO15 tired to gnd-> 80uA
With rtc_gpio_pullup_dis, without GPIO15 tired to gnd -> 39uA
With/without rtc_gpio_pullup_dis, GPIO15 floating -> 39uA

@negativekelvin
Copy link
Contributor

negativekelvin commented Oct 12, 2017

Avg current with spikes probably at least +10uA?

@FayeY FayeY changed the title ulp_adc current measurment is not correct [TW#15834] ulp_adc current measurment is not correct Oct 16, 2017
@igrr igrr closed this as completed in dec4a86 Nov 13, 2017
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

3 participants