element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Power Consumption of a Wemos D1 mini ESP8266 - Long Term Test 2
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: neilk
  • Date Created: 23 Feb 2019 3:38 PM Date Created
  • Views 492 views
  • Likes 5 likes
  • Comments 4 comments
  • li-ion
  • wemos d1 mini
  • esp8266
Related
Recommended

Power Consumption of a Wemos D1 mini ESP8266 - Long Term Test 2

neilk
neilk
23 Feb 2019

Recap

 

In a previous blog:  https://www.element14.com/community/people/neilk/blog/2019/02/17/esp8266-power-consumption-further-studies  I observed that the power consumed by the Wemos d1 mini during deep sleep was pretty negligible - about 22.7 mAh over a period of 100 hours, including the Serila-USB interface and the resistor chain used to connect the battery to the A/D converter. I concluded, therefore, that the majority of the power consumed was during the actual sketch execution and that anything that could be done to shorten the execution time should reduce power consumption.

 

I carried out several modifications, all of which seemed to be of benefit:

 

  1. Suppress all output to the IDE serial monitor
  2. Stop listening to the Server response - this was taking about 3.5 to 4 seconds
  3. Don't bother to start the Serial Interface

 

Before carrying out the above modifications, a long term test of power consumption showed that after about 90 hours, the battery voltage had fallen from about 4.1V to about 3.53V - just under 0.6V in total

 

image

 

Results of the Second Test

 

My wife and I will be flying out to Majorca tomorrow, for a week, so I decided to terminate the test early, in order to be able to report the results.. As can be seen from the chart, the results are very good:

 

 

image

In this second test, we can see that the battery voltage has fallen from about 3.98V to about 3.65V - a fall of about 0.33V, over a period of over 138 hours! This is a significant improvement over the performance before the sketch was optimised.

 

As before, there are a number of "glitches"  visible in the graph. As I mentioned before, my test rig is a bit of a "rat's nest" and is easily disturbed. The presence of extra "layers" of connections in the battery cables is almost certainly a problem. I am pleased to report that 2.54mm connectors for the battery have arrived today!

 

Further Observations

 

The chart has a horizontal axis of 360 readings per label - a nominal 6 hours. It is quite easy to see that there is a positive inaccuracy in the sleep time, as the time stamp advances by something over 3 minutes for every 360 readings.

 

There is also an indication that the size of the error may also vary with temperature - it is possible to detect a discrepancy between the error during the day (warmer) and the error during the night (colder). Whilst this test has been running, the typical temperature difference in my office, between day and night, has been around 8 degC. The lowest temperature being recorded at around 6am, just before the heating system kicks in. I have also observed  similar, temperature related changes in the WItty device I am investigating.

 

However, taking into consideration my application, a precise time interval between readings is not important - although it is relevant to know precisely when the readings are taken

 

When I get to the point of releasing my system into the wild - ie one of my greenhouses - I will be taking readings at 5 minute intervals. This should give me a battery life of at least 690 hours, or over 28 days.

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +3
    Nice update. Have you considered using rechargeable batteries with a solar cell to top off the battery during the day? DAB
  • genebren
    genebren over 4 years ago +1
    Definitely moving in the right direction. Well done! Gene
  • neilk
    neilk over 4 years ago in reply to genebren +1
    Thanks, Gene.
  • neilk
    neilk over 4 years ago in reply to DAB

    Thanks, DAB

     

    I am using a rechargeable battery; a solar feed to keep it topped up is definitely on my to-do list image

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice update.

     

    Have you considered using rechargeable batteries with a solar cell to top off the battery during the day?

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • neilk
    neilk over 4 years ago in reply to genebren

    Thanks, Gene.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 4 years ago

    Definitely moving in the right direction.  Well done!

     

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube