-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Chip Temperature with ESP.getChipTemp() #7185
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
Comments
Thanks @savejeff - We will analyze and consider your proposal! |
@P-R-O-C-H-Y, would you like to evaluate it? |
Thx ;] There is improvement potential with the timeout. I have not checked what the real "time to ready" is and if it is a fixed time that can just be waited for to avoid deadlock without extra variables and code. |
Hi @savejeff, you can take a look into file esp32-hal-mics.c where the function Where have you read "this is not implemented yet" please? :) |
Hi! I did some web research before implementing it and found no information. some threads I read suggested it was not yet implemented. when trying to use the temperatureRead function the compilation failed giving me this error:
the code likely does not work out of the box for arduino My original proposal was about adding a new function to the ESP class to make it easier to access the function as well as make code more clean. The code i proposed was only an example to possibly help with an implementation. |
@savejeff What version of ESP32-Arduino core do you use? |
I originally test this on PlatformIO with the latest core version (equivalent to Arduino 2.0.4) But i tested this also with Arduino IDE with the latest core version 2.0.4 and I'm getting the same linker error:
here the scetch:
Even when temperatureRead works, i don't think that is a good solution for Arduino users, as the function name is very un-specific and does not suggest that the cpu/chip temperature is read. |
Yes you are right, I see same compilation issue on 2.0.4. However on master branch, its already fixed. So in 2.0.5 it will be available for ESP32S3. But I am getting some weird temperatures read, I will test it more further and find the issue. If you can, please retest it in Arduino IDE with ESP32 core master branch :) |
What board are you using? temperature readings seem to not work with my devkit boards but with the wroom module i have on a customer layout. about the master branch, i don't use the Arduino IDE (only to check before i start an issue on github). Thus i also don't know how to switch the arduino branch and also would like to avoid breaking the Arduino IDE. as far as i know there is no way to switch to a newer version in PlatformIO before a new release |
It needs this IDF commit or later for building the Arduino libs to get correct S3 temp readings |
Imho, this can be closed. Internal temp sensor is measuring the Chip temperature. |
jup if the code is includede in the latest release. |
Related area
System/Chip
Hardware specification
ESP32-S3
Is your feature request related to a problem?
no
Describe the solution you'd like
i propose a new getter function to the ESP class to get the chip internal temperature.
here is an example function to read the chip internal temperature sensor:
Improvements might be to check the offset value as described in TRM on page 1164
Describe alternatives you've considered
to my knowledge the is no hal function implemented to read the internal temperature sensor from the main processor
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: