3KUdelta / Solar_WiFi_Weather_Station

Based on the work of Open Green Energy: First solar Zambretti Forecaster
111 stars 50 forks source link

deep sleep / wakeup not working #43

Closed nl2299 closed 3 years ago

nl2299 commented 3 years ago

First of great piece of software and great extension of the original station. I used the pcb from opengreen energy. I also added a DHT22 which is not working, always failed to read (DHT11 works perfect) but thats another issue. Main issue is that the ESP does not wake up again after deep sleep. If i press the reset manually it send again but stops also does not wake up. On the PCB RST and D0 are connected as it should. Serial monitor prints: Going to sleep now for 10 Minute(s).and then no new messages. I adjusted the script only slightly by removing blynk and thingspeak stuff added mqtt authentication and DHT sensor stuff.

any ideas how to solve this ?

3KUdelta commented 3 years ago

Hi, sometimes the reset/wakeup does not work when USB is plugged in and jumper (JP2) is on. You might check this. Can you also measure with a multimeter if RST and D0 (jumper on JP2) are really closed? Did you change something on the goToSleep() function?

nl2299 commented 3 years ago

sleep function is unchanged. I tested with a multi meter both pins are connected. After the sleep time the esp blinks (so it wakes up) but nothing is transmitted to the mqtt broker. Same behavior with unplugged usb.

3KUdelta commented 3 years ago

So it is not a wake-up problem as stated in the headline. It is a problem in connecting with MQTT? I cannot help you like this. Please post your serial output.

3KUdelta commented 3 years ago

Please have a look at Frank´s fork. He has written a version with MQTT and password. Frank´s Fork

nl2299 commented 3 years ago

mqtt is working fine. No mqtt issue as it works after press the reset button. Looks like i need to find a solution by my own.

nl2299 commented 3 years ago

Just for the record: problem was the ESP itself after switching to an lollin wemos d1 mini everything is working. I just finished my build with custom housing external DHT11, UV sensor and E-ink display :)

jspanitz commented 3 years ago

E-ink display :)

please share - would love a local display

nl2299 commented 3 years ago

Once i‘m finally done I will share some details. Maybe I will create a instructable for it Stay tuned