1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Diy Train Sim World 2 Controller

Discussion in 'Creation Centre' started by Andraz, Nov 25, 2020.

  1. Andraz

    Andraz New Member

    Joined:
    Sep 5, 2020
    Messages:
    7
    Likes Received:
    3
    Hello!

    I would like to share with you my custom build DIY Train Sim World 2 Controller.
    It is based on Arduino and works to a computer as standard keyboard.
    Throttle and brake leavers do use potenciometers and some clever mathematical algoritems to translate the changes to button presses on the keyboard so that the game can accemt the inputs.
    As External Controller Suport is on the Road Map, I am prepearing a software update, so that throtlle and brakes will works as yosticks (on condition that the game will suport that after added suport for External Controllers).
    Right now there is some small delay if you change the leaver too fast, but that should be fixed with External Controller support.
    If you have any guestions regarding the controller feel fre to ask!

    You can see short video of it working here:



    FAQ:
    1 Is it for sale? Sorry, it is not.
    2 Can I get your Arduino code? Sorry, no.
     
    • Like Like x 2
  2. krijba

    krijba New Member

    Joined:
    Nov 17, 2020
    Messages:
    7
    Likes Received:
    23
    Very nice! I'm currently building one myself (https://forums.dovetailgames.com/threads/building-my-own-cab-controls.31436/) and I am obviously taking inspiration from everywhere I can. I particularly liked the touchpad-thing to move the camera around, did I see that correctly?

    As I am also looking for a temporary solution for the levers until the controller support is here: I am thinking about storing the current state of the potentiometer, then when change is detected, just calculate how long the button has to be pressed until the game state reflects the lever state. Do you do that differently, or is that already part of your super secret code embargo? Also, don't you have sometimes a desynchronisation problem and how do you get around that?
     
  3. DTG Jamie

    DTG Jamie Staff Member

    Joined:
    Aug 24, 2020
    Messages:
    448
    Likes Received:
    1,630
    Wow, that's great Andraz, Well done. How long did it take you to make it?
     
  4. geloxo

    geloxo Well-Known Member

    Joined:
    Nov 21, 2018
    Messages:
    720
    Likes Received:
    1,183
    Those levers are looking so good. Nice to see more homemade controller projects. Keep the good work guys :)

    Cheers
     
  5. Andraz

    Andraz New Member

    Joined:
    Sep 5, 2020
    Messages:
    7
    Likes Received:
    3

    Thanks! I had look at your project and it looks interesting, well done.
    Yes, that is the basic idea. Check the change of potentiometer and press correct key for correct time. But it is not as simple as it seam, as some trains require long press to move from 0 (locked) position or to change into last position (emengercy brake for example).

    Touchpad like thing is mouse from old laptop and 3D printed buttons on the bottom.
     
    • Like Like x 1
  6. Andraz

    Andraz New Member

    Joined:
    Sep 5, 2020
    Messages:
    7
    Likes Received:
    3
    Thanks! I think about 1 - 2 months working a bit on it everyday after school.
    You can check written documentation about build process here (sorry, it is in Slovenian language): https://www.knjiznica-celje.si/raziskovalne/4201903912.pdf


    I would be interested in beta testing this with new External Hardware support option if it possible? Please send me a PM.
     
  7. Andraz

    Andraz New Member

    Joined:
    Sep 5, 2020
    Messages:
    7
    Likes Received:
    3
    Thanks!
    I had 3D modeled them by inspiration from German train cabs and 3D printed them.
     

Share This Page