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

DIY Robocars via Twitter
RT @_JonMyer: 🚨Attention DeepRacer's including #UndergroundDeepRacer🚨 Check our our LIVE stream that including @IAM_dbro Take a few moments…
Wednesday
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars @donkey_car virtual AI car race is starting in 15 minutes! Watch it live on Twitch https://www.twitch.tv/mossmann3333 htt…
Aug 1
DIY Robocars via Twitter
RT @chr1sa: Don't miss our monthly @DIYRobocars @donkey_car virtual AI car race tomorrow at 10:00am PT live on Twitch. Head-to-head racing…
Jul 31
DIY Robocars via Twitter
RT @sparkfun: Our completed tutorial on building an @NVIDIA Jetson Nano-powered @Sphero RVR gets your bot up and running via teleoperation…
Jul 30
DIY Robocars via Twitter
RT @SmallpixelCar: Freeway test https://t.co/4V5tV9lhIP
Jul 29
DIY Robocars via Twitter
Very small autonomous cars racing, thanks to an overhead camera: https://control.ee.ethz.ch/research/team-projects/autonomous-rc-car-racing.html
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
RT @chr1sa: Don't miss our virtual AI car race this Saturday! Real developers + virtual cars =🏎️🏎️🏎️ Head-to-head battles with thrills, sp…
Jul 28
DIY Robocars via Twitter
Jul 27
DIY Robocars via Twitter
RT @usashirou1: Jetson nano by Isaac Kaya #jetson https://t.co/Mu1N0CyQkN
Jul 23
DIY Robocars via Twitter
RT @GPUsolution: JetRacer mady by Iflytek company #JetsonNANO #Nvidia https://t.co/MimTymIwge
Jul 23
DIY Robocars via Twitter
RT @openmvcam: I love this: Mega or Mini? Image Classification on the 1MB OpenMV Cam H7 by Ish Ot Jr. in OpenMV, Edge Impulse, Internet of…
Jul 23
More…