Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: Datalogger build

Home Forums Other Data Loggers Datalogger build Reply To: Datalogger build

#1261
Brandon Forsythe
Participant

    Hi all

    I am finally working on a system. I have an Arduino Mega 2560 – R3, the Adafruit Datalogging SD Shield, and just a DS18B20 temperature sensor (waterproof with 3 wires using a 4.7 ohm resistor). I can get the temp to record however I am having trouble getting the RTC on the shield to respond as it should. The shield seems to be working initially keeping track of time however once unplugged from USB and wait for 5 minutes the time doesn’t keep up. In other words when it is plugged back in the time resumes at the time the Arduino was unplugged. The shield does have a 3v battery backup which should maintain the clock when the Arduino isn’t powered.

    I have attached the code as well.

    Any ideas?

    Attachments: