Week Outline

  1. Wednesday: Global Class in Electronics Production.
  2. Thursday: Local Class in Electronic Production and Milling.
  3. Wednesday: Global Review.

Global Class

For this week's Global Class, Neil ran us through the different steps in PCB production and the diffeents systems that can be used. Then, he discussed the different materials that can be used. Then, he introduced us to different board houses we can use if needed. Then, he ran us through the process of PCB assembly. He also discussed CAM and debugging tools.

Local Classes

On Thursday, Dani showed us the workflow for using our Roland CNC machines to produce our PCB designs from Kicad. The workflow goes as follows:

The workflow for preparing the files goes as follows:

  1. On the PCB editor of your project on Kicad, select the "Plot" option.
  2. Select "PDF" as a plot format.
  3. Select th e output directory for where you want the file to be saved in your computer.
  4. Right click on top of the "Include Layers" list and select "Deselect all layers".
  5. Select the "F.Cu" layer only.
  6. In "PDF Options", select "Black and White" as the output format.
  7. Click "Plot" on the bottom right.
  8. Open the newly generated PDF on Inkscape.
  9. Create 4 layers: "Traces", "Holes", "Outline", and "Background".
  10. Move each component to it's corresponding layer by right clicking on one and then selecting "Select same" to select all the necessary components.
  11. Invert colors so that traces are white, holes are black, and outlines are white.
  12. Create a square with black fill and stroke in the "Background" layer that encompasses the whole design and has at least 0.8mm offset outside.
  13. Duplicate the square twice.
  14. Move each one of the squares from the "Background" layer into the other layers.
  15. Delete "Background" layer.
  16. Invert the colors on the square in the "Holes" layer so that it is white.
  17. On "File", select "Export" and go to "Export Batch".
  18. Make sure all layers are selected and have the correct colors (Traces in white with black background, Holes in black with white background, Outline filled in white with black background).
  19. Change the DPI to 1000.
  20. Export each layer as an individual PNG.
  21. Open modsproject.org on the web browser.
  22. Right click anywhere on the screen and select "Programs".
  23. Select "Open Program".
  24. Under "Machines", go to "Roland" and then go to "SRM-20 Mill" and select "Mill 2D PCB".
  25. Go to the "Read PNG" module, click on "Select PNG File", and then select the PNG for the "Traces" layer.
  26. Change the dpi to 1000.
  27. On the "Set PCB Defaults" module, click on the "mill traces (1/64)" button.
  28. On the "Mill Raster 2D" module, change the "cut depth" and "max depth" to 0.15mm.
  29. On the "Roland SRM-20 milling machine" module, change the "speed" to 2mm/s and the "origin" on all 3 axises to 0.
  30. Make sure both toggle switches on the right are turned on.
  31. Go back to the "Mill Raster 2D" module and click on "calculate". This will download the mill raster file automatically.
  32. Go back to the "Read PNG" module, click on "Select PNG File", and then select the PNG for the "Holes" layer.
  33. Change the dpi to 1000.
  34. On the "Set PCB Defaults" module, click on the "mill traces (1/32)" button.
  35. On the "Roland SRM-20 milling machine" module, change the "speed" to 2mm/s and the "origin" on all 3 axises to 0.
  36. Make sure both toggle switches on the right are turned on.
  37. On to the "Mill Raster 2D" module, click on "calculate". This will download the mill raster file automatically.
  38. Go back to the "Read PNG" module, click on "Select PNG File", and then select the PNG for the "Outline" layer.
  39. Change the dpi to 1000.
  40. On the "Set PCB Defaults" module, click on the "mill traces (1/32)" button.
  41. On the "Roland SRM-20 milling machine" module, change the "speed" to 2mm/s and the "origin" on all 3 axises to 0.
  42. Make sure both toggle switches on the right are turned on.
  43. On to the "Mill Raster 2D" module, click on "calculate". This will download the mill raster file automatically.
  44. Load all 3 mill raster files into a USB.

The workflow for milling the boards goes as follows:

  1. Insert the USB with the mill raster files into the laptop on the Roland machine.
  2. Make sure the machine is turned on and the laptop is properly connected.
  3. Dust of the milling base with a brush.
  4. Put double sided tape on the back of a copper board and stick the board down on the milling base.
  5. Load the 1/64" drill bit into the coupling.
  6. Move the base so that the bit is on the bottom left of the plate.
  7. Set the XY zero.
  8. Slowly move the carrier down until it is close to the plate.
  9. Loosen the grub screw holding the drill bit into the coupler and let the bit touch the top of the plate.
  10. Re-tighten the grub screw on the holder and set the Z zero.
  11. On the Roland software, click "cut".
  12. Click on "delete all" to make sure you have no files on queue.
  13. Add the raster file for your "Traces" layer and then click "output", this will begin the cut.
  14. Make sure the machine is cutting at the appropriate level and then wait for it to be done.
  15. Once the cut is finished, replace the 1/64" drill bit for the 1/32" drill bit.
  16. Swap out the 1/64" drill bit for the 1/32" drill bit.
  17. Slowly move the carrier down until it is close to the plate.
  18. Loosen the grub screw holding the drill bit into the coupler and let the bit touch the top of the plate.
  19. Re-tighten the grub screw on the holder and re-set the Z zero.
  20. On the Roland software, click "cut".
  21. Click on "delete all" to make sure you have no files on queue.
  22. Add the raster file for your "Holes" layer and then click "output", this will begin the cut.
  23. Make sure the machine is cutting at the appropriate level in the appropriate places and then wait for it to be done.
  24. Once it's done, on the Roland software, click "cut".
  25. Click on "delete all" to make sure you have no files on queue.
  26. Add the raster file for your "Outline" layer and then click "output", this will begin the cut.
  27. Make sure the machine is cutting at the appropriate level in the appropriate places and then wait for it to be done.
  28. Remove the copper plate and you're done!

Assignments

1. Characterize the design rules for your in-house PCB production process as a group.

The documentation of the work we did can be found here.

2. Submit a PCB design to a board house as a group.

The documentation of the work we did can be found here.

3. Make and test a microcontroller development board that you designed.

I decided to make the microcontroller development board I designed in Week 6:

Power Supply Power Supply

First Prep

  1. Exported the copper layers from Kicad by plotting them into a PDF.
  2. Opened the PDF on Inkscape and followed the workflow Dani taught us in class.
  3. I wanted my board to have the shape of a musical note, so instead of having done the outline trace on Kicad, I imported an SVG from the internet and modified it on inkscape.
  4. Created a square to act as the background in order for all the layers to have the same size. Then made 2 exact copies of it and moved the 3 squares into each one of the other layers, then deleting the background layer.
  5. Made sure everything was the color it was supposed to be (or so I thought) and then exported all the layers (individually) as PNGs with a 1000dpi.

    Traces Layer Traces Layer Traces Layer


  6. Opened modsproject.org and followed the workflow Dani taught us in class for each layer.
  7. Exported all the mill raster files into a USB and plugged it into the laptop on the Roland machine.

The mill raster file for the traces layer can be downloaded here. The mill raster file for the holes layer can be downloaded here. The mill raster file for the outline layer can be downloaded here.

First Milling Attempt

  1. Cleaned the milling surface on the machine of dust particles with a brush.
  2. Put double sided tape on a brand new copper plate and stuck it to the milling surface.
  3. Installed the 1/64" thick drill bit on the machine to cut the traces.
  4. Zeroed the machine.
  5. Loaded up the file and started the cut.
  6. Once the cut was done, I changed the 1/64" drill bit for the 1/32" drill bit on the machine to cut the holes and the outline.
  7. I kept the zero on the x and y but re-zeroed the z axis (because I changed drill bit).
  8. I loaded up the file for the holes and started the cut.
  9. Something looked wrong, so I stopped the cut and had a look. If you payed close attention to the way I colored my layers, you already know I got the colors for the holes mixed up. Instead of being white on black background, they were suppossed to be black on a white background, so that the machine knew to just tap the holes and not drill around them. So I unfortunately ruined a perfectly looking board:

    Traces Layer


    While it was dissapointing, this did not disencourage me. I removed the plate and re-started.

Second Milling Attempt

  1. Cleaned the milling surface on the machine of dust particles with a brush.
  2. Put double sided tape on a brand new copper plate and stuck it to the milling surface.
  3. Changed the 1/32" drill bit for the 1/64" drill bit on the machine.
  4. Zeroed the machine.
  5. Re-loaded up the traces file and started the cut.
  6. While the machine was cutting, I went back to Inkscape to change the colors on the holes layer, and exported it as a PNG with a 1000dpi.
  7. Opened modsproject.org and followed the workflow Dani taught us in class for the holes layer.
  8. Once the machine was done cutting the traces layer, I exported the mill raster file for the new holes layer into the USB and plugged it into the laptop on the Roland machine.
  9. Changed the 1/64" drill bit for the 1/32" drill bit on the machine to cut the holes and the outline.
  10. Kept the zero on the x and y but re-zeroed the z axis (because I changed drill bit).
  11. Loaded up the file for the holes and started the cut.
  12. Once the machine was done with the holes, I loaded up the file for the outline and started to cut.
  13. After the machine was done, I removed the entire copper plate and cleaned off the dust with a brush.
  14. I extracted my music note shaped PCB to notice it was not perfect:

    Traces Layer


    The traces were not as clean as the previous board. It was also as if both the holes and the outline layers had moved diagonally upwards a couple of mm. Below is a closer look at the skewed holes:

    Traces Layer


    Below is a side by side comparison of both the first and second attempts:

    Traces Layer


The mill raster file for the modified holes layer can be downloaded here.

Second Prep

Although dissappointed, I was still not disencouraged. I took the opportunity and went back to Kicad to change the traces from 0.2mm thick to 0.3mm thick everywhere I was able to. Then I:

  1. Re-exported the newly modified copper layers from Kicad by plotting them into a PDF.
  2. Opened the PDF on Inkscape.
  3. Separated the components into 4 layers: one for the holes, one for the traces, one for the outline, and one for the background.
  4. Re-imported the musical note SVG into the outline layer and modified it to work with what I needed.
  5. Created a square to act as the background in order for all the layers to have the same size. Then made 2 exact copies of it and moved the 3 squares into each one of the other layers, then deleting the background layer.
  6. Made sure everything was the color it was supposed to be and then exported all the layers (individually) as PNGs with a 1000dpi.

    Traces Layer Traces Layer Traces Layer


  7. Opened modsproject.org and followed the workflow Dani taught us in class for each layer.
  8. Exported all the mill raster files into a USB and plugged it into the laptop on the other Roland machine, as the one I used before proved to be having issues with coordinates on all planes not only for me but for others as well.

The mill raster file for the traces layer can be downloaded here. The mill raster file for the holes layer can be downloaded here. The mill raster file for the outline layer can be downloaded here.

Third Milling Attempt

  1. Cleaned the milling surface on the machine of dust particles with a brush.
  2. Put double sided tape on a brand new copper plate and stuck it to the milling surface.
  3. Installed the 1/64" thick drill bit on the machine to cut the traces.
  4. Zeroed the machine.
  5. Loaded up the file and started the cut.
  6. The traces went well!

    Traces Layer

  7. Changed the 1/64" drill bit for the 1/32" drill bit on the machine to cut the holes and the outline.
  8. Kept the zero on the x and y but re-zeroed the z axis (because I changed drill bit).
  9. Loaded up the file for the holes and started the cut.
  10. The holes went well too!

    Traces Layer

  11. Loaded up the file for the outline and started to cut.
  12. The outline also went well, so massive success overall!

    Traces Layer

  13. After the machine was done, I removed the entire copper plate and cleaned off the dust with a brush.

    Traces Layer

Everything went well this time (third time is the charm), so I was ready to move on to the next step: assembling!

Assembling

I first started by gathering my components from the lab. In order to do this in an orderly manner, Dani taught us the technique pictured below, where you put double sided tape on a piece of paper and annotate what you're grabbing:

Basic Board BOM

The only thing missing was the microcontroller, as I had to order that from Mouser. However, I decided to start soldering with what I already had.

Testing