Qgelm

ESP8266 Lullaby

Originalartikel

Backup

<html> <p>The ESP8266 is certainly a versatile device. It does, however, draw a bit of power. That isn&#8217;t really surprising, though, since you would expect beaming out WiFi signals to take a little juice. The trick is to not keep the device on all the time and spend the rest of the time in deep sleep mode. [Marco Schwartz] has <a href=„https://openhomeautomation.net/esp8266-battery/“ target=„_blank“>a good tutorial about how to use this mode</a> to run for &#8220;years&#8221; on a battery.</p> <p>[Marco] notes that even using a&#160;2500 mAh LiPo battery, he only gets about 30 hours of operation without sleep. By putting the chip in sleep mode, the current consumption drops from about 88 mA to just over 8 mA. That&#8217;s still high, though, because the board has a power LED! By removing a jumper or cutting a trace (depending on the board), you can drop the current draw to about 0.08 mA (80 uA) when it&#8217;s not doing anything.</p> <p/> <p>The code for the example is on <a href=„https://github.com/openhomeautomation/esp8266-battery“ target=„_blank“>GitHub</a>. Of course, the real trick is to come up with a strategy that you can keep the device in sleep mode more often than not. That&#8217;s not always easy. You might need to rethink a few things. For example, if you serve out a configuration web page, you might need to add a button to wake the device up and serve the web page (be sure it times out after a certain amount of inactivity). So deep&#160;sleep mode&#160;isn&#8217;t a panacea, but with the right design, you can get a lot of battery life.</p> <p>Some ESP boards require a little <a href=„https://hackaday.com/2015/02/08/hack-allows-esp-01-to-go-to-deep-sleep/“>modification </a>to use this trick. If you are looking for a good example of how a design might change to accommodate sleep mode, you can find one in this <a href=„https://hackaday.com/2016/07/11/avoiding-exercise-with-an-esp8266-and-blynk/“>mailbox indicator</a>.</p> </html>

Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website.Weitere Information