DIY Class 43 HST Style Controllers for Train Simulator Classic (Or Any Other Train Simulator Game)

  Рет қаралды 18,186

Matt Tester

Matt Tester

Күн бұрын

Пікірлер: 67
@VoeViking
@VoeViking 9 ай бұрын
Nice work, it's fun when we can make something to interface with some games.
@macg9940
@macg9940 9 ай бұрын
A really cool project. Have fun with it! I've been working on my own control stand for years.
@gordonwebb5009
@gordonwebb5009 9 ай бұрын
Very nice - particularly like the potentiometer levers - I guess some 3D printing involved. I just finished a working prototype where the brake and throttle are just the 2-way switches, same as your horn. I use an ESP 32 and connect to the computer as a BLE-Bluetooth keyboard. Also it has a capacity for 48 switches as I use 6 shift registers (CD4021B) so mine is in a single (Big!) Box and single ESP32. I plug in a 1A 5v power supply - but no connection to the computer unless programming (next job is to convert to OTA WiFi programming which I have done on more recent projects so no connection to computer needed - and no more broken USB sockets!). An idea for the pedal is an electronic keyboard sustain pedal - should be less than 10GBP. All the best with the projects!
@MattTester
@MattTester 9 ай бұрын
Thanks Gordon, yes there are several 3D printed parts inside and I couldn't have done it without the new Bambu A1 Mini printer I have. Using the ESP 32 as a Bluetooth keyboard sounds like a great method, if you wanted you could probably replicate this kind of lever setup with two microswitches and a ratcheting mechanism to press either switch as the lever moves between notches. You would need to adjust the button press timing as I have done and probably set up debouncing. The two-position levers are actually more appropriate for locos like the Class 66/67/68 with their auto brake levers, I'm finding it tricky to get the timing right for those. OTA programming would be very nice, I'm hoping I get to a point fairly soon where I don't need to mess with it any more because programming each of the four modules is pretty tedious. Although the Ardunio Pro Micro boards have Micro USB, the sockets on the back of each box are USB-B. I've always considered that to be the most robust USB socket so hopefully I won't break any! Sustain pedal is a great suggestion, I will look into that. Thanks. Best of luck with your projects too, it would be great to see your controller at some point.
@huntzthehack
@huntzthehack 9 ай бұрын
WOW!!!! As someone who has just started playing train sim's these look fantastic!! Would you be willing to do a more in-depth video on the software & hardware. What type of levers, controllers, boards, 3d files etc? Thanks
@MattTester
@MattTester 9 ай бұрын
Thanks, I'm happy with how they've come out. Maybe when I stop fiddling with the code I can do a more in depth video, it might get out of hand very quickly though! I'm currently writing a PowerShell script to generate the Arduino code for me, based on a spreadsheet of trains and values. The script is 2,300 lines long and constantly increasing...
@Grandremone
@Grandremone 9 ай бұрын
Awesome work! How does the 3.5mm jack communication protocol work?
@MattTester
@MattTester 9 ай бұрын
Thanks! The 3.5mm jacks are connected to the TX and RX pins on the Arduino boards for serial communication between them, in the code this is 'Serial1'. The base module continuously transmits a number corresponding to the selection. I could've used any kind of connector with 2 or more pins, I had 3.5mm jacks and cables already so it was an easy choice.
@nopuedomas2006
@nopuedomas2006 9 ай бұрын
What a great project! I’m building also my own train simulator controller. It’s nice to see other people’s creations and this inspires myself to keep trying and improving. If it’s ok with you I’d like to ask you a few questions about your controller. Greetings from Spain. Thanks!
@MattTester
@MattTester 9 ай бұрын
Glad you like it! Go ahead and ask any questions, I will do my best to answer.
@nopuedomas2006
@nopuedomas2006 9 ай бұрын
@@MattTester I don't want to bother you and steal your time so I'll try to keep this short: 1- How have you managed to achieve the notches in your levers? They sound and appear to feel very nice in the video and I'm struggling to come up with a solution so my levers stay in each position 2- I also thought about switching between the different trains I want to drive (4 or 5) with a button which in turn makes the pertinent code to be executed changing the mapping of the levers for each train but I'm starting to come up with a simpler solution. Was your solution very code heavy? 3- I'm using rotary encoders for the levers (I have yet to print them but I'm immersed right now in the mapping of the ranges in the encoders). Do you recommend encoders or potentiometers for the levers? I hope these qestions don't bother you and I thank you greatly for your help. Your video has made me rethink some ideas I was stuck with. Again, you've done a great and inspiring job! Regards.
@Jorden-d1m
@Jorden-d1m 24 күн бұрын
What mechanism was used for notching the power and brake handles?
@TheBroomwagon
@TheBroomwagon 9 ай бұрын
Excellent Matt. How many trainsimmers would love this, I would. I assume you use trackIR too. I bet you'd be able to create a combined brake, throttle as well. Though what the equivalent set up for those of us who love steam engines would look like ☺
@MattTester
@MattTester 9 ай бұрын
Thanks, a combined throttle and brake is already on my mind for the more modern trains. As they use the throttle buttons in Train Sim Classic I can make special notch plates with different notches for the throttle and brake side. The handle for the top would actually be the most difficult part as it needs to mount differently. I've never actually used TrackIR with this, I tried it a long time ago though with Flight Sim and it worked well. Steam controls could definitely work too, you could gear down the potentiometer rotation with 3D printed gears so you need to move the controls a lot more, or use rotary encoders that rotate endlessly like I have for the headlight controls. It's all down to software to handle it then. I may give this a try!
@CornishCarper
@CornishCarper 9 ай бұрын
Amazing!!! I want so want! All they need now is to add random real life events and then I would be happy!
@MattTester
@MattTester 9 ай бұрын
I agree about random events, some locos have random faults but other than that the only random things are bugs in the game!
@RoamingAdhocrat
@RoamingAdhocrat 9 ай бұрын
Have you seen the VKB STECS flight sim throttle? comes with a bunch of detent blocks you can bolt to an interchangeable cartridge. swapping from one detent setup to another is undoing a thumbscrew, removing one cartridge, inserting and screwing in the other, and pressing a button.
@MattTester
@MattTester 9 ай бұрын
I hadn't seen those throttles, I like what they've done and metal detents would definitely be better. It would definitely be possible to buy some of their detents to use in a project like this.
@RoamingAdhocrat
@RoamingAdhocrat 9 ай бұрын
This is phenomenal! I've been wanting to make something similar, a miniaturised and genericised control desk which can operate games like Diesel Railcar Simulator and Derail Valley Simulator but also model railways via a basic train movement sim and DCC. You might want to consider an architecture where the secondary modules send all data through the primary/master instead of each one having a separate USB as well as a serial connection?
@MattTester
@MattTester 9 ай бұрын
Thanks! I had thought about this being good for DCC models, if you can control them with keyboard commands then it's definitely possible. It would likely be possible to adapt a basic DCC controller to take an input for this potentiometer, the Arduino might need to translate the position of the lever into something the DCC controller expects. I don't have a model railway at the moment (I would if I had the space), so I can't experiment with it. I had considered joining all of the modules up or just adding a USB hub inside the master module, I may still add the hub or combine all of the modules into one desk, but I wanted the opportunity to swap out modules if necessary and I prefer storing them without the cables. Another commenter is using an ESP 32 board to operate as a Bluetooth keyboard, which is a great idea. It would be great to see how your project goes if you start building it.
@RoamingAdhocrat
@RoamingAdhocrat 9 ай бұрын
@@MattTester oh yeah, I got into DCC because of the DCC++ project which uses an Arduino as the base station and anything which can send serial messages to an Arduino as the controller. So if you have a simple simulation of locomotive power, train weight, power setting and brake setting, you can come up with a speed and send that to the DCC decoder. Ideally the locos/decoders are all speed-calibrated so that DCC speed step 8 is always a scale x mph, say I get bogged down trying to implement stuff like this because I want to go further and make a consist-building peripheral to find the train weight, control multiple locos, etc there's a lot of cleverness that can be put onto the decoder itself - inertia emulation etc - but I'd rather have the decoders solely responsible for making the motor turn at a precise speed, and controlling the head and tail lights
@Andrewcphotography01
@Andrewcphotography01 8 ай бұрын
were can i buy those controllers or did you make them
@Robert.S459
@Robert.S459 3 ай бұрын
For me your work on this control system is a real game changer. Would it work with TSW4 onwards, or could it be adapted? This would be expensive I image, but not much more than than some of the the Fanatec controllers for Driving sims that are out there. There are many who will pay out good money for what they want in the world of PC Simulations.
@MattTester
@MattTester 3 ай бұрын
Thanks, I haven't played any of the TSW games but I quite like the idea of getting TSW5. Looking at the keyboard controls I can't see a reason why this wouldn't work fine, the game key bindings may just need to be changed to match the controller. Setting this up for keystrokes made the most sense from the beginning, it can be adapted for other games and I already knew how to set an Arduino up as a keyboard.
@BCLRailfnner_4109
@BCLRailfnner_4109 9 ай бұрын
I’ve always wanted to make my own set up specifically referencing a GP40PH-2 do you think you can make a tutorial on how to program everything
@MattTester
@MattTester 9 ай бұрын
I will be making a programming tutorial, I'm just working out how to do it in a way that makes sense because it gets very complicated very quickly!
@BCLRailfnner_4109
@BCLRailfnner_4109 9 ай бұрын
Gotchu
@Trains-With-Shane
@Trains-With-Shane 9 ай бұрын
That is excellent! I'd pay some real money for an American style ARR style control setup in kit form.
@yaroslavpanych2067
@yaroslavpanych2067 9 ай бұрын
Driver Vigilance Device - there are actually setups when driver actually need to interact twice with controls: somewhere on control panel, or besides it, and pull some leaver locate up high under the ceiling. Idk what kind of simulator it is, but I never seen one that actually properly ready to accept controls exactly how they are in real cabin. And I don't expect any of vendors will ever do that. Simulation of keyboard, yeah, that is the way, but for controllers they definitely should have proper joystick input setup, whose whole reason to exist is to simulate controls
@MattTester
@MattTester 9 ай бұрын
Thanks for the information, I hadn't come across the DVD controls you mention. It would be possible for me to simulate that but yes what I have will never quite match a proper analogue setup. Sadly the input options of this game are very limited, some add-on trains simply can't be used with analogue controllers.
@damianc.0.681
@damianc.0.681 8 ай бұрын
These look awesome. If you could ever start making more and selling em I would be a instant buyer because I don’t have half the equipment requires
@MattTester
@MattTester 8 ай бұрын
Thanks! It's unlikely that I will be selling them soon but maybe in the future, I still have some ideas to try out.
@georgecooper9655
@georgecooper9655 9 ай бұрын
Great! How did you manage to get the notch effect to work? I couldn’t find any suitable levers :(
@MattTester
@MattTester 9 ай бұрын
The notches are all custom, you wouldn't be able to buy anything that works quite right apart from a similar pre-made controlller. I'm about to release a couple more videos with some more details. Thanks for watching.
@Un-Grand-Central
@Un-Grand-Central 9 ай бұрын
the VP185 have like a 10 seccond delay when powering up only when going from notch 1 to 5
@MattTester
@MattTester 9 ай бұрын
Thanks that makes sense, I had only been driving the Valenta-engined HST up until recently.
@Liamtrainspotter40
@Liamtrainspotter40 9 ай бұрын
Nice tip: change the AWS button into like the 43's one
@MattTester
@MattTester 9 ай бұрын
Thanks, I should be able to 3D print the bell shape and have a button in that.
@motogws
@motogws 9 ай бұрын
Would love to see a list of the hardware need to do this
@MattTester
@MattTester 9 ай бұрын
I'm just about to release a couple of videos giving you a closer look and some details of the parts, I still want to allow people to make their own versions though without following a strict guide. Thanks for watching.
@vanessamaldik4202
@vanessamaldik4202 9 ай бұрын
Oh yes, really nice work, i make my own for simrail and more commands to contrôle (80 commands about). with a binary system of acknowled for each command. with a strip addressable led for each monitor led and some lcd display. very interesting
@MattTester
@MattTester 9 ай бұрын
Thanks and that sounds great, maybe I will build in some communication from the game for warning lights.
@vanessamaldik4202
@vanessamaldik4202 9 ай бұрын
Hello @@MattTester : i can explain how i builed my système : in arduino, i'm using pin 2 to 8 for reading the possibilities i give an explicit name for each pin of arduino (use in pinMode : INPUT). pb1, pb2, pb4 and pb8, when all input are on high level, its give 15. i add 3 pin for adress, (sa1,sa2,sa3), i can obtain 7 as higher value. (pb x as = 128 possibilities). I hope you find pleasure for driving whith your commands. its nice job. good drive to you.
@BLAMBERRY
@BLAMBERRY 8 ай бұрын
Where did you source the AWS mushroom head button from?
@MattTester
@MattTester 8 ай бұрын
The yellow AWS button is an illuminated arcade button, but the red and green mushroom head buttons were both in a pack together from Amazon. 'Momentary Push Switch Mushroom Head' would probably be the best keywords.
@yourlocaltrainenthusiast
@yourlocaltrainenthusiast 9 ай бұрын
Nice! what was the company that makes those more expensive options?
@MattTester
@MattTester 9 ай бұрын
I won't say their name as I don't want their searches coming here but if you search for Train Sim Lever Controller you'll most likely get it as the first result.
@kmcat
@kmcat 9 ай бұрын
7:36 Not too sure what you mean with the issue with your DSD peddle. I think you are trying to make it act like a button. You could use propagation delay in logic gate to achieve this. You would have your input branch off into two line. The first line would go through an odd number of NOT gate and connect to a AND gate The second line would go straight to the same AND gate. The output of the AND gate would be a blip of logic level 1 when the input is pressed. You would tidy this up by using NAND equivalent logic Second Method a 555 monostable
@MattTester
@MattTester 9 ай бұрын
Definitely possible, I've got an idea to try that would just put the logic in software and with the addition of a single switch. That also allows me to flip the switch once the game has started, so I'm not constantly spamming the key when my foot isn't on the pedal.
@MarketMonkey2
@MarketMonkey2 9 ай бұрын
May i ask what type of parts did you use for the controller and throttle stuff? Thinking about doing one similar to NYCT trains and i want to follow what you did similarly but make it as realistic as possible to my trains.
@MattTester
@MattTester 9 ай бұрын
The basics of the levers are 10mm stainless steel tube and 10mm bearing blocks, with 3D printed parts to attach the lever a small splined insert to attach to the 10K potentiometer and another insert at the top with a thread to attach the black ball. I won't try to link to exact items as they probably aren't available to you, but I got them all from Amazon. You can pretty much make any throttle or brake lever with this base. Thanks for the interest.
@tidmouthmilk12
@tidmouthmilk12 9 ай бұрын
One of my silly daydreams is to build a full scale facade of a steam cab and make actual physical levers and controls to play train sim with. I've got absolutely no manufacturing or technical skill though so that'll most likely remain a daydream 😅
@MattTester
@MattTester 9 ай бұрын
That's a great idea, it's completely possible but it would be a big task. I certainly don't have the space for such a thing but I have an idea of how I would connect the levers. Of course it also needs something to blow soot in your face or it wouldn't feel real!
@Trafficlightsfan
@Trafficlightsfan 9 ай бұрын
I think thats a DTG and not a AP 159 because of the noise and the pipe thing on the right of the drivers side of the cab beside the sander
@MattTester
@MattTester 9 ай бұрын
Ah that makes sense, someone else said it was the wrong 159 but with no other information. I have the AP 158/159 pack, there are several to choose from and it isn't clear which is which. I will try them all to confirm which is the AP one. Thanks.
@shamus2503
@shamus2503 9 ай бұрын
Well done buddy!
@MattTester
@MattTester 8 ай бұрын
Thanks!
@ORB2-Paekakariki
@ORB2-Paekakariki 2 ай бұрын
Trying to create my own from a EX-KiwiRail locomotive, struggling with levers
@MattTester
@MattTester 2 ай бұрын
Do you have the real levers with wires attached? I've never looked at these locomotives so I'm not sure I'm looking at the right thing but they appear to be digital control and could have their own control circuitry. If you can just attach the physical lever to a simple potentiometer you could replicate what I've got here. Having real levers sounds great though, doesn't get much closer to a real loco than that. Good luck with the project.
@ORB2-Paekakariki
@ORB2-Paekakariki 2 ай бұрын
@@MattTester it is from a scrapped locomotive, I was going to strip it of all electronics and replace with new circuitry, If you want to know the specific locomotive it will be a DC
@benjibatch
@benjibatch 9 ай бұрын
Don't think you selected the right 159 there :/
@MattTester
@MattTester 9 ай бұрын
Yes I realise now I didn't select the AP 159, for some reason I missed it completely. Thanks for pointing it out.
@pauloaugusto4505
@pauloaugusto4505 9 ай бұрын
Perfect
@LevsInventions
@LevsInventions 9 ай бұрын
This is Awesome!
@AYDEN_OFROBLOX
@AYDEN_OFROBLOX 9 ай бұрын
i want one
@hanstheexplorer
@hanstheexplorer 9 ай бұрын
Stepford County Railway
@MattTester
@MattTester 9 ай бұрын
Great to see the Class 43 in other games, it's an iconic train.
Most Realistic Freight Train Locomotive | Train Simulator
48:16
Blu Games
Рет қаралды 106 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Welsh High Speed! | TS2016 | GWR Class 43 HST | South Wales Coastal
1:05:27
My DIY Train Controller
5:06
AnOx Oldhide
Рет қаралды 9 М.
Alpakka controller: DIY guide
9:18
Input Labs
Рет қаралды 41 М.
DIY Flight Simulator Joystick
9:10
Tom Stanton
Рет қаралды 1,1 МЛН
Tutorial | Bau eines USB-Fahrpults für alle Zugsimulationen
30:26
Gerrys World Of Bahn
Рет қаралды 9 М.
Testing the RAILDRIVER Controller ||  PART 1  ||  Train Sim World 4
20:37
Sim UK Reviews
Рет қаралды 4,2 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН