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

Arduino Mini 2DOF

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by BondeX, Mar 5, 2016.

  1. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    Hey guys so here is my working mini model with 4 push buttons controlling 2 servos. Now I wana hook this this p up to SimTools so I can get hang of it. Thanks


    • Like Like x 2
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,153
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,604Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  3. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,153
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,604Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    No problem, this is what I used for the interface settings:

    interface.png

    And @eaorobbie's wiring:

    RC Sim Model_bb.jpg
    • Like Like x 1
  5. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    ok cool, I am doing it right now, will keep you posted.
    • Like Like x 1
  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
    Hey BondeX, where in Michigan are you?
  7. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    Rochester Hills, how about yourself.
  8. 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
    Greenville, north of Grand Rapids. @bruce stephen is over by you though.
  9. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    @noorbeast I did "Please install the RC Model Test_InterfaceConfig.cfg to Game Engine - Tools - Preset Validator." but this next step is not working as nothign is showing up in the interface "After that the preset can be selected in the Interface Preset box and you just need to specify the Comport Number of the Ard and then Test the Output will work correctly."
  10. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    @Historiker, I go to Bay City and Higgins lake a lot in summer time and was wondering if there is anyone around me or up north who is into simulators. Good to hear there are few ppl around from Michigan :)
  11. 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 am on the other side of the state :) Those are both north of you. But yes it would be cool to have someone local to share the hobby with.

    I am jealous of both of you, you have MicroCenter not too far away. Very long drive for me :( lol
  12. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    Haha, yes MicroCenter is a very cool store, Love going there. When I upgrade my pc for VR, you know where I will picking up my parts from :D

    Just saw your simulator, Its very impressive :)
  13. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    When uoloading @eaorobbie's code onto the arduino I am gettign foloowing errors

    Arduino: 1.6.8 Hourly Build 2016/02/19 10:33 (Windows 7), Board: "Arduino/Genuino Uno"

    Sketch uses 3,902 bytes (12%) of program storage space. Maximum is 32,256 bytes.
    Global variables use 248 bytes (12%) of dynamic memory, leaving 1,800 bytes for local variables. Maximum is 2,048 bytes.
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2d
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x2d
    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,153
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,604Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Do you have the correct board set on Tools -> Board of the Arduino IDE?

    I have attached the sketch I am using, if I recall I think I fixed a closing tag in it somewhere.

    I did not use the preset, I just set up the Interface as per the earlier picture, then the Axis Allocations as I normally would. I did use a fair bit of axis limiting while I was testing the servos, as I have not built a platform for them yet.

    Attached Files:

  15. 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
    yes @BondeX I am in waterford only minutes from you. BTW, when you go full scale I would recomend the SMC3 code. not knocking any others but The SMC3 comes with a utility app.. helps tune pid/duty cycle and such. Also it would be cool to see a first person view video of one of these models. camera in the seat.
    • Like Like x 1
  16. stevemontuno

    stevemontuno Active Member

    Joined:
    Apr 24, 2015
    Messages:
    316
    Location:
    UK
    Balance:
    1,461Coins
    Ratings:
    +335 / 0 / -0
    My Motion Simulator:
    2DOF
    Also @BondeX when using @eaorobbie s code ,make sure you have // in front of #define DEBUG ,,,,,like this //#define DEBUG ,,,
    That had me bamboozled for a bit,,
  17. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    Thanks @stevemontuno and @noorbeast, I got that code working and it actually works really well. Tried AC and while there is movement, there is not a lot of movement unless I drive off road. Will post a video showing what I mean.

    @bruce stephen I am glad you are close by :) specially after looking at your rig :) I wana try it :p
    • Like Like x 1
  18. 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
    ;) ty. let me know. spring may be fun i have 7 more motors to put to use.......
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,153
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,604Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Agree Agree x 2
  20. BondeX

    BondeX Active Member

    Joined:
    Feb 11, 2016
    Messages:
    142
    Occupation:
    EE
    Location:
    Michigan, USA
    Balance:
    1,501Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 6DOF
    @bruce stephen, are you building a 6dof with them motors?

    @noorbeast I will check it out and post a video with the settings.