Modem-sleep and Light-sleep are helpful if you still need to have your ESP8266 functioning and you want some additional power options. They're also easily configurable in the ESP8266 WiFi settings. But, if you need some serious power control, Deep-sleep is the way to go. With Deep-sleep, our application structure can follow these steps. Enable DeepSleep on an ESP8266-01: We all know how versatile the ESP8266-01 is. By 'we', of course I mean the 6 people that are still reading this after seeing the title! Sure, it does have its limitations: only 2 GPIOs no analog GPIO inability to use the ESP.deepSleep functio.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commentscommented May 11, 2015
commented May 12, 2015
commented May 12, 2015
commented May 12, 2015
commented May 12, 2015
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
The next is wake-up by an external source. This was also possible with the ESP8266 by resetting the chip. Here, we get much more possibilities: We can wake-up the chip by one particular pin only. To do this, we have to select the ext0 mode and tell the chip, which pin is connected to the button. And in addition, we can decide, if we want to trigger the wake-up by a low or a high state of the pin. To find-out the pin number is a little tricky: We have to use the GPIO number of the pin, not the RTC_GPIO pin number. Fortunately, we still have our Excel sheet and we can see, that RTC_GPIO00 and GPIO36 are connected to the same pin on the WROOM-32 module.
One thing is important: You have, depending on the interrupt polarity, to connect an external pull-up or down resistor to the pin. I used a 100k resistor and it worked.
But what, if we would like to have several buttons for the wake-up? Also here, our new toy offers an elegant solution: we use the ext1 wake-up source. In this mode, we can use several pins for wake-up. Because we can declare more than one pin, we have to define a so called âmaskâ instead of only a pin.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |