Replies

  • Developer

    Hi Mark,

    The complete list of analog pins on the PX4 as seen by APM is this:

      PIN = 10
              This is the multi-connector pin 5 on the FMU board, and is safe
              for up to 18.6V. To use it for voltage scaling with the current
              releases you'd need to set VOLT_DIVIDER to 5.66. I have just
              pushed a fix to make it read voltage correctly with VOLT_DIVIDER=1
              for future releases.

       PIN = 11
           The "airspeed" pin. Located on a 3 pin DF13 connector on the PX4IO
           board, but directly visible to the ADC on the PX4FMU. This pin can
           take voltages up to 6.6V (it has an internal voltage divider).

       PIN = 12
           A general analog input pin. Located on pin 3 of the "FMUSPI" port on the
           PX4IO board, this pin is directly visible to the PX4FMU analog input
           code. This can take voltages up to 3.3V.

       PIN = 13
           A general analog input pin. Located on pin 4 of the "FMUSPI" port on the
           PX4IO board, this pin is directly visible to the PX4FMU analog input
           code. This can take voltages up to 3.3V.

       PIN = 100
           A virtual analog input pin for the battery voltage on a battery
           connected to the 6V to 18V input of the PX4IO voltage
           regulator. This is the normal pin to use for LiPo monitoring on
           PX4IO. If using this pin then set VOLT_DOVIDER to 1 for correct
           battery voltage reading.

       PIN = 101
           A virtual analog input pin for a battery current sensor connected to
           the "current" pin next to the power connector on the PX4IO. This pin
           can take up to 3.3V. WARNING: If you give it more than 3.3V then you
           risk causing the PX4IO malfunctioning, and may reboot your
           board. For use with a current sensor a 0.1uF capacitor between this
           pin and ground helps produce a less noisy reading.

     Cheers, Tridge

  • I have pin 5 plugged in, and if I run the native PX4 software, I can see the battery voltage.

    If I run the arducopter software, in mission planner, the voltage is always 11.025. I can select pins 0,1,13 for the battery monitoring, but none of those selections shows the battery voltage, or make any sense in the context of the PX4.

This reply was deleted.

Activity

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