Autonomo and SDI-12

I am trying to connect a soil moisture sensor to the Autonomo through SDI-12. The existing libraries for Arduino SDI-12 communication don’t seem to work because of the processor on the Autonomo board. Any suggestions?

I had a quick look at the SDI-12 library.

It works directly with the AVR registers to attach and handle the interrupt events on the IO pins used.

You should be able to modify it to work with the SAMD platform by using the cross-platform attachInterrupt() method.

Thanks Gabriel for your reply. Are there any examples available on how to do this?

Try this: https://github.com/GabrielNotman/Arduino-SDI-12

I forked the library from EnviroDIY.

It compiles, but I don’t have a peripheral to test it with.

Thanks Gabriel. It’s working, very much appreciated.

Please use our library at

 https://github.com/SodaqMoja/Arduino-SDI-12