-
Notifications
You must be signed in to change notification settings - Fork 84
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
Panic when trying to read temperature #213
Comments
The training is intended for ESP32-C3-DevKit-RUST-1 which has an SHTC3 sensor, the ESP32-C3-DevKitM-1 does not contain such sensor, hence the error. |
That explains a lot. Thanks for pointing out - somehow I seem to have overlooked that. I just assumed this training would use the ESP32C3's internal temperature sensor which it seems it does not. You might be the wrong person, but do you know if there is a way to access the internal sensor (linked above) via Rust? It seems to be possible in C as linked in the example above. Perhaps you (or someone else) can answer some of my questions. |
Just saw that you opened esp-rs/esp-idf-hal#333, I will be closing this issue in favor of that one. |
Thanks, I forgot to close it yesterday evening. |
Environment:
Every time I try to read a value from the internal temperature sensor (e.g. with the http-server example) the ESP panics with
From my debugging it seems to occur when
start_measurement
is executed.I tried googling for the issue and found this issue which suggests it might be power related. I have plugged in the ESP into ports that are able to supply higher current (powerbank and phone charger), but it seems to experience the same error.
Note: Since I don't have a serial interface on those ports I used the LED to indicate statuses and the color I programmed after the measurement never showed.
I've also tried the code from here to read the temperature in the Arduino IDE, which works.
Any advice would be greatly appreciated, thanks in advance!
The text was updated successfully, but these errors were encountered: