I have a G-scale train made by LGB that we get out at Christmas to run around the tree. A few years ago the controller stopped working, and it turns out they are pretty expensive to replace (here is an affiliate link for the control, there was also a power supply.) This post shows how I made my own controller. No programming required!
First Tries
The old power supply was labeled as creating 19VDC so I tried using a laptop supply, which worked but couldn’t quite handle the current all the time. It would trip an internal breaker and the train would start and stop. A couple of times it got through the starting current and ran the train. I think the control was also bad so it may have been a fine solution for the power supply.
Parts I used
I tossed both the old power supply and controller and built the new controller from these parts (click on the images for amazon affiliate links, I might get a commission from any sales):
- The main controller is a $10 DC PWM motor controller from amazon with a reversing switch, rated for 3A continuous (4A max) which is a bit low but it’s working great.
- A high-current 24V supply: Mean Well LRS-350-24. This can put out 14.6A which is overkill, but I have one of these on my 3D printer and was able to verify that it worked so I just bought another one.
- And a switch/AC power cord socket combo (also needs a fuse and power cord)
I designed an enclosure and knob to complete the project. The enclosure I 3D printed, although I made it so thin that it warped and was very troublesome to print- maybe a wooden or acrylic box would be better since it is all flat sides. The knob worked great though. I left holes in the top of the box for the controller LEDs to shine through, but in order for this to work I would have to remove the LEDs and put them through the other way and I haven’t done this yet. The enclosure holds all the parts and keeps the AC voltage away from everyone’s fingers.
Here are files for the design in various formats: STL (box and knob) and Fusion 360 Archive. All in this zip file: train control. I printed the enclosure with the slanted face down so it would be smoothest and the other faces are 45 degrees so no supports are needed. My print failed halfway though and so I cut the box in half, printed the other half, and glued them together. You can find those pieces in the Fusion 360 file.
Last, here are some photos of the train control for reference.
where did you get the adapter ac/dc supply
where did you get the adapter with the 3 prongs cant find it. thanks
If you click on the photos in the parts list they have amazon links. Thanks for reading!