Custom Uneven Motor Mixing

I need help please. I have made a couple of custom hexacopters. My favorite frame shape is the U-shaped Hexacopter. Unfortunatley I am not arduino gifted. Fortunately I do have the DJI wookong. They have a nice custom motor mixing table which makes any custom frame design easy to program, all you need to do is to write in the motor percentages.So my question is how can I change the motor power percentages in Arduino code to do this?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • MR60

    did you have the quad, hex, or octa worksheet. the hex worksheet need more optimization. the other two are good.

    • The CustomHexaCAD spreadsheet. I am using the U Hexa tab.

      Are there issues or just improvements you are noting for optimization?

      The motor matrix values corresponded to my calcs very closely so I think these are good.

      Working on compiling now but running into some issues with errors = but first time on this computer so I guess to be expected.

      • MR60

        the motor factors were my best quick guess versus optimal thought given the prop directions:

        CW     CCW

        CCW   CW

        CCW   CW

        but, prop rotation does not alternate (CW to CCW to CW to CCW) as on other ships. i'm not sure if this matters in terms of noise or effienciency.

        is there a solution if the props alternate is in the following?

        CW     CCW

        CCW   CW

        CW     CCW

        if there is, then all the props move the same direction when passing each other.

        what are your thoughts on this?

        • I have mine setup with alternating prop rotation. as in your second case. Vertical thrust factors would be the same in both cases.  Torque factors for yaw might vary but I am not sure the code accounts for varying arm length.  My assumption was that keeping sets of arms of equal length from COG to opposite rotation would produce the best balance.

          I am not seeing any ill effect of this setup.  Seems to fly well.

          I would think this would be best for efficiency since prop tips and airflow would be moving in the same direction.  I would expect this to be secondary to the overall effects of prop size and RPM etc particularly if these is a significant distance between prop tips. Also any turbulence due to props moving in opposite direction would seem to be minimized and these could be somewhat quieter although I am not sure if this is a big effect.

          • MR60

            pitch and roll motor factors are affected by arm length (radius to CG axis).

            yaw is only affected by rotation direction and the radius of it's rotating mass around itself. thus yaw motor factors can be altered to remove coupling between roll and yaw and pitch and yaw.

            you may have minor coupling between roll and yaw where yaw will also impart a bit of roll and roll will impart a bit of yaw.

            i don't understand how a U can can each arm the same distance from CG.  can you send me two things:

            1) the x/y coordinates for the left arms

            2) the roll, pitch, and yaw motor factors for each motor (this will tell me if there is coupling

            • Forrest,

              I have worked on the the calculations a bit and done some cross checks.

              I have added a Excel add in to allow me to use the Moore-Penrose Pseudo Inverse method to calculate the motor command factors for non symmetrical copters (also works for standard symmetrical configurations).

              And redone the coupling check calculations and verified with standard HES X configuration.

              There alternating motor rotation has a solution.  Form my config it shows the minor pitch lift coupling I expected but for the case where the middle motors are on pitch COG it shows no coupling on any axis

              Torquw factors

              Rotor Roll Pitch Yaw
              1 0.772 -0.899 -1.000
              2 -0.772 -0.899 1.000
              3 1.000 0.074 1.000
              4 -1.000 0.074 -1.000
              5 0.488 0.899 -1.000
              6 -0.488 0.899

              1.000

              Motor Command factors

              Motor Roll Pitch Yaw
              1 -0.631 -0.924 -0.501
              2 0.631 -0.924 0.501
              3 -1.000 0.076 0.643
              4 1.000 0.076 -0.643
              5 -0.369 0.924 -0.524
              6 0.369 0.924 0.524

              Coupling Check

                Impact of Roll on Impact of Pitch on Impact of Yaw on
              Lift 0.000 0.152 0.000
              Roll   0.000 0.000
              Pitch 0.000   0.000
              Yaw 0.000 0.000  
              • MR60

                grea

                • I have added an octocopter sheet and it is working well. I need to add code generator for 2 added motors.

                  Matrix calculations now happen automatically once add in is loaded in Excel.

                  Made some changes to the graphic copter display to dynamically update motor number and prop rotation on graph.

                  Doing quad sheet next.

                  • Latest rendition with labels added to all three sheets. 

                    Some corrections to coupling checks that I somehow messed up 

                    I am trying to figure out whether the yaw should be normalized to the highest yaw value or the highest overall value.  I think probably the highest yaw but currently is normalized to highest value in output matrix.

                    I believe this would limit yaw authority.

                    JSG ModCustomHexaCAD2.xlsm

                    https://storage.ning.com/topology/rest/1.0/file/get/3702948081?profile=original
                  • Use this file   Found same reversal of sign in Oct and Hex sheets.

                    Now changed.

                    Also put the S octo input into sheet and comes out with no coupling solution.

This reply was deleted.

Activity

gotham liked gotham's profile
15 hours ago
DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
Wednesday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
More…