ASK AN ENGINEER is LIVE now! Click here to watch our weekly show with Ladyada!

January 28, 2011 AT 8:48 am

Easy-to-use, flexible data-logger sketch optimized for battery life

Datalogshield Lrg

Easy-to-use, flexible data-logger sketch optimized for battery life. toddh writes

I have developed an easy-to-use, flexible sketch for use with Adafruit’s Logger Shield (project page, or buy one here).

Features:

  • Optimised for battery life by utilising the ATmega’s power down sleep mode. This extends battery life by many times… I can now run my data logger on a single 9V NiMH battery and keep it topped up with a solar panel.
  • Any number of analog pins
  • Any time step
  • Provides for sensor calibration using a simple linear model (i.e. to convert from analogRead value to whatever you want)

You can download it here. It currently does not handle digital inputs, but this would be easy to change. Please let me know if you use it and/or can think of any improvements. Enjoy!


“D is for Diode” – Circuit Playground Episode 4 is out now! CLICK HERE TO WATCH!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!



1 Comment

  1. Does this work with the GPS/datalogger shield as well?

Sorry, the comment form is closed at this time.