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

Extracting Data Query

Home Forums Other Data Loggers Extracting Data Query

Viewing 3 reply threads
  • Author
    Posts
    • #15860
      d_bozza123
      Participant

        Hi all 🙂

        I’m using the SDI12 library with an arduino nano. I’ve got 3 SDI-12 Ponsel water quality sensors I’m trying to get working.

        One of the issues I have is being able to separate the values into ‘chunks’.

        e.g. In the attached screenshot, ideally I’d have:

        temperature = 22.036

        ph = 7.6794

        redox = 302.05

        ph_mV = -35.678

        I saw there was an example ‘simple_parsing’ but it seemed to freeze when I tried to run it…

        Any help would be much appreciated!

         

        Attachments:
      • #15862
        Shannon Hicks
        Moderator

          Can you post the code for your sketch, or are you using the simple parsing example exactly as-is?

        • #15864
          d_bozza123
          Participant

            Hi Shannon,

            So the screenshot in my first post is using the ‘simple_data_logger’ code with one SDI12 sensor attached (I haven’t connected all 3 just yet), and it seems to work quite well.

            The screenshot in this post is when I’m using the ‘simple_parsing’ code with no modifications.

            The arduino just freezes after “213P,” and doesn’t write anything else to the serial monitor.

            I had a search through the SDI12 library documentation but I wasn’t sure what the timeout value of -9999 means exactly?

            The reason why I need to separate the sensor values is because I need to only send certain values over LoRaWAN…

            Attachments:
          • #15867
            neilh20
            Participant

              Hello @d_bozza123, the Ponsel sensor looks very interesting.

              I’ve interfaced to a SDI-12 sensor Insitu LT500.

              My suggestion is you think of breaking up the work into units.

              That is first how to read the sensor Ponsel, and 2nd how to store it to the .csv

              For my sensors, it required creating a sensor interface to read the parameters from the instrument.

              eg https://github.com/EnviroDIY/ModularSensors/blob/master/src/sensors/InSituRDO.h

              or similarly in my case https://github.com/neilh10/ModularSensors/blob/release1/src/sensors/InsituTrollSdi12.h

              Then in the program  file eg “simple_logging.ino” create the sensors

              See Variable* variableList[] =  in https://github.com/EnviroDIY/ModularSensors/blob/master/examples/simple_logging/simple_logging.ino

              To   think of LoRa is a great idea, and a number of people are thinking about it. So just curious where it would visualize the data on the internet?.

              A smaller step would be to post to MonitorMyWatershed.org over a cellular modem LTE to learn about the flow of data?

              One of the issues with LoRa might be how is wall time synced to the mayfly?

               

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