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

Home Forums Other Data Loggers SDI-12 Library Reply To: SDI-12 Library

#17508
neilh20
Participant

    @vogelrnws I had been looking at porting it to another processor and been using it and digging into the code. I’ve looked at some of the RP2040, but I’m cautious about its ability to go into low power – but haven’t looked at it in depth.

    The SDI-12 lib uses a software based UART – running at 1200Baud, so 1200Baud is pretty slow and it does handle it. It needs to have a timer generated to be able to look for the changes in the data stream.

    Unfortunately, IMHO, I’ve found it to be quite fragile.   Also the software timing has made debugging fragile.  In 2021 I had also found it worked with some Insitu LT500 sensors and not others. I tried to put a “test station” together, against a traceable SDI-12 test setup using https://www.vegetronix.com/Products/SDI-12 and it failed on the basic physical test.

    So I’m thinking about how to 1) +5V buffer  possibly this solution https://github.com/EnviroDIY/Arduino-SDI-12/issues/87

    2) hardware timing. Possibly emulate the UART with with either DMA or Timer/Capture.

    So maybe the hardware interface could be done with a simple 4 wire Seeed plugin with an off-board buffer and boost to +12V, and software modified.

    So just IMHO a heads up on some of the possible issues to consider.