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

WIP - RacingMat's closed circuit Gseat

Discussion in 'DIY Motion Simulator Projects' started by RacingMat, Dec 16, 2019.

  1. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    i really think the delay was in the flow of air in the small diameter tube...

    the sensor was close to the bladder but motor was overreacting because of the delay. It could be fine for other use than simracing which requires reactivity...

    but yeah, checking auto-average is a good point
    +1 (I had to deal with this issue for an altimeter on a DIY water rocket)
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,937
    Location:
    London
    Balance:
    11,850Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    a water rocket ?? what do you do for a job ?
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    yes water rocket is fun, reusable, not incendiary, ecological (but still dangerous)
    it was the student project of my son!
  4. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Have you found some pressure pad with larger diameter tube than others?
  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  6. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So, flow restriction delays and distorts "original signals",
    can be somewhat compensated by an old trick called digital pre-emphasis:
    [​IMG]

    • Deploy servos and pressure pads that can displace more air than needed at the seat
    • Servo can initially displace a larger (or smaller, when decreasing) value than wanted
    • Then servo signals are relaxed to wanted values after some delay, as air transfers nearly complete
    • Some initial trial-and-error tuning is wanted to derive best delay and weight values
    • Informative Informative x 2
  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,977Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    oh! I knew about PID but not about pre-emphasis: I'll look at it. Thanks
  8. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    any development with your project ?
  9. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    How u connect servos and psu to arduino on 7 volt? Do need motor controller?
  10. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Arduino has a library to control (by PWM) hobby servos, which have 3-pin connections:
    1. ground - connect to servo power and Arduino ground
    2. PWM - connect to Arduino PWM pin
    3. power - connect to e.g. 7.4 VDC supply, separate from Arduino power.
    My 7.4VDC power derives from a 12VDC bulk power supply reduced to 7.4VDC by a buck regulator.
    I chose a buck regulator which also limits current (to less than 5A)
    and has supercapacitor bank between the buck converter and servo for peak (e.g. stall) currents.
    Separate Arduino power is by its USB connection.
    Hobby servos do not require motor controllers.
    • Like Like x 1
  11. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    I d
    I don't know if I understand well. My English is not so good. Psu connect to external psu port? And serwo to 5v pin?
    I have also another problem on game engine I have surge force on axis assignment b and set in tuning center to work only for throttle. But how set sway force on 2 serwos to work like left right if I have 2dof on a assignment? If I set on b assignment like max 3 min 0 it's only work for one side. Is any way to set 2 serwos, one work in minus, and one in plus?
    Last edited: Feb 27, 2022
  12. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    [​IMG]
    • Like Like x 1
    • Friendly Friendly x 1
  13. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    I have a regulated 12v power supply, when it gives 7 volts and connect it as you wrote, nothing happens. Should I set it to 12v and connect a regulator like this?

    Attached Files:

  14. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    12V[​IMG] will damage hobby servos.
    [​IMG]
  15. blekenbleu

    blekenbleu New Member

    Joined:
    Jan 8, 2021
    Messages:
    6
    Balance:
    121Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    [​IMG]
    corrected wiring for your regulator
    • Informative Informative x 1
  16. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    @noorbeast I think maybe U can help? Maybe a modified arduino code? I have met several times with such ones, but which one should i choose?
  17. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,149
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,590Coins
    Ratings:
    +10,907 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    If you are using RC servos then @eaorobbie's code is the way to go, see the instructions and code links here: https://www.xsimulator.net/community/faq/build-a-working-model-to-test-your-design-ideas.216/
    • Friendly Friendly x 1