Only 0 values from APM_ADC_test

Have the AP Mega and IMU assembled, have done some basic tests to switch led's on/off etc.

One thing I can not get working and have trouble debugging is the ADC, all the test program returns is a row of 0's.

Any ideas how to debug ?

The code I used is the files as below for the libraries and APM_ADC_test.


Hein

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

Join diydrones

Email me when people reply –

Replies

  • Woohoo! Fixed it.  In case others see this issue, for me there was solder that shorted together pins 11 and 12 on the Atmel.  11 is ground and 12 is RX2 which is how the ADC sends data back to the Atmel.  Once I broke the solder bridge things worked fine :)
  • Hmm I am only getting zeros as well.  My board just arrived today.  I've tried both the "test" mode and the ADC test program directly.  Barometer and radio work fine.

     

    Photos: https://picasaweb.google.com/john.t.erickson/ArduPilot

     

    Thanks!

    John

  • Admin
    Hein,

    Try the attached code. Make sure that the APM_ADC folder is in the IDE libraries folder.

    Regards,
    TCIII

    APM_ADC_test.pde

    https://storage.ning.com/topology/rest/1.0/file/get/3692055614?profile=original
  • 3D Robotics
    Make sure you're only powering the board with USB or FTDI, not external power, during the test.
This reply was deleted.

Activity