I cannot get an MPU9250 to work. I tried with sample codes in examples section and also the examples in webide.
-The code in examples throws an error (freeRTOS error) at enableInterrupt(),
-If i comment out enableInterrupt(), it hangs at waitfordata()? (Which can be normal, as i checked the interrupt wire with an oscilloscope and it doesn’t work).
-Lastly if i comment out waitfordata() and try to read every sys.delay(250), i get some reading everytime along with some I2C_TIMEOUT log prints. (the numbers read seem to be very wrong though).
-I tried both hSens1 & 2, i also checked the MPU9250 on a rpi with RTIMULib2, it works (without interrupt)
-The MPU9250 board that i am using is an ebay one looking exacly like the one in the picture of husarion website:
-I am using 5 wires Vcc, gnd, sda, scl, int
Any help would be much appreciated. Thanks!
PS: I couldn’t find anything except that in modules/MPU9250.cpp i2c address is defined as 0x69. And when i try that with RTIMULib2 it doesn’t work while 0x68 works.