Comments (3)
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.
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.
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)
- Code Beschreibung HOT 4
- MQTT publish every second HOT 2
- No ‚settings‘ in German UI HOT 4
- Main page starts flashing HOT 2
- MQTT Data not send HOT 4
- Settings bleiben leer HOT 1
- MQTT: Check MQTT username/password HOT 4
- error: call of overloaded 'abs(uint32_t)' is ambiguous HOT 5
- MQTT Broker connection failed HOT 1
- Meter number HOT 4
- Revolutions not counted when using > 500 Watts
- Publish totalConsumption and runtime? HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-wifi-power-meter.