Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. ESCs
  3. Query regarding connecting bigger ESCs

Query regarding connecting bigger ESCs

Scheduled Pinned Locked Moved ESCs
15 Posts 5 Posters 2.6k Views 2 Watching
  • 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.
  • Alex KushleyevA Alex Kushleyev

    @Morten-Nissov , as i mentioned before, it is not officially supported right now, but we can explore this potential feature.

    The way two 4-in-1 ESCs would communicate, you would connect the UART RX and TX to both of them. However, before doing that, we need to tell one of the ESCs that it should be behaving as IDs 4-7 as opposed to IDs 0-3. When we originally designed this feature, there was a special connection (by default DNI'ed on the ESC PCB), where if you placed a 0-ohm resistor, it would tell all the MCUs on the ESC to behave with "shifted" IDs. However, this feature this has not been tested / used in a long time (due to lack of demand) and the software tools are not set up to support it right now (tools light firmware update, etc : voxl-esc).

    Let me go back and check which ESC boards could potentially support this feature (via the hardware jumper). Then i would need to evaluate how difficult would it be to update the tools for 8 IDs before I could tell you if / when we can support it.

    Can you please clarify which ESC board(s) you are considering using for the dual ESC configuration?

    Alex

    Morten NissovM Offline
    Morten NissovM Offline
    Morten Nissov
    Contributor
    wrote on last edited by
    #6

    @Alex-Kushleyev Understood.

    We were thinking of the mini ESSC: https://www.modalai.com/products/voxl-esc-mini?variant=47206467371312. But that's not necessarily a hard requirement, is it written which ones have this jumper? Sorry if I missed it.

    We're not opposed to doing some of this ourselves either, if it's not a feature you were planning on or wanted to add. Before seeing this message we were brainstorming re-purposing the GNSS UART for this instead, and other such more "hacky" solutions.

    Morten

    Alex KushleyevA 1 Reply Last reply
    1
    • Morten NissovM Morten Nissov

      @Alex-Kushleyev Understood.

      We were thinking of the mini ESSC: https://www.modalai.com/products/voxl-esc-mini?variant=47206467371312. But that's not necessarily a hard requirement, is it written which ones have this jumper? Sorry if I missed it.

      We're not opposed to doing some of this ourselves either, if it's not a feature you were planning on or wanted to add. Before seeing this message we were brainstorming re-purposing the GNSS UART for this instead, and other such more "hacky" solutions.

      Morten

      Alex KushleyevA Online
      Alex KushleyevA Online
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #7

      @Morten-Nissov , sorry i was out of office for a few days.

      Let me double check the mini ESC, i believe we probably removed that option for the jumper in order to save the space. But there could be other ways to do this.

      You are right that it could be possible to use two separate UARTs to achieve this. Then you would not need any change in the ESC itself, but there would be changes on the PX4 side. The easiest option would be to create a clone of the voxl-esc driver and have it use a different port and have the functions mapped to motors 5-8 instead of 1-4. I don't see why this would not work, it's not really too hacky, other than duplicating the voxl-esc driver, which is a lot easier than changing the single driver to work with 8 channels. You could just create a new module such as voxl-esc2 or something like that 🙂 and may need to modify the code a bit to allow to map motors 5-8 (i think currently you can only map motors 1-4).

      This is definitely worth a try if you want to give it a shot. Rough outline of the steps:

      • create a copy of the voxl-esc driver in px4 and rename it (lets say voxl-esc2)
      • add the new driver to the build for voxl2 platform
      • verify that the new driver can be used instead of the existing driver to achieve the current functionality of voxl-esc but using the gps uart port
      • verify that you can run two drivers at the same time (voxl-esc and voxl-esc2), you can have them send the same commands at first
      • modify voxl-esc2 to map motors 5-8 instead of 1-4 and test controlling all 8 motors independently (you can use actuator test in QGC)
      • publishing ESC status could be weird because i think all of the ESC status is in one message, but you can disable that or if you only populate the esc status of the appropriate ESCs, that could work (voxl-esc to populate esc status 1-4 and voxl-esc2 would popoulate esc status of 5-8).

      Just to summarize, we are not officially supporting this yet (i will need to do more thinking how to do this the easiest way that is in line with our future plans), but i think i provided a summary that should let you do this one your own without any changes in the ESC firmware. If you decided to go for it and run into an issue, i can try to help.

      Alex

      Morten NissovM 1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @Morten-Nissov , sorry i was out of office for a few days.

        Let me double check the mini ESC, i believe we probably removed that option for the jumper in order to save the space. But there could be other ways to do this.

        You are right that it could be possible to use two separate UARTs to achieve this. Then you would not need any change in the ESC itself, but there would be changes on the PX4 side. The easiest option would be to create a clone of the voxl-esc driver and have it use a different port and have the functions mapped to motors 5-8 instead of 1-4. I don't see why this would not work, it's not really too hacky, other than duplicating the voxl-esc driver, which is a lot easier than changing the single driver to work with 8 channels. You could just create a new module such as voxl-esc2 or something like that 🙂 and may need to modify the code a bit to allow to map motors 5-8 (i think currently you can only map motors 1-4).

        This is definitely worth a try if you want to give it a shot. Rough outline of the steps:

        • create a copy of the voxl-esc driver in px4 and rename it (lets say voxl-esc2)
        • add the new driver to the build for voxl2 platform
        • verify that the new driver can be used instead of the existing driver to achieve the current functionality of voxl-esc but using the gps uart port
        • verify that you can run two drivers at the same time (voxl-esc and voxl-esc2), you can have them send the same commands at first
        • modify voxl-esc2 to map motors 5-8 instead of 1-4 and test controlling all 8 motors independently (you can use actuator test in QGC)
        • publishing ESC status could be weird because i think all of the ESC status is in one message, but you can disable that or if you only populate the esc status of the appropriate ESCs, that could work (voxl-esc to populate esc status 1-4 and voxl-esc2 would popoulate esc status of 5-8).

        Just to summarize, we are not officially supporting this yet (i will need to do more thinking how to do this the easiest way that is in line with our future plans), but i think i provided a summary that should let you do this one your own without any changes in the ESC firmware. If you decided to go for it and run into an issue, i can try to help.

        Alex

        Morten NissovM Offline
        Morten NissovM Offline
        Morten Nissov
        Contributor
        wrote on last edited by Morten Nissov
        #8

        @Alex-Kushleyev Sorry for not responding, and thanks for getting back to me.

        I was curios if this jumper functionality was available on the mini? I'm guessing no?

        Otherwise we'll proceed with your recommendations, it doesn't seem so challenging to implement these changes.

        Edit: Just a quick question for a bug we found early on. I've made a copy of the driver and am trying to build it, but I am running into the following error message:
        Duplicate parameter definition: VOXL_ESC_FUNC1+
        I have removed entries from the params.c to make sure things are not doubly defined, but this one is not even defined there:

        // The following are auto generated params from control allocator pattern, put here for reference
        
        // Default ESC1 to motor2
        //PARAM_DEFINE_INT32(VOXL_ESC_FUNC1, 102);
        
        //PARAM_DEFINE_INT32(VOXL_ESC_FUNC2, 103);
        
        //PARAM_DEFINE_INT32(VOXL_ESC_FUNC3, 101);
        
        //PARAM_DEFINE_INT32(VOXL_ESC_FUNC4, 104);
        

        I've looked for other references to VOXL_ESC_FUNC1 but I am not finding the right place, would you have any idea why this is now getting doubly defined.

        Alex KushleyevA 1 Reply Last reply
        0
        • Morten NissovM Morten Nissov

          @Alex-Kushleyev Sorry for not responding, and thanks for getting back to me.

          I was curios if this jumper functionality was available on the mini? I'm guessing no?

          Otherwise we'll proceed with your recommendations, it doesn't seem so challenging to implement these changes.

          Edit: Just a quick question for a bug we found early on. I've made a copy of the driver and am trying to build it, but I am running into the following error message:
          Duplicate parameter definition: VOXL_ESC_FUNC1+
          I have removed entries from the params.c to make sure things are not doubly defined, but this one is not even defined there:

          // The following are auto generated params from control allocator pattern, put here for reference
          
          // Default ESC1 to motor2
          //PARAM_DEFINE_INT32(VOXL_ESC_FUNC1, 102);
          
          //PARAM_DEFINE_INT32(VOXL_ESC_FUNC2, 103);
          
          //PARAM_DEFINE_INT32(VOXL_ESC_FUNC3, 101);
          
          //PARAM_DEFINE_INT32(VOXL_ESC_FUNC4, 104);
          

          I've looked for other references to VOXL_ESC_FUNC1 but I am not finding the right place, would you have any idea why this is now getting doubly defined.

          Alex KushleyevA Online
          Alex KushleyevA Online
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #9

          @Morten-Nissov , i believe that module.yaml specifies the param prefix, which is used to generate the params inherited from the control allocator:

          Link Preview Image
          px4-firmware/src/drivers/actuators/voxl_esc/module.yaml at voxl-dev · modalai/px4-firmware

          PX4 Autopilot Software. Contribute to modalai/px4-firmware development by creating an account on GitHub.

          favicon

          GitHub (github.com)

          You would need to change the param prefix for your new module (in yaml and also double check the code to make sure it is using the correct params).

          Also, the mini ESC does not have the jumper to modify the IDs, sorry!

          Alex

          Morten NissovM 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @Morten-Nissov , i believe that module.yaml specifies the param prefix, which is used to generate the params inherited from the control allocator:

            Link Preview Image
            px4-firmware/src/drivers/actuators/voxl_esc/module.yaml at voxl-dev · modalai/px4-firmware

            PX4 Autopilot Software. Contribute to modalai/px4-firmware development by creating an account on GitHub.

            favicon

            GitHub (github.com)

            You would need to change the param prefix for your new module (in yaml and also double check the code to make sure it is using the correct params).

            Also, the mini ESC does not have the jumper to modify the IDs, sorry!

            Alex

            Morten NissovM Offline
            Morten NissovM Offline
            Morten Nissov
            Contributor
            wrote on last edited by Morten Nissov
            #10

            @Alex-Kushleyev Do you think it is possible to reuse params between drivers? E.g. those which shouldn't be different between the too like baud, rpm min, rpm max, etc?
            I was tempted to implement the extra serial read in the voxl_esc driver for this reason, to avoid doubly defining parameters which should be the same, but this is probably more complicated overall.

            Also, the mini ESC does not have the jumper to modify the IDs, sorry!

            Ah unlucky, but thanks for checking.

            Alex KushleyevA 1 Reply Last reply
            0
            • Morten NissovM Morten Nissov

              @Alex-Kushleyev Do you think it is possible to reuse params between drivers? E.g. those which shouldn't be different between the too like baud, rpm min, rpm max, etc?
              I was tempted to implement the extra serial read in the voxl_esc driver for this reason, to avoid doubly defining parameters which should be the same, but this is probably more complicated overall.

              Also, the mini ESC does not have the jumper to modify the IDs, sorry!

              Ah unlucky, but thanks for checking.

              Alex KushleyevA Online
              Alex KushleyevA Online
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #11

              @Morten-Nissov ,

              Yes, that is probably a good idea. so in the clone voxl-esc driver, you could just use the params and not define them in module.yaml and if you need to be able to change directions, you can define just the params like VOXL_ESC_SDIR5 ... SDIR8, etc

              1 Reply Last reply
              0
              • Gary HolmgrenG Gary Holmgren referenced this topic on
              • astro_philA Offline
                astro_philA Offline
                astro_phil
                wrote on last edited by astro_phil
                #12

                @Alex-Kushleyev, Hi Alex

                I recently setup a Hexarotor with 2 voxl-mini esc and created the second esc driver as described above. I know that this use case is not officially supported.
                But i was hoping you still can help me out on the following issue.

                As flying the drone inside a motion capture setup with position tracking, px4 has tough time holding it's position. A similar (in size and weight) quadrotor with the same firmware and setup works flawless.
                Flying in stabilized mode / attitude control both drones are fine.

                Looking into PX4 uorb rates I noticed running both esc drives reduces the update rate from 800 to 500hz in rate control. Also, some messages as the actuator_output and esc_status get published twice, once per esc, overwriting or setting the others esc status in the message to zero.
                Inside the driver itself sometimes the write-read to the esc spikes up to ~2ms of execution time.

                Any idea if some of these observations might lead to the bad tracking performance of px4?

                Besides that, both escs i use have one bad port that is not able to spin up any motor, it just gets stuck in the synchronization phase and motor is jumping back and forth but that's a different issue.

                Thanks, in advance

                Phil

                Alex KushleyevA 1 Reply Last reply
                0
                • astro_philA astro_phil

                  @Alex-Kushleyev, Hi Alex

                  I recently setup a Hexarotor with 2 voxl-mini esc and created the second esc driver as described above. I know that this use case is not officially supported.
                  But i was hoping you still can help me out on the following issue.

                  As flying the drone inside a motion capture setup with position tracking, px4 has tough time holding it's position. A similar (in size and weight) quadrotor with the same firmware and setup works flawless.
                  Flying in stabilized mode / attitude control both drones are fine.

                  Looking into PX4 uorb rates I noticed running both esc drives reduces the update rate from 800 to 500hz in rate control. Also, some messages as the actuator_output and esc_status get published twice, once per esc, overwriting or setting the others esc status in the message to zero.
                  Inside the driver itself sometimes the write-read to the esc spikes up to ~2ms of execution time.

                  Any idea if some of these observations might lead to the bad tracking performance of px4?

                  Besides that, both escs i use have one bad port that is not able to spin up any motor, it just gets stuck in the synchronization phase and motor is jumping back and forth but that's a different issue.

                  Thanks, in advance

                  Phil

                  Alex KushleyevA Online
                  Alex KushleyevA Online
                  Alex Kushleyev
                  ModalAI Team
                  wrote on last edited by
                  #13

                  @astro_phil ,

                  Can you please let me know which version of VOXL2 SDK you are using (and which version of PX4 you are using as the base, before you made updates to the ESC driver)? We made improvements to the SLPI (DSP) UART driver about 6 months ago, which reduced io latency.

                  Also, what baud rate are you using to communicate with the ESCs?

                  The actuator output messages conflicting -- yes, unfortunately we do not currently properly handle publishing multiple messages from different instances, so they will all come in on the same topic and will kind of alternate..

                  Alex

                  astro_philA 1 Reply Last reply
                  0
                  • Alex KushleyevA Alex Kushleyev

                    @astro_phil ,

                    Can you please let me know which version of VOXL2 SDK you are using (and which version of PX4 you are using as the base, before you made updates to the ESC driver)? We made improvements to the SLPI (DSP) UART driver about 6 months ago, which reduced io latency.

                    Also, what baud rate are you using to communicate with the ESCs?

                    The actuator output messages conflicting -- yes, unfortunately we do not currently properly handle publishing multiple messages from different instances, so they will all come in on the same topic and will kind of alternate..

                    Alex

                    astro_philA Offline
                    astro_philA Offline
                    astro_phil
                    wrote on last edited by astro_phil
                    #14

                    @Alex-Kushleyev
                    Thanks for the quick reply

                    system-image: 1.7.8-M0104-14.1a-perf
                    kernel: #1 SMP PREEMPT Sat May 18 03:34:36 UTC 2024 4.19.125
                    hw platform: M0104
                    mach.var: 2.0.0
                    voxl-suite: 1.3.3

                    and using px4 1.14.0

                    both ESCs are running with a 2M baud rate

                    astro_philA 1 Reply Last reply
                    0
                    • astro_philA astro_phil

                      @Alex-Kushleyev
                      Thanks for the quick reply

                      system-image: 1.7.8-M0104-14.1a-perf
                      kernel: #1 SMP PREEMPT Sat May 18 03:34:36 UTC 2024 4.19.125
                      hw platform: M0104
                      mach.var: 2.0.0
                      voxl-suite: 1.3.3

                      and using px4 1.14.0

                      both ESCs are running with a 2M baud rate

                      astro_philA Offline
                      astro_philA Offline
                      astro_phil
                      wrote on last edited by astro_phil
                      #15

                      @astro_phil
                      px4 version: 1.14.0-2.0.68

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      ModalAI
                      Categories Recent Tags ModalAI.com Docs
                      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups