I was wondering if a pull-up resistor is needed when connecting the DS18B20 to the NodeMCU. I stumbled upon an article that shows that you can eliminate it and was wondering if others have had success. I have not had the chance to test this (been rather busy with the day job) but will once I get the chance.
Article -
https://wp.josh.com/2014/06/23/no-exter ... mp-sensor/
Connecting the ds18b20 | Pull-up resistor needed?
Moderators: grovkillen, Stuntteam, TD-er
Re: Connecting the ds18b20 | Pull-up resistor needed?
I have to 18b20 in use already for a long time and yes I use a pull-up resistor. without it was not stable or sometimes it did not work. Advise from me, use a resister to prevent troubles!
Re: Connecting the ds18b20 | Pull-up resistor needed?
The article mentions that the data line pullup resistor can be omitted in special circumstances (Low Dallas device count, short cable lengths). It's a solution that uses the ESP module's programmable internal weak pullup (~50K ohms) that can be enabled on a I/O pin. Ideal for those users that want to save $0.01 USD (1 penny).
However, ESPEasy's DS18B20 plugin does not enable the internal weak pullup resistor. So spend the extra penny and install the external 4.7K ohm value that is recommended by Dallas.
- Thomas
However, ESPEasy's DS18B20 plugin does not enable the internal weak pullup resistor. So spend the extra penny and install the external 4.7K ohm value that is recommended by Dallas.
- Thomas
Re: Connecting the ds18b20 | Pull-up resistor needed?
Good deal. I have a resistor installed and it's working fine. The only real reason I was looking towards this is because of saving space on my perf board. I'm using one of those little dev Wemos D1 Mini shields that lets you build on. Not a heck of a lot of room there
Who is online
Users browsing this forum: No registered users and 38 guests