element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Just Encase
  • Challenges & Projects
  • Design Challenges
  • Just Encase
  • More
  • Cancel
Just Encase
Blog [Pool Water Monitoring] #22 - Project Liftoff | Data collecting #1
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Just Encase to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: feiticeir0
  • Date Created: 23 Feb 2022 9:20 PM Date Created
  • Views 621 views
  • Likes 5 likes
  • Comments 0 comments
  • pool_water_monitoring
  • pool water monitoring
  • just_encase
  • just encase
  • arduino mkr 1300 wan battery savings
Related
Recommended

[Pool Water Monitoring] #22 - Project Liftoff | Data collecting #1

feiticeir0
feiticeir0
23 Feb 2022
[Pool Water Monitoring] #22 - Project Liftoff | Data collecting #1

image

Hi all !

Hope everyone is safe and well

Since the past weekend, the project is live.

First observations

In this end, data collecting, I'm having troubles, in the sense that, a couple of AAA batteries only lasts almost a day.

The code has some battery saving features that I'm going to describe below.

Battery savings

For battery saving, I'm using Arduino's Low Power library.

For the maximum savings, I use the deepSleep function to sleep the Arduino . This puts the MCU in sleep mode, but has the slowest waking time. Time here is not a factor, so, no worries

Still, does was not working, because the batteries would be dead in half a day.

Searching through forums, I've added a couple of function and options to see if I could lower the power usage a bit more while sleeping.

First, I've put the USB into standby mode, using

USBDevice.detach();

This will put the USB port into standby. I'm not using it, so, let's not waste power on it.

This has decreased the power consumption.

Next, another trick, is to put all the input pins into INPUT_PULLUP. This is to not be awake by external interrupts. I was afraid that this could mess up with the sensors readings, but no. Everything was measured.

This decreased the power consumption, but still not enough.

I maybe know what's consuming that much power - it's the sensors. The TDS sensor has a LED, and it's always on. The following picture shows that:

image

I'm going to assume that the AM2302 is also on and consuming power. I thought that, when sleeping, the VCC pin was also turned off, but apparently it is not.

I searched on how to turn those pins on, but there's not a direct approach.

Reading though the Arduino Low Power Guide, there's a way to turn the sensors off - using mosfets to cut the power.

I'm going to try a solution:

Connect the sensors in a subcircuit, and using a mosfet as a switch. Will let you know how that works.

References

https://forum.arduino.cc/t/how-can-i-achieve-the-104-a-power-consumption/619331/15

https://docs.arduino.cc/learn/electronics/low-power

https://tigoe.github.io/DataloggingExamples/mkr-datalogging.html

http://www.gammon.com.au/power

  • Sign in to reply
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 © 2025 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