Cost is minimal afaict..
Exactly how to build it is beyond my pay grade..
The answer is in the link posted but........
Parts of the board are cheap.. pot, resistors, one transistor ..done..
apparently 1,2 are just on/off so one can jumper that but
3,4 is just a resistor controlled voltage ..The supporting circuitry is designed so the voltage doesn't go too low and cause flickering.
At least as I understand it.. for whatever that is worth..
Believe there is also a trim pot inside the driver as well but all this gets very "fiddly"..
Here. I tried to annotate my sketch a bit better. I drew in the header and labelled the pins. Pins 1-2 go to the two sides of the switch built into the pot and don't connect to the dimming circuit at all.
The driver supplies 10V on pins 3-4 and I can dim the lights by putting a 20k pot across pins 3-4 to drop that 10V. Max current across there is around 2.3mA at low resistance. I posted the curve of what that looks like up higher in the thread.
Been awhile since I looked at that thread. They were trying to dim w/ APEX not replace the board but did a lot of good work figuring out how it worked..
pot w/ switch might be $4 though..
IF one wanted to duplicate it exactly..though not sure it's necessary..
One could use other than SMD components and Frankenstein solder it together..
I "believe" one could just use this
PTR901-2015F-A103
solder 1,2 to switch and 3,4 to pot/wiper and be done w/ it..
Just don't dim it too low..
Not exactly sure on pot size but 20K seems common..