Page 1 of 1

ds18b20

Posted: 12 Feb 2023, 12:48
by edstobi
Hello
I have a wt32 eth01 with ESP_Easy_mega_20221224_normal_ESP32_4M316k_ETH.
I have temperature sensors connected to GPIO5, GPIO4 and GPIO2. This works and I can see that the sensors are all OK.
ESP reports that Parasite Powered is false. I have 4.7 k Ohm between DQ and VDD (3.3V).

Now I want to add a 4 string.
However, I can't get any success on any other GPIO.

I have tried on a test environment all combinations with a working temperature string to get the other GPIO to work, but without success.
GPIO 12 would have worked, but then prevents the ESP from booting because of the 4.7 k Ohm (Must be at 0V during the BOOT).

What am I missing? Why can't I get the other GPIO's to work? Unfortunately, I am reliant on the cable-bound network and cannot switch to a d1 mini or somethingelse.

Re: ds18b20

Posted: 12 Feb 2023, 13:27
by Ath
How many ds18b20 do you have on each GPIO? As each task can have up to 4 sensors per GPIO pin.

For Ethernet enabled ESP32 units, there are only a limited number of GPIO pins available for general use.

Re: ds18b20

Posted: 12 Feb 2023, 13:35
by edstobi
I am running 3-4 DS1820 per GPIO.
You can also use more than 4 per GPIO, then you have to open a new task in espeasy with the same GPIO to read the remaining sensors

Yes, I know that only some GPIO are available, but 14, 15, 32 and 33 should work.
Or do I have to enter the optional RX GPIO as well? I've never done that before, and I can't find any information about it.

Re: ds18b20

Posted: 12 Feb 2023, 13:59
by Ath
The RX gpio doesn't need to be set, only on some Shelly devices that's to be used.

Those GPIOs should actually work, but if they don't...

Have you tried a recentGithub Actions build? That probably uses a newer ESP32 platform version, that will most likely improve things.

Re: ds18b20

Posted: 12 Feb 2023, 14:30
by edstobi
I am using the latest version of GITHUB,
I could try to use older versions

Re: ds18b20

Posted: 12 Feb 2023, 16:58
by Ath
Do you need the SPI interface? If not you can also use the GPIO pins that are normally used by SPI, and similarly the serial pins GPIO 1 and 3, by disabling the Enable Serial port option (Tools/Advanced). The log can be viewed in the web log, if required.

Re: ds18b20

Posted: 12 Feb 2023, 17:43
by TD-er
GPIO-12 should not (!!!!!!) be used via a pull-up or pull-down resistor as the state of this pin on ESP32 does set the flash voltage.
So either you render the ESP running extremely unstable due to too low flash voltage, or destroy the flash chip due to too high voltage.

See also: https://espeasy.readthedocs.io/en/lates ... e-on-esp32

Re: ds18b20

Posted: 12 Feb 2023, 17:46
by TD-er
Also why would you want to use several 1-wire busses on different GPIO pins?
Upto 16 sensors can be read in 12-bit mode with 1 sample per second before you're running out of "time".
But I'm not sure it makes any sense to use different GPIO pins to add more 1wire busses as the CPU is already busy 100% of the time communicating on that single pin if you reach the limit of nr. of sensors per pin.