Hi all,
I'm working on a project where we want to log a distance every 5 minutes for a week, running off a single 9V battery.
Got everything working, using sleep mode and a Pro Mini + ultrasound sensor + the Adafruit data logger shield: Overview | Adafruit Data Logger Shield | Adafruit Learning System. I soldered the pro mini on top of the shield and connected all the necessary pins.
The pro mini in sleep mode consumes very little power (around 10 uA) and is only awake for a fraction of a second every 5 minutes so that's all fine.
My problem now is the RTC of the shield is being powered constantly and uses up most of the power.
Using this shield, would I be able to turn on/off the power to the RTC / (SD card)? The idea is to power it only for the time needed (ie every 5 mins).
Having a look at Nick Gammon's post on power saving (Gammon Forum : Electronics : Microprocessors : Power saving techniques for microprocessors) he explains that you can power the RTC off a digital pin to be able to turn it on/off at will.
From the shield schematic, it looks like the whole thing takes 5V from the Arduino board which feeds the RTC, and is converted to 3.3V to feed the SD card.
So my idea was to connect a digital pin of the Pro Mini to the 5V pin of the shield to be able to turn off power to the shield. However I know the SD card takes several hundred milliamps when reading/writing so I'm not sure if this is possible (I haven't actually measured curent taken by SD card).
I'm looking for solutions allowing me to turn on/off the RTC to save power.
Thanks in advance!