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

2Dof arduino simulator 1st attempt

Discussion in 'DIY Motion Simulator Projects' started by Luimp, Oct 24, 2013.

  1. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  2. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,161
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,201Coins
    Ratings:
    +2,164 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    I happened to have it open on my screen when I was notified of your post :D
  3. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Can be now bought for the same price through their Australian dealer now, quite a popular board.
  4. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    got a link for the aussie dealer?
  5. Luimp

    Luimp New Member

    Joined:
    Oct 23, 2013
    Messages:
    21
    Location:
    Dungannon, Northern Ireland
    Balance:
    319Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Well I got the simtools and looks pretty easy to work with but I just think I'm missing something put everything together and it moves the servos but randomly and ingame nothing happends but everything looks connected
    How can I do a sketch for the arduino ?
  6. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,161
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,201Coins
    Ratings:
    +2,164 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    Hi Luimp, what sketch are you using right now?
  7. tombo

    tombo Active Member

    Joined:
    Oct 5, 2013
    Messages:
    269
    Location:
    Germany
    Balance:
    2,442Coins
    Ratings:
    +246 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hi,
    i orderd monster moto from dealextreme too. But i get a devective driver board. One Motor is working finde the other one only spins in one direction. So for me this wasn't a good choice.
  8. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Sketch works perfecting in SimTools, but if you have not commented out the debug line which is to be only used in the Serial Monitor it wont work.
    Please "//" comment out the "#define Debug" line at the top of the code.
  9. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi Luimp!
    You can find 2DOF arduino code in the DIY tutorials http://www.xsimulator.net/category/diy-tutorials/
    and the method of ste-by-step setup and calibration here Arduino code for 4DOF and 1 DIRpin Hbridge board here
  10. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    How did you go with flashing the code to the Ard, once it works there I can show you the setting to run them in a game. Easy one.
  11. Luimp

    Luimp New Member

    Joined:
    Oct 23, 2013
    Messages:
    21
    Location:
    Dungannon, Northern Ireland
    Balance:
    319Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Honestly I start to feel really like idiot I can connect all ok from arduino to motors and pots and all work ok just can't connect with simtools .
    I flash the ard with the firmware from Prilad thread after I put code from RacingMat for work with pot and small motor
  12. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Ok did warn the ard's not the easiest for begineers to pickup.
    Can RacingMat provide setting files for you to make this easier.
    I dont know the driver shouldnt be hard for him to provide it , plus post in each thread so the guys might help you there, If its just running the servos for the model i can help, but seems you have progress to building the sim.
  13. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @eaorobbie : i've seen you published a preset file. :)
    Is it just a matter a copying the file that Simtools write on my hard drive?

    Sorry for my approximative english, i didn't understood the end of your message :-(
    What driver, what posts?
    Yours
    Mat
  14. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @Luimp:
    Here is the interface preset file I got

    Just unzip it and paste it to your local directory:
    for me it is here (Win7 64bits): C:\Users\RacingMat\AppData\Local\SimTools\GameEngine\InterfacePresets

    Attached Files:

    • Like Like x 2
  15. Luimp

    Luimp New Member

    Joined:
    Oct 23, 2013
    Messages:
    21
    Location:
    Dungannon, Northern Ireland
    Balance:
    319Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Thanks now seems to be working I move the bars in simtools and the lights in monstermoto switch to green move right side and red move to left
  16. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Congratulations! :-D
    I bet you can't wait to seat yourself in your future simulator!
  17. Luimp

    Luimp New Member

    Joined:
    Oct 23, 2013
    Messages:
    21
    Location:
    Dungannon, Northern Ireland
    Balance:
    319Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Did you need to open your motors for isolate the earth cable or was just plug and play?
  18. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    With wipers, YES, must earth isolate. If that is too hard, best buy big worm gear motor which are already done, that and they are faster, stronger.
  19. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    The motors I linked do not need any hardware dismantling : they are ok like this!
    ;-)
  20. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Check it anyway, better spend 5-10 mins per motor than accidental nuke a board or two testing motor.jpg