Page 1 of 1

Internal pullup resistor and DS18B20 (Digital Temperature Sensor): is it possible?

Posted: Sun Sep 26, 2021 5:22 pm
by rafaelvf
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:

Code: Select all

pinMode(13, INPUT_PULLUP) 
or instead

Code: Select all

#include "driver/rtc_io.h"
...
rtc_gpio_pullup_en(GPIO_NUM_13);
rtc_gpio_pulldown_dis(GPIO_NUM_13);
Am I doing something wrong or just the resistor value is not the right one?

Thanks for your attention,

Rafael

Re: Internal pullup resistor and DS18B20 (Digital Temperature Sensor): is it possible?

Posted: Mon Sep 27, 2021 1:31 am
by ESP_Sprite
The internal pullup is something like 50K, which is likely too high for the DS18B20.

Re: Internal pullup resistor and DS18B20 (Digital Temperature Sensor): is it possible?

Posted: Mon Oct 18, 2021 8:53 pm
by rafaelvf
Thanks for your answer, @ESP_Sprite.
Best regards,
Rafael