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

LSM303 Accelerometer + Compass library integration into ModularSensors

Home Forums Mayfly Data Logger LSM303 Accelerometer + Compass library integration into ModularSensors

Viewing 8 reply threads
  • Author
    Posts
    • #12844
      Greg Cutrell
      Participant
        While getting the Mayfly into the water quality buoy world we got a couple LSM303’s to calculate the compass direction at which the mayfly is facing. It uses I2C and is really easy to get runnin
      • #12846
        Sara Damiano
        Moderator
          I’m sure the LSM303 could be integrated into ModularSensors. You should also be able to use it along with ModularSensors without actually integrating it. You might not be able to use the ̶
        • #12851
          Greg Cutrell
          Participant
            Thanks Sara! My I2C port is not switched and confirmed that it had 3.3V. I didn’t think about looking into what the begin() function is actually doing. It turns out applying the begin() before e
          • #12855
            Sara Damiano
            Moderator
              You definitely want to update for calculated variables. There’s a big bug in 0.19.6 in the “completeUpdate” function in run inside the “logData” function that will make a
            • #12856
              Greg Cutrell
              Participant
                Thanks for the update confirmation and information about when the calculated variable takes place. I’ll see how much time I can spend on the best way to integrate the compass. The best way to is
              • #12857
                Greg Cutrell
                Participant
                  On the topic of averaging. It seems the averaging parameter takes a number of consecutive measurements. I thought the measurement_time variable might offset each consecutive measurements but it doesn&
                • #12858
                  Sara Damiano
                  Moderator
                    If you’re averaging multiple measurements, the first measurement is started stabilizationTime_ms after wake up and the result requested measurementTime_ms later, or as close to that time as the
                  • #12859
                    Greg Cutrell
                    Participant
                      Thanks! Bummer about not being able to average out samples over a period of time but I understand the power limitations for a normal mayfly system.

                      The double logger was going to be my fall back so

                    • #12860
                      Sara Damiano
                      Moderator
                        You can completely ignore the error “override controls (override/final) only available with -std=c++1 or -std=gnu++11” I’m not sure why it always comes up. I can’t imagine yo
                    Viewing 8 reply threads
                    • You must be logged in to reply to this topic.