Battery information "N/A"



  • Hello,

    I recently purchased a Power Module v3 for a VOXL CAM. When I run "voxl-inspect-battery" I get N/A. This is also received on the web GUI and QGroundControl. I need to have this function working to fly the drone.

    To debug I've done the following steps:

    1. Used the command "voxl-i2c scan 8 400000" to see if the VOXL CAM can read any I2C devices on the power port. None showed up. I tested the command on the port with the barometric pressure sensor and the scanner is working properly as it found the device.

    2. I then used a hardware I2C scanner I have and plugged it into the Power Module v3, and it was able to discover the devices at 0x44 and 0x45. The power module appears to be functioning correctly.

    3. I wired a oscilloscope to the output of the VOXL CAM to scan the I2C port and verify the wiring and that the VOXL CAM is sending read commands. I was able to see the commands being sent and that the system is wired correctly.

    What can I do to properly setup this module? Is there anything I might be missing?

    Thank you,

    Justin


  • Dev Team

    Hi @jbruell94 ,

    The I2C bus used to talk to the Power Module v3 is actually connected to the STM32F7 microcontroller (not the snapdragon) so none of the voxl-* tools are really applicable.

    Here's the PX4 driver (and as I'm writing this, yes it's a bit confusing since I called the driver in PX4 "voxlpm"....):
    https://github.com/PX4/PX4-Autopilot/tree/master/src/drivers/power_monitor/voxlpm

    The action starts here:
    https://github.com/PX4/PX4-Autopilot/blob/master/boards/modalai/fc-v1/init/rc.board_sensors#L9

    The cable from the APM splits and plugs into this connector on the Flight Core mentioned above.

    Let me know if this doesn't help get you going.


  • Dev Team

    Note: ^^ none of that coding info above is needed, just for reference. The firmware on the FlightCore portion of VOXLCAM should be ready to go with nothing needed...



  • Hi ModalTB,

    I was able to resolve the issue looking deeper into QGroundControl. I had set the system to HITL after following your awesome tutorial:
    https://www.youtube.com/watch?v=-uoIxAkiYtk

    To fix this, I switched the system back to "Generic Quadcopter" in order to receive battery data.

    Thank you for your through response. It helped me to resolve this.

    Best Regards,

    Justin


Log in to reply