Asked — Edited

Non Ez-Robot Mpu9150 - Any Luck

Has anyone had any luck getting a non EZ-Robot supplied MPU9150 to work with the EZbv4? I'm not able to get mine to work.

I'm using the 5.16.15 release of ARC Added the MPU9150 control to my project EZBv4 Interfacing the MPU9150 to one of the i2c ports This is module I'm using: MPU9150 The board does power up.

Any suggestions on what I can try to get it to work?

Thank you!


ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

PRO
Synthiam
#9  

It's not software - it's the sensor. The sensor detecting the electromagnetic across multiple axis is known to get "Stuck" and require calibration. Calibration can be performed by pressing the calibrate button - but also disabling any "RunOnce" ControlCommand() queries during calibration.

You must rotate the sensor across all 3 physical dimensions while rotating it.

This is a similar calibration procedure that pops up occasionally on mobile devices.

The reason the mpu sensor has been discontinued is due to the inherit troubles with the sensor itself. Also, the sensor lacks the ability internally to compensate for the angle during reading magnetic data. The magnetic sensor data from each axis runs through an equation in ARC to compensate on the physical angle of the sensor based on the accelerometer.

In short, the mpu is a terrible sensor - which is why the product has been discontinued and we're working on a new one by evaluating more robust sensors. The mpu is popular in the hobby space because it's cheap, but not reliable.

If you wish, the ARC mpu control displays the RAW data from sensors in the Variable Manager. As you will see, the data from the sensor becomes invalid - as it's not an ARC software issue.

The raw data is presented to anyone willing to use the raw sensor data from the magnetometer to calculate their own angular equations etc..

PRO
Synthiam
#10  

oh, lastly i should add that if a calibration doesn't restore the sensor data... sometimes i notice a power down for a few seconds helps. Simply disconnecting the sensor from the ez-b produces unusual behavior as well.

Also make sure you are using the INIT button or sending an Init to the sensor. The sensor requires one Init before operation.

you do not need need to send more than one init. If you send more than one init in a session, weird data will appear as well.

The question mark on the control will bring you to the manual page for the mpu device with example code.

#11  

LOLOLOL

I was calibrating while running the script... dough...:D

Thanks a lot @Dj. It works now.

#12  

Compass and angle sensors are so often the cause of issues of even very expensive robots with very expensive sensors. I've seen that be the cause at competition for sending ground robots off course and drones to crash. The struggle is real. I'm excited to see what the next generation sensor from EZ-Robot will be. :)