Code Monkey home page Code Monkey logo

Comments (3)

lrswss avatar lrswss commented on June 2, 2024 1

Added a power saving mode with the most recent release. The consumption of the Wifi Power Meter was reduced from 95mA to about 35mA (20mA ESP8266, 15mA TCRT5000). I had to take a few turns to deal with the unexpected change in ADC readings if ESP8266's WiFi is switched off. I'd be happy if you could give it a try.

from esp8266-wifi-power-meter.

lrswss avatar lrswss commented on June 2, 2024

I have done some tests lately. When Wifi is off, the ESP8266 power consumption drops from 78mA to about 24mA. Reducing the CPU speed from 160MHz to 80MHz helps to get close to 19mA. This is more or less consistent with what I have read in various articles on the internet. But I guess that's still quite a lot to run the Wifi power meter on a (single) 18650 cell. Using a 3000mAh cell would probably provide enough power for about 5-6 days. The only way to noticeably reduce power consumption (< 1 mA) is to use deep sleep mode, which is surely not practical for this application.

What do you think, are 19mA worth the effort to introduce a (simple) "power save mode"? Switching on Wifi, publishing data und turning off Wifi takes barely one second. Of course, the latter would also make the web interface inaccessible, since the ESP8266 only wakes up to transmit the data via MQTT. However, the power save mode could be turned off with a MQTT command topic.

To keep things simple I'd rather not implement a data backlog with timestamps...

from esp8266-wifi-power-meter.

ac1176 avatar ac1176 commented on June 2, 2024

What do you think, are 19mA worth the effort to introduce a (simple) "power save mode"? Switching on Wifi, publishing data und turning off Wifi takes barely one second. Of course, the latter would also make the web interface inaccessible, since the ESP8266 only wakes up to transmit the data via MQTT.

Your test results for power consumption with and without WiFi align with what I've seen as well. A saving of three-quarters may be attractive for users who may want to use battery power.

However, the power save mode could be turned off with a MQTT command topic.

Another possibility is that the power saving mode could be disabled using a GPIO pin. The user could install a jumper on the ESP board, or use an external switch or relay any time they want to have the WiFi activated on demand. That would allow the web interface to remain open if the user wants to log in to view metering data or make setting changes.

To keep things simple I'd rather not implement a data backlog with timestamps...

Understood. I can see that is probably more work than it's worth in this scenario.

Having said all that, unfortunately my electricity provider has since advised me that my Ferraris meters are soon to be replaced with new smart meters which only provide pulsing LED outputs. I'm happy to do some testing for you if you feel modifying the code is something you'd like to pursue, but I fear opportunities for me to do so will soon dry up.

from esp8266-wifi-power-meter.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.