They work as key presses ('a' and ''d'). Arduino reads analog values from potentiometer and calculates required length of key press for different locos.
I see the delay between your movement and in game movement. Did you improve that? What if you quickly change the direction of the move? How do you sync min and max lever positions?
so i am guessing you used the keyboard library that works on the 32u4 chips and made it as a HID device....so is there any noticible input lag with that compared to a standard keyboard??
The simulator does not support any analog inputs, so i had to convert analog input from potentiometer to keystokes using some math algorihtms. Because of that there can be some lag if mowement of the levers are to fast.
How did you manage to use so many buttons and levers? Maybe 2 Arduino Leonardos? If not, did you solder a matrix for the buttons to avoid running out of pins? Thank you very much and congratulations for a great project.
Thanks. It is based on Arduino Leonardo and potentiometers for the levers. Since the added suport for controllers in TSW it can be done easy with some software.
It is based on Arduino Leonardo and potentiometers for the levers. Since the added suport for controllers in TSW it can be done easy with some software.
Hola como se puede hacer para que el regulador se pueda controlar con la palanca y baje suba la palanca a posiciones y no se valla ala otra punta sola me gustaría mucho que me lo digieras como se hace gracias
Hello! This simulator does not support any analog inputs from controllers. So to use the leaver I had to develope and program my own mathematical algorith that comunicates the position of the leaver to the simulator. I am sorry but I do not understand the other half of the question.
@@AndrazSpan-strojevodja will you share any pet of how you made this project? Even just the ideas behind the coding? There are so few options for TS controllers it would be great to make one like yours.
Arduino Leonardo, 10k Ohm potenciometers, push buttons, LED (for illumination), trackpad from old laptop (wokrs as computer mouse), 3D printed parts and woden frame.
The project is very good, congratulations! What sensor are you using for the throttle? My problem is that if I suddenly push the throttle up, the game does not follow the movement. I await your answer.
Dear Andraz I'm a brazilian enthusiastic for train simulators, and I was a lit bit impressed with your Train Sim World Controller. I guess you use a keyboard keys for almost all functions, but I was not able to understand how do you conect the levers to the pc. congratulations.
Thanks. As I had explained in other comments, leavers function as key presses to computer. Controller is running mathematical algorithm that changes movement in correct key presses.
@@AndrazSpan-strojevodja - So you're showing this off, but offering no helpwhatsoever to anyone who would like to benefit from your great work? That seems a little mean and pointles. Like "Hey, look what I did, but you're not doing it!".
Congratulations on a brilliant piece of work! Really well done.
Thanks!
What I'm questioning is how you got the levers to work. Can you explain that in a video / in a comment?
They work as key presses ('a' and ''d'). Arduino reads analog values from potentiometer and calculates required length of key press for different locos.
Extremely smart and awesome job!! Well done
Thanks.
I’m interested in this. Any tips on making me simulator. Like what throttles/break leavers, buttons and the board use to make it?
It is all custom made, leavers were 3D designed and printed. It uses Arduino as brains and to comunicate with TSW.
Great. What Arduino did you use? Is there any kind of potentiometers you were using?
@@JP-dj2ro I used Arduino Leonardo. Yes, all three levers use potenciometers.
Can you share the STLs?
@@RickLoureiroPT Sorry, but I can not.
I see the delay between your movement and in game movement. Did you improve that? What if you quickly change the direction of the move? How do you sync min and max lever positions?
it can not be fixed until DTG adds suport for analog inputs.
so i am guessing you used the keyboard library that works on the 32u4 chips and made it as a HID device....so is there any noticible input lag with that compared to a standard keyboard??
Thats is correct. There is no lag.
Excellent! Can you share the production method?
Thanks. All info, that I can share can be found in other comments.
Man that's really impressive !
Thanks!
How did you mount the joystick to the potentiometer?
Joystick and the mount for the potentiometer is custom designed and 3D printed.
the levers is not calibrated with movement of simulator?
The simulator does not support any analog inputs, so i had to convert analog input from potentiometer to keystokes using some math algorihtms. Because of that there can be some lag if mowement of the levers are to fast.
How did you make the levers?
3D printed.
How did you manage to use so many buttons and levers? Maybe 2 Arduino Leonardos? If not, did you solder a matrix for the buttons to avoid running out of pins? Thank you very much and congratulations for a great project.
Thanks. I had used only 1 Arduino Leonardo. Matrix would also be an option but I used I/O expander.
How really well done.Do you have any plans of your controller that you are willing to share. I would really like to build one for TS2021 & TSW2
Thanks. Unfortunately no plans are available, but I did share some details in other comments.
damn how did you make that i have been tr5ying for years. WELL DONE
Thanks. It is based on Arduino Leonardo and potentiometers for the levers. Since the added suport for controllers in TSW it can be done easy with some software.
how do you make one
It is based on Arduino Leonardo and potentiometers for the levers. Since the added suport for controllers in TSW it can be done easy with some software.
Hola como se puede hacer para que el regulador se pueda controlar con la palanca y baje suba la palanca a posiciones y no se valla ala otra punta sola me gustaría mucho que me lo digieras como se hace gracias
Hello! This simulator does not support any analog inputs from controllers. So to use the leaver I had to develope and program my own mathematical algorith that comunicates the position of the leaver to the simulator.
I am sorry but I do not understand the other half of the question.
@@AndrazSpan-strojevodja nice work! will you share the algorithm for the controllers please.?
@@ad892000 thanks! No, I can not do that.
@@AndrazSpan-strojevodja will you share any pet of how you made this project? Even just the ideas behind the coding? There are so few options for TS controllers it would be great to make one like yours.
@@ad892000 no. And this is for TSW and TSW2, not for TS.
What potentiometer you used?
regular 10k Ohm potentiometer
@@AndrazSpan-strojevodja How you reduce rotation degree of potentiometer?
@@SamAlifTech it is not necessary.
How to build? it will you tell me plz
I had already told all details in other comments.
hello, is it possible to get your 3d files please?
Unfortunately not.
Parts list perhaps?
Arduino Leonardo, 10k Ohm potenciometers, push buttons, LED (for illumination), trackpad from old laptop (wokrs as computer mouse), 3D printed parts and woden frame.
The project is very good, congratulations! What sensor are you using for the throttle? My problem is that if I suddenly push the throttle up, the game does not follow the movement. I await your answer.
Thanks. I am using regular potentiometer. It depends how you are communicating with the game from your controller.
Thanks for the reply ! How did you connect the potentiometer to the PC? Are you using a converted joystick or maybe an Arduino board?
@@papirkutya77 I had explained it in other comments. TSW 2 does not suport joystick inputs.
Great project! Is it plugged just via usb to the pc or you need a power supply for it? Thanks!
Thanks. Just via single USB cable.
Is it for sale? if so what link
Sorry, it is not for sale. It is custom build by me.
Dear Andraz I'm a brazilian enthusiastic for train simulators, and I was a lit bit impressed with your Train Sim World Controller. I guess you use a keyboard keys for almost all functions, but I was not able to understand how do you conect the levers to the pc. congratulations.
Thanks. As I had explained in other comments, leavers function as key presses to computer. Controller is running mathematical algorithm that changes movement in correct key presses.
Which software did you use to comunicate with TSW?
There is no software, the controller works as keyboard.
Imagine this with a vr headset
unfortunately it is not supported by dovetail games...
Kje ste ga kupili?
Kratica DIY (do it yourself) pomeni, da sem ga naredil sam.
@@AndrazSpan-strojevodja Si iz Slo?
@@randomdude9269 yes, why?
@@AndrazSpan-strojevodja Jaz sem tudi iz Slovenije :)
@@randomdude9269 ok
Tutorial for keboard pls
What tutorial?
Name game?
It is in the title of the video.
Did you use Arduino?
Yes
And can you give me your code about this?
@@attilavarga346 sory, I can not.
@@AndrazSpan-strojevodja - So you're showing this off, but offering no helpwhatsoever to anyone who would like to benefit from your great work? That seems a little mean and pointles. Like "Hey, look what I did, but you're not doing it!".
@@droge192 i can help you by pointing you to right sollution by sugestion, but I will not give away my work (code).
i wanna get one
Unfortunately it is not for sale.
Name game?
train sim world 4
It is in the title of the video.