Badger's Workbench

Tiny DIY Train Controller v1

The problem with this prototype is it won't last five minutes in the bottom of my bag. So it's time to make a case for it.

First problem is this DPDT switch (pictured here with disassembly already started): 20251230_115547 It comes with too much cable, and the PCB crudely soldered over the terminals is bigger than the ideal panel mounting hole. So that PCB needs to go.

Numbering the wires from black (1) to red (4), the pinout is:

Wire DPDT Pin(s)
1 2
2 1
3 1b, 2a
4 2b, 1a

To remove the PCB I had to cut it apart in situ, then de-solder each terminal and slide off the corresponding piece slowly. Now directly wired, it looks like this: 20251230_151725 And despite my lacklustre soldering skills, it still works :)

After replacing the power in with a 5.5x2.5mm socket, and connecting a tail cable with 5.5x2.1mm plug to the output, the final wiring is done. My use of two different DC plug sizes here is somewhat accidental, but it has the nice consequence that everything can only be connected the right way round. The PCB spacers (15mm) can be test fitted, and yes it still works: 20251231_115300

A couple of lessons learnt:

Making the Case

For some reason, I decided to use 2mm plasticard. This turned out to be suboptimal:

Nevertheless, some hours and an inordinate quantity of Revell Contacta later: 20260102_183858

It still works, and it turns out there was no need to worry about the little indicator LED not being visible. 20260102_184722

Yet more lessons learnt: