Internal pullup resistor and DS18B20 (Digital Temperature Sensor): is it possible?
Posted: Sun Sep 26, 2021 5:22 pm
Hi,
I have successfully tested a DS18B20 (Digital Temperature Sensor) with various ESP32 development boards.
I have always used an external pullup resistor of 4.7 kOhm. I have tried to replace it with the internal pullup resistor of the ESP32 without success.
I have used the instruction:
or instead
Am I doing something wrong or just the resistor value is not the right one?
Thanks for your attention,
Rafael
I have successfully tested a DS18B20 (Digital Temperature Sensor) with various ESP32 development boards.
I have always used an external pullup resistor of 4.7 kOhm. I have tried to replace it with the internal pullup resistor of the ESP32 without success.
I have used the instruction:
Code: Select all
pinMode(13, INPUT_PULLUP)
Code: Select all
#include "driver/rtc_io.h"
...
rtc_gpio_pullup_en(GPIO_NUM_13);
rtc_gpio_pulldown_dis(GPIO_NUM_13);
Thanks for your attention,
Rafael