Arduino-esp32: Change Arduino SDK

Created on 11 Sep 2017  路  5Comments  路  Source: espressif/arduino-esp32

Hi! I using idf-component to use this mcu (to change sdk configs in arduino ide) and I can't find how to read temperature sensor. How can I do this ?

ps: I tryed app_main with and without InitArduino(), both worked. What this function do ?
----------------------------- Remove above -----------------------------

Hardware:

Board: ESP32 DoIt Nodemcu
Core Installation/update date: ?11/jul/2017?
IDE name: IDF component with Arduino boot
Flash Frequency: 80Mhz
Upload Speed: 115200

Most helpful comment

There are some examples from @pcbreflux here: https://github.com/pcbreflux/espressif/blob/master/esp32/arduino/sketchbook/ESP32_int_temp_sensor/ESP32_int_temp_sensor.ino

Also a video explaining the things: https://www.youtube.com/watch?v=d57LKkHCVgI

PS: here has a discussion of how accurate it is and what is the best way to read the internal temperature: https://github.com/espressif/esp-idf/issues/146

All 5 comments

@urbanze what temperature sensor?

image

This sensor, from technical_reference datasheet.

There are some examples from @pcbreflux here: https://github.com/pcbreflux/espressif/blob/master/esp32/arduino/sketchbook/ESP32_int_temp_sensor/ESP32_int_temp_sensor.ino

Also a video explaining the things: https://www.youtube.com/watch?v=d57LKkHCVgI

PS: here has a discussion of how accurate it is and what is the best way to read the internal temperature: https://github.com/espressif/esp-idf/issues/146

Oh, the secret of temperature sensor is "extern "C" "........ I forgot this -_-. Thank you for reply, see you later :D

See you =)

Was this page helpful?
0 / 5 - 0 ratings