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

2 Dof Motion Simulator For Oculus Rift

Discussion in 'DIY Motion Simulator Projects' started by lcturkey, Aug 14, 2015.

  1. lcturkey

    lcturkey Member

    Joined:
    Jan 5, 2015
    Messages:
    46
    Balance:
    163Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    6DOF
    Hi to All,

    I am so new on this forum and I started to built a motion platform for Oculus Rift.

    Racingmat Code

    My hardware is

    Arduino Uno R3
    Pololu VNH5019- 24 V 12A ( Peak 30A )
    24V 2800 RPM 190W Motor
    Reductor Ratio 29


    Here is my wiring,
    20150814_211910.jpg

    Power Supply 24v 20A

    20150814_211808.jpg

    24v 2800 RPM 190W Motor and Ratio 29 Reductor

    20150814_211825.jpg

    here is the video while driver working with pots and with simtools



    My problem is that when I connect the pots on the motors and pull the axis to -100 or +100 motors doesnt stop and continue to run. I also tried to reduce the axis limits to %50 but nothing changed :(

    I think I need to send some codes to give a working angle to the motors but I dont know how to do it.

    Do I need to change the startup and shutdown values on the simtool ?

    Thanks to all
  2. Ville Pesonen

    Ville Pesonen Active Member

    Joined:
    Jan 13, 2015
    Messages:
    136
    Balance:
    847Coins
    Ratings:
    +200 / 0 / -0
    My Motion Simulator:
    2DOF
    one thing you could try is to reverse the polarity from the potentiometers (5v -> gnd and gnd -> 5v). Or you could reverse the wiring to your motors. but don't do both of them as then you're back where you started.
    • Agree Agree x 1
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,155
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,616Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    @RacingMat's code comments seem to detail what you are describing:

    The code is written to put the simulator on middle position at start :
    /* init position value*/
    int DataValueL=512; //middle position

    - if your pot is fully turned to max, as Arduino reads potentiometer value as motor position, Arduino believes that motor is in max position.
    - but the order is to be in middle position
    - so the Arduino will ask the motor to go reverse in order to go to middle position
    - your motor is turning
    - but while your pot keeps still, the motor will turn non stop !

    - when you manually turn the pot backward to min, Arduino reads that motor is in min position
    - but the order is still middle position, so Arduino will tell the motor to go forward
    - motor runs non stop until the pot is in middle position

    In the code, you have a tolerance parameter : when the pot is around middle position (<middle+tolerance and >middle-tolerance), the motor stops.
    You can broader Tolerance value to stop your motor more easily manually.
    • Informative Informative x 1
  4. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,978Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Informative Informative x 1
    Last edited: Aug 15, 2015
  6. lcturkey

    lcturkey Member

    Joined:
    Jan 5, 2015
    Messages:
    46
    Balance:
    163Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    6DOF
    @Pit I bought them form the dealer of kormas. Do you think they are good ?