Hi guys,
I've been a pretty passive member in the Arduino community so far and could solve all my problems by reading trough the forum.. till today!
For my bachelor thesis I'am building one of those balancing - segway like - robots. As I'am from a purely mechanic background I haven't had any experience with Arduino and barely any in the field of electrics and programming. So thats beeing said I'am going to explain my problem:
To get the inclination of the robot I use the Sparkfun MPU 9150 Breakoutboard (SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) - SEN-15335 - SparkFun Electronics ) which is quite discussed in the forum as well.
I got is working with following connection:
GND <-> GND
3.3V <-> VCC
A4 <-> SDA
A5 <-> SCL
On the software side I use the Library that is given by Sparkfun (GitHub - sparkfun/MPU-9150_Breakout: Example code and PCB design files for the MPU-9105, 9DOF.) combined with a Kalmanfiter.
So far everything worked fine, i got the sensor data to print out via serial and everything worked fine... Until i decided to tidy up the wiring of the robot. After that the IMU did not react to thing anymore. Now either there is no Serial output at all or there is the message I2Cwrite failed. So I re-re-re double checked my wiring but no problems here. As I soldered the jumpers directly to the breakout board I assumed that I maybe damaged the board while soldering.
So i bought a second sensor (Very very annoying almost 50€ in france at a local store...) I got it wired up and everything went back to working until just earlier that day. Only that this time I didn't even touch the robot when the sensor suddently stopped working. The robot fell (as the balancing is not soo stable in the moment) and the sensor stopped working. The robot can't fall on the sensor due to the sensors position and all the cables are still in position. On Sparkfun they say that is shock resistant up to 10'000g so it should not break due to the robot falling over!
I already runned the I2C scanner but it couldn't find anything so I'am asking whats going on here? Any ideas? Is there way to check if the sensor is really dead of if there is another problem which i didn't think of so far?
I attached an image of the robot to get an idea of its size... but anyway to top 10'000g of acceleration it need a bit more than a 20cm high structure falling over...
As the project needs to be finished pretty soon I really appreciate every tipp or help!
Cheers Niko
Ps:
I just verified the voltage at the 3.3V of the Arduino - everythings fine here and resistances between VCC and SCL/SDA are around 10 kOmh.