This has been really hard for me. It has been few weeks trying to figure this thing out.
Well let's get to the prob here, I bought an IMU sensor which happens to be MPU9250 which is an accelerometer + gyro sensor + magnetometer + etcrtera. I soldered the lead and connected it to the controller board then downloaded the corresponding library and uploaded the example code. Andddddd nothing shows up, ok so now let's get to the troubleshooting checklist so that you guys can tell me the possible problem that I might didn't think of.
- Wrong wiring.[ 100% sure that its connected to the right pin, since im using arduino mega, the pin should be ( SCL - 21, SDA - 20, GND, 3.3V)].
- Try using different library. (Did with 3 of em).
- Tried using I2C Scanner (ONE GREAT MIRACLE, after few days of leaving it, i was playing around then i checked the monitor, it said i2c founded on address 0x68, then after changing the wires, its gone and never shown again).
- Maybe the Voltage regulator is fried due to bad soldering job. (I took a voltmeter and checked, its in good condition).
- Maybe the IC is fried so buy a new one. (Whops wait up lets see other options first).
- Try hooking up different i2c devices to make sure nothing wrong with the bus. (Yep 3 of em, including barometer and 2 diff oled the i2c scanner seems to detect all of em except for the IMU).
- Lack power (shouldn't be the case because after voltage regulation it will be 3.3v anyways so I put on 5V and nothing happens).
- Ok Bought a new one same IMU sensor but Ooooof. (This is where this sh** got me, also didn't work... damn wasted my last money of my weekly allowance on that).
- Check the wiring again (done for countless times).
My conclusion is, it might be the microcontroller itself (If it makes sense). Maybe some part of it got burned. I suppose that particular i2c addresss that is used to communicate with the sensor got burned (but the sensor has the capacibility of changing to different address which is from 0x68 to 0x69 which i tried and didn't work). Again only if it makes sense.
Ok to wrap everything up, I'm not sure of what problem I'm facing, I myself am not a professional in microcontroller just yet, Im still a freshman engineer student, so for those who are willing and already went this far of reading my post, I'm so glad and grateful. Atleast you noticed. And now I hope anyone out there would help me. Thank you for your attention.