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

Motion driven servos contoled rear view mirror objects

Discussion in 'DIY Motion Simulator Projects' started by James Frame, Feb 4, 2022.

  1. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    Hi Guys,
    James From Scotland here

    Been sim racing for a couple of years now with a particular passion for Dirt Rally 2.0. I have done quite a bit of customizing my rig with the ambition of always having something which can be switched between sim racing and working from home in around a minute.

    To do this I've made several things like like fold away pedals, DIY button box with an android screen connected to my gear stick and DIY handbrake all of which can be moved in and out of position. I've also made a monitor arm for triples which can move from tight against the wall to out behind my wheel.
    The only venturing into the electronics side of things I've done so far is add vibration to my pedals via SimHub.

    As i'm sure a lot of people here find, the building and designing the custom things can be as enjoyable as actually spending time in the sim.

    Due to lack of space i wont be creating a motion sim in the near future, but the project that brought me here is motion related. I saw a video on youtube of a mini motion rig using very small servos to replicate the in game motion onto a model F1 car. I would like to do something similar but to have 2 servos control the swing of an item hanging from the rear view mirror (ie a scented tree or dice etc).

    I'm aware this is quite a trivial idea (and to my knowledge hasn't been done before), but the rational would be one day i would like to create a motion sim (when i have more space) and i thought this could be a good introduction to some of the elements of creating one (at hopefully a pretty limited cost) and better inform me before starting a Motion sim project i cant complete. Also in Rally weight transfer of the car, particularly the older ones is crucial to maximize speeds, i thought this could be a way of visualizing weight transfer without requiring the space for a full motion sim.

    Questions,
    1) Has anything like this been done before?
    2) Are there any particular areas of the forum i should be looking that specializes in small servos etc (alot of the previous reading i have done is about much bigger motors for obvious reasons!)
    3) If i do all the correct build thread and guide is this likely to qualify me for the DIY Licence of Simtools or is that only for full motion sim rigs?
    4) Am i likely to need a motor shield even for very small servos? (i already have an Arduino Uno and some servos, so the only things i believe i still need is potentially a motor shield and an appropriate software)

    Many Thanks
    • Creative Creative x 1
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,557
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,160Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    What a quirky cool idea!

    I am not aware of that being done before.

    The information and code required for RC servos is available and no you won't need shields for RC style servos: https://www.xsimulator.net/community/faq/build-a-model-to-test-your-design-ideas.136/

    The eligibility criteria for a free SimTools DIY license precludes models:

    To qualify for a free license:

    • You must be building a true DIY motion simulator. (Not built from a kit or purchased from a simulator seller, a model simulator does not qualify.)
    • Have a unique build thread or Showcase in DIY Simulator Projects. (The thread should show some effort, which means it should show progress to the rig testing phase.)
    • Have been a member of the community for at least 30 days.
    [​IMG]
  3. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    thank you @noorbeast, that is exactly the kind of info i was looking for regarding RC servo motors, looks like i've got some reading up to do and get started building!
    • Like Like x 1
  4. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    been doing some background reading of FAQ posts and general Sim Tools Documentation leading to getting the servos up and running. I then used some scraps I had to make a rudimentary stand to test the servos working in the LFS game.

    next steps
    fine tune the Axis Assignments a bit
    Make a V2 stand that hopefully can incorporate a third servo for heave at some point down the line (and isnt made from lego and paperclips)


    heres a quick video of the first pass of it working
    https://imgur.com/a/G6M9b6y
    • Like Like x 1
  5. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    V3 of the scented tree rig.



    made a small metal frame to hold the servos which can be attached to a flexible mobile phone holder i had. I've added a third servo to the design which can deal with heave movement and allow sharp up downs for bumps etc. To allow the tree to still flex a little its attached by spring, but i think its possibly too loose as it droops a little in the banking corners.

    this is my settings, i think i could get more cornering rotation, but i found when i set it too high the servo jumped to default position then would operate out of position, is this common and an easy fix? i assume setting limits or the like?
    • Like Like x 3
    • Funny Funny x 3
    • Creative Creative x 2
    Last edited: Mar 25, 2022
  6. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
  7. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    I love what you have done ! its quite funny to watch

    can you think of another use for it ?
  8. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    as i said in the orignal post it was intended to be a sort of weight transfer visual guide, and i think it actually reasonably successfully does that. i think it does add a bit of immersion, people who have went great lengths to build truck sim cockpits i think it would be a good addition for some immersion having it wobbling away
    • Like Like x 1
  9. James Frame

    James Frame New Member

    Joined:
    Feb 4, 2022
    Messages:
    8
    Balance:
    70Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    Arduino
    while this is much less serious build than the typical projects on here, i did find it a very good introduction to Simtools. if anyone else would like to build their own version i've compiled a bit of a build guide and pulled in some of the FAQs which helped me along the way.


    Total parts list
    Arduino Uno, MG90 Micro servos, 6v DC power supply, blank Arduino uno shield and PCB header and scockets (though a servo shield would probably be easier) goose-neck phone holder, scented tree, paper clips, small spring (roughly 40mm long, 7mm diameter), assortment of metals i had laying around (see servo mount section), m3 bolts x9, m4 bolts x2
    20220329_103752.jpg

    Servo mount
    my method of building used metal with a small amount of welding (though brasing or soldering would probably work) and mainly using threaded holes as the joining method, however if you have access to a 3d printer there is probably a much more elegant solution possible (and if you have access to neither then lego technic also works see https://imgur.com/a/G6M9b6y)

    The main difference between my design and a typical motion rig (or mini motion rig like @insanegr ) is because this is hanging, and only supporting a small length of round bar, spring and scented tree, it can have a servo dedicated only to heave motion. see video below and picture showing what each component was made from. I'm aware its a little rough looking but it was made from scraps and i'll probably do some more testing then paint it.

    The tree i just used a spring with a slightly smaller inner dia than my round bar so friction holds it in place then used a hot glue gun to attach the tree

    The goose-neck phone holder clamps onto my montior arm, and the servo mount simply clips in like a phone would and the phone holder alows full movement to align everything to the screen in game.
    parts list.JPG
    Arduino
    The Arduino code and was thanks to @eaorobbie which can be found from this post which also includes a circuit diagram, though i also added an additional servo which Insanegr also explained how to do.
    http://www.xsimulator.net/community/threads/2dof-simulator-servo-model.6851/#post-7727

    For neatness i made my own Servo shield but would probably be easier just buying one

    Simtools
    As someone new to xsimulator.net and servos and motion rigs i found the following sheer volume of FAQs a little overwhelming at first so have listed a handful i got the most out of
    https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/
    https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
    https://www.xsimulator.net/community/faq/tuning-centre-and-axis-settings.240/
    https://www.xsimulator.net/co-ordinate-system/

    Remember to run a race in LFS before using simtools.

    here are the settings i used
    settings 1.JPG settings 2.JPG settings 3.JPG
    • Like Like x 3
  10. 0v3rkill

    0v3rkill Member

    Joined:
    Mar 24, 2022
    Messages:
    46
    Occupation:
    Programmer
    Location:
    Netherlands
    Balance:
    - 259Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    haha awsome, nice work and well documented
    • Like Like x 1