Hacker News new | ask | show | jobs
by slhomme 2594 days ago
I just got into the micro controller world a few days ago and it's overwhelming how many options there are! Between the pi, the Arduino, the ESP8266, Wemos ans so so many more which all come in so many flavors it's really tricky to the "ideal" one for a beginner like myself. The project I have in mind would require to work on batteries as opposed to plugin it into a well. It sounds like you're suggesting that anything ESP8266-based would not be ideal not plugged into a wall. Could you share some pointers to what alternative might be better for very low consumption but still has wifi capabilities? Thanks a lot! I'll keep digging in the meantime, this is a fascinating world I'me happy to explore!
2 comments

Depends on what you mean by "very low consumption". For one project I used a SparkFun SAMD21 Mini Breakout[0], and with the RTCZero[1] library was pretty easily able to get it down to 0.3mA when sleeping and averaging 1.3mA overall. (OK, I had to desolder the power LED which was eating 3mA.) I've since switched over to using Adafruit Feather M0 boards for most stuff, which is basically the same thing.

[0] https://www.sparkfun.com/products/13664 [1] https://www.arduino.cc/en/Reference/RTC

edit: Oh sorry I missed the "with wifi" in your post. One nice thing about the ESP8266 is that lots of people use it -- hopefully that means you can find details on how to run it in low power modes.

Nice, thanks a lot for the info that's going to be helpful. I'll look into these!
There are a lot of people who've shown how to use the ESP8266 powered off batteries for a long period of time. This [1] references a few and contains another itself. But they're not running all the time, it involves going in to deep sleep, and waking up very seldom.

If you don't need actual WiFi, and instead just need wireless communication, there are other lower power modules you can use like the nrf24l01, LoRa, and other generic "Wireless Tranceivers". If you need them to have internet access, you can create a gateway which the remote modules communicate with, then have a ESP8266 plugged into the wall to proxy the requests.

[1] https://www.youtube.com/watch?v=I3lJWcRSlUA