Laser cutting solder stencils using the J Tech Photonics laser upgrade to the Makerbot 3D printer

In the new era of “personalized manufacturing” the ability to create fast prototypes and small run production is a must for companies, entrepreneurs,  and hobbyists alike.  In this article you will find detailed instructions on how to create a solder stencil for surface mount technology parts.

First you will need to have the output from your circuit design tool available for the paste layer.  We will then need to shrink the pads and holes by about 2 mills to allow for the spot size of the laser beam on the stencil material when processing.  Then the output is saved to PDF where it can be imported into the path generating software.  Then, with a simple change of some G codes, the file is ready for Replicator G and laser processing.


  • A Makerbot or other 3D printer or CNC machine with the J Tech Photonics laser upgrade kit.
  • Thin plastic transparency sheet for overhead projectors.
  • A couple of pieces of paper to put under the plastic.



1. From your layout program generate the output file for the “paste” layer.

2. Open the file in a gerber viewer such as Pentalogix Viewmate.  We are going to shrink the pads by a small amount (about 2 mils) because the laser spot will cut a bit bigger than the output from the gerber file.

1 Open Paste Layer

3. Choose under “setup” -> Select D Codes

2 D Codes

4. Using the control key, select all of the pads.

3 Select Pads

5. Choose under “Operations” -> swell…

4 Swell

6. Type in a number to shrink the pads.  A good number is usually 2 mills (-0.002).

5 Swell 2

7. Press “ok” when it says how many pads have swelled and again “ok” to close the D Code table.

6 Swell 3

8. Now we need to export the new file with the smaller pads.  Under the “File” menu choose -> “Print”.   (alternatively if you do not have a pdf printer then choose “print to .bmp file”.)

7 Print

9. Make sure it is set to “Current board layer”, “black on white”, and “by factor 1”.  Click “ok”.

8 Print 2

10. Choose the pdf printer and save the new file.

9 print 3

11. Open inkscape and under “File” click -> “import”

10 import pdf

12. Choose the file and click “open”.

11 choose file

13. Choose your settings and press “ok”

12 choose settings

14. Select the object.

13 move to corner 1

15. Move the object to the lower corner of the page.  This corner will be your “0,0” reference for the Makerbot build platform.

14 moved

16.  Click under “Path” -> “object to path”.

15 object to path

17. Click under “Extensions” -> “Laserengraver” – > “Laser”

16 laser

18. Choose your preferences and filename and then click “Apply”.   The laser engraving speed will set the speed of the x and y motors during processing.  Depending on the laser power and material/material thickness this speed may need to be adjusted.

17 laser prefs

19. The G Code program will run and The g code file will be located at the location set in preferences tab of the laserengraver extension.

18 laser working

Note the 0,0 is on the left of the file and the distance of 100mm is shown on the right.  Use this when setting the 0,0 location on the makerbot.

19 final

20. Now we need to adjust a command to turn the laser on and off to cut the holes in the material.  Open the file in Notepad.

20 open in notepad

21. Under “Edit” click -> “Replace”.

22. Change the “M03” to the “M106” command.  It might be useful as well to include a “G04 P500” command as well to pause for 500 ms (or some other time) before moving in order for the laser to heat up the material before the motion starts.  Click “Replace All”.

21 change m03

23. Change the “M05” to the “M107” command to stop the laser after moving.  Click “Replace all” and close.

22 change m05

24. Make sure to add a carriage return between the M106 command and the G4 p500 command.  They need to be on separate lines for the Replicator software to interpret them.  After you are done press “save” to save the file with changes.

23 add space

25. Open Replicator G software and open the g code file we were just working on.  Under the control panel, adjust the position in x and y so that the laser is in the bottom left corner of the base (like in the inkscape picture).

24 open in replicator g

26. Prepare the material and the base for the build platform.  I used an old CD case to protect the build platform and then put sheets of paper on top.

25 use a old cd case as backplate

27. Cut the paper to fit on the platform.  Normally, using about 3 sheets of white paper under the mylar sheet tends to allow the mylar to cut without damaging the underlying base.

26 cut paper to fit plate

28. Cut the transparency to fit the platform.

27 use a thin mylar transparancy for stencil

29. Tape the sheet to the paper and the base and transfer it to the makerbot.

28 tape it to the plate

30.  Make sure the Control cable is connected to the makerbot and the driver.

29 make sure the driver board it connected to the heated build platform

31. Using the potentiometer adjustment, set the laser driver to a level that is low enough not to cut the material but can be visible to see.  A good point of reference is to turn it all of the way off then work up until some light is visible.  Remember to use your laser safety goggles at all times when the laser is on.

30 adjust your focus

32.  Fine tune the x and y settings so they are where you want them and then focus the beam in Z.  First make sure the lens is adjusted enough to allow for the fine tuning with the Z control.  Using a piece of paper, place it over the material and adjust the laser in Z until the smallest beam size is found on the paper.

31 set your zero

33. After all of the settings are found, click on the “make current position zero” button.  This will set the current location as zero for the processing.

32 set your zero control panel

34.  In Replicator G, press “Build” and let her rip!  The laser will then begin processing the stencil.

33 let her rip

34 laser cutting stencils

35. Remove the plastic from the paper.  The paper will also be cut so remove the stray pieces from the stencil.

35 take the paper off

36. Clean up the rest of the stencil by pulling any pieces off or use a small hobby knife to remove hanging pieces.  You now have a finished solder stencil!


2 Responses to Laser cutting solder stencils using the J Tech Photonics laser upgrade to the Makerbot 3D printer

  1. Stephen June 5, 2015 at 12:51 am #

    Hi there,

    What Power level and speed did you use to get reasonable cuts in the Sheet?


    • jtechphotonicscom June 16, 2015 at 2:59 pm #

      We get excellent results using 550 mm/min at 1.5 amps on the 2.8W kit. You need to maybe use an exacto blade to remove the little “nibs” of plastic from the larger pads on the sheet, but you can get really fine detail on fine pitch parts. If you just have really big pads, then you can slow it down a bit more to get it to cut all the way through on all of the pads with no post processing needed.

Leave a Reply