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: SDI-12 library support

Home Forums Environmental Sensors SDI-12 library support Reply To: SDI-12 library support

Sara Damiano

    I’m not familiar with the Teensy at all, but based on my <5 minutes of google research:

    – They’re ARM Cortex-M4 boards – totally different processor style
    – But the core libraries support the same attachInterrupt() routine that I use to support interrupts on the SAMD boards – good – you can just copy the SAMD interrupt includes
    – google isn’t telling me how timers work on the teensy – bad – In order to do a better job of reading the (slow) sdi-12 communication without wasting a huge (relative to processor speed) amount of time delaying in the the interrupt routines, I’ve re-written the library to check what time bits changed based on the processor timers. To get it to work on the teensy, you’d need to figure out how the timers work on the teensy and then write out the correct timer-checking information into the sdi12_boards file

    Unless you have a 2.0, then it’s basically a Leonardo and should work fine.

    Unfortunately, I don’t have any time at all to help you with this. I might be able to glance at pull requests or give you quick guidance on how the timers are integrated, but I can’t do much more than that.