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

Greg's journey into the world of 2DOF simulators

Discussion in 'DIY Motion Simulator Projects' started by Greg83, Feb 17, 2015.

  1. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    First of all, SMC3 will stop the motors if they will pass the clip input or latest at the Max Limits line. If one motor do that like you have described IMO the polarity of this motor has to be checked out. If I plug in the USB connector while the PSU is on and the motors are at different positions the motors should turn into the middle position and then they are stopping.

    To measure the voltage you disconnect the motors from the MM and connect the volt meter. Sine is a welcome test to check out if the polarity will switch and if the voltage is 12V (or -12V) and not less.

    If you want to be sure if the Ard or the MM has some errors, you have to switch the Ard wiring and then the MM wiring as well for testing with.

    PS: do not give up ;)
  2. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,062Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Have you tried changing the port that you use on the arduino? Change the physical analogue port to a different one, not just swapping the ones already used. For instance of the pots are wired to:
    Motor 1 = A0
    Motor 2 = A1

    Then change the faulty port to:
    Motor 1 = A0
    Motor 2 = A3

    You will actually need to open the SMC3 code and change it in the Arduino sketch.
    There will be a part in the code that states what ports are being used and read. You will need to change every instance of the faulty port to the new port.

    I suppose the question is, how good are you at reading/using code?
  3. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    @Pit : So tested the things and it seem the motor 1 part of the MM does not give down that much voltage when the motor should be going downwards, but chech my video maybe my conclusion is not good:
    Motor1:
    Motor2:


    Original cabling where green line moving towards blue target properly on both motors:
    IMAG0342[1].jpg

    Since I have no better idea I think I will take apart the MM solderings and resolder the blue things of A1/B1, maybe there is some kind of problem...
  4. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    @Alexey : I'am absolutely a noob with Arduino code, even the code upload went wrong somewhere for me because at first the program did not import the code upon double clicking on it so messing around with the code might cause more problems for me than to solve anything :D
    What do you recon from the above post?
  5. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    Redoing the soldering of A1/B1 was not the problem, the swithed polarity still sucks.. So I guess that is the source of my suffering?
  6. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    @Alexey SMC3 supports 3 pots/motors already. Code editing is not needed.
  7. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,062Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Edit: read back further and saw you have new MM, maybe the reverse voltage did damage your arduino port.

    According to the SMC3 page, connect your pot to A2 on the arduino and swap the faulty port to digital pins 11, 6 and 7.

    So:

    A2 = potentiometer
    6 = Motor ENA
    7 = Motor ENB
    11 = Motor PWM

    Swap those pins with the faulty ports.
    Last edited: Apr 30, 2015
  8. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    @Alexey : Thanks for the tip, I will try it out tomorrow and hope for the best :)
  9. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    @Alexey : So tested it, but the same results came back:

    IMAG0350.jpg
    But if we get the same results from the A2 port then...?
  10. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
  11. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    So getting both the Arduino and the MM changed, thankfully the ebay sellers are top sellers.
    • Like Like x 1
    • Winner Winner x 1
  12. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    [​IMG]


    Finally everything is working properly.
    It seems both motors have a little lag?!
    Now I went through the setup guide of simtool, but when trying to test the simulator manually nothing happens.
    Settings:
    simtools settings.jpg
  13. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    bitspersec should be 500000 and interface output 10ms
  14. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    Changed it but no luck.
    But if the SMC3 Utility can control the Arduino then its a setting issue with simtool?!
  15. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
  16. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    BTW the interface settings are not SMC3 code related. Did you use a code from @RacingMat?
    Last edited: May 19, 2015
  17. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
  18. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Forget about it. You are welcome. Hopefully you are near at the finish line :)
    • Like Like x 3
  19. Greg83

    Greg83 Active Member

    Joined:
    Feb 2, 2015
    Messages:
    104
    Occupation:
    IT Specialist
    Location:
    Budapest, Hungary
    Balance:
    328Coins
    Ratings:
    +46 / 0 / -0
    Sooooooooo, fiddled about with things, finalized the box holding the electornics and fired up the baby :)
    For some strange reason only AC gets me motion, LFS no, but that is not that bad.
    Made a small video, unfortunately the program is trial so sorry about the text in the middle... Can't seem to find a normal software for this?!...(any tips welcome)

    To me it looks like the right hand side motor is not really doing much?!!!..
    Also the starting position of the two arms seem to be a bit off...
    These are my settings:
    settings.jpg

    Can someone please suggest a direction I should start going in?
    I will install Project Cars too, but AC is my main simulation for now.

    Thanks for the help guys! :)
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,075
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,142Coins
    Ratings:
    +10,888 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Have a look at the open source Open Broadcaster Software, it is free and you can record multiple sources including game windows, monitors and webcams: https://obsproject.com/download

    It seems the motors spend the majority of their time at or near a fully extended position, why is that?

    Your axis % allocations should be around 100%, you can go a bit over but don't overdo it.

    Why the axis limiting and low main level %, are you being so cautious for a reason?
    Last edited: May 30, 2015