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

Teros 11 sensor on Arduino mega

Home Forums Other Data Loggers Teros 11 sensor on Arduino mega

Viewing 3 reply threads
  • Author
    Posts
    • #15888
      sandman
      Participant
        I am trying to read data from the Teros 11 sensor on an arduino mega. This is the code i’m trying to run and i convert the values to hex. But i am not getting the data i need. Could someone tell
      • #15890
        Shannon Hicks
        Moderator

          Are you at least getting the data in decimal format before you convert it to hex, or are you saying you aren’t getting any response from the sensor?

          • #15891
            sandman
            Participant

              No, im not getting any response from the sensor.

          • #15892
            Shannon Hicks
            Moderator

              Can you describe how you’ve wired the sensor to the Mega, or even better, can you post a photo showing the board and whatever setup you’re using to connecting the sensor to it?

            • #15895
              Shannon Hicks
              Moderator
                Based on the photo, it appears the wiring is correct, assuming the orange and brown wires are inserted sufficiently deep into the header as to make a connection with the contact down inside the hole).
                • #15896
                  sandman
                  Participant

                    Ok so i changed the address from 0 to 1 for the sensor and i got this back

                    31 2B 32 35 32 33 2E 37 38 2B 32 34 2E 30 D A

                    which when i converted to ASCII i get

                    1+2523.78+24.0

                    • #15897
                      Shannon Hicks
                      Moderator

                        Sounds like it’s working, that’s a standard response string for that sensor.  Is there a particular reason you’re requesting the Mega to print the result in hex instead of decimal.

                      • #15898
                        sandman
                        Participant

                          Thanks, didn’t realize address had an effect on what mode it was on. not really, just not to clutter the screen up on the serial monitor

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