ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Alternative voltage/current reading

    VOXL Flight
    2
    4
    273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      benjamin linne
      last edited by

      Hi, on the voxl-flight is it possible to input voltage and current readings to an ADC onboard, or is the power module I2C bus the only method for PX4 to read voltage and current? I would like to add these capabilities to my UAV, but the modalai powermodule doesn't meet my requirements. I posted an issue on gitlab a while back to possibly use the readings from our DSHOT telemetry enabled escs which outputs voltage and current visible in the ulogs and listener esc_status in the mavlink terminal. https://gitlab.com/voxl-public/documentation/-/issues/22

      1 Reply Last reply Reply Quote 0
      • modaltbM
        modaltb ModalAI Team
        last edited by

        Hi Benjamin,

        The architecture as it stands only interfaces via I2C to the power module included in the kit. There are no ADCs exposed out to pins that could be used.

        If you are up to write your own driver, it would likely be possible to subscribe to that topic and then publish as a battery message, but this isn't something we have out of box support for.

        1 Reply Last reply Reply Quote 0
        • B
          benjamin linne
          last edited by

          @modaltb It looks like the esc_status data should be available in mavlink. See https://mavlink.io/en/messages/common.html#ESC_STATUS. How can I test if I can use this?

          1 Reply Last reply Reply Quote 0
          • modaltbM
            modaltb ModalAI Team
            last edited by

            I think it's going to be a coding effort on your end to get this going. It's not something that's used out of the box (e.g. route ESC voltage as a battery voltage).

            My only experience has been when we created our power module driver, here:
            https://github.com/PX4/PX4-Autopilot/tree/master/src/drivers/power_monitor/voxlpm

            On the top of my head, you could modify the driver above, instead of querying I2C to our power module, you could just subscribe to your ESC messages in there, and covert that to a power monitor message perhaps!

            More info:

            https://docs.px4.io/master/en/config/battery.html

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors