ESP Easy with disabled wifi (battery and deep sleep)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tuxmartin
Normal user
Posts: 34
Joined: 10 Sep 2017, 13:07

ESP Easy with disabled wifi (battery and deep sleep)

#1 Post by tuxmartin » 27 Feb 2018, 22:47

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?

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

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

#2 Post by enesbcs » 28 Feb 2018, 07:12

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

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

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

#3 Post by kimot » 28 Feb 2018, 23:46

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

peterharlov
New user
Posts: 1
Joined: 27 Sep 2018, 06:37

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

#4 Post by peterharlov » 27 Sep 2018, 06:39

Than you for sharing this thread this is very helpful for everyone.

Duci
New user
Posts: 7
Joined: 29 Dec 2016, 15:41

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

#5 Post by Duci » 09 Oct 2018, 08:19

Any updates on this? Were you able to build this? I am looking to do the same.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 47 guests