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

ggraves

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Atlas Scientific Logger – Sleep between readings #14823
    ggraves
    Participant

      Thanks, @srgdamiano and @shicks! After working through the code, what seemed to work was actually placing the sensor sleep commands in my getdata() function. For whatever reason it didn’t work too well in the systemSleep function as it seemed to stall my sensors and not allow enough time to wakeup the sensors for reading. Still working on cleaning up the code, but will share for those that are interested once I get everything up and running!

      in reply to: Atlas Scientific Logger – Sleep between readings #14721
      ggraves
      Participant

        Thanks for troubleshooting the code. Looking at it more…It works with one sensor but not with both on the same I2C hub. It seems that there is a problem when both grounds are connected to the hub with the sleep/RTC pin. I have tried multiple hubs/cables to no avail. Starting to think it is a conflict with one of the sleep functions/libraries because I can run 2 sensors on this hub just fine if I don’t have the sleep code.

        in reply to: Atlas Scientific Logger – Sleep between readings #14718
        ggraves
        Participant

          It is sleeping all the time and not waking. No data is being saved or printed to the serial terminal.

          in reply to: Atlas Scientific Logger – Sleep between readings #14716
          ggraves
          Participant

            Thanks! I worked through a couple of things, including your suggestions, and I still can’t get the logger to wake up… I know the switch works because if I set it to HIGH in the setup the board does come on and the sensors read/turn on without the sleep functions (and the RTC is functioning/correct). Do I need to have a wakeup function or something in the getdata() function for the sensors as well?

            in reply to: GPSbee #13418
            ggraves
            Participant

              Awesome thanks!

              in reply to: Serial datalogger RS485 #13214
              ggraves
              Participant

                Thanks for the help!

                I ran into another problem as I think something happened and I blew a chip in the ADCP… I’m trying to determine if voltages were different. The RS232 and 485 chips in the ADCPs are 3.3V and I thought I had everything hooked up correctly to the right voltages, but I’m wondering if the Tx and Rx on the board are 5V output, or the TTL converter somehow pushes out 5V (the documentation on the converter is confusing).

                Sorry for the confusion on the red, black and white wires, they were just leaders attached to the end of the cable I had – red=blue and black=orange and white=green.

                in reply to: Serial datalogger RS485 #13205
                ggraves
                Participant

                  Hi Sara,

                  Thanks for the reply and pointers! I bought an adapter, but I’m unsure if I’m hooking it up correctly. Would you mind looking at the attached pictures for reference? I’m unsure of how the converter takes in serial data and sends it to the Mayfly…

                Viewing 7 posts - 1 through 7 (of 7 total)