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

Sara Damiano

Forum Replies Created

Viewing 10 posts - 451 through 460 (of 460 total)
  • Author
    Posts
  • in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2139
    Sara Damiano
    Moderator

      One more thing: If you’re going to use your Mayfly as a logger, make sure you set the real time clock first! I’ve written a sketch and tiny executable to synchronize the Mayfly with your computer clock. You can find it here: https://github.com/EnviroDIY/Sodaq_DS3231/tree/master/examples/PCsync

      in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2138
      Sara Damiano
      Moderator

        Yup, doing the soldering will make your 3.5mm jack connection much prettier and more secure than using the screw terminals. If you’re skilled with a soldering iron, it’s the way to go.

        If you’re skill-less and solder-less like I am, the jacks with screw terminals are a solution.

        in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2137
        Sara Damiano
        Moderator

          If you would prefer, you can also look into the Modular Sensors library, which has functions already built into it for getting data from a Decagon CTD, a Decagon ES2, and a Decagon 5TM and then logging that data to a SD card.

          If you downloaded the full package of libraries I mentioned in #2134, the Modular Sensors library is already included in it. If not, you download the zip at https://github.com/EnviroDIY/ModularSensors/archive/master.zip and unzip that for the Arduino IDE or install in PlatformIO using “pio lib -g install https://github.com/EnviroDIY/ModularSensors.git”.

          in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2136
          Sara Damiano
          Moderator

            Now that your sensor is connected and has an address set, you can get data from it using code like this:

            Once you have an array of values from the sensor, you can save them to an SD card or anything you’d like.

            in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2135
            Sara Damiano
            Moderator

              The next step is to set the SDI-12 address of the sensor. Communication with the sensor depends on its 1-character alphanumeric address (1-9, A-Z, a-z). Unfortunately, Decagon ships all of its sensors programmed to an SDI-12 address of 0, which cannot be used to get measurements from the sensor.

              Within the SDI-12 library on GitHub, there is an example with instructions for changing the address. Find it here: https://github.com/EnviroDIY/Arduino-SDI-12/tree/master/examples/b_address_change

              in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2134
              Sara Damiano
              Moderator

                Once you have physically connected your sensor to your Mayfly board, the next step is to download the library to communicate with the it from GitHub. If you are only interested in the SDI-12 library, download it here: https://github.com/EnviroDIY/Arduino-SDI-12/archive/master.zip. If you would like to download a collection of libraries that might be useful in communicating with and logging data from sensors, including the SDI-12 library, download this: https://github.com/EnviroDIY/Libraries/raw/master/libraries.zip.

                To install the libraries into the Arduino IDE, follow the instructions for Manual Installation on the Arduino library guide: https://www.arduino.cc/en/guide/libraries. If you are using PlatformIO you can install only the SDI-12 library using the terminal prompt command: platformio lib -g install “Arduino-SDI-12” or the entire collection of libraries using the command: pio lib -g install https://github.com/EnviroDIY/Libraries.git#platformio. For another IDE, follow the installation instructions for that IDE.

                If you have not yet downloaded any IDE or program to communicate with your Mayfly, I highly recommend PlatformIO over the IDE created by Arduino.cc

                in reply to: Logging Mayfly with Decagon SDI-12 Sensor #2130
                Sara Damiano
                Moderator

                  Up to 61 SDI-12 sensors can be connected to the same pin of the Mayfly. It is more stable to use the same pin for all the SDI-12 sensors you wish to connect rather than using different pins for each because this allows you to create only one instance of the SDI-12 object in your code. To connect multiple sensors to that pin, you can use a Grove branch cable (https://www.seeedstudio.com/Grove-Branch-Cable-%285PCs-pack%29-p-847.html) or a Grove hub (https://www.seeedstudio.com/Grove-I2C-Hub-p-851.html).

                  Sara Damiano
                  Moderator

                    I’d love any feedback you have on the modular sensors library! Feel free to post GitHub issues or post comments in the forums.

                    The Libraries repository doesn’t actually have anything new on its own, it’s just a bunch of links so anyone can download some of the more helpful libraries all at once. Do let me know if you think there are any crucial libraries that are missing!

                    in reply to: Using PlatformIO with Mayfly #1967
                    Sara Damiano
                    Moderator

                      The wonderful people at PlatformIO have now added native support for the Mayfly. Run “platformio update” in the PlatformIO terminal and you will then be able to find the Mayfly in the drop downs and call up the Mayfly as “mayfly” just like any other board.

                      Sara Damiano
                      Moderator

                        How are you trying to talk to the analog pins? To get the 16 bit ADD conversion you must use the auxiliary ADD converter/library for the Ti ADS 1115. Here’s a bit of code that may help you along. (Please note that this code is completely the work of Shannon Hicks!)

                      Viewing 10 posts - 451 through 460 (of 460 total)