I have also tried GPIO13, GPIO27 and GPIO33.
The board is a TTGO T5 2.9 inch display ESP32.
I have tried in both normal mode and parasit mode. With and without the pullup resistor (read some posts that it could work).
Tried two different Dallas sensors.
Current wiring (this is temporary, just to get proof of concept):
As you can see, no resistor. But when it was connected, it was bridged between red and orange on the “up” side, the resistor has been measured with a multimeter 3.3 Kohm.
I use it with a 4K7 resistor and they work well.
I have several of them in operation on ESP and I use 3.3V power supply.
Do you have the power connected properly? What pins do you use for ESP?
I have. As stated in the first post, the resistor is bridged between red and orange cable.
I have also tried with GPIO13 no difference.
A 5 volt 2 A power supply connected to USB of ESP then using the pins to the sensor.
3.3 volt pin does not seem to work on the board. It only gives millivolts. The 5 volt pin gives 4.4 volt, so that is the one I use.
And GPIO13.
I could connect one wire to ground and probe around on the pins until I got a response in the log.
It seems GPIO13 is actually in the position where GPIO34 is in the pinout.
But using that pin, a 4.7 KOhm resistor and parasite mode still gives me no sensor found.
This make no sense I don’t see how attaching the Vin to ground is going work. Do you have any other esp boards just to try the sensor on another platform. This shouldn’t be this complicated at this point I’d lean towards the board being incompatible. The other thing is set debug level to VERY_VERBOSE and post the output.
There are some separate part numbers for parasitic operation, they end in -par. I don’t know that they are interchangeable. Which version do you have? Also are they DS18S or DS18B. It seems to me in the pdf’s, in parasite mode, the red on the sensor is not connected to anything.
I have tried to set an index be t that does not work either.
I can try it again on the “new pin”.
And I will try to connect it normal mode also and see what happens.
Lastly i will find another ESP and try it there.
Maybe I won’t have time for it all tonight but we’ll see.
Ok… If someone else has this issue, here is your problem.:
The pinout diagram is wrong on the TTGO T5 2.2 version.
If you only need one pin I suggest GPIO13. It’s the fourth pin from the SD card reader on the inner row.
Do not use parasite mode, connect it in normal mode.
5 volt on Vin.
GND och GND
Data -> 4.7 KOhm -> Vin
The sensor looks like a PT100 sensor based on the name and there is not mention that is DS18b20 in the link.
That is a calibrated resistive sensors and not a Dallas one wire sensor. So that will not work.