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

Activity

  • Shannon Hicks wrote a new post 9 years, 11 months ago

    Real Time Clock (RTC) modules like the DS3231 chip (found on the ChronoDot and Seeeduino Stalker v2.3) keep track of the date and time for a datalogger circuit.  The module can output the number of seconds since […]

    • How do I convince a DS3231 to output seconds since 1/1/2000? I can’t find anything in the DS3231 data sheet describing such a function.

      • If you’re using the DS3231 library, you can use the following code:

        DateTime now = RTC.now(); //get the current date-time
        currentepochtime = (now.get()); //seconds since 1/1/2000

        Look at the “now” example that comes with the DS3231 library to see the whole sketch.