This page last updated: 25 September 2026.
As part of the infrastructure of the front garden railway, I wanted a big red button, round, something that I could hang vertically on the public side of the front wall, that would be illuminated when "activateable", probably flash while active, and would be on the front garden railway's network, allowing it to have influence over other things. It would need to be weatherproof and reasonably robust. The 3D printed parts for this project, along with printing instructions, can be found on Github.

![]() |
| 1. |
Insert six M6 nuts into the hex-shaped
holes in the base, using an M6 bolt to pull the nuts into
the holes if necessary. |
|
| 2. |
Fix the
12 V to 5 V regulator board to the base
with four short (e.g. 6 mm) flat-head M3 bolts. |
|
| 3. |
With its antenna attached, push the Seeed
Studio ESP32S3 board into position in the base, USB
socket facing out through the hole in the base. |
|
| 4. |
Solder a pair of leads, one black (long
enough to reach a ground terminal of the regulator board)
and one a signal colour (e.g. blue) ending in a
0.1 inch pitch plug/housing (long enough to reach the
ESP32S3 board), to a pair of spade connectors that fit a
standard microswitch with a 50 mm long lever arm. |
|
| 5. |
Attach the spade connectors to the
terminals of the microswitch, black to common, the other
to normally-open, fix the microswitch in place with a pair
of 20 mm long flat-head M3 bolts/nuts then connect
the black wire to a ground terminal of the regulator board
and the signal wire to the microswitch input pin of the
ESP32S3 board (see schematic). |
|
| 6. |
Insert the power cable through the hole in
the back (the hole is sized for a waterproof
2.1 mm x 5.5 mm barrel connector on
a flying lead) and wire it up to the input terminals
of the regulator board. |
|
| 7. |
Connect a pair of cables with
0.1 inch pitch plugs/housings on one end between the
5 V/ground pins of the ESP32S3 board and the output
terminals of the regulator board. |
|
| 8. |
Wire the Data In lead of a
5 mm diameter 5 V WS2812 LED to the
ESP32S3 board debug LED pin (see schematic) via a
0.1 inch pitch plug/housing and the 5 V/G leads
to the output terminals of the regulator board, using
longish wires so that you have plenty of slack when
[later] inserting the LED into the housing and using
heatshrink to cover the bare wires. With the power
cable plugged into 12 V and with the big
round button application loaded onto the ESP32S3
board, the LED should light, "breathing" green when the
ESP32S3 board is connected to the front garden railway
network. The Data Out lead can be cut off close to
the body of the LED as it is not required. Unplug the 12 V power once more. |
|
| 9. |
Insert
5 mm diameter 5 V WS2812 LEDs into the
holes in the 3D printed LED plate from underneath (i.e.
pick a side that will be "underneath"), lining the pins of
the LEDs up so that Data In ⇒ Data Out follows the
direction of the arrows in the diagram above. |
|
| 10. |
Working on the first semicircle of LEDs, bend the leads of the LEDs such that the Data In/Data Out lines of adjacent LEDs meet (bend them low down) and bend the 5 V/ground lines to make an inverted L shape heading in the same direction, preferably at slightly different heights (see picture). Cut two lengths of bare solid wire long enough to run along the top of the inverted L of the 5 V/ground lines. Connect two longish lengths of red cable and black cable to the output terminals of the regulator and solder them to the 5 V/ground lines of the first LED along with the start of the two bare solid wires, then make a length of signal cable ending in a 0.1 inch pitch connector, plug it into the output pin of the ESP32S3 board (see schematic) and solder it to the Data In pin of the first LED. While making sure that the bare solid wires don't touch, plug the power cable into 12 V and that first LED should (a) "breathe" green, (b) "breathe" blue for 10 seconds when the microswitch is pressed and (c) flash red if the microswitch is pressed a second time while the LED is breathing blue. Unplug the 12 V power when done. | |
| 11. |
Add heatshrink to the outer solid wire
(only), but don't shrink it yet, then solder both bare
solid wires to the tops of the inverted L shaped leads of
the next LED, and solder the Data Out lead of the first
led to the next LED's Data In lead. While making
sure that the bare solid wires don't touch, plug the power
cable into 12 V and the second LED should light the
same way as the first. Unplug the 12 V power when done. |
|
| 12. |
Continue in this way, testing that green,
blue and red work each time, to complete the first
semicircle (still don't shrink the heatshrink, that will
come later). |
|
| 13. |
Working on the next semicircle of LEDs,
inwards from the first, bend their leads in a similar way
(it may be necessary to trim some of the Data In/Data Out
leads on this smaller semicircle), come back along the
circle, then cut another length of bare solid wire to be
the next power conductor inwards (in this case 5 V,
the bare solid ground wire being shared between the two
rows) and solder a piece of solid, insulated (or
heat-shrinked) wire to supply 5 V to it from the
previous wire (taking power from the "entry point" of the
current flow will share the load equally). Starting
with the next LED in the arrowed sequence, work along
soldering the LED leads either to each other (in the case
of Data Out to Data In) or to the bare solid wires carring
5 V or ground, testing each LED for green, blue and
red at each step. No heatshrink should be used on
either of the bare solid wires this time (there will be no
room for it), though it may occasionally be necessary to
add some to an LED lead if there is a danger of contact
with an adjacent lead. |
|
| 14. |
Continue in this way until the semicircles
on half of the LED plate have been wired up. |
|
| 15. |
Using the same techniques and following
the wiring pattern above, complete the more complex middle
section and cross over to the other half of the LED plate;
click on the picture for a clearer view of the result.
Note the piece of blue insulated solid core wire
connecting Data Out of the top-most LED down to Data In of
the LED in the middle on the other half of the plate. |
|
| 16. |
Continue to wire up the LEDs on the other
half of the plate in the same manner, noting that the bare
solid wires now alternate in the opposite sense and not
forgetting to use heatshrink on the outer semicircle (and
still don't shrink it yet). I left the final Data
Out line whole in case I felt the urge to do anything with
it later. |
|
| 17. |
Carefully test fit the LED plate into the
back to make sure that no wires foul anything or short to
anything. |
|
| 18. |
Now it was time to shrink the heatshrink.
For additional protection, I purchased red and black liquid
insulating tape and painted it onto the bare solid
wires. |
|
| 19. |
The LED plate was then attached to the
base with three 6 mm long M3 bolts. |
|
| 20. |
The button was prepared by cyanoacrylating
into place the six spring supports and the switch prod,
then fitting the springs onto the supports. The six
spring supports were oriented such that the slight fault
lines in the printing of the button (present because the
3D printer G-code deposits circles which have to start
somewhere) were on the quarter hour somehow (e.g. at
6 o'clock or 9 o'clock), making them catch the
eye less. |
|
| 21. |
Fit the button assembly onto the back,
carefully threading the switch prod through the hole in
the middle of the LED plate and making sure no wires foul
the springs. To make things easier to disassemble, I
allowed the WiFi antenna of the ESP32 board to float in a
sensible position rather than sticking it down. |
|
| 22. |
Insert the debug LED into its hole in the
housing (not the drain hole!). |
|
| 23. |
Fit the housing over the button and attach
it to the base with another three 6 mm long M3 bolts. |