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

Question 6DOF RC servo accurate move ?

Discussion in 'SimTools DIY Version' started by FoxONe42, Jun 2, 2018.

  1. FoxONe42

    FoxONe42 6DOF newbie

    Joined:
    Jan 8, 2018
    Messages:
    63
    Occupation:
    Flight simulator engineer
    Location:
    Nantes France
    Balance:
    100Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Hi all,
    I don't really know how to make myself clear so I hope the question will be understandable.
    As you can see from this picture below, I built a 6DOF platform with RC servo that i am currentely using with simtools to get acquainted with the software.
    20180602_140707[1].jpg
    Y is my surge axis, while X is the sway one. servos 1 2 and 3 are located to the right, when 4 5 and 6 are to the left.
    I have started playing with simtools and the axis assignement settings, and franckly speaking, it is working pretty well so far, and I manage to make the platform move "almost" the way I want.
    "Almost" is an important word as it the reason for my question here.
    Now, I have studied a bit the moves of a 6DOF stewart platform and the math behind it are quick complex (Well, it depends for who :)). If I understand correctely the way Simtools, it "only" gives a linear input to the actuar, based on the data received (pitch, roll, etc..) and the axis assignement. And it is a symetrical function.
    This works very well for some axis, but it is not ideal for all of them. Again, not sure I am being clear here but I 'll try to explain myself.
    Let's take the simplest DOF of all: Heave. All actuactors should move in the ssame direction, with the same amount of travel. Easy to setup with SImtools.
    ANother simple one, Yaw, the actuators should work in a reserve way by pairs. In my case, 1 and 6 are reversed, 2 and 3, then 4 and 5. Again simple to setup with simtools.
    A little bit more interresting, Roll. I see a lot of configuration where it is configured this way: 1 and 2 are set equally. 5 and 6 are reversed compared to 1 and 2. 3 and 4 are not even used. Doing so, this gives something close to a roll, but it is actually not "exactely" a pure roll. Indeed, a much better Roll is set as such:
    Axis 1 = 3/4 *X, Axis 2 = X, axis 3 = 1/4 * X, Axis 4 = 1/4 * X (Reversed), Axis 5 = X (Reversed), Axis 6 = 3/4 *X (Reversed). With X being anyvalue depends on the travel switch if any.
    In this configuration, the Roll looks much much like a "pure" Roll only, and not a combination of roll and yaw, and who knows what, as it is with initial settings. Does that make sense so far ?
    Well, but this is still working very well with Simtools since this mouvement is symetrical. (Y symetry axis)
    Same goes for the Pitch move, and even though it is not fully symetrical, it wotks pretty well with simtools settings.
    Now, in my opinion, real problem comes with Surge and Sway, where there is no clear definition of the amount of travel to be done by the actuator to perform a "pure" Surge or sway.
    I used this video below (and it's associated Excel file) to understand better the motions of sway and surge and set simtools correctely.

    The problem with sway and surge, is that each servo has a completely different travel length whether it is surge positive or negative, and same for sway positive or negative.
    Se settings the axis for one specific side (say positive surge) works well for the surge direction, but is way of with negative surge. This is clearly what I could experience with my 6OF motion platform.
    This, IMO, is due to the fact that settings sith simtools are linear AND Symetrical, and we cannot add more complexe mathematical calculation.

    All what was written above are pure assumption and I might be completely wrong. So please don't hesitate to show me the way, and maybe there is simply something I am missed with Simtools.

    Cheers guys.
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,879 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    SimTools does not yet have a maths based 6dof plugin, though it is being worked on, but as the many 6dof rigs using SimTools demonstrate careful tuning provides pretty good results.
  3. 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
    you would have to write a plugin to do the math for you. simtools is setup for plugins but as @noorbeast stated there isn't currently a plugin that deals with this issue. Although I haven't tried it with my 6 dof some use "ian's BFF software". I just tune to the feel personally. I dont use yaw and roll as they do not work properly for my 6dof. IMHO the rest is doable with tuning.

    EDIT: what you see when watching a sim move is vastly different from how it feels. sometimes the right feel looks completely wrong from outside of the rig.
  4. FoxONe42

    FoxONe42 6DOF newbie

    Joined:
    Jan 8, 2018
    Messages:
    63
    Occupation:
    Flight simulator engineer
    Location:
    Nantes France
    Balance:
    100Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    @noorbeast @bruce stephen
    Thanks both for your answer, I am glad that you understand my point :)
    Ok I get the idea that there is no advanced mathematical function for 6DOF with simtools (Yet) and I fully agree that Simtools gives pretty good results already without this feature.
    As per the tuning side, I have no doubt the feelings on a full size p^latform helps a lot doing the proper setup. But as mine is simply a scale model so far, I can only rely on the moves made by it and compare it to reality. I have no problem with Heave, Yaw and Roll moves that are true to reality. Pitch is not perfect but really acceptable. Only sway and surge are not behaving in a symetrical way, which is not very good in my opinion. I'll try to play with the settings, even filters to see if I can improve this behaviour. I might also want to ask other member's settings to compare and find the best alternative, eventhough this is pretty much hardware dependent.
    As per "Ian's BFF software", I'll have a look at it out of curiosity.
  5. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,198Coins
    Ratings:
    +5,093 / 18 / -0
    Where is the associated Excel file?
    A 6dof plugin would not be to hard if we had some 'math guys' to help out.
    yobuddy
    • Like Like x 1
  6. FoxONe42

    FoxONe42 6DOF newbie

    Joined:
    Jan 8, 2018
    Messages:
    63
    Occupation:
    Flight simulator engineer
    Location:
    Nantes France
    Balance:
    100Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Oh, I thought it was somewhere in the comments. I might be wrong here, but I have the EXcel file which is for sure the one use in this video. Not sure where I got it from then.
    ANoway, I can share it but of course, I don't want to take the credit for that as it is clearly not mine. The owner of this file seems to be the one who made the video, 1982DannyW.
    I used this file to understand the moves of a 6DOF motion platform, it is pretty interresting if you go through the maths behind it (again the file is very helpfull for that). It can even be customized to match the exact dimension of a rig.
    If such a feature could be included in Simtools, that would be amazing.
    Here is file enclosed. You will have to replace the .txt by .xlsm as I couldn't upload a file with this extension. If it doesn't work, just let me know and I'll share it in a different way.

    EDIT: I just realised the name of the owner of the Excel file is Danny Waters. Hope he is fine with me sharing his file.

    Attached Files:

    • Like Like x 1
    Last edited: Jun 2, 2018
  7. FoxONe42

    FoxONe42 6DOF newbie

    Joined:
    Jan 8, 2018
    Messages:
    63
    Occupation:
    Flight simulator engineer
    Location:
    Nantes France
    Balance:
    100Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    @yobuddy
    Any news regarding the discussion we had in this thread, any chance we can see an option for 6DOF accurate move in Simtools or it is simply not in the pipes ?
    Thanks mate in advance.
  8. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,198Coins
    Ratings:
    +5,093 / 18 / -0
    It's on the list of to-do's.
    And the list is getting shorter all the time.
    Take care,
    yobuddy
  9. SteULM

    SteULM Active Member

    Joined:
    Nov 13, 2021
    Messages:
    225
    Occupation:
    Alla ricerca di cose nuove da imparare.
    Location:
    Italy
    Balance:
    612Coins
    Ratings:
    +149 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi FoxONE42, I would like to build a similar platform as you did using mini RC servo, could you give some info about the code you used I think with arduino and possibly the simtools settings to move it. I looked around for this info but I couldn't find anything specific. In the meantime, I have printed the platform for the servo that should arrive in these days ....

    20211223_194056.jpg
    Last edited: Dec 23, 2021
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,879 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You will find the FAQs helpful, which includes overviews, code and how to modify it, even 3D print files: https://www.xsimulator.net/community/faq/build-a-working-model-to-test-your-design-ideas.216/
    • Like Like x 1
    • Informative Informative x 1
  11. SteULM

    SteULM Active Member

    Joined:
    Nov 13, 2021
    Messages:
    225
    Occupation:
    Alla ricerca di cose nuove da imparare.
    Location:
    Italy
    Balance:
    612Coins
    Ratings:
    +149 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,879 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Right, Left, Front, Back, but really it can be anything that is meaningful.
    • Like Like x 1
  13. SteULM

    SteULM Active Member

    Joined:
    Nov 13, 2021
    Messages:
    225
    Occupation:
    Alla ricerca di cose nuove da imparare.
    Location:
    Italy
    Balance:
    612Coins
    Ratings:
    +149 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Thanks you are always very kind :thumbs