This page is is part of my embedded system notes.
This document contains some notes about obtaining and using solder paste stencils for prototyping.
The following possibilities come to mind:
- Professional Etched Stencil
- This is clearly a reasonable option for mass produced product. For personal prototyping it is a little pricey.
- Laser Cut Stencil
- Pololu provides a laser cut stencil service where they cut some mylar sheets:
http://www.pololu.com/catalog/product/446At the time I write this it costs $21 + $2/in2. If a bunch of stencils are bundled together this is fairly reasonable.- Milled Stencil
- The following web site has a page on the process (see Making a SMD Solder Stencil)
http://millpcbs.com/index.phpIt looks like it would work well for larger SMT stuff, but not for the fine pitch stuff. I could be wrong though. Obviously, a pretty good CNC set up is required.- Drilled Stencil
- Rather than milling the stencil, it can be drilled. The following web site talks about this briefly:
http://www.groupdiy.com/index.php?topic=46382.0This looks like it could work pretty well. It might even work with fine pitch stuff.- Comes the PCB
- There is at least one PCB house that will provide a low cost stencil with the prototype PCB. As I write this, PCB Pool does this:
http://www.pcb-pool.com/- Solder Paste Machine
- There are relatively low cost solder paste machines available on EBay. These machines can be mounted in a CNC and instructed to dispense solder under computer control. We actually tried this and here is a video:
http://youtu.be/Yg8YRLRvTS0This worked pretty well for the coarser pitch SMT. The fine pitch stuff needs a finer needle. Unfortunately, the solder paste machine does not like to push paste through the finer needles. It might be possible to make this work, but it would take some more effort.- Home Etched Stencils
- It is possible to etch a stencils at home. For this strategy, I am using presensitized material that is exposed using a contact print, developed, and then etched.
I use KiCAD for my schematic capture and printed circuit board design. KiCAD is open source software runs on multiple platforms with no artificial restrictions.
In order to generate the files needed for the phototool, it is necessary to do some configuration.
There are multiple ways of plotting the Gerber (aka RS274X) files. I set everything up once so that it can be used for both the stencil and the PCB. To bring up the Plot dialog box, I use Menus => File => Plot.
The phototool is printed on a piece of transparency film. In order to increase the opacity to light, I actually cut out two of the transparencies, and lay them on top of one another. This requires that I generate two copies. The easy way to do that is to print two copies, but that wastes transparency film. Instead, I use gerbmerge to step and repeat a couple of copies.
The file below (called motor3.cfg
is
used to configure a PCB (called Motor3) for replication.
Almost all comments were stripped out to make the file
smaller.
In addition, there is a definition file called[DEFAULT] projdir = . robusdir = %(projdir)s/../.. MergeOut = motor3 [Options] CutlineLayers = None CropMarkLayers = None FabricationDrawingFile = %(mergeout)s.fab ExcellonLeadingZeros = 0 OutlineLayerFile = %(mergeout)s_PCB_Outline.gbr ScoringFile = %(mergeout)s.sco # The stencil has to fit on an 8.5" x 11" mylar piece. PanelWidth = 8.0 PanelHeight = 10.5 LeftMargin = 0.1 RightMargin = 0.1 TopMargin = 0.1 BottomMargin = 0.1 # Set X/Y spacing to 0.5in XSpacing = 0.5 YSpacing = 0.5 CutLineWidth = 0.01 CropMarkWidth = 0.01 AllowMissingLayers = 0 DrillClusterTolerance = 0 MinimumFeatureSize = *topsilk,0.008,*bottomsilk,0.008 [MergeOutputFiles] Prefix = %(mergeout)s_etch *TopPaste=%(prefix)s-SoldP_Front.gtp Drills=%(prefix)s-GM.drl BoardOutline=%(prefix)s-PCB_Edges.gbr ToolList = toollist.%(prefix)s.drl Placement = placement.%(prefix)s.txt [Motor3] Prefix=motor3 *TopPaste=%(prefix)s-SoldP_Front.gtp Drills=%(prefix)s-GM.drl BoardOutline=%(prefix)s-PCB_Edges.gbr
motor3.def
that looks as follows:
This makes a total of six copies of the solder paste mask and PCB edges. (Two rows of 3 each.) It is run as follows:Row { Motor3 Motor3 Motor3 } Row { Motor3 Motor3 Motor3 }
The output shows up in two files calledecho y | gerbmerge motor3.cfg motor3.def
motor3_etch-PCB_Edges.gbr
and
motor3_etch-SoldP_Front.gtp
.
Next, I use the gerbv program to view the step and repeated files. gerbv is part of the open source gEDA tools. I installed gerbv using:
To view the two Gerber files, I do the following:sudo atp-get install gerbv {Password typed in}
and gerbv is started and both Gerber files are shown.gerbv motor3_etch-*.g?? &
The next step is to use gerbv to generate a .pdf file that contains the Gerber files. The following steps are performed:
#000000
to
#ffffff
and click [OK].
The background should now be white.
#{whatever}
to
#000000
. Do this for both
layers. The solder mask and PCB outline
should be black on a white background.
motor3_etch.pdf
.
I use a program called inkscape to do the mirroring. For me, I installed it as:
The program is run as follows:sudo apt-get install inkscape {Type password here}
This causes the inkscape to start up and show the solder paste image.inkscape motor3_etch.pdf &
Using inkscape, the following is done.
motor3_etch_flipped.pdf
.
If the paper copy looks good, I shove a transparency film into the printer and print again. Again, I use some calipers to verify that the dimensions have not been changed.
The next step is to cut the transparency up into solder mask pieces. I cut outside the PCB edges and leave enough space to tape outside the PCB edges.
Using a piece of glass from a picture frame, I tape the edges with electrical tape so I will not accidentally cut my finger handling the glass. The glass is cleaned using some glass cleaner. The first cut-out is attached to the bottom of the glass such that when it is examined through the top, it is in the mirrored configuration. Next, using a microscope I attach another cutout exactly on top of the previous one. Make sure both cut outs are complete flat with no bowing.
The phototool is now ready use.
{more goes here}