IMU/Depth Sensor is not working


#1

Greeting All,

My IMU/Depth sensor is not working. Even when my Cockpit is on I change the position of my IMU nothing changes in the screen, neither IMU coordinates nor Depth nor Temp.

I tried to use the sensor with arduino uno using the following code:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <Wire.h>
#include <MS5803_I2C.h>

MS5803 sensor(ADDRESS_HIGH);


float temperature_c, temperature_f;
double pressure_abs, pressure_relative, altitude_delta, pressure_baseline;

double base_altitude = 1655.0; // Altitude of SparkFun's HQ in Boulder, CO. in (m)

void setup() {
Serial.begin(9600);

sensor.reset();
sensor.begin();

pressure_baseline = sensor.getPressure(ADC_4096);

}

void loop() {


temperature_c = sensor.getTemperature(CELSIUS, ADC_512);


temperature_f = sensor.getTemperature(FAHRENHEIT, ADC_512);


pressure_abs = sensor.getPressure(ADC_4096);


pressure_relative = sealevel(pressure_abs, base_altitude);


altitude_delta = altitude(pressure_abs , pressure_baseline);


Serial.print("Temperature C = ");
Serial.println(temperature_c);

Serial.print("Temperature F = ");
Serial.println(temperature_f);

Serial.print("Pressure abs (mbar)= ");
Serial.println(pressure_abs);

Serial.print("Pressure relative (mbar)= ");
Serial.println(pressure_relative);

Serial.print("Altitude change (m) = ");
Serial.println(altitude_delta);


delay(1000);

}


{
return(P/pow(1-(A/44330.0),5.255));
}


double altitude(double P, double P0)


{
return(44330.0*(1-pow(P/P0,1/5.255)));
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

However, the output I get is completely wrong and not reasonable at all.

I tried to reset my sensor using:

https://github.com/OpenROV/openrov-electronics/blob/master/OpenROV%20IMU%20Tester/IMUTestArduino/IMUTestArduino.ino

But I did not know how to set up and wiring. Could you please help me out to find a solution for it.

Thank you very much.


#2

Hi

What I can see is that the MS5803 sensor only handles pressure(depth) and the coordinates is MPU-9150

http://store.openrov.com/collections/frontpage/products/openrov-imu-depth-module

Your sw here is only the MS5803 sensor.

It seems that the test code folder has some sw for testing the MS5803

https://github.com/OpenROV/openrov-software-arduino

Here's also some IMU test sw

https://github.com/OpenROV/openrov-electronics/tree/master/OpenROV%20IMU%20Tester


#3

You may want to follow this thread: