0

Battery Powered ESP01 Controlled via Alexa
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Battery Powered ESP01 Controlled via Alexa

by voodoo28 on Tue Sep 24, 2019 10:19 am

Hi all, I have been working on a Smart Blinds project at home with my blinds.. I currently have an ESP01s connected to my motorized blinds, which is powered by the battery within the blinds. At the moment I can control my blinds via voice commands through ALEXA, however, since the ESP is connected to the battery of the blind it drains the battery within a day.

My question: is it possible to utilized the Sleep Modes of the ESP01s in order to conserve power while still maintaining a connection to ALEXA?
What are my options?

20190922_122312.jpg
20190922_122312.jpg (489.9 KiB) Viewed 77 times

20190922_120304.jpg
20190922_120304.jpg (217.93 KiB) Viewed 77 times


Thanks in advance.
Peter

voodoo28
 
Posts: 37
Joined: Fri Oct 18, 2013 11:18 am

Re: Battery Powered ESP01 Controlled via Alexa

by brubell on Tue Sep 24, 2019 10:28 am

My question: is it possible to utilized the Sleep Modes of the ESP01s in order to conserve power while still maintaining a connection to ALEXA?


If you need to maintain a connection with a server, it's difficult to utilize sleep/low power modes since the device needs to listen (using its radio) for incoming data from alexa. You could look into using a lightweight protocol such as MQTT (https://learn.adafruit.com/mqtt-adafruit-io-and-you) instead of consistently polling the server.

You also may want to connect the ESP to its own battery source, such as a 2500mAh LiPo (https://www.adafruit.com/product/328). You may also be able to upgrade the blind's battery source to a 10,000mAh LiPo battery pack (such as this one: https://www.adafruit.com/product/1566).

brubell
 
Posts: 528
Joined: Fri Jul 17, 2015 10:33 pm

Re: Battery Powered ESP01 Controlled via Alexa

by voodoo28 on Tue Sep 24, 2019 11:24 am

Thanks for the quick reply!

If I were to use MQTT, how would that affect the response time of the commands vs. polling the sever?

brubell wrote:
My question: is it possible to utilized the Sleep Modes of the ESP01s in order to conserve power while still maintaining a connection to ALEXA?


If you need to maintain a connection with a server, it's difficult to utilize sleep/low power modes since the device needs to listen (using its radio) for incoming data from alexa. You could look into using a lightweight protocol such as MQTT (https://learn.adafruit.com/mqtt-adafruit-io-and-you) instead of consistently polling the server.

You also may want to connect the ESP to its own battery source, such as a 2500mAh LiPo (https://www.adafruit.com/product/328). You may also be able to upgrade the blind's battery source to a 10,000mAh LiPo battery pack (such as this one: https://www.adafruit.com/product/1566).

voodoo28
 
Posts: 37
Joined: Fri Oct 18, 2013 11:18 am

Re: Battery Powered ESP01 Controlled via Alexa

by brubell on Tue Sep 24, 2019 5:34 pm

MQTT is a protocol, as is "polling" (in this case, we're talking about sending HTTP commands like GET and POST directly to/from the server).

Check out more information about it here: https://learn.adafruit.com/alltheiot-protocols/mqtt

brubell
 
Posts: 528
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.