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

    I2C reading of 12S battery

    Support Request Format for Best Results
    2
    4
    11
    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.
    • Nikos MavrN
      Nikos Mavr
      last edited by

      Hi all,

      I am trying to replace the voxl2 i2c inputs with those of an i2c power module installed closer to the supply source that can read the actual 12S source of the drone I am working on . The problem with this is that even with a level shifter or without I am not able to even find my device with i2cdetect, let alone receive readings. The module uses sen228, but i suspect that the problem could be the different pull up circuit of the different module. Could there be any feedback on that?

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @Nikos Mavr
        last edited by

        @Nikos-Mavr Which pins are you using? i2cdetect is only looking at i2c ports on the Linux (applications) processor. For PX4, the standard i2c ports are mapped to the DSP (aka SLPI) so you wouldn't see them.

        Nikos MavrN 1 Reply Last reply Reply Quote 0
        • Nikos MavrN
          Nikos Mavr @Eric Katzfey
          last edited by

          @Eric-Katzfey thank you for the reply. I have tried the j4 with a level shifter and j19 ports. What would be the proper command to see them?

          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @Nikos Mavr
            last edited by

            @Nikos-Mavr I'm not a hardware guy so not sure on the specifics of proper level shifting, etc. But have you made sure the unit works with some other board first like an Arduino? What is the sen228 module? Is a data sheet publicly available for that? What is the i2c address? J4 / J19 i2c ports should work with PX4 running the correct driver for that module.

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