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. 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.
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
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
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.