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

core voltage is too high for ESP32 ADC measurement #10

Closed
skot opened this issue Nov 25, 2023 · 3 comments
Closed

core voltage is too high for ESP32 ADC measurement #10

skot opened this issue Nov 25, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@skot
Copy link
Owner

skot commented Nov 25, 2023

The ESP32 measures the ASIC core voltage (TPS40305 output) via an ADC pin. 4.5V is too high to measure directly. put a voltage divider in there.

@skot skot added the bug Something isn't working label Nov 25, 2023
@skot skot self-assigned this Nov 25, 2023
@macphyter
Copy link
Collaborator

I changed this input to a voltage divider, and I used two 10K resistors as placeholders until I could go figure out the real values. Looks like I forgot to set the new values. Keeping this issue open until I do that.

@skot
Copy link
Owner Author

skot commented Dec 18, 2023

How about 100k and 226k for a 0.7 voltage divider? this makes VDD_SAMPLE = 2.5V for VDD = 3.6V and VDD_SAMPLE = 3.12V for VDD = 4.5V

@macphyter
Copy link
Collaborator

I chose 69.8K and 182K just because we are already using those values and we wouldn't have to add any unique parts to the BOM. This gives us VDD_SAMPLE = 2.6V for VDD = 3.6V, and VDD_SAMPLE = 3.25V for VDD = 4.5V.
In any case, its a simple resistor swap to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants