Page 1 of 1

ESP Easy with disabled wifi (battery and deep sleep)

Posted: 27 Feb 2018, 22:47
by tuxmartin
Hi, I need to build WiFi thermometer for heating control with one DS18B20 temperature sensor.

I would like to use only ESP8266 ESP-12, 18650 battery and DS18B20 sensor.
I read about project with 3 Ikea AA alkaline batteries and DHT22. It use deep sleep and wake up every 1 minute and send data over wifi. It works 55 days!

I would like to improve it. Use deep sleep and wake up every one minute. After wake *not enable wifi and connect to ap*, only read data from ds18b20 sensor and compare it with previous value. If the last and current values difference is great than 0.25°C, connect to AP a send data. Otherwise sleep for next minute. And every 15 minutes send data.

Is it possible with ESP Easy (and how?) or I need to use plain Arduino?

Re: ESP Easy with disabled wifi (battery and deep sleep)

Posted: 28 Feb 2018, 07:12
by enesbcs
tuxmartin wrote: 27 Feb 2018, 22:47 I would like to use only ESP8266 ESP-12, 18650 battery and DS18B20 sensor.
I read about project with 3 Ikea AA alkaline batteries and DHT22. It use deep sleep and wake up every 1 minute and send data over wifi. It works 55 days!

I would like to improve it. Use deep sleep and wake up every one minute. After wake *not enable wifi and connect to ap*, only read data from ds18b20 sensor and compare it with previous value. If the last and current values difference is great than 0.25°C, connect to AP a send data. Otherwise sleep for next minute. And every 15 minutes send data.

Is it possible with ESP Easy (and how?) or I need to use plain Arduino?
55days is very nice... i made a plugin to use modemsleep function, it means that cpu remains active, but stops wifi. I think that after resuming the deep sleep the first command can be "modemsleep,1", and when you wan to connect "modemslep,0" but i have never used it combined with deep sleep. :)

Topic:
viewtopic.php?t=2846
Source:
https://github.com/enesbcs/ESPEasyPlugi ... iFiMan.ino

Re: ESP Easy with disabled wifi (battery and deep sleep)

Posted: 28 Feb 2018, 23:46
by kimot
55 days not with 1 minute interval, but 5 minute DeepSleep interval...

"hodnota 300000000 je právě zmíněnných 300s (5minut), po které bude ESP8266 v Dsleep módu."

I speak czech too :o)

So with your 15 min interval it will be theoretically cca 3x50 days

Re: ESP Easy with disabled wifi (battery and deep sleep)

Posted: 27 Sep 2018, 06:39
by peterharlov
Than you for sharing this thread this is very helpful for everyone.

Re: ESP Easy with disabled wifi (battery and deep sleep)

Posted: 09 Oct 2018, 08:19
by Duci
Any updates on this? Were you able to build this? I am looking to do the same.