-
sane(ish) AC achieved, I think -- and bootstrap circuit board
04/19/2024 at 01:17 • 0 commentsLog catch-up campaign: closing in on caught up so I can get back to work getting ahead of logs again.
So I've got this box with a few compartments and a plan to keep all the AC power wiring in the top compartment in order to separate "high" voltage from low voltage DC.
This iteration of the AC stuff seems to be at least ok. For me; for now.
![]()
I've made this harder for myself by chasing conflicting ̶r̶e̶q̶u̶i̶r̶e̶m̶e̶n̶t̶s̶ aspirations.
And I don't know jack about "best practices" for making stuff with line voltage AC in it. If I may quote myself from elsewhere:
Dear reader: this is random Internet "content" by an unqualified author for entertainment only. Misuse of [mains AC] can kill you and burn your house, which may entail killing other people. How to do anything with [AC] other than what the label says without burning stuff or killing people is beyond the scope of this writeup. Consider this first-person account as a pre-staged footnote for my eventual Darwin Award and not as instructions for anything you should do.
For AC stuff, I wanted
- onboard DC supply
- inlet - because I wanted a clean box exterior without a hardwired cord (hardwired out the top was an option)
- fuse
- switch
- relay-switched outlet for "spindle"
- logic-switched relay
- US ungrounded, polarized outlet (NEMA 1-15R)
Not rocket science.
I figured that could fit in something less than all of the volume of the upper compartment, leaving some room to stash stuff like the power cord and most of the dremeloid cord. I started out thinking that would get done with a simple partition to divide the space into AC (closed) and storage (open). But I didn't come up with a simple partition that seemed like a good use of the space. Which got me thinking about a less simple, more conformal, probably 3d printed, enclosure for the AC stuff inside that compartment. Which lead to greed for the most space for storage which meant fitting the AC stuff into the least space without crowding stuff that shouldn't touch or mashing soft insulation between hard parts.
For this iteration, I decided to use a double-insulated power brick with a C8 inlet for the benefits of having that already robustly enclosed/insulated and also the more compact power cord vs the common grounded 15A "IEC" type (i.e. C13) cord.
The Unified AC Widget fits into the corner with the power supply.
The DC-out cord from the supply could be cut down to the minimum needed to make the connection.
Cutouts in the back wall of the box expose the interactive bits.
![]()
Stuff inside is compact without crowding.
![]()
In addition to the inlet/outlet/fuse/switch out the back, this includes a ̶b̶u̶t̶c̶h̶e̶r̶e̶d̶ right-angle C7 plug for the power brick, the red connector for 12VDC power down to the low voltage electronics & motors below, and the mostly hidden connector for the logic-level spindle enable signal coming back up. A second tap off the DC input jack feeds the relay coil, relying on the relay & trace separation on the circuit board for galvanic isolation from the high voltage stuff.
If I build this configuration again, I'll get a right-angle plug for the power supply instead of farting around for the usual longer-than-expected time to make one with random dimensions.
I should probably use insulated quick-connects or some such to make this unit itself more nearly something like double insulated.
The circuit board helps compactify this and make it less of a crammed jumble of wires. That was something of a flag day for the project:
Minamil mills a circuit board for itself
![]()
I think that's kind of a thing. Part of the RepRap quest is (was, now that manufactured 3d printers are cheaper than BoM for DIY) the self-replicating machine that can make its own wiring. Here, with very little additional hardware, a 3d printer can print a very little sidekick that can make circuit boards.
![]()
Lessons learned from earlier iterations include:
- this needs to be disconnectable from the writing that stays with the frame
- dis/connecting stuff in the bottom of a deep hole is hard
- hoping a bunch of extra wire can be randomly stuffed into a small space isn't a great plan
As applied in this iteration, that looks like:
![]()
The DC supply and spindle signal to/from elsewhere in the box are disconnectable and long enough to reach up out of the top of the box where they can be dis/connected by human fingers
![]()
A slot in the AC unit allows the extra wire length to be pulled up through the slot while pushing the AC unit down into place.
![]()
Once the AC unit is secured in place, the extra wire may be folded back down through the slot into a well-defined space where it does not crowd anything else
When worlds don't really collide
I burned a lot of time sorting this out and some more time starting a few drafts of long(er)-winded writeup. Bah. Here's the short version:
Along with wanting more free space up top for storage, I also wanted to fill less of it with a less bulky power cord than the usual 15A three-conductor "IEC" cord (C13) and I had an attractive candidate.
![]()
big cord, little cord -- same length That cord has a plug that's a lot like a C7 plug that would fit the power brick, but polarized. "Polarized C7" cords are easy to find in abundance. Polarized C8 inlets? Not so much. In fact "Polarized C7/C8" does not exist in the IECverse. Polarized "C8" inlets exist (e.g. top photo) but not nearly as easy to find or in such abundance as the plugs. (So where do the things the plugs plug into come from?)
-and-
My dremeloid rotary tool has a polarized ungrounded plug. Apparently because I live in the US (North America). Why? Dunno. It's marked as double insulated and the same thing is sold in other highly regulated markets with an unpolarized plug. The US (NA) retains a concept of polarized ungrounded power and receptacles accept polarized plugs. I supposed that's a good thing for old school Edison-type lamp sockets in fixtures that wontonly expose the threaded cup. But the same receptacles also accept unpolarized plugs so the receptacles didn't force the maker's choice of plug, and the same maker sells the same tool with unpolarized plugs elsewhere. Shrug.
So: US(NA) -> polarized plug; polariized plug -> needs polarized outlet; polarized outlet -> needs polarized inlet.
Alternatively, I could have cut down the neutral blade to fit an unpolarized outlet. But I was already publishing my progress at this, and that seemed like the sort of thing best done in private. Or I could have fed the polarized outlet from an unpolarized inlet, but that would ... just No.
If I wasn't bent on using the less bulky cord, or living in the US(NA), I could have used any of many lovely integrated inlet+fuse+switch units and moved on. If I lived somewhere else, I'd have spent a lot less time never learning that this was an issue at all.
(aside: For whatever their reasons, people want a polarized ungrounded appliance power inlet receptacle/plug and fie on the committee who would stop them from having it. For various reasons, the apparently accepted pirate C7/C8 variant was a poor choice. But I'm going to punt from writing any more about this.)
- onboard DC supply
-
am not electrician
04/18/2024 at 22:11 • 0 commentsContinuing the log catch-up campaign...
Earlier I mentioned keeping all the AC power wiring in the top of the frame, with intent to include a logic-switched power outlet for the "spindle".
I'm going to mostly skip a couple iterations of "improving" that because:
- it will expedite the log catch-up campaign, and
- I'm not an electrician and sometimes do dumber stuff than usual that's easier to pretend didn't happen if I don't write Log pages about it.
I did manage a first whack at fitting logic switched spindle power inside the box, so here's a few pix.
![]()
Relay in the hot wire to a 1-15R outlet (the usual US two-prong polarized -- because that's the plug on my US market dremeloid).
12VDC supply for the relay coil.
Header pin for the "spindle enable" signal.
![]()
Signal pin and FET for switching coil power (coil supply ground is common with the controller).
Flyback diode because conventional wisdom says "flyback diode" -- no math attempted.
Plated thru-holes de-plated for HV/LV isolation.
![]()
Resistors under the FET: gate pulldown and a "protection" resistor because resistors between stuff and off-board connections make me feel gooder. Am not EE.
Using a 3 position header and wiring the end pins together makes an easy non-polarized connection for coil power. I don't remember where I saw that trick.
-
vent fan
04/16/2024 at 05:37 • 0 commentsAfter cutting stuff, I often see evidence of dust getting up to the top of the works...
![]()
...which I suppose indicates dust escaping entirely. For various reasons that wouldn't be great even I wasn't doing this inside the living space of my home.
In the first semi-enclosed frame I knocked together, sucking air down into the enclosure and thru a filter worked well:
Sticking a vacuum hose into the same space would probably work too -- to the extent that a given vacuum's filtration works -- but I'm going with running a vac briefly to clean up vs. continuously while operating (and I can use a cordless hand vac).
That was good then, then I bumbled into building a new box. The new (i.e. current Apr 2024) box includes space for fan+filter, the fan, and fan power switched by the "coolant" signal. But no filter or exhaust opening.
Lots of photos over the last ~year have shown this thing rattling around loose in that space:
![]()
... and sometimes in the accompanying text I've mumbled about that vent thing that's going to work great just as soon as I get it done.
Now at last ... it is done!
Only took most of a year.
![]()
The idea is to keep dust from floating up out of the enclosure, or filtering out through various gaps, by sucking a sufficient flow of air in, mostly down through the open top.
I could just stick a vacuum hose through the back of the box. But that wouldn't advance the all-in-one idea of this project.
Some of the meanest stuff to spread around would be fine wood dust <citation needed>. Appropriately rated surgical masks <US rating - where did I note that already?> which purportedly can catch >98% of the mean stuff have become much more readily accessible post pandemic. And the planar filters occupy ~no volume. That's great. But they're not very free-flowing, and I want to pull lots of air through one. That's less great. Qualitatively, I figured pulling much air through one of those would require pulling much pressure drop behind the filter i.e. pushing much pressure gain across the fan. At a useful flow rate. That means a) power and b) coupling power to air with suitable pressure/flow characteristics.
A mean fan
After proving the function of the idea with a pair of mean fans that very much did not fit inside the box, a search for sufficient meanness in a sufficiently small package lead to discovery of "6076"-type integrated counter-rotating fan pairs. While often packaged as quite costly "server" fans (originally developed as such?), they can be had for less from less institutional sources. The one I got is a 12V 3A unit, which seems typical for the type. It does the job. It is not quiet. Random sellers sometimes advertise them as "violent". In free air it's kind of like a ̶l̶i̶g̶h̶t̶airsaber: projecting a tight forceful beam that stays tight and forceful for about a sabre-length. Fun. But I digress.
(further digression: The search for a small mean fan started with the idea of looking for a fan with a stator. That lead to learning about high shear mixing and why those little stick blenders aren't necessarily a joke.)
The 60mm dimension of a 6076 fan conveniently fit in the first enclosure, which was a happy accident. Less accidental in the current enclosure.
![]()
Nevermind the janky blue thing on the left -- that's the Grbl sled (controller, stepper drivers, Bluetooth, buttons & blinkenlights, &c.) and it needs a do-over.
I probably could have comparison shopped all the hardware stores for a hole saw, gone back for the winner, got home, and made a hole in the time I burned making the hole for the fan exhaust.
![]()
This fan is by far the largest DC load in the box, so it drives power supply selection. It's switched by the "coolant" signal.
![]()
The next evolution I have in mind is to make some mechanical filter grip to make changing filters easier. And to make that grip thing hold pleats for more surface area.
-
chip blower
04/16/2024 at 01:18 • 0 commentsLots of catch-up logging... this was ~10 months ago...
Earlier iterations got useful results from directing meager airflow through a tight nozzle right up close to the work, so this iteration started with that premise. The blower nozzle is adjustable to get right up to the tool and top surface of the material, or far out of the way.
![]()
This blower blows enough air that it doesn't have to be quite so tight to the work, so maybe the next rev will lose the wraparoundiness from the nozzle tip. That didn't print very well in this instance anyhow.
---------- more ----------
This version steps up from a scrapped laptop exhaust blower (centrifugal fan) to a "5010" blower. I splurged a few $ to buy one from a reputable source with datasheets so I could select for high static pressure over free air flow, supposing (based on no real information) that would get the most blow through the constricted nozzle.
![]()
The nozzle starts with a ~constant-area transition from the rectangular fan outlet to an ellipse of the same height, then follows a curving taper to the circular exit. The rectangle-ellipse transition looks unlike constant area from the outside because wall thickness thins in the same span.
![]()
The single point screw clamp through two crossing slots easily holds the very light fan+nozzle with light fingertip torque on the thumb nut. A spacer holds the nut out where it's easier to reach behind the Z axis.
The fixed bracket has mounting holes (short L-R adjustment slots) on two surfaces. The front surface mounting holes are a legacy of earlier iterations on this theme which were screwed to the back of the Z axis because I thought that would be easier than trying to get a screwdriver under the bottom of the top part of the frame. From experience handling that, I figured making the detached Z axis less awkward to handle be worth another think about how to attach the blower to the frame instead. This time a couple of screws down through the frame gusset from above make studs projecting down from the bottom of the top part of the frame and thumb nuts fix the fixed bracket in place.
![]()
Power for the blower is switched through a transistor by the SPINdle ENable signal so it runs together with the spindle, unless prevented by a manual blower defeat switch.
The blower works well.
![]()
It blows chips out the open corner of the frame to be captured by the surrounding enclosure where they can be vacuumed up after a job finishes.
![]()
-
doors: done. for now. maybe.
04/15/2024 at 01:17 • 0 commentsThis doors thing has been going on for a while. I think the latest try is at least good enough to stop thinking about for a while.
![]()
the main things
- "real" hinges that are not bulky
- long sides held flat without loose parts or awkward closure
- other bits done better
"real" hinges that are not bulky
Early iterations used clear packing tape for hinges. That makes nearly perfect hinges.
but...
---------- more ----------Packing tape, especially the adhesive, doesn't last forever, especially when exposed to light. And it's not really "real" from a product design/manufacturing perspective. Why do I care about "real"? I'm not planning to get into manufacturing or long-term product support, but as I was continuing to spend time on this idea it seemed less attractive to commit so hard to a design element that could never be made "real". That, and some conversation at MRRF last year. After looking at a bunch of worse options, I tried a "living hinge" extrusion. That was "real" but really bulky and much less nearly perfect. Meh. Then I found some coextruded acrylic+flexure hinge that is "real" and not bulky.
![bottom: tape; middle: bulky extrusion; top: bulkless co-extrusion bottom: tape; middle: bulky extrusion; top: bulkless co-extrusion]()
bottom: tape; middle: bulky extrusion; top: bulkless coextrusion And the not-bulky hinge was also close to the same thickness as the ~2mm acrylic I've used for recent iterations. And I've read that near-perfect butt joints can be made between acrylic sheets with the right chemistry. For this build I taped the butt joints, but they could be real...
![]()
These hinges can fold 180° flat, but leaving them for long periods like that seems like it would be hard on the material -- especially if the outside of that fold is an edge exposed to abuse. So I kept the overlapping 90° folds around the corner as adopted for the bulky hinges instead of going back to the 180° flat folds on each side like what I took to MRRF last year.
(I haven't re-found where I got the tape-hinge idea, but did find that RC foamy plane builders use various kinds of tape for hinges in a similar way.)
that's great. but...
The coextruded hinges are unobtainium at retail. And I don't want to dox my source.
so...
Having thus determined that "real" no-bulk hinges are possible, I'll probably go back to tape for future iterations. Maybe there are tape options that could pass for "real". UV resistant? There is "hinge tape" for books, etc, which might work, but this isn't quite exactly the same as taping up a library book. ?.
long sides held flat(-ish) without loose parts or awkward closure
In this corner-oriented version of the frame, the doors fold up compactly for storage by folding where they're not supposed to fold in operation. Then they're supposed to not fold (much) where they're not supposed to fold in operation. This seems to work ok:
![]()
For a first try I made some metal clips that slide along the top edges of the doors to lock out the "wrong" joint.
![]()
enclosure shape matters to keep clear of projecting horizontal axes That kinda worked, but:
- separate parts = lost parts
- (some variation of pin-in-slot might have worked but didn't have any great idea how to make that simple)
- changing from 180° to 90° folds for storage (because bulky hinges) would have put one of those on the outside where it would be vulnerable
When the sides are straight, the two doors meet at a perpendicular corner. Instead of enforcing straight sides, I also considered enforcing perpendicularity where the two doors meet, which would force the sides straight (if the short sides were held out straight from the frame sides). Using a closure that could attach only to the outside surfaces of the doors because of how the doors fold closed. I had an idea for that sketched that I think would have been not too complicated to make, but didn't get that done before changing how the doors fold.
Changing to the "real" but bulky hinges changed how the doors fold, which:
- would have made one of the top-edge clips vulnerable on the outside of the closed-up box, and
- allowed closure parts to attach to the inside surfaces of the doors instead of only the outside.
So I changed over to enforcing perpendicularity at the corner with a rigid magnetic closure instead of straightness at the sides.
![]()
nevermind the reflections, here's the L-shaped thing in the corner; the long side w/magnet is longer than it needs to be because dumb modeling mistake; secure magnetic closure is easy -- just use more magnets! When I started remaking the doors this time around I assumed I'd be repeating the ⟂ closure with incremental improvement. While having a little rethink before actually cutting stuff, and thinking I could do something on the inside of one door but only one, some recognition filtered through my head that it wouldn't be unthinkably horrible to cut down part of one of the doors a little to expose the inner side of the other/outer door when closed up for storage. Then I could do something about locking out the "wrong" hinge from the inside. After some hours of leaning on constraint-solving parametric CAD, and cutting the "inside" hinge down more than necessary after cracking it on the first try, this seemed to work ok:
![]()
top: inner & outer hinges nest without interference when closed
mid: hinges lock when opened slightly beyond 180° flat (2nd unit printed overshoots flat at top to counter twist down thin panel)
bottom: magnets self-lock when opened; light bump "breaks" lock to close up for storage
(yes, the hinge pins need trimming -- and maybe a little heat-squish to secure)That holds the long sides of the enclosure straight(ish) without extra loose parts or extra bulk/complexity in the corner closure. Yay. It wasn't the main problem to solve in this iteration (hinge bulk), but I think it seems like a good thing to have these hinges solve themselves when (vocab? "open"/"close" is ambiguous here) deploying the enclosure for operation and require just a bump each when stowing the enclosure for storage, instead of adding bulk and tedium to every open/close of the corner closure while in use.
other bits done better
- magnetic closures greatly simplified for both storage and operation
- better slide-out braces for the short sides (earlier parts designed for similar but different function)
- less bulky but still removable hinges
- lift-off hinges more positively locked in place when closed
a little more about the lift-off hinges
This iteration was mostly driven by the flex hinges between panels.
The hinge between the frame and first door panel was also taped in various ways in iterations until the prior build with the big extruded flex hinges. Then the bigness of the extruded flex hinges gave some "free" thickness to fit a mechanical hinge at the frame. After looking at a bunch of hardware, I modeled and printed some pintle+gudgeon hinges that worked ok, and provided an extremely simple way to remove/install the doors. That was enabled by a stash of short 3mm dowel pins acquired for another project (that may yet turn up in this wee CNC context...), with the downside of adding a specialty part to the BoM mitigated by the relative generality of the pins vs some particular mechanical hinge.
For this iteration, I liked the idea of the lift-off hinges, but didn't have the "free" room for them to be big. So:
- made them thinner - which required thinner walls around the pins than I would have thought prudent, but trial parts seemed ok and finished parts have held up ok so far. The gudgeons are small targets for drop-in fitment, so I tried to finesse the little material there is (~1mm around around the pin less free-fit clearance) so that I can just stab a door into its home corner in the frame and the gudgeon shape will capture the pin as it slides down the corner. It works pretty well and hanging the doors is easy.
![]()
- recessed a couple into the frame (2 of 6) - after hesitating to add complexity and more tools to making a frame/box before remembering that the project intrinsically implies possession of a rotary tool, and I had a very inexpensive & small depth-setting widget:
![]()
-
Close-up camera
02/19/2024 at 07:25 • 0 comments![]()
milling this While cutting little parts with tiny bits, it's hard to see/photograph what's really happening from outside the enclosure. Running with the enclosure open isn't my favorite thing. Some macro camera options look like they might fit but awkwardly at best. And cost.
This looks like it should work:
![]()
close up view from far away -- retire the safety squints ---------- more ----------
That's a "USB Digital Microscope, Teslong 10X to 200X Magnification Camera with Stand, Portable Handheld Electronic Coin Magnifier, Soldering Camera Ear Otoscope", as currently listed on Amazon (meh: price up since I bought last October (yes - it's been parked and burning a hole in my to-do anxieties for four months)).
![]()
seller's pic The jointed arm comprises a double-ended clamp and two 10mm balls. The base appears to be molded as a unit so that ball stays there. Since my people revere a tradition of eclectic units, we keep no metric size threaded balls in this land. However, we also revere a tradition of securing parts of our ceiling light fixtures with ball cap nuts a little bigger than a barley grain (3/8 inch) and those are close enough to the right size. Barely. But not really. After I got tired of trying to not bump the not-so-tightly clamped arm, I stuck a fiber washer in there too which conforms and gives a better hold.
![3/8" ball = ok; 3/8" ball + fiber washer = more ok; 10mm ball wins if you've got one 3/8" ball = ok; 3/8" ball + fiber washer = more ok; 10mm ball wins if you've got one]()
3/8" ball = ok; 3/8" ball + fiber washer = more ok; 10mm ball wins if you've got on update Apr '24:
At first I thought keeping the camera-stick "out of the way" seemed like a good idea.
Dealing with the large rotation between camera and naked eye views proved harder (slower & more disruptive) than I wanted to deal with. After some fiddling -- the base ball was on a small scrap that I could move around -- I moved the camera mount and added the side-viewing mirror accessory that came with the camera in order to get 1) a camera view less distractingly different from naked eye view, and 2) a camera+mount position inside the closed-up volume of the box so it doesn't have to be completely re-positioned to use the camera or to close up after using the camera.
![]()
-
evolution of doors
02/19/2024 at 07:21 • 0 commentsLast fall (2023) I logged some of this "fancy box" work alongside the 3d printed CNC mechanics work at #Minamil 3dp: another minimal CNC mill while using that as my single "new project" per Hackaday Prize rules.
Logs there describing work that advanced this project here include:
feature creep vol. {n+=1}: doors review of enclosures from zero to the demonstrable but inadequate state that I took to MRRF
(hinged w/packing tape = not really "real")doors again: current and (maybe) future the less inadequate but more unsatisfactory state accomplished for HaD Prize entry
(not hinged w/packing tape, but inelegant)
...and athing I found shortly before publishing that log...There's other stuff from that period that I still haven't written up, like evolution of the AC wiring, chip blower, &c since the previous log entry
(if you've landed in the middle of the story: this project is me making a fancy box that's not at all necessary to make and use CNC mechanics described here if you have a 3d printer or here if you have a laser cutter)
Paul McClay
The DC-out cord from the supply could be cut down to the minimum needed to make the connection.











Sticking a vacuum hose into the same space would probably work too -- to the extent that a given vacuum's filtration works -- but I'm going with running a vac briefly to clean up vs. continuously while operating (and I can use a cordless hand vac).























