UART battery monitor

Hello @Magix, I may not get you at this point. Why constant voltage make it difficult to monitor tha battery capacity - here I assume that “capacity” means mAh

There are several ways to “feed” the Ardupilot battery information

  1. Using Mavlink: You need to have intermediate hardware (such as microcontrollers, embedded PC) to read the battery and send the BATTERY_STATUS messages to Ardupilot
    Some useful links about how it goes:
    Simple way MAVLink and Arduino: step by step
    Battery status message Battery Protocol · MAVLink Developer Guide

  2. Using UAVCAN: https://uavcan.org/specification/UAVCAN_Specification_v1.0-beta.pdf#batteryinfo this is more difficult to implement compared to the 1.

  3. Why just simply use the Analog voltage/current measuring feature from Ardupilot: Power Monitor/Module Configuration in Mission Planner — Copter documentation

Hope this helps.
Vu.