Have I mentioned lately that I love KiCAD!?
I had this idea that I came up with to simplify reflow-soldering with a stencil; the problem I was addressing was the part of getting the stencil and the board positioned and immobilized with respect to each other.
My idea was: assuming the board has its four (or >= 4) mounting holes near the corners, and assuming as an example that the holes are 1/8 inch in diameter, then create the stencil with 1/8-inch holes at the positions of the mounting holes, then get four spacers (e.g., this nylon spacer) to be used as pins â align the stencil on top of the board, then slide one pin through the stencil inside each of the mounting holes; now the stencil is immobilized; I usually create the holes at 129 mils, so that with the plating it comes down to 126 or 127 mils; a tiny bit of margin above the 125 mils of the spacer. The holes in the stencil are 127 mils in diameter.
Back in the day, with gEDA PCB, I had to create a separate PCB file for the stencil, where I would just manually (i.e., with a text editor) edit the PCB file to turn the mounting holes into SMD pads at the same position and with the right diameter; then, I would produce the paste layer based on that separate stencil file.
Yesterday, I was finishing up what is being my first KiCAD project where Iâm going to order a stencil to solder myself â I was getting ready to make a separate copy of the project and change things, when the lightbulb went on in my head and I realized that I simply needed to change the MountingHole footprint â in KiCAD, the paste layer is a first-class citizen; a layer on its own (in gEDA, the software simply outputs the SMD pads for the paste Gerber file). I then realized that: wait a second, I donât even need to do it specifically for this layout; I can just change my custom (user-provided) MountingHole footprint and just add the pad on the paste layer â for normal (read, if I donât need a stencil) layouts, I can still use it, and the extra pad on the paste layer will have no effect. Of course, the issue is that if I send off the layout for manufacturing including assembly/soldering, the fab may use a stencil, and then they will end up with a stencil that pours solder past onto a hole. So, you know, one can have one footprint specifically for the cases when one wants to do this trick with the stencil. Hereâs the example MountingHole footprint I created:
(module MountingHole_3.2mm (layer F.Cu) (tedit 5C86C191)
(descr "Mounting Hole 3.2mm, M3")
(tags "mounting hole 3.2mm m3")
(clearance 1)
(attr virtual)
(fp_text reference REF** (at 0 -4.2) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value MountingHole_3.2mm (at 0 4.2) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_circle (center 0 0) (end 3 0) (layer F.CrtYd) (width 0.05))
(fp_circle (center 0 0) (end 2.34 0) (layer Cmts.User) (width 0.15))
(fp_text user %R (at 0.3 0) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 1 thru_hole circle (at 0 0) (size 4.4 4.4) (drill 3.25) (layers *.Cu *.Mask))
(pad 1 smd circle (at 0 0) (size 3.225 3.225) (layers F.Paste))
)
The very last line (well, excluding the line with the closing bracket) is what implements the trick.
[EDIT] â Right! I just remembered, another (minor) downside is that now in the 3D view, it shows somewhat of an âeye soreâ, by showing a grey flat opaque surface covering the mounting hole (when turning and looking through the bottom, you can see the hole, although it still shows blocked at the other side, at the end of the hole) [END EDIT]
Needless to say (though the subject did say it!), that brought me to one of the many big I-LOVE-KiCAD monents!!
Which brings me to: once more: thanks to the community and the developers (past and present) for creating and maintaining such an awesome software!