• Hello,

    I'm trying to read a gyroscope (GY-91), that have an MPU-9250 inside with an BMP-280. I'm using this library But I have some problems.

    When I'm run the code throw the next error:

    Uncaught InternalError: I2CWrite: No ACK 0
    

    I'm trying with a LCD i2c, in case that if is the module that is wrong, but got the same error. Also, doesn't work with D pins (D0, D1, D2...) only with numbers

    //This doesn't work
    I2C1.setup({ scl: D4, sda: D5 });
    //This works
    I2C1.setup({ scl: 2, sda: 14 });
    

    After change the numbers the LCD works, but the MPU still don't.

    Edit: A full log of the error:

    Init MPU...
    Uncaught InternalError: I2CWrite: No ACK 0
     at line 1 col 15
    a.writeTo(12,c);return a.readFrom(12,d)
                  ^
    in function "rmag" called from line 1 col 49
    ...ew Uint8Array(this.rmag(3,7))).buffer),b=49­120/32760;return{...
                                  ^
    in function "readMag" called from line 1 col 63
    ...eadGyro(),mag:this.readMag(),new:this­.dataReady()}
                                  ^
    in function "read" called from line 3 col 23
          data = mpu.read();
                          ^
    in function called from system
    Uncaught Error: Unhandled promise rejection: InternalError: I2CWrite: No ACK 0
    
About

Avatar for user136941 @user136941 started