Hello,
I'm trying to read the internal temperature sensor using a simple ulp code.
I use Tsens instruction to read the temperature, and the return of the read is about 117.
Does it mean that is 117°C, or a conversion need to be done ?
I red that the temperature range of the internal temperature sensor is -40°C to +125°C, so I a value of 117 seems very curious.
Thank you in advance for your help.
Regards.
Tsens ulp instruction
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Tsens ulp instruction
It would need scaling, but note that as the temperature sensor in the ESP32 is unreliable at best and misleading at worst, we don't really support it anymore.
Re: Tsens ulp instruction
I've tried using this instruction as I was under the impression that it still worked, as per the latest datasheet:
ESP32-S3
https://www.espressif.com/sites/default ... ual_en.pdf on page 317
and
ESP32-S2
https://www.espressif.com/sites/default ... ual_en.pdf on page 41
Both documented the instruction. However,
https://github.com/espressif/esp-idf/bl ... 32s2/ulp.h
The github for ESP-IDF ULP components says otherwise, indicating that it is "(not implemented yet)".
ESP32-S3
https://www.espressif.com/sites/default ... ual_en.pdf on page 317
and
ESP32-S2
https://www.espressif.com/sites/default ... ual_en.pdf on page 41
Both documented the instruction. However,
https://github.com/espressif/esp-idf/bl ... 32s2/ulp.h
The github for ESP-IDF ULP components says otherwise, indicating that it is "(not implemented yet)".
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Tsens ulp instruction
You're replying to a 4-year old thread; I was talking about the 'original' ESP32 (no -S or -C suffix). I think it's indeed supported again on later chips. I guess we didn't bother to implement it in the ULP toolchain yet, though.
Re: Tsens ulp instruction
Oof, my mistakeESP_Sprite wrote: ↑Fri Apr 12, 2024 2:28 amYou're replying to a 4-year old thread; I was talking about the 'original' ESP32 (no -S or -C suffix). I think it's indeed supported again on later chips. I guess we didn't bother to implement it in the ULP toolchain yet, though.
I'm assuming there's no other way to read the temperature sensor in ULP-FSM then
Who is online
Users browsing this forum: JustVic and 87 guests