An easy way to generate brackets to attach any fan to any PCB board. A list of pre-defined brackets included.
The script was initially meant to generate fan brackets for the RAMPS board but I decided to make it fully customizable: it now allows you to create brackets that take fans of any size, snap onto PCB of any size, can have any height, but probably best of all features is that you can generate both mini-brackets (2 holes) as well as full brackets (4 holes, fully enclosed on two sides), to balance between saving plastic vs. rigidity and improved air flow.
While this was meant for PCBs, feel free to experiment it could probably be used for many other scenarios, for example to attach a fan to a NEMA17 motor or to space two PCBs by attaching brackets back to back, etc.
It can now generate PCB supports with no holes (example scenario: Raspberry Pi or Intel Galileo feet). Specific changes:
fan cutout (and the screw holes) can be removed entirely now to produce spacers or PCB feet
hex nuts resize with screw size (need to validate in practice)
cross-brace is configurable and can also be removed
Note: If the fan is bigger than the PCB (for example when using an 80mm fan on RAMPS) the bracket will be generated with "wings" and the fan will attach on the outside of the bracket to those wings, otherwise the fan will attach on the inside.
Additional benefit compared specifically to thing 138370: the brackets should now slide along the board without hitting the reset button and should also slide better along Arduino or RAMPs PCBs which have solder joints or connectors really close to the edge.
I typically print them out of PLA, 0.20 to 0.33 layer thickness. With these settings a bracket thickness of 3mm seems to get the best elasticity to snap-on to a RAMPS board and stay vibration free and still allow it to slide along the board.
Additional parts needed to build a cooling bracket:
a cooling fan (any size)
4x screws and 4x nuts, typically M3 size, but actual diameter and length depends on the fan chosen.
To build PCB slide-on covers or feet no additional parts needed.
I enjoy designing minimalist-functional 3D objects.