Go Down

Topic: Low power gps logger (Read 845 times) previous topic - next topic

dirtymunke

Hey,

I am building a gps logger that needs to run off batteries for 3 - 4 days. I had the idea while backpacking last month.

I've been reading up on utilizing a watchdog timer to put the arduino to sleep for 8 seconds. When it wakes up I'd like to read the NMEA string from the gps radio and put the arduino back to sleep.

To further complicate my project I would like to "mark" coordinates as we are hiking. If I see something cool id like to tap a button and capture the coordinates for that location. I can't seem to find any sketches or tutorials where someone has tried to utilize the watchdog AND another interupt. Could someone point me in the right direction if such a thing is possible or offer an altertanative solution?

Thanks!

RudiAhlers

I'm not sure about the whatchdog timer since I haven't used it yet. But the button should be fairly easy todo with a script which monitors an input and then does something when the input changes. There are many samples of such code on the forum.

mirith

The Watchdog timer is something specific usually used to prevent lockups.  That being said, you definitely can use the timers and sleep states to have the arduino communicate with the GPS unit.  One possible issue is the GPS lock taking time, so 8 seconds might not be long enough, but look around for a low power GPS module (I'd look on sparkfun), and look at the openLog board for saving to a memory card.  One of the people at Sparkfun did something like this while tracking radiation:  https://www.sparkfun.com/news/1146

sbright33

8 seconds will take about as much power as 1 second interval.  At least 1/2.  It takes time to initialize the GPS on powerup.  If you really want to save power record a data point every 2 minutes.  You might get the average down to 1-2ma in this case.  http://www.adafruit.com/products/746 can run without a microcontroller taking power at all.  It only draws 20ma.  But I do not recommend this.  Because then you will have no control over the period or to stop sampling when there is no movement.  It is also difficult to access the stored data with Arduino code.  If you store the data in EEPROM, you could store 500 data points.  That's 1000 minutes or 16 hours of hiking.  if you want 3 days you will have to sample less often or use SD card.  This is what I'm working on.
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Go Up