Skip to content

DHT22 not working when Restart/Reset on GPIO2... OK at power up #3522

@JollyJames

Description

@JollyJames

Following on from..
#2988

Please read closed bug, #2988

I am also finding that GPIO2 in 6.1.1c shows the same behaviour, power on = working, restart = nan for both temp and humidity. Using identical AM2302 on GPIO2 and GPIO4 configuring with AM2301 and SI7021 shows the same behaviour.. removing the sensor and then adding it whilst powered also prompts correct operation. Web restart always fails GPIO2 connected sensor. This should work, feels like timing issue or lock-up with sensor from restart... 100% repeatable.
log file shows
03:00:44 DHT: Timeout waiting for start signal high pulse
03:00:46 DHT: Timeout waiting for start signal high pulse

Using Arduino IDE with esp8266 Community V2.4.2 Board Lib
Tools: Wemos D1 R2 & mini, 4m (1M SPIFFS), Disable, None, v1.4 Highter Bandwidth, Flash, 80Mhz, 11500, All Flash Contents, COM5.
Update OTA works well.

Also, make sure these boxes are checked [x] before submitting your issue - Thank you!

  • [x ] Searched the problem in issues and in the wiki
  • [x ] Hardware used : wemos D1 mini
  • [x ] Provide the output of command status 0 :
STATUS 0 OUTPUT HERE
11:06:49 MQT: stat/sensor-c/STATUS = {"Status":{"Module":19,"FriendlyName":["Sensor C","Sensor C2"],"Topic":"sensor-c","ButtonTopic":"0","Power":0,"PowerOnState":0,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}

**To Reproduce**
as above

**Expected behavior**
_A clear and concise description of what you expected to happen._

**Screenshots**
![untitled](https://user-images.githubusercontent.com/24388131/44307909-e82b9580-a3a2-11e8-8ed6-bb04cb3dce2f.png)

**Additional context**
11:06:49 MQT: stat/sensor-c/STATUS2 = {"StatusFWR":{"Version":"6.1.1c","BuildDateTime":"2018-08-10T01:57:45","Boot":31,"Core":"2_4_2","SDK":"2.2.1(cfd48f3)"}}

11:06:49 MQT: stat/sensor-c/STATUS10 = {"StatusSNS":{"Time":"2018-08-19T11:06:49","Switch1":"ON","Switch2":"ON","SI7021-02":{"Temperature":nan,"Humidity":nan},"SI7021-04":{"Temperature":24.0,"Humidity":57.4},"TempUnit":"C"}}

**(Please, remember to close the issue when the problem has been addressed)**

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting feedbackAction - Waiting for response or more informationtroubleshootingType - Troubleshooting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions