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

Tutorial From AtoZ : 2DOF arduino wiper playseat

Discussion in 'DIY Motion Simulator Projects' started by RacingMat, Aug 8, 2013.

  1. trust928

    trust928 Member

    Joined:
    Sep 19, 2013
    Messages:
    152
    Location:
    brazil
    Balance:
    435Coins
    Ratings:
    +7 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Im using your firmware with ard.. but its freeking my computer how can i isolate it? Need Galvanic isolator? How can i implement theres some diagram for me to follow? My friend has the board etc.. and his computer runs normaly withougt isolation thats strange
  2. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +270 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    What is the problem exactly @trust928?
    What are the symptoms on your computer?
    • Like Like x 1
  3. trust928

    trust928 Member

    Joined:
    Sep 19, 2013
    Messages:
    152
    Location:
    brazil
    Balance:
    435Coins
    Ratings:
    +7 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hey pipis20015
    Man im my setup is the ard+ small pcb to join the singal and the hbrigdes... when i move the slider in game engine, my screen flikers it keeps turning off and on when i tried to play a game when the simulator starts to move everything frozes... im sure its because of the commom ground, an friend has the same setup and board s but he doesnt had any problem i dont know why
  4. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +270 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 1
  5. trust928

    trust928 Member

    Joined:
    Sep 19, 2013
    Messages:
    152
    Location:
    brazil
    Balance:
    435Coins
    Ratings:
    +7 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Yeas they are isolated i have opened them and cuted the wire that goes to the case, so i think its not it and more sugestion?
  6. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +270 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Are the computer and the simulator power supply plugged in the same wall outlet?

    Try to use a different wall outlet for your computer and the simulator power supply.
    • Like Like x 1
  7. trust928

    trust928 Member

    Joined:
    Sep 19, 2013
    Messages:
    152
    Location:
    brazil
    Balance:
    435Coins
    Ratings:
    +7 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Yeas they are, whats going on with it in the same wall oulet?
    Anyway i fixed the issue by puting opto isolators..
    The firmware is very good..
    Just a bit jerk but i just need to config i think that the bits should tranfers more quick.. i feel a delay some times but maybe just configuration thanks to all
  8. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    1/ can you tell us more on the isolators you're using?
    2/ good!
    3/ jerk: just check if it is a mechanical gap?
    delay: are you at arduino top speed in windows and Simtools? you can lower Tolerance parameter
    • Like Like x 1
  9. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +270 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Sometimes when the motors draw exesive amounts of current from the power supply ... I noticed some spikes on the voltage of the wall outlet (confirmed by my ups tripping on and off because it also detects the voltage difference).
    • Informative Informative x 1
  10. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Hello, I would like to ask about the arduino code:
    #define RV 2 //beware it's depending on your hardware wiring
    #define FW 1 //beware it's depending on your hardware wiring

    What does it mean? Is it the connection between motor and the motorshield or is it something else?
    Thank you
  11. Pilgreem

    Pilgreem New Member

    Joined:
    Apr 18, 2016
    Messages:
    13
    Location:
    France
    Balance:
    327Coins
    Ratings:
    +7 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Wow impressive, that awesome move.
    Good work, thanks for creating this DIY topic, that help me a lot.
    • Like Like x 1
    • Friendly Friendly x 1
  12. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    yes, it is :)
  13. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Hello RacingMat, I would like to ask about your arduino code. Did you use any PID Controller or other Controller in your code? Because I didn't find any controller that controls the feedback of the potentiometer. If there is, could you pointed out which part is it? Thanks in advance.
  14. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    it's written in the code...
    Code:
        // PID : calculates speed according to distance
        pwm=195;
        if (gap>50)   pwm=215;
        if (gap>75)   pwm=235;  
        if (gap>100)  pwm=255;
    there is only a P (Proportionnal) controller: the speed depends on the gap between real position and order.
  15. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Okay, I get it now. So if I may know what kind of control system did you use? Is it linear control system or on and off control system or something else? Thanks...
  16. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    It's not on/off as it's Proportionnal.
  17. EntonoX

    EntonoX Member

    Joined:
    May 23, 2016
    Messages:
    49
    Occupation:
    Full Stack Developer
    Location:
    The Netherlands
    Balance:
    121Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Really nice build and a huge inspiration to my build 'to come' :) how are the motors holding up? fast enough to feel the fine details of movement?
    • Like Like x 1
  18. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    yes Smolka are perfect to feel details! but they are no longer available...

    glad my tutorial is useful :)
    • Like Like x 1
  19. EntonoX

    EntonoX Member

    Joined:
    May 23, 2016
    Messages:
    49
    Occupation:
    Full Stack Developer
    Location:
    The Netherlands
    Balance:
    121Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Thanks! Maybe i found a cheap replacement for the Smolka (NIDEC 404.458) motors. I have them in order right now and i expect them to arrive this week. Then off for a SIM build :D
  20. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Eager to see your project! :)