13 Replies Latest reply on Dec 2, 2015 6:41 PM by dethSwatch

    AM2315 i2c temperature/humidity sensor- have you gotten it to work?

    dethSwatch

      I've got one hooked up to the Edison via the arduino dev kit, am using Intel's IoT UPM code for the sensor, and can never get valid responses.

       

      The model/version check show data that changes every call.

       

      The testSensor method tells me there's a timeout and if you ignore that, you never get valid temp/humidity readings (as expected given the timeout error).

       

      Is it just possible I don't have the pins set up correctly? I'm running this:

       

      echo 27 > /sys/class/gpio/export

      echo 28 > /sys/class/gpio/export

      echo mode1 > /sys/kernel/debug/gpio_debug/gpio27/current_pinmux

      echo mode1 > /sys/kernel/debug/gpio_debug/gpio28/current_pinmux

      i2cdetect -y -r 6


      and get this:

       

      ./i2cSetupTest.sh: line 1: echo: write error: Device or resource busy

      ./i2cSetupTest.sh: line 2: echo: write error: Device or resource busy

           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

      00:          -- -- -- -- -- -- -- -- -- -- -- -- --

      10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

      70: -- -- -- -- -- -- -- --                        


      Regardless of what I try, I can't get the sensor to respond. I also have ONLY ever see "device is busy" or similar error when I try to set it via those command above.


      Please tell me where I'm misguided.