DS18b20 and Display Button

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
toki73
Normal user
Posts: 12
Joined: 16 Dec 2020, 10:05

DS18b20 and Display Button

#1 Post by toki73 » 14 Oct 2022, 12:08

Two thinks dont work in my projekt. Is can see the Device Adress in the Device from DS18b20 overview but i can´t select the ID in the Senor settings.

I hace a LCD2004 configured. But i dobt´t understand how i can this wake Up over a separte Switch/Push. Enabled the sleep in Display and configured a Switch on D7. Have i do something in the configuration witch PullUps?

Thanks a lot

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 and Display Button

#2 Post by TD-er » 14 Oct 2022, 12:22

Just like in the screenshot posted in the documentation: https://espeasy.readthedocs.io/en/lates ... #p004-page
Image
Does it show the items with a task mentioned next to the device adress?

toki73
Normal user
Posts: 12
Joined: 16 Dec 2020, 10:05

Re: DS18b20 and Display Button

#3 Post by toki73 » 14 Oct 2022, 18:14

No ther ist no device Adress in the DropDown Box

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 and Display Button

#4 Post by TD-er » 14 Oct 2022, 18:18

Do you have a pull-up resistor present?
In the web interface ESPEasy does perform a new scan when opening the page.
But maybe it cannot read it well each time?

But to be honest, I am afraid I might not understand the actual problem you're seeing.
So maybe you can explain it a bit more?

For example, which pin are you using?
Which build of ESPEasy?
Running on ESP8266 or ESP32?

toki73
Normal user
Posts: 12
Joined: 16 Dec 2020, 10:05

Re: DS18b20 and Display Button

#5 Post by toki73 » 15 Oct 2022, 11:22

Thanks for your patience. Yes I used a PulUp Resistor. Now i used not mor the D%. I changed to D3. And its works. I don´t no why but ist works :)

I used an ESP3266 Wemos D1.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 and Display Button

#6 Post by TD-er » 15 Oct 2022, 13:00

See also this section of the documentation: https://espeasy.readthedocs.io/en/lates ... on-esp8266
Assuming you meant "D5", which is GPIO14. (this D-notation once introduced is absolutely confusing, so please refer to GPIO nrs)
GPIO14 should be fine to use for this.
Given it is now working with GPIO-0 (D3), I think your pull-up resistor may not be sufficient.
GPIO-0 does have a pull-up resistor as it is needed to boot the ESP into running the sketch.
If it is pulled down at boot, the ESP will enter flash mode.

toki73
Normal user
Posts: 12
Joined: 16 Dec 2020, 10:05

Re: DS18b20 and Display Button

#7 Post by toki73 » 04 Nov 2022, 07:37

Now the sensors work. But the display wakeup don´t work.
I selected the D7 (GPIO 13) in the Dispaly konfiguration. Sleep Time 60 sec. But when ich close GND to D7 the display do not wake up

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 and Display Button

#8 Post by TD-er » 04 Nov 2022, 08:38

Can you see what the state of this pin is before closing the connection to GND?
Not all pins are pulled-up by a resistor.
So maybe you should add a pull-up resistor between this pin and 3V3?
The actual resistor-value doesn't matter much. Something between 4k7 and 22k would be fine.
Most pull-up resistors used in ESP boards are about 10k or 12k.

Another thing you could try is to enable the internal pull-up resistor on the hardware tab under "GPIO boot states"
This isn't a very strong pull-up (typically 50k-80k) but for testing this theory it will be fine.
When you're using a longer cable to this button/switch, you should use a stronger pull-up resistor.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 33 guests