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

SDI12/Software Serial library conflicts: Arduino-based data logger

Home Forums Other Data Loggers SDI12/Software Serial library conflicts: Arduino-based data logger

Viewing 8 reply threads
  • Author
    Posts
    • #9107
      SGFulton
      Participant
        Hi,

        We are developing a data logger to collect climate, water chemistry (Atlas Scientific sensors) and water level data (Decagon CTD-10). We are using the Arduino Mega as the primary data logger wit

      • #9276
        Sara Damiano
        Moderator
          Yes, the SDI-12 library will conflict with SoftwareSerial, EnableInterrupt, and every single other library that defines and uses pin change interrupt vectors. This is a known issue. There are notes
        • #9277
          Sara Damiano
          Moderator
            If you want to understand the problem better, there’s a good explanation of interrupts here: http://www.engblaze.com/we-interrupt-this-program-to-bring-you-a-tutorial-on-arduino-interrupts/

            Th

          • #9290
            Sara Damiano
            Moderator
              Oh, also, the warning “#warning “This file has been moved to <util/parity.h>.” might be because you have an older version of the SDI-12 library. Try updating it and see if that go
            • #9327
              SGFulton
              Participant
                I tried updating the SDI-12 library but am getting similar errors. I’m still looking in to this, but am wondering whether I can use hardware serial ports on the Mega to communicate with softwar
              • #9352
                SGFulton
                Participant
                  My new compile errors (verbose) are provided below; as you can see they’re similar to what I was getting before I downloaded the new SDI-12 library.

                  My apologies for asking very rudimentary que

                • #9365
                  Sara Damiano
                  Moderator
                    I’m sorry, you can’t just update the library, you have to actually open and change the cpp files from both SoftwareSerial and the SDI-12 libraries if you want to use them together. All up
                  • #9366
                    SGFulton
                    Participant
                      Update: Got the proof-of-life (POL) code on the Mega to work using hardware serial on the Mega (Serial2) to communicate to the Pro Mini POL software serial (digital pins 2/3 RX/TX).

                      Thanks for all y

                    • #10147
                      Sara Damiano
                      Moderator

                        I’m glad it worked!

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