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

AM2315C Compatibility

Home Forums Monitor My Watershed AM2315C Compatibility

Viewing 2 reply threads
  • Author
    • #18461

        EnviroDIY Modular Sensors has the AOSongAM2315 but not the new AM2315C. I have the AM2315C. Is there a way for me to integrate the newer AM2315C sensor into my Mayfly project? I have the wiring ready. I have successfully tested the sensor and received good values using an example program so I know the sensor works but when I use the AOSongAM2315.h I only get -9999s.

      • #18462
        Shannon Hicks

          I’m not familiar with the new C model, but I did use the older, now-discontinued one awhile back.  Without digging into the manual and the library too deep, I’m guessing it might be an I2C address issue?  The old model used 0xB8 whereas the new one uses 0x38.  So go into the ModularSensors/src/sensors folder and edit AOSongAM2315.cpp, find line 34 and change the address from 0xB8 to 0x38.

        • #18477

            Thank you for your advice. I changed the I2C address at line 34 in the AOSongAM2315.cpp. I got this output ..

            Current logger time is 2024-05-13T15:02:43-06:00
            EnviroDIY Mayfly at EnviroDIY Mayfly reports batteryVoltage is 4.715 volt
            SensirionSHT4x at I2C_0x44 reports relativeHumidity is 39.09 percent
            signalPercent is calculated to be 97 percent
            SensirionSHT4x at I2C_0x44 reports temperature is 24.72 degreeCelsius
            AOSongAM2315 at I2C_0x38 reports temperature is -9999.0 degreeCelsius
            AOSongAM2315 at I2C_0x38 reports relativeHumidity is -9999.0 percent

            So it looks like the address change is in effect but sensor values are still -9999.

            Do you have any advice or ideas for my next troubleshooting effort?

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