I tried both ways now. Only API and MQTT only. Also I changed the time to 60s running time and 60 sleeping to have time to complete internal task. But non of these works at the mentioned boards.
But now I’m curious, what do you use ESP for in your cars? And I also find the implementation with the helper interesting. Would you send me your Yaml code so that I can perhaps optimize mine?
If by wake up behaviour you mean that you can’t get the device to go into OTA mode then perhaps there is something wrong with the way you are trying to trigger it. Show the code you are using to send the MQTT message for sleep prevent. If you are getting readings on the sensor that update then it is waking and going back to sleep.
the problem is that the board doesn’t wake up. The OTA message can of course only be recognised in running mode. If the ESP are awake, the OTA function works to prevent them from going back to sleep very well.
The strange thing is that the boards sometimes only wake up when the resistor is soldered between 3.3 volts and SDD0. Without adjusting the Yaml code, the behaviour of the board changes.
And not just with one board, but with several.
Ok, it was just that you were able to show logs of the device above. I suspect then that was just when you did a hard reset of the D1 Mini but wouldn’t afterwards wake from deep sleep.
Checking one last thing.
When you said externally you meant supplying 3.3V and GND from an external source to the 3.3V and GND pins and not from putting 5V to the 5V pin on your D1 mini?
sorry for the misunderstanding. I powered ist in different ways. First I Powered ist like your sketch with an Step Down converter. It Converts the 12 V from my car to the 3.3 V. I have also tried it with a capacitor.
Then I tried it with the USB voltage. That didn’t make any difference.
For the last test, I only worked with the USB voltage.
LOL. Now you see it , now you don’t . The camera never lies.
Still can’t work out why this doesn’t wake up. I’ve never had problem waking D1 mini waking up. I’ve mostly used ESP12F with cells (and solar panel) to avoid wasting energy on a 5v regulator. I must be assuming something that’s wrong.
I have not yet made any changes to the boards that are already running and the API and MQTT are running in parallel. And it is running.
On the boards where I have the problems, I have not been able to get them to run either when I have only run API or MQTT. Unfortunately, this made no difference, even if I extended the runtime.
I might try to change the way, how I send them to deep sleep.
Who is the original?
Expressif publishes schematics and PC board files for ANYONE to make development boards. So, by this logic they are ALL clones.
I have purchased dozens of ESP development boards from Amazon, eBay, AliExpress and Expressif. I have only experienced one DOA board, and even then I can’t be sure that I didn’t smoke it.
We’ve discussed this before, @stevemann. The term “clone” may not be the best choice of word. I use it as shorthand (a term I picked up from the linked thread), but I appreciate it might be misleading. I’ll try to remember to avoid using it in the future to avoid debate and the potential for being misleading.
Previously, I bought the cheapest options until I started getting weird reliability issues (broadly like the current one, which is what prompted me to make the connections and mention it, especially since other common causes seem to have been explored), also prompting the creation of the thread I mentioned.
If you haven’t had issues with inexpensive purchases, that’s great – no need to change I guess. Personally, I switched to higher-quality boards and now encounter fewer problems, which works for me.
I primarily wanted to highlight that some cheaper boards have lower-quality components and may have reliability issues.
Can I just say thank you for this. I have 2 NodeMCU 8266’s that were refusing to wake from deep sleep and this was the cure. Don’t know why or how but I’ll take it. 10k resistor between 3.3v and S0 on my board.
Hi there,
Just thought I would add my findings into the No recovery from Deep sleep.
I purchased 4 Ali express ESP12E (same module as the Wemos D1) and all 4 of them failed to wake from deep sleep with known working code.
Being in a position to investigate this I first took the EMI cover off the module and did a thourough check against the Expressif data sheet for ESP8266EX.
Could not find any problems. RTC wake up pulse driving the RST pin no issues.
So I purchased some RAW ESP8266ex chips from Digikey and replaced the onboard CPU. Still no luck. The only thing it could now be was the flash memory chip or 26Mhz crystal. Check the crystal on a scope. Perfect.
Finally purchased four replacement 1Mbit flash chips from Digikey.
Bingo. Worked first time. Changed the other 3 flash chips and now they are all working.
To conclude…It appears that cheap flash chips load the serial data bus when the CPU boots from DeepSleep Wake up. It cant load the firmware and goes into “zombie mode”
pulling about 33mA current. A second reset pulse usually starts the system as the bus is already powerd up.