Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Datalogger build

Home Forums Other Data Loggers Datalogger build Reply To: Datalogger build

Rick Vogel

Stroud has a great SDI-12 Arduino interface. it only works with Atmega 328P based Arduinos though.

mathew, just so you are aware……the SDI-12 library will work on the Mega2560 as well. I’m using it right now to pull SDI-12 data from a Sutron Rain Weight gauge. You can only use pins that are set up for digitalPinToPCMSK calls if I remember right.

pins_Arduino.h for the Mega calls the following pins for that function.

#define digitalPinToPCMSK(p) ( (((p) >= 10) && ((p) <= 13)) || (((p) >= 50) && ((p) <= 53)) ? (&PCMSK0) : \
( (((p) >= 62) && ((p) <= 69)) ? (&PCMSK2) : \
((uint8_t *)0) ) )