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

Shannon Hicks

    That demo sketch is just a sample of how to talk to your sensors, there’s lots of stuff in there that you could trim out if you’re actually trying to collect data at a certain rate.  What type of board are you using?  Are you planning to store the data on a memory card or just print to the computer’s serial monitor?  There’s a 10-second delay on the very last line of the sketch that isn’t needed if you’re trying to cut down on time between samples.  Do you want to take one discrete reading from each sensor each time, or are you interested in taking several readings from each sensor an averaging them to limit the “noise” or variation between readings of each sensor?   Are you sensors going to be powered continuously or do you want to turn them off between readings?  Do you need a timestamp to go along with each data record?