Data Logger Shield current consumption results

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Data Logger Shield current consumption results

Postby Lapatate » Tue Apr 10, 2012 8:24 pm

I've made some mesurments on the power consumption of the Data Logger Shield together with a Atmega328. This was relevant for a a long time logging project. The values are to be associated with the following set-up:

Basically the data logging shiel from Adafruit is directly controlled through the Atmega328 on a breadboard with an external oscillator 16Mhz.

Current when iddle: 26.4 mA

Current in Power Down mode with Watchdog Timer: 0.45 mA

I needed to reduce the power consumption as far as possible, that's why the Atmega is on a breadboard without the arduino periferals that all consume a little current even when the controller is in sleep mode. The watchdog timer is used to wake from sleep once every 59.5 seconds (looping 115 times for 0.5 sec) and the measurents are taken and written to the SD card, the RTC of the Logger shield triggers the controller back to sleep every full minute. The result is approx. 0,5 sec of processing and 59,5 sec of power down mode.

With a Lipo battery of 1730 mAh this allows for app. 90 days operation with a 1 measure every minute.

Gives lot of reasons to be zen...
Lapatate
 
Posts: 6
Joined: Thu Nov 10, 2011 4:56 pm

Re: Data Logger Shield current consumption results

Postby adafruit_support_bill » Wed Apr 11, 2012 4:47 am

Nice work! A lot of people ask about low-power operation and will be interested in your results.
User avatar
adafruit_support_bill
 
Posts: 16052
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield current consumption results

Postby Lapatate » Sun Apr 15, 2012 10:24 am

The previous values where approximativ as the current measured over a 0,5sec interval for logging, so repeating the measurements with more time for the "wake" mode and for every component seperately to see what is consuming how much.

In the earlier described configuration

During Processing, Read-out and Logging:

Data Logger Shield: app. 14.6mA
Atmega328-PU at 16Mhz with external oscillator: 12,9mA
The DHT22 Temperature and Humidity sensor: 1,5mA

Total app.: 29mA

During sleep(Power Down with WDT), no sensor read-out:

Data Logger Shield: 0,160mA
Atmega power down with WDT enabled: 0,28mA
The DHT22 Temperature and Humidity sensor (no readout): 0,012mA

Total app.: 0,45mA

All elements in the circuit are powered at 4,9V through a lipo Rider.

Enjoy your week-end!
Lapatate
 
Posts: 6
Joined: Thu Nov 10, 2011 4:56 pm

WDT timer accuracy for sleep and data logging

Postby Lapatate » Thu May 10, 2012 1:29 pm

After further looking into the power saving method it seems the Watch dog timer can be quite usefull when you need the AVR to sleep for longer periods and then to wake up on the choosen interval . To precisely use timing and WDT Prescaler better accuracy can be obtained considering the WDT frequency from graph 29-35 of p345 from the ATmega documentation than the frequency metionned in WDT description on page 54.

The WDT clock is really near 112.5Khz at room temperature and 5V rather than 128Khz which can make difference of a couple of ms for the typical timeouts.

If your WDT is not doing what you want this might the glitch.
Lapatate
 
Posts: 6
Joined: Thu Nov 10, 2011 4:56 pm

Re: Data Logger Shield current consumption results

Postby Cra451 » Tue May 15, 2012 5:36 pm

Do you have any docs/links on how the watchdog timer works?
Cra451
 
Posts: 13
Joined: Fri Nov 26, 2010 6:26 pm

Re: Data Logger Shield current consumption results

Postby Cra451 » Tue May 15, 2012 6:18 pm

I found a couple of links on watch dog timers. For my data logger some of the sensors are slow so the 8 second setting worked for me.

http://tushev.org/articles/electronics/ ... hdog-timer

http://www.nongnu.org/avr-libc/user-man ... chdog.html
Cra451
 
Posts: 13
Joined: Fri Nov 26, 2010 6:26 pm

Re: Data Logger Shield current consumption results

Postby Lapatate » Wed Jul 04, 2012 1:44 am

Hello,
A very simple and examplary application using WDT and SLEEP is probably this one:

http://interface.khm.de/index.php/lab/e ... g_battery/

It'll probably turn up in various threads about this topic. For the rest I used the ATmega documentation for more in deept timing settings and sleep modes.

Regards,
Lapatate
Lapatate
 
Posts: 6
Joined: Thu Nov 10, 2011 4:56 pm

Re: Data Logger Shield current consumption results

Postby bethesdakid » Wed Aug 08, 2012 3:08 pm

Thanks, this is an extremely significant advancement.
My system cant be accessed to change the 4 rechargeable AA batteries or remove the SD for at least 4-5 months.

Data is to be acquired 7 times a day.
Environment is fairly stable at around 55 to 85 F.
4 rechargeable AA batteries can fit in the space or one 9v.
Batteries changed only 4-5 months.

Your program will extend battery life. however, several issues...
A. dont know how to connect the SD to the MAC. Do I need to make a cable w/SD female and USB male?

B. Instead of SD, can the Arduino and RTC write to an USB flash drive? then just plug int MAC
You have ideas on doing this configuration? Can the standard cable to upload programs to the Arduino be revised to have the male USB at the MAC replaced with a female USB and then upload to the Arduino FROM the USB flash and then ECHO TO SERIAL TO the USB flash?

Whatcha think???
bethesdakid
 
Posts: 29
Joined: Sat Apr 28, 2012 5:23 pm
Location: Washington dc

Re: Data Logger Shield current consumption results

Postby adafruit_support_bill » Wed Aug 08, 2012 3:51 pm

Writing to a USB flash drive from the Arduino is not possible (at least not without getting pretty deep into USB protocols).

But most computers these days have SD card slots because that is a common format for digital cameras. Check the specs for your Mac, if it is of recent vintage it likely has one.
User avatar
adafruit_support_bill
 
Posts: 16052
Joined: Sat Feb 07, 2009 9:11 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: samtcook and 11 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]