I've worked in broadcast engineering, industrial electronics and then in medical electronics. I was involved in Amateur radio for many years. Therefore I'm used to designing and building my own eqipment and know the safety rules
But I would not recommend doing so unless you have had proper training! And all of the equipment I shall present here is powered through commerical 'Titan 208' model railway transformers; no, I never touch the mains!
Here is a controller I built for my test workbench and for a small H0 point to point shunting layout

It's difficult finding project cabinets now-a-days therefore sometimes I build them out of 3 mm plywood if heat is no problem.


The cooling block on the rear keeps the 2N3055 power transistor cool. But it's really sized too big as the supply is built for 2 Amps (for reserve) but fused off at 1.5 Amp on its output.
The circiut is pretty simple: The unit has a rectifier, filters, a divider and then a LM358 OpAmp. One side to the OpAmp samples the desired voltage off of the divider and controll while the other side samples a Zener reference voltage. Therefore it doesn't let the controller's output exceed this pre-set reference. (I have it set for 12.5 VDC.) The output drives a pass transistor the 'good old' 2N3055. The LM358 is also very useful in other model railway circiuts as well as it only needs a single polarity supply and can handle a supply voltage up to 24 VDC.
Here is my light wood construction in it's industrial 'Safety Yellow' livery. In the old days one could have purchased a nice metal project case from the Canadian company 'Hammond' which had a good selection in the 1960's - 70's. But not anymore.
So I resulted to wood.

I built this controller for the rebuild of my Fleischmann 4000 shunter 'Anna'

I'll add more to this thread later off and on.
Cheers!
Charles