1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

12V DC Motor 6DOF Motion Sim Project

Discussion in 'DIY Motion Simulator Projects' started by Racing Mike, Apr 27, 2016.

  1. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    You got it mostly right. In axis assignments you will set up 6 axis (one for each motor) and then also set up 6 dofs on each axis. For each dof you will then set a percentage of that dof to use on that particular axis. Add up all the dof percentages on a particular axis and you will have the total amount of movement (as % of possible movement) on the axis. Some dof’s you will set to 0 when you don’t want any movement from that dof on that particular axis.

    As far as that statement, Simtools will not do that in and of itself. However, Simtools 2.0, at some point, will get a 6dof math plugin that will do that for you if necessary. But when you set up all your motors and connection points at even and equally spaced intervals, it somewhat negates the necessity of using a 6 dof math plugin. At least it appears that way since a few members here are running their 6dof's now without it.

    Edit: The percentages of a dof can be different on each axis so you can make it work to some extent as you asked, but it won't automatically vary the percentages based on the current angle of the platform. We need a math plugin for that.
    • Informative Informative x 1
    Last edited: May 1, 2016
  2. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    Also, in your example with 3 ards, you would do something like putting <Axis1> and <Axis2> on interface1, <Axis3> and <Axis4> on interface2, and <Axis5> and <Axis6> on interface3.
  3. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    So if the axis and DOF set improper, the force of each motor will exclude and if the force is strong enough may broke the platform structure, right?
    What I see near every 6DOF project has different structure design(motor has different layout, different angle), how to adjust and without broking the platform?

    Attached some design I found in forum, if change the motor location, I guess the setting should adjust also. looks so difficult. The test function of Sim tools is impossible to simulate all the racting data.

    Attached Files:

  4. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    The two with the triangular platforms look geometrically the same to me. The hexagon platform design looks like it would offer steeper angles.

    I haven't done a 6dof myself though so maybe when @SilentChill isn't tied up doing the latest update to the Elite Dangerous plugin :grin or when @SeatTime can find a little time, they can tell you more in relation to their 6dof rigs and the setup and settings they used.

    I'm curious myself about whether a 6dof using linear actuators would benefit more from a math plugin or if lever actuators would. Can you guys share a few of your thoughts?
  5. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Preparation progress:
    12V DC motor: inquiry price on line, the seller has 200W to 600W motor, I'm worried more power more noise.
    3 Ards and 12 MMs: book on line
    6 POTs: book on line
    6 Flexible Shaft Couplers: book on line
    PSU: book on line

    but there are something I can't find, any one can give me some suggestions?

    12 Ball Joints: I found it on line now.
    CTC shaft: can’t find it.
    Long shaft (connect to CTC shaft): find some pole, maybe can be use. attached the picture.
    Connector of CTC shaft and long shaft: can’t find it

    Attached Files:

    Last edited: May 3, 2016
  6. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Preparation progress:
    12V DC motor: still not decide where to buy(too expensive to ship to Chile and too much tax). so bought 8 small motor to DIY a model first .
    5 Ards and 15 MMs: received
    7 POTs: received
    8 Flexible Shaft Couplers: received
    PSU: book on line

    This weekend I will start my model. It's time to upgrade my rig with DOF.

    Attached Files:

    • Like Like x 2
  7. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Having used software with a 6DOF math plugin (BFF) and software without a math plugin (Simtools), I really can not feel much difference. What does make a difference are other settings currently not available in simtools - Eg. adjustable centre of rotation and the ability to adjust roll and pitch based on acceleration. I have had a chat to @yobuddy about this and he was kind enough to produce a custom plugin to give some of these abilities, it worked well, although still allot of work to do. If you really want to understand how a stewart platform works then building a model is a great way to learn. The angles formed by the actuators to the rig are very important. If you don't get this right, the rig will not properly support itself - For a recent example of this see @poman rig which he is currently sorting out. For information here is his video (I hope he does not mind :))

    • Like Like x 1
    • Informative Informative x 1
    • Useful Useful x 1
  8. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    the Motor works

    one question, what is the reason for setp 5, 6, 8?

    Initial Setup

    I strongly recommend you follow the steps below if this is the first time you are using SMC3 with your simulator to reduce the risk of damaging anything.

    1. Disconnect the motor power supply
    2. Make sure Simtools is not running – we’re not ready for that yet!
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB
    4. Run the Windows SMC3 Utility software and make sure it communicates with the Arduino (There is no need to set baud rates, they are not configurable)
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move)
    6. Set Clip to 255 (you need to do this first) and Limit to 255 (This will give you plenty of margin if something goes wrong while setting up)
    7. Turn on the power to your motors – nothing should move at this stage!
    8. Set Kp to about 400
    9. Now slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
      • If it is then that motor and feedback is wired correctly - proceed to test other motors.
      • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
    10. Do the above for each motor

    http://www.xsimulator.net/community...3dof-motor-driver-and-windows-utilities.4957/

  9. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    the POT I bought as attached picture, which one should I connect to +5V and which one should I connect to GND? the else one I will connect to A0 and A1 in Ard.
    POT1.jpg POT1.jpg
  10. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    You can connect 1 and 3 either way. If the motor runs out of control then they are reversed so change them around.
  11. bruce stephen

    bruce stephen Hammer doesnt fix it, must be electrical

    Joined:
    Jun 7, 2015
    Messages:
    1,286
    Occupation:
    general contractor
    Location:
    michigan
    Balance:
    9,112Coins
    Ratings:
    +1,238 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform, 6DOF
    or swap motor wires
  12. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,963Coins
    Ratings:
    +1,016 / 10 / -1
    Just to minimise damage. Some new starters know more or less than others and if you're not careful it is possible to have motors zoom off and damage the sim, for example if the POT is connected in reverse.

    If you take care and do things slowly and carefully this is not necessary.
    • Agree Agree x 1
  13. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I guess Step 9 is to find out the matched initial "location" of POT and motor due to each POT with different initial angle. Do I understand right?
  14. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,963Coins
    Ratings:
    +1,016 / 10 / -1
    More so to check that the POTs/Motors are running in the correct directions. If one is in reverse the motor will just speed up and keep spinning. That is why recommended to increase slowly and see what happens on the chart so you can stop and reverse the wires if necessary. If you are testing with model motors it is not a huge risk, but if you are testing with a complete sim and they are wired wrong it may damage something with the powerful motors.

    Again it is just a recommended approach - if you take care and progress slowly you don't have to do it this way.
  15. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    IMG_20160522_201947.jpg IMG_20160522_203720.jpg

    First draft version model, working on POTs, used to study and test.
    • Like Like x 4
  16. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Thanks all.

    Looks the model works. but the 2nd left motor works not fine, only when the motion amplitude large(I choose motion mode in SMC3Utils v1.01 tool) the motor works. what could be the reason? the motor, Ard, or MMs?

  17. Racing Mike

    Racing Mike Member

    Joined:
    Apr 24, 2016
    Messages:
    99
    Location:
    Chile
    Balance:
    348Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    when I increase PWMmax for moter it become more responsive.
    why each motor has different responsive PWMmax? my motor 1 is about 30, but motor 2 is about 200.
  18. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Possible unserviceable MM driver chip.
    • Agree Agree x 1
  19. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,978Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    the troubleshooting procedure would require that you swap one motor with another and check
    then swap one MM with another and check...
    etc

    this will tell you where is the default ;)
    • Agree Agree x 1
  20. bruce stephen

    bruce stephen Hammer doesnt fix it, must be electrical

    Joined:
    Jun 7, 2015
    Messages:
    1,286
    Occupation:
    general contractor
    Location:
    michigan
    Balance:
    9,112Coins
    Ratings:
    +1,238 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform, 6DOF
    It is recommended to load test all monster motos before installing. There are some suppliers that are selling faulty units. Follow @RacingMat advise for finding fault.