UPDATE: Finally took a pic of the finished product in use in the toolbox.
On Thingiverse I’ve posted a model and schematic for a relay-switched outlet box. This will let you switch an outlet on/off with an Arduino pin. That’s nothing new, but it’s a box that puts all the components together in a neat and safe package.
The model holds a U.S. power outlet, IEC C14 power inlet (for use with common PC power cables), a cheap arduino-compatible 5V relay module, and a small Dupont connector for the control relay module’s inputs. The wiring diagram below shows how to make one outlet switched with the other being always on.
The intent of this model is provide a switched outlet for my Mostly Printed CNC machine (MPCNC). It’s designed to be narrow so it could mount on the side of the machine to (a) provide always-on power to the power supply and (b) provide switched power to the AC spindle motor. That said, this model is a general-purpose switched outlet, so you could use it for any automation of AC power you need.
See photographs below for assembly directions. Notes:
WARNING: This switches high voltage! If you are unsure how it works or how to build it, consult someone with electrical experience before proceeding! This isn’t hard to build, but it can kill you if you touch the guts when it’s live, and it can start a fire if wired wrong or with insufficient gauge wire (18AWG to probably not die, 14AWG to meet code).
I strapped an incredibly crappy Harbor Freight Cutoff Tool to the MPCNC (related posts) thanks to this mount, and I was actually able to mill something! It worked! I crudly cut the hand-drawn letters “CNC” into the foam that the tool was packed in!
Now I just need to connect a power relay to automate the tool, add end-stops, learn to use the CNC software, learn to use good design software, possibly get better client software than Repetier Host, and add some kind of clamping mechanism to the table surface.
If you like clumsily drawn squares, you will like this video.
One difference from the stock guide is that I’ve mounted mine on a metal table with folding legs to make it portable.
Pics and videos:
I’m building this thing; will report if successful.