Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By JerryESPN
#52729
schufti wrote:I still don't understand why you don't use deepsleep.
Lowest energy consumption, maximum life on LiIon cell....


Just fried my first ESP-01 while trying this. I don´t think, my equipment and "soldering skill" is yet good enough to realize that.

So, i still would be glad if anyone could help me, to fix my sketch so it makes use of light sleep (what it apparently does not).

Thanks in forward!
User avatar
By Orcanbull
#52764


For my unterstanding, sleepNow(180) would mean an delay of 3 Minutes. In fact, 180000 actually is about 4 Minutes? At least that´s the time Thingspeak receives an update from DHT/ESP.

What to do to get an Delay of 15 Min. or more? With higher MILI-Values the script stops working.

Thanks!

PS: Script running...will see how long it lasts :)


You actually enter milliseconds, orrigionally you should enter microseconds, the *1000 just converts it to milli seconds, so 180000 milliseconds it what you enter right now.
For a bigger delay you have to just do multiple sleeps in series, there is something about the watchdogtimer that overflows, i think there is a way to disable that.
User avatar
By JerryESPN
#52874
Orcanbull wrote:
You actually enter milliseconds, orrigionally you should enter microseconds, the *1000 just converts it to milli seconds, so 180000 milliseconds it what you enter right now.
For a bigger delay you have to just do multiple sleeps in series, there is something about the watchdogtimer that overflows, i think there is a way to disable that.


Tried

Code: Select allsleepNow(120000);
delay(100);
sleepNow(120000);
delay(100);
sleepNow(120000);
delay(100);


and

Code: Select allsleepNow(120000);
sleepNow(120000);
sleepNow(120000);


Neither worked. Maybe any more hints on this Watchdog-Thing?

Thanks in forward

Chris
User avatar
By schufti
#52892 in sleepNow mili is defined as "int" how do you expect it to hold 120000 ???
So try a serial.println(mili) in sleepNow to see how long the sleep will actually be.