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

Code change for Meter Hydros 21 CTD

Home Forums Mayfly Data Logger Code change for Meter Hydros 21 CTD

Viewing 3 reply threads
  • Author
    Posts
    • #17109
      Matt Barney
      Participant

        I don’t recall seeing any announcement on the forums, so I thought I’d share with everyone that the latest Hydros 21 sensors (Generation 2) require ModularSensors version 0.33.3 or later. We recently learned this after replacing a failed sensor in the field, and our Mayfly could no longer communicate with it. Since we have dozens of EnviroDIY stations deployed across the country, we don’t proactively install the latest version of the MS library unless there is a specific reason to do so.

        Just letting others know so that they can avoid having this issue.

        Matt

        Trout Unlimited

      • #17111
        fisherba
        Participant

          Noted. Thank you. This is in my next couple weeks of existence.

        • #17113
          Stephen H
          Participant

            Does the new setting still work with the older sensors?  Do we need to maintain 2 sets of code?  Thx.

            • #17114
              Shannon Hicks
              Moderator

                Yes, the update made to the ModularSensors code in in order to fix Hydros 21 is backwards compatible.  I mentioned it last week in this post: https://www.envirodiy.org/topic/hydros-21-decagon-ctd-reading-error/#post-17066

                It seems that in the past year Meter Group made some changes to the amount of time the CTD sensors need to take a measurement, so we increased the wait time from 500 milliseconds to 1000 milliseconds.  If you use the new code to talk to an older sensor, all you’re doing is waiting an extra half second, so there’s no reason to keep the old code.

            • #17115
              Matt Barney
              Participant

                A couple bits of additional info. To visually identify whether your Hydros 21 is a Gen 1 or a Gen 2, see attached photos of the sensor head on each version. Note that some Gen 1’s had red cables, but not all.

                Second, as Shannon noted in the post she linked to above, the address-setting on the Gen 2 is slightly more finicky; you just have to repeat it a few times. Here’s my serial output from the b_address_change.ino sketch:

                Note the “Checking address 1…Vacant
                Occupied”. Then after the first “Enter new address” prompt, I typed 1, but it came back with “address 0…Occupied”. So be persistent and your change will take.

                -Matt

            Viewing 3 reply threads
            • You must be logged in to reply to this topic.