Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Seeking advice on capturing time-stamped data

    Scheduled Pinned Locked Moved Support & Troubleshooting
    wipy
    4 Posts 3 Posters 559 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      robmarkcole
      last edited by

      Hi all
      I wish to record readings at 1 second intervals to the SD card using wipy/expansion board. For the time stamp I can use rtc.now() but there is no way to set the rtc.init() to be the true time, therefore if the board resets, I will have duplicate time-stamps. How do people recommend I deal with this?
      Thanks

      robert-hhR E 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @robmarkcole
        last edited by robert-hh

        @robmarkcole If you have Internet access, you can use rtc.ntp_sync(). Anyhow you should re-sync the RTC often, since it normally is driven by the internal RC oscillator, which is not too precise. You could also add an external RTC, or use the GPS clock of pytrack, if available..

        1 Reply Last reply Reply Quote 3
        • R Offline
          robmarkcole
          last edited by

          Thanks @robert-hh

          1 Reply Last reply Reply Quote 0
          • E Offline
            Elizar @robmarkcole
            last edited by

            @robmarkcole After reset, just pickup the last time stamp from the SD cards' data file. That wouldn't give you a precise time but no problems with duplicates.

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom