ArduPilot Mega Shield accelerometer help!

Hello,

So i have spent some time programming with the ArdupilotMega + Shield combo and i just realized that my Accelerometer does not read all 3 axis. Using the APM_ADC test code, channel 3 always posts a steady 1550-1552 reading. Im not sure what is going one.
Although this is not posted anywhere this is what i have assumed based on all the code i have seen for the APM shield.

Gyros = channels 0,1,2
Accel = channels 3,4,5
Pressure = channel 6? 

Is this correct? Channel 6 also produces a steady almost unchanging signal.
Or is my shield defective?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Admin
    Ricardo,

    Here is what I believe to be the correct ADC channels on the latest version of the IMU Mega:

    Serial.print(APM_ADC.Ch(4)); //X-Acel
    Serial.print(",");
    Serial.print(APM_ADC.Ch(5)); //Y-Acel
    Serial.print(",");
    Serial.print(APM_ADC.Ch(6)); //Z-Acel
    Serial.print(",");
    Serial.print(APM_ADC.Ch(2)); //X-Gyro
    Serial.print(",");
    Serial.print(APM_ADC.Ch(1)); //Y-Gyro
    Serial.print(",");
    Serial.print(APM_ADC.Ch(0)); //Z-Gyro
    Serial.print(",");
    Serial.print(APM_ADC.Ch(3)); //Temp
    Serial.print(",");
    Serial.print(APM_ADC.Ch(7)); //Aux

    Channel three, being the temperature, will show what you are reading. I get similar values.

    Hope this helps.

    Regards,
    TCIII
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…