I testing out DS18B20 temperature sensor and it works fine, but when i added the 4k7 resistor that everybody says you should use, my system looses almost all power.
My LCD bearly light up and when i press on reset button (EN) on my ESP32, nothing happens. When i take 4k7 resistor away, all works fine, but temperature is not showing dough.
My system uses totaly before adding DS18B20 around 200mA in peaks and around 100mA as general.
i guess i can add a smaller resistor, but why does all preferred to use 4K7?
I do not have schematic for now. But i put the resistor between VCC and digital leg. It works, but i can see my LCD almost shuts off when i add resistor.
My ESP32 gets 5v from external power via VIN pin. +5v and GND from extarnal Power is connected to the board. Before VIN pin i connected the +5V and ground to DS18B20. DS18B20 shares ground with the board and gets 5V from external power.
Digital pin is connected from the board to the middle pin, with 4k7 resistor between digital and VCC.
This works and i can see temperature reading, but my display looses almost all backlight and flickering. When i remove the 4k7 resistor, my display is normal again.
Bjerknez:
My ESP32 gets 5v from external power via VIN pin. +5v and GND from extarnal Power is connected to the board.
I assume you don't use a bare ESP32 module, but some board with ESP32 module (metal square) on it.
If so, then that board has a voltage regulator that converts 5volt V-in into 3.3volt for the ESP module.
The DS18B20 should also be powered from that same regulator (the 3.3volt pin of that ESP board).
When the lights dim with a 4k7 resistor, then it's probably not a 4k7 resistor (yellow, violet, red, gold).
That's why I requested a real picture of the setup.
Leo..
Edit: I see that you already posted pictures of your ESP project in another thread of the forum.
Spreading your project across several threads wastes people's time, and is against forum rules.
Good luck.
I'm out.
Bjerknez:
Ok, so i can’t power a DS18B20 externally and same time read the sensor with ESP32?
Even when they are grounded together?
Of course you can, but read the previous answers you have had. The device is a 3.3V device, not a 5V device. Therefore you need to present it with 3.3V, it doesn't matter if that is an internal supply or an external supply.