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

Help with code Arduino 6dof

Discussion in 'SimTools compatible interfaces' started by berty, Sep 23, 2014.

  1. berty

    berty Member

    Joined:
    Sep 10, 2014
    Messages:
    72
    Balance:
    164Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    Arduino
    Hi everyone,
    I have built such a platform (pictured). Servos are self powered via feed. But I do not know what code I put into the Arduino 6DOF. Can anyone advise with that?

    Attached Files:

    • Like Like x 1
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 2
  3. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino

    take a look here, here and here
    • Like Like x 1
    • Disagree Disagree x 1
  4. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 1
  5. berty

    berty Member

    Joined:
    Sep 10, 2014
    Messages:
    72
    Balance:
    164Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    Arduino
    Thank you to everyone for your help, :thumbs I have it, I made it as directed. :)
    But when they want to try free games, can it? Because when I turn on the output testing and I move with AXIS or DOF servo is not moving, but the LED lights on the Arduino.
    My-Interface output: P <Axis1> ~ R <Axis2> ~ H <Axis3> ~ A <Axis4> ~ S <Axis5> ~ Y <Axis6>
    Where is the problem?
  6. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    first of all you have to make a profile (the default) in game engine under axis assignments and save it
    then in game engine again and under interface settings you have to have something like the foto but you have to add the all 6 axis in the interface output according to the letters in the scetch of arduino ( line 13 http://www.xsimulator.net/community/threads/my-project-guide-me.5682/#post-59262 )
    com port is the com from arduino (mine is com3 your might be something else)
    and when you are done press save
    that's all with game engine settings
    no need to open game manager or have a game to test movements
    in game manager again go to output testing-axis testing press turn on
    if its ok you will see the tx and rx leds on arduino flashing while receiving data from game manager
    hope i helped and didn't confuse you more

    Attached Files:

    Last edited: Sep 23, 2014
  7. berty

    berty Member

    Joined:
    Sep 10, 2014
    Messages:
    72
    Balance:
    164Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    Arduino
    Thank you for your help.
    If you are not added that picture, I'd probably come later because OUTPUT TYPE-I had not the Binary to Decimal. And now it works. but one more question:
    When I move the axis 1, the servo will move one or all?
    Sorry for my english.