Wemos D1 mini pro + DHT pro shield + EasyESP

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sasha_jpr
New user
Posts: 3
Joined: 11 Oct 2016, 05:05

Wemos D1 mini pro + DHT pro shield + EasyESP

#1 Post by sasha_jpr » 11 Oct 2016, 05:25

Hi there,

I've got Wemos D1 mini pro + DHT pro shield + EasyESP installed on board.
Looks like everything is configured but I read 0 values from DHT. What can be the reason?

Image

Image

Thanks!!
Sasha

RE:
New user
Posts: 5
Joined: 11 Oct 2016, 15:01

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#2 Post by RE: » 15 Oct 2016, 12:09

You have to set "IDX / Var" to something /= 0, e.g. 1

sasha_jpr
New user
Posts: 3
Joined: 11 Oct 2016, 05:05

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#3 Post by sasha_jpr » 15 Oct 2016, 22:04

I use esp with OpenHAB mqtt. I thought I need IDX only when connecting to Domoticz

That helped!
Thank you very much!

rlust
New user
Posts: 7
Joined: 13 Jan 2017, 20:30

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#4 Post by rlust » 23 Jan 2017, 04:27

Did you have to make any other changes to get this working?
I have all of the same settings including a unique IDX number be getting nothing.

EmKa
New user
Posts: 6
Joined: 02 Feb 2017, 15:02

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#5 Post by EmKa » 17 Feb 2017, 00:32

i always getting "nan" (not a number). But there is not much to do wrong, or ?! have set the IDX, but still not working.

maybe there is one of the dev's who could take a look? https://www.wemos.cc/product/dht-pro-shield.html
thanks.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#6 Post by mrwee » 17 Feb 2017, 10:15

I have the same setup and it works for me on 147RC8. I connected the sensor according to: http://lazyzero.de/elektronik/esp8266/d ... leep/start (Apart from the deep-sleep part).
On my task setting I have '%value% in both formulas. And yes, you do need a IDX/var, for it to work.

EmKa
New user
Posts: 6
Joined: 02 Feb 2017, 15:02

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#7 Post by EmKa » 17 Feb 2017, 15:36

thanks for that. but i even use the DHT-pro-Shield - so there is nothing to wire up wrong :/
tried that "%value%" thing as formula, but still not working
Using 147 too

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#8 Post by mrwee » 17 Feb 2017, 18:38

Running low on suggestions :?
Have you set 'Unit nr.' under config to other than zero?

EmKa
New user
Posts: 6
Joined: 02 Feb 2017, 15:02

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#9 Post by EmKa » 21 Feb 2017, 00:14

thanks again.
now i tried that too.. still no success. different wemos, different shields .. same problem :(

Ton_vN
Normal user
Posts: 303
Joined: 21 Oct 2016, 15:20
Location: Hengelo (Ov)/ NL
Contact:

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#10 Post by Ton_vN » 02 Mar 2017, 20:11

Just own (confusing) experience with the Relais-shield on WemosD1:
the shields apply a specific interface-pin (hard-wired on the pcb) for data-control.

Which interface-pin is used by the DHT-shield for the data-communication to the processor?
Is it really D4/GPIO2 as shown in the screenshot in the question starting this thread?

GPIO0/D3(=IO,pull-up), GPIO2/D4(= IO,pull-up&LED) and GPIO15/D8 (IO,pull-down,SS) are involved in the boot process:
see the wiki/github
In my opinion those 3 pins preferably to be avoided for any interface-layout which possibly interferes with the boot-sequence.

After some experiments (also based on info found in various forums etc.) for WemosD1 I have D3 and D8 in use as data-wires respectively for DS18B20 and for DHT22 without problems:
each with 'own' 4k7Ohm pull-up resistors to VCC/3V3, regardless of the internal resistors.
From experience I know that D4 must stay 'high' during boot (= built-in LED 'Off')
[However, on another ESP8266-configuration (= not WemosD1, but Witty Cloud) the ESP happily boots with a DHT22 connected to D4]
Last edited by Ton_vN on 21 Apr 2017, 11:54, edited 7 times in total.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#11 Post by Shardan » 02 Mar 2017, 21:01

Ton_vN wrote:Just own (confusing) experience with the Relais-shield on Wemos D1:
the shields apply a specific interface-pin.

Which interface-pin is used by the DHT-shield for the data-communication to the processor?
Is it really GPIO2/D4?
I've checked that on my WeMos samples. D4 / GPIO2 is correct.

It should work on GPIO2 even if involved in the boot process,
I use GPIO2 often without a problem. The ESP-01 only has GPIO0 and GPIO2 pins....
Anyways it can't be changed easily on the WeMos shield.

What to do?
I'd start from scratch: Re-flash ESPEasy, do a reset to completely clear up everything, reconnect to your WiFi.
Then completely start setting up from the beginning. Unit number should be sset to an unique value from 1 ... 31.
Make sure there is no other ESPEasy device using the same unit number!
Within the task setup set the IDX to a value from 1... 250. As long as you don't use Domoticz it
does not matter if the same IDX value is used elsewhere.

If it still does not work it might be helpfull to use ESPlorer or the Arduino IDE to monitor
the ESP.

Not too likely but the DHT might be broken too.

Regards
Shardan
Regards
Shardan

Ton_vN
Normal user
Posts: 303
Joined: 21 Oct 2016, 15:20
Location: Hengelo (Ov)/ NL
Contact:

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#12 Post by Ton_vN » 02 Mar 2017, 21:43

;-) Just an idea:
what happens if you fit an extra pull-up resistor from VCC to D4, to assure that the data-wire of the DHT-sensor gets enough VCC-supply?

Another possible practical solution when using DHT-shield.
You cannot easily change the Wemos-pcbs, but instead of a pin or socket at D4 of the DHT-shield you could solder a jumperwire, which you can more flexibly route to another pin [pay attention to the required pull-up resistor to VCC, if not present at the DHT-shield]
Last edited by Ton_vN on 21 Apr 2017, 11:56, edited 4 times in total.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Wemos D1 mini pro + DHT pro shield + EasyESP

#13 Post by Shardan » 02 Mar 2017, 22:11

It might be more easy to use a separate DHT and some jumper wires for that testing.
A DHT-22 is cheap nowadays.

Don't forget a 10 K-Ohm resistor between 3,3V and data wire if using an "extra" DHT.
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests