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

Kurt Rosenberger

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Kurt Rosenberger
    Participant

      Folks

      OK, I have data coming in, and can print to serial to see the output on serial monitor. Now I’m having a lot of difficulty declaring the new variables in my sketch in order to log the data using the LoggerBase, and I think it might be how the author of the GPS C++ code that I’m using set up the structures and classes in the header file. I honestly know very little about C, I’ve mostly use Matlab, so some of this seems familiar, but not familiar enough. I’d rather not mess with the GPS code, as it is currently working for me, but if I have to, some expert advice would help. Attached is my current sketch, and the GPS code I’m using. Any advice would be greatly appreciated.

      Attachments:
      Kurt Rosenberger
      Participant

        OK, I got it to work. The original sketch called for use of SoftwareSerial, and I replaced this with Serial1, and I realized that if I use Serial1, I don’t have to designate the pin numbers. Got the Airmar plugged into the correct pins (A7 and A8), and voila, data coming in! Now my next task is to figure out how to log the 1Hz data to a buffer of some kind and do some averaging before writing to file. Any recommendations welcome! Thanks again!

         

        Kurt

        Kurt Rosenberger
        Participant

          Hi Shannon and Sara

          Thank you for your replies – yes, I was not able to communicate with the Mayfly while I had data coming in, so I will switch to RX1/TX1. However, I’m still not clear on how to designate that in the initial setup in the sketch. It was fine with A6 and A7, but when I try to use A8/A9 or RX1/TX1 in the ‘static const’ declaration, it won’t compile. Attached is the example sketch I’m using. Thanks again for your help

          Attachments:
        Viewing 3 posts - 1 through 3 (of 3 total)