Small project from the weekend with Fusion 360 and the CNC machine.
I needed a way to power on and off the scope, spectrum analyser and power supply as the power strip is located behind my desk and there is no ON and OFF switch and I didn't want to just keep unplugging them as it means crawling under the desk. Keeping them on standby means drawing more power than necessary.
I installed an Itead Studio S20 Smart Switch onto each instrument, each of which is programmed with custom code for MQTT control. Quick bit of code in Node-red and now I could manually control them from the Node-red browser. The 3 S20 modules draw far less power than the scope and spectrum analyser did on standby so win win.
The Node-red bit works but a pest to have to open the browser so I decided a wanted a higher tech option and something that looks more cool so I designed a switch panel with acrylic and MDF. 4 switches for power on and off and each has an LED to show the current status. The All Off LED shows the MQTT status. On means all is good. Each switch when pressed sends out an MQTT topic and payload indicating on or off. Node-red handles this to switch on the required S20.
The panel is 3mm thick milky white acrylic and the body is 3 stacked 18mm MDF. The rear panel is also acrylic and has mounting holes for the Nodemcu module and the DC power input. The lettering is engraved with a 1.5mm flat mill cutter and then flood filled with enamel paint. Leave to dry and then clear off any excess around the lettering. With the ultra smooth surface of the acrylic, this was easy using a cloth and some enamel thinners.