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

Reply To: Low power project

Home Forums Mayfly Data Logger Low power project Reply To: Low power project

#1880
Shannon Hicks
Moderator

    The sleeping sketch I mentioned above works fine as long as you don’t use the SDI12 library at the same time. If you do, there’s some conflicts due to the SDI12 and SODAQ_Pcint libraries looking at the same ports. So I created modified versions of both libraries that fixes the conflict. (This conflict also happens if you use SoftwareSerial and Pcint at the same time, so I also made a modified version of SoftwareSerial.) It’s kind of a brute force fix and there’s probably a better way, but it gets the job done.

    If you don’t already have all of the libraries I posted recently (https://github.com/EnviroDIY/Libraries) get them and then simply change the include statements at the top of your sketch to look like this:

    You don’t have to change anything else in your sketch, the modified libraries will handle everything the same.