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

rafaelvf
Posts: 3
Joined: Tue Sep 07, 2021 1:49 pm

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

Postby rafaelvf » 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:

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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Sep 27, 2021 1:31 am

The internal pullup is something like 50K, which is likely too high for the DS18B20.

rafaelvf
Posts: 3
Joined: Tue Sep 07, 2021 1:49 pm

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

Postby rafaelvf » Mon Oct 18, 2021 8:53 pm

Thanks for your answer, @ESP_Sprite.
Best regards,
Rafael

Who is online

Users browsing this forum: No registered users and 71 guests