-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 internal temperature sensor not working #2422
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
That function was deprecated long ago, and the temperature sensor is no longer included in the technical manual (since 06/2018). I'd guess the fact that it always returns 128 indicates that it is obsolete. |
Hi, thank you for the fast answer. How can i read the internal temperature sensor then? Isn't there a register method to read that data directly from the registers? |
You cannot. That's what obsolete means 😄 |
For me is working, just using this code: #ifdef __cplusplus Serial.print("Temperature: "); // Convert raw temperature in F to Celsius degrees |
On new revision of chip esp32 is no present , on old yes. Check old issues. It's not affidable |
Do you me hal sensor or library method? What is not present? |
hardware temperature sensor on chip |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using Heltec Wifi Kit 32 and getting the same result as the OP. This is definitely an issue and it should be left open until resolved. |
@JZ-SmartThings file an issue with esp-idf for it. There is no supported hardware/software backing the API being requested. |
Should I start an auction for reclaimed v0 chips? |
it can not be resolved if there isn't hw !!! Close this |
Ok so apparently the new version of the chip doesn't come with an internal temperature sensor anymore so I'm closing this issue. |
see espressif/arduino-esp32#2422 (and it seems they really had a typo "temprature" in the API function while it was supported...)
…l temperature functions as Espressif have depreciated the functionality in newer silicon Reference: espressif/arduino-esp32#2422
This may be interesting to some of you. I'm testing a ESP32-WROVER-IE which contains a ESP32-D0WD-V3 and I'm not seeing 128. Seeing 126, and can consistently reduce it to 125 by blowing on it then back to 126 when I warm it with fingers. I think the temp sensor is still working even in later chip revisions. |
Probably more interesting is that the S2, C3 and S3 have fully functional temperature sensors. |
If you flash Tasmota Webserver 9.5.0 on it. it always works. using the example code above. it shows 128 or 53.33° |
I got the internal temp sensor working on esp32-s2 and esp32-c3 dev boards using the legacy temp sensor driver. Seems pretty spot on temps.
|
Realy does it work? |
C3 and S3 do have a temperature sensor.
|
New variants all have temperature sensors. The early revs of the esp32 do as well. There is a temperatureRead function in arduino core, but it will give you bad readings if you run it on an unsupported chip. |
esp32 internal temperature sensor reading 128F (53.33C) continuously with both example codes i found:
https://github.com/pcbreflux/espressif/blob/master/esp32/arduino/sketchbook/ESP32_int_temp_sensor/ESP32_int_temp_sensor.ino
https://gist.github.com/xxlukas42/7e7e18604f61529b8398f7fcc5785251
my setup:
ESP32 Dev module
QIO
4MB flash
Pochi partition scheme
80Mhz flash speed
240Mhz WiFi/BT cpu speed
psram disabled
ide used: arduino ide 1.8.5 on windows 10
i already checked issue #625 and the solution there doesn't work
thanks in advance :)
The text was updated successfully, but these errors were encountered: