8 Replies Latest reply on Nov 14, 2015 5:28 PM by SanderB

    I2C_scanner sketch acts flaky on Edison

    Konrad_Roeder

      I would like to read five i2c Sensors with an Edison Arduino Breakout board using the same shield that I'm already using with an Arduino Uno.  I'm using Arduino IDE 1.6.5 and Edison Image ww25.5-15.  I use the attached i2c scanner sketch for both.  I use the same pins - power +5, ground, SDA and SCL on both boards.  Jumper J8 is on 5v on Edison.


      On the Arduino UNO, the sketch compiles, uploads and runs.  I see all five sensors reporting:


      Scanning...

      I2C device found at address 0x1E  !

      I2C device found at address 0x50  !

      I2C device found at address 0x53  !

      I2C device found at address 0x68  !

      I2C device found at address 0x77  !

      done

       

       

      I compile and upload the same sketch on Edison and get the following error(s).  I don't have to connect any of the sensors for this to happen.


      Not all of the sensors respond.  They act flaky.

       

      Scanning

      I2C device found at address 0x53  !

      I2C device found at address 0x68  !

      done

       

      Sometimes no sensors are found.  At other times, they come and go.

       

      ...ideas?