Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

How to change the default setting of 5 min data send interval

Home Forums Monitor My Watershed How to change the default setting of 5 min data send interval

Viewing 3 reply threads
  • Author
    Posts
    • #16270
      Vinay Ayala
      Participant

      Hello looks like the default setting to send data from data logger to MMW is 5 min… can we change this to other time intervals? How can we do it

    • #16272
      Shannon Hicks
      Moderator

      The transmission rate is determined by whatever you put in the sketch of your logger.  I don’t know what sketch you’re starting with, but if you’re using one of our examples that we include with the ModularSensors library, then there’s a line about 50 lines down that says this: const uint8_t loggingInterval = 5;

      So 5 is the number of minutes between transmissions.  Change that number to whatever your desired interval is, keeping in mind that more frequent transmissions will use shorten your battery life, especially if you’ve got power-hungry sensors or minimal solar exposure.

    • #16274
      Vinay Ayala
      Participant

      Shannon I am using const uint8_t logging interval and as you changed I can change it to a different logging interval….I wonder if is there is code to collect every 5 min but send every hour or so to mmw to populate all values in the last hour

    • #16278
      Shannon Hicks
      Moderator

      Changing the interval in that line should work, unless you’ve got something else in your code that’s’ interfering with that.  What example sketch did you use for your code?

      As for delayed transmission of multiple samples, we haven’t felt the need to do that on any of our stations so it’s not a feature we’ve implemented in our code, but I think there are a few members here on EnviroDIY who have written their own code for sending multiple samples.  One of the new additions to the Mayfly v1.0 board is that it now has a separate 8MB flash chip to allow users to write data to a non-volatile memory other than the microSD card (or in addition to) so that you could store that 5 minute data on the flash module but only transmit it and put it on the microSD card every hour.  Or write it to both every 5 minutes, but only retrieve it from the flash module on the hour when you want to transmit it.  I don’t think we’ll be writing any code to do that anytime soon, but the hardware feature is there if someone wants to implement it.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.