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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Can you power VOXL2 from the ModalAI 6s ESC?

Can you power VOXL2 from the ModalAI 6s ESC?

Scheduled Pinned Locked Moved Ask your questions right here!
51 Posts 3 Posters 24.8k Views 1 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

    @Matthew-Wellner - good! not de-syncing now? Are you looking at the plots that are being saved after the test? visual inspection of the data is always good, once you look at a few plots and become familiar with what to expect you can easily spot if there are any issues.

    By the way, the test you are doing by commanding --power 40 etc, will essentially step from initial power of around 10 to 40. This is fine. I have been doing my step testing starting at 20%, which is a more realistic condition (stop from 20 to 50, 20 to 70, 20 to 90, 20 to 100 -- gradually increasing to build confidence). Stepping from 10 should be ok, but will experience even more aggressive transition.. let me know if you run into any issues with that.

    If you did not actually want an instant step when you are using voxl-esc-spin.py command, you can provide --ramp-time 2.0 argument (which will gradually ramp up)

    Alex KushleyevA Offline
    Alex KushleyevA Offline
    Alex Kushleyev
    ModalAI Team
    wrote on last edited by
    #40

    can you try the ramp test

    https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-ramp-test
    

    and the step tests

    https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-step-tests
    
    Alex KushleyevA Matthew WellnerM 3 Replies Last reply
    0
    • Alex KushleyevA Alex Kushleyev

      can you try the ramp test

      https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-ramp-test
      

      and the step tests

      https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-step-tests
      
      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #41

      i think the issue may be happening because you are punching a lot of power right after spin-up.

      You can try increasing the following parameter to make sure the motor is fully spun up :

      https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-params/low_kv/mn4006_m0134_6_low_kv.xml?ref_type=heads#L77 increase to 500

      I may need to add some protection against applying high power from very low rpm, as it is a really tough case

      1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        can you try the ramp test

        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-ramp-test
        

        and the step tests

        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-step-tests
        
        Matthew WellnerM Offline
        Matthew WellnerM Offline
        Matthew Wellner
        Regular
        wrote on last edited by
        #42

        @Alex-Kushleyev

        I was trying to avoid those tests before I had a proper setup to clamp the drone down, but I'll work on getting that together now and I'll give the ramp test a try.

        Thanks!

        Alex KushleyevA 1 Reply Last reply
        0
        • Matthew WellnerM Matthew Wellner

          @Alex-Kushleyev

          I was trying to avoid those tests before I had a proper setup to clamp the drone down, but I'll work on getting that together now and I'll give the ramp test a try.

          Thanks!

          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #43

          @Matthew-Wellner , yes.. safety first!

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

            @Matthew-Wellner , yes.. safety first!

            Alex KushleyevA Offline
            Alex KushleyevA Offline
            Alex Kushleyev
            ModalAI Team
            wrote on last edited by Alex Kushleyev
            #44

            I tried your test on my set up (mn4006 380kv, 15" prop), i cannot reproduce the issue. Please make sure that the following params are set correctly:

            <param name="timing_advance"        value="60"/>   
            <param name="sense_advance"         value="20"/>          
            <param name="demag_timing"          value="1"/> 
            

            If i set timing advance to something much lower, i can reproduce an issue, the motor makes a high pitch sound.

            Also please check the spin-up params. you could increase the spin-up rpm target to make sure the motor spins a bit faster after spin-up.

            Here is a plot of the following test (don't run at such high power until you make sure the lower power works fine 🙂 :

            ./voxl-esc-spin.py --id 3 --power 100 --timeout 1.5 --enable-plot 1
            

            cbe7ba38-c623-490d-b1b7-23452f959324-image.png

            You can see three phases of the motor spin-up

            • smooth sinusoidal spinup (t=0..1s)
            • short transition to 6-step commutation control (t=1.0..1.05s)
            • apply desired power with a slight slew rate limit (rate limit happens internally to firmware). Motor accelerates to maximum RPM. t=1.05.. 1.5s
            Matthew WellnerM 1 Reply Last reply
            0
            • Alex KushleyevA Alex Kushleyev

              I tried your test on my set up (mn4006 380kv, 15" prop), i cannot reproduce the issue. Please make sure that the following params are set correctly:

              <param name="timing_advance"        value="60"/>   
              <param name="sense_advance"         value="20"/>          
              <param name="demag_timing"          value="1"/> 
              

              If i set timing advance to something much lower, i can reproduce an issue, the motor makes a high pitch sound.

              Also please check the spin-up params. you could increase the spin-up rpm target to make sure the motor spins a bit faster after spin-up.

              Here is a plot of the following test (don't run at such high power until you make sure the lower power works fine 🙂 :

              ./voxl-esc-spin.py --id 3 --power 100 --timeout 1.5 --enable-plot 1
              

              cbe7ba38-c623-490d-b1b7-23452f959324-image.png

              You can see three phases of the motor spin-up

              • smooth sinusoidal spinup (t=0..1s)
              • short transition to 6-step commutation control (t=1.0..1.05s)
              • apply desired power with a slight slew rate limit (rate limit happens internally to firmware). Motor accelerates to maximum RPM. t=1.05.. 1.5s
              Matthew WellnerM Offline
              Matthew WellnerM Offline
              Matthew Wellner
              Regular
              wrote on last edited by
              #45

              @Alex-Kushleyev

              The ramp tests seems to have worked. I think that I was jumping the power up too quickly like you suggested. I'll get into trying to calibrate now. Thanks!!

              Matthew WellnerM 1 Reply Last reply
              0
              • Alex KushleyevA Alex Kushleyev

                can you try the ramp test

                https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-ramp-test
                

                and the step tests

                https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-step-tests
                
                Matthew WellnerM Offline
                Matthew WellnerM Offline
                Matthew Wellner
                Regular
                wrote on last edited by
                #46

                @Alex-Kushleyev said in Can you power VOXL2 from the ModalAI 6s ESC?:

                Link Preview Image
                voxl-esc-tools/doc/low_kv_motor_tuning.md · dev · voxl / VOXL SDK / Utilities / voxl-esc · GitLab

                GitLab.com

                favicon

                GitLab (gitlab.com)

                When I run the step tests, I can get up to the step amplitude of 70 successfully. When I try 20-100, it looks like I start to desync.

                1 Reply Last reply
                0
                • Matthew WellnerM Matthew Wellner

                  @Alex-Kushleyev

                  The ramp tests seems to have worked. I think that I was jumping the power up too quickly like you suggested. I'll get into trying to calibrate now. Thanks!!

                  Matthew WellnerM Offline
                  Matthew WellnerM Offline
                  Matthew Wellner
                  Regular
                  wrote on last edited by
                  #47

                  @Alex-Kushleyev

                  One last question - How do I get new values for kp & ki, or do I just leave them at 0?

                  Alex KushleyevA 1 Reply Last reply
                  0
                  • Matthew WellnerM Matthew Wellner

                    @Alex-Kushleyev

                    One last question - How do I get new values for kp & ki, or do I just leave them at 0?

                    Alex KushleyevA Offline
                    Alex KushleyevA Offline
                    Alex Kushleyev
                    ModalAI Team
                    wrote on last edited by
                    #48

                    @Matthew-Wellner , ok the results are not too bad. I will keep working on improving the low kv performance, but i think what you have should be sufficient.

                    You can also push the commutation advance a bit higher from 60 to 70 or 75, that should improve even more at an expense of a bit of motor efficiency.

                    You should be ready for the rpm controller, please run the calibration procedure. You can set kp=50, ki=10 to give it a little bit feedback.

                    Another thing that will prevent de-sync is the max_rpm_delta, which is basically the maximum RPM error that is used in the RPM controller. You can start by capping it about 2/3 of the max rpm and after calibration you can see if RPM step tests result in any de-syncs.

                    By the way, if you leave kp=0 and ki=0, the performance (speed of response) should be similar to a traditional ESC, but still better because of the Feed Forward curve and battery voltage compensation. So you can experiment with this and even kp=0 and ki=0 will still result in good performance. But a little better should be the defaults that i have here :https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-params/low_kv/mn4006_m0134_6_low_kv.xml#L62 including max_kpe and max_kie (and max_rpm_delta you can adjust if you see any de-syncs during rpm step tests)

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

                      @Matthew-Wellner , ok the results are not too bad. I will keep working on improving the low kv performance, but i think what you have should be sufficient.

                      You can also push the commutation advance a bit higher from 60 to 70 or 75, that should improve even more at an expense of a bit of motor efficiency.

                      You should be ready for the rpm controller, please run the calibration procedure. You can set kp=50, ki=10 to give it a little bit feedback.

                      Another thing that will prevent de-sync is the max_rpm_delta, which is basically the maximum RPM error that is used in the RPM controller. You can start by capping it about 2/3 of the max rpm and after calibration you can see if RPM step tests result in any de-syncs.

                      By the way, if you leave kp=0 and ki=0, the performance (speed of response) should be similar to a traditional ESC, but still better because of the Feed Forward curve and battery voltage compensation. So you can experiment with this and even kp=0 and ki=0 will still result in good performance. But a little better should be the defaults that i have here :https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-params/low_kv/mn4006_m0134_6_low_kv.xml#L62 including max_kpe and max_kie (and max_rpm_delta you can adjust if you see any de-syncs during rpm step tests)

                      Alex KushleyevA Offline
                      Alex KushleyevA Offline
                      Alex Kushleyev
                      ModalAI Team
                      wrote on last edited by
                      #49

                      Also, keep in mind that the step tests are extremely aggressive, you will never experience this in practice, as it is practically impossible to have a step input like as output of a flight controller. Nevertheless we want to make sure that the ESC will perform well. At the end of the day, since the flight controller will use RPM control, the RPM (step) tests are the most important - the RPM controller can help avoid these extreme transitions.

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

                        Also, keep in mind that the step tests are extremely aggressive, you will never experience this in practice, as it is practically impossible to have a step input like as output of a flight controller. Nevertheless we want to make sure that the ESC will perform well. At the end of the day, since the flight controller will use RPM control, the RPM (step) tests are the most important - the RPM controller can help avoid these extreme transitions.

                        Alex KushleyevA Offline
                        Alex KushleyevA Offline
                        Alex Kushleyev
                        ModalAI Team
                        wrote on last edited by
                        #50

                        @Matthew-Wellner , i have acquired SunnySky 4004 400kV motor, waiting for Tmotor MS1101 props, so i will be able to test your exact configuration and make sure it works well and does not desync. It will take a few more days for props to come in, just wanted to let you know.

                        Matthew WellnerM 1 Reply Last reply
                        0
                        • Alex KushleyevA Alex Kushleyev

                          @Matthew-Wellner , i have acquired SunnySky 4004 400kV motor, waiting for Tmotor MS1101 props, so i will be able to test your exact configuration and make sure it works well and does not desync. It will take a few more days for props to come in, just wanted to let you know.

                          Matthew WellnerM Offline
                          Matthew WellnerM Offline
                          Matthew Wellner
                          Regular
                          wrote on last edited by
                          #51

                          @Alex-Kushleyev Awesome!! Thanks!

                          1 Reply Last reply
                          0
                          • Alex KushleyevA Alex Kushleyev referenced this topic on

                          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

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