8. Electronics Production

Printed Circuit Board production week includes producing the PCB we designed in our previous assignment i.e from Week 6: Electronics Design . Before that let's go through some basics of PCB and PCB production.

PCB

What is a PCB?

A printed circuit board (PCB) is an electronic assembly that uses copper conductors to create electrical connections between components.

The structure of a PCB:
Conductive features on printed circuit boards include copper traces, pads, and conductive planes. The mechanical structure is made up of an insulating material laminated between layers of conductors. The overall structure is plated and covered with a non-conductive solder mask, and a silk screen material is printed on top of the solder mask to provide a legend for electronic components. After these fabrication steps are completed, the bare board is sent into printed circuit board assembly, where components are soldered to the board and the PCBA can be tested.

PCB structure

Types of PCBs

The various types of PCBs can be listed as follows:

  • Single-sided
  • This board only has components mounted on one surface. The back surface is typically fully copper (ground) and coated with a solder mask.

  • Double-sided
  • This type of circuit board has components mounted on both surfaces. Each surface is defined as a signal layer in the PCB stack-up, so the surfaces will contain traces that carry signals between components.

  • Multi-layer PCBs
  • These boards have conductors on internal layers that carry electrical signals between components, or the internal layers could be conductive plane layers. Multi-layer PCBs may be single-sided or double-sided.

  • Rigid PCBs
  • These boards are fabricated and assembled on rigid laminate material, such as FR4-grade epoxy resin-impregnated fiberglass laminate materials.

  • Rigid-flex PCBs
  • Rigid-flex PCBs use a flexible polyimide ribbon that connects two or more rigid sections in a printed circuit board assembly. A rigid-flex board might be used when the design must have some movable element, such as a folding or bending enclosure

  • Flex PCBs
  • Fully flexible PCBs do not use any rigid materials and are made entirely of flexible polyimide ribbons.

  • Metal core PCBs
  • These boards use a metal slab in the core layer (normally aluminum) in order to provide much greater rigidity and heat dissipation than in typical rigid printed circuit boards.

  • Ceramic PCBs
  • These boards are less common and are used in applications that require very high thermal conductivity such that the board can dissipate large amounts of heat away from components.

    PCB Production techniques

    I had previously used General purpose circuit boards, and even ordered etched PCBs, but just realised that the machine we have is a PCB milling machine and is completely different type of production method. That triggered me to explore all types of PCB Production techniques. Here's what Moko Technology lists:

  • Milling Circuit Boards
  • An option for PCB Fabrication Service is to take a copper-clad board and mill conductor tracks on it. A drill stand and a small, fast-running drill are sufficient. Corresponding conductor tracks can be milled freehand or with a stop using a small, pointed cutter. The holes for the components are then drilled.

    PCB milling

  • Etched Circuit Boards
  • PCB etching is the process of removing unwanted copper from a printed circuit board. Once all of the excess copper has been removed from the PCB, only the required circuit remains.

    PCB etched

  • Toner Transfer method
  • The template is printed in a mirror image on a carrier material with the laser printer and the toner is then transferred to the circuit board. The laser printer should produce a rich print image.

    PCB toner transfer

  • Perforated plates and experimental plates
  • The easiest way of PCB fabrication is with so-called experimental plates. These are PCBs made of hard paper or epoxy resin (GRP), which are drilled with a pitch of 2.54mm (= one-tenth of an inch). The copper layer is either just around these holes as pads or as strips.

    PCB perforated/experimental

  • Professional PCB Fabrication
  • This method includes the following steps of first Creating Template, then photographically transfer the template onto the circuit board and further etch circuit board, then drill and finally equip and solder.

    Professional PCB

    Using Protomat E44

    Our FABLAB has Roland SRM 20, but it is under maintenance. So we used another milling machine that we have at our lab, Protomat E44 Circuit Board plotter from lpkf.com.

    Protomat E44

    Step 01: Installing LPKF software
    The software you need to have installed on your PC for connecting with Protomat E44 is LPKF Circuit Pro PM . The installation process is pretty intuitive.

    Step 02: Setting up the machine
    Once the software is opne, it itself tries to find the machine (just make sure the machine is turned on and wired to the laptop) The interface looks as shown below and it takes few minutes to set up the machine, home the end effector and reference the machine overall.

    lpkf software interface

    Step 03: Start a new document
    Start a new document and choose the template based on the design of your PCB.

    new document

    Step 04: Open process planning wizard
    As shown below, open the process planning wizard.

    pcb process

    Choose the right options as shown in the images below for the process, single or double sided PCB, and substrate selection.

    pcb type substrate

    Step 05: Import Gerber file
    Once that is set, go to files > import and then locate your gerber files and import them.

    This is where we went wrong into properly selecting what exactly needs to be imported. We learnt it the hard way that, basically if it is a single sided PCB, you only need the following:
  • Boundary cut gerber file
  • Drilling holes gerber file
  • Top layer gerber file
  • And if you have a double-sided PCB design then we also need,
  • Bottom layer gerber file
  • Rest all silk screen layer, solid and paste masking layers are not needed for this process.

    import files import

    Step 06: Create fiducials
    Now you need to define the end to end diagonal marks as fiducials to limit the space claim of the design on your copper plate. THis can be done as shown below:

    create fiducials

    Step 07: Generate isolation and contour routing
    Open the dialogbox as shown in the figure below. Here you need to define the isolation type, width, and number of channels. Very important steps. So basically this is where you define how muh isolation you want between two conducting lines.

    I tried multiple variations such as 0.2mm width and 2 channels, 0.4mm width and 2 channels, 0.4mm width and 4 channels and even 6 channels. The most efficient one acording to me in terms of functionality as well as time consumtion was 0.4mm width and 4 channels. And the contour to select is no gap contour. Rest all settings can be left as it is as default settings.

    isolation type and channels contour - no gap

    Once this all is setup and we click next, the overview of the types and number of tools are needed is showcased as shown below:

    tools needed

    Step 08: Start board production wizard
    Once everything is set, we start the board production wizard as shown in the figure below.

    board production

    Step 09: Define PCB placement
    To define the placement of the PCB on the copper plate, we go to Machining > Placement and then just drag and drop the rectangle define dby the previously marked fiducials to the desired location on the copper plate.

    tools needed

    Step 10: Drill fiducials
    Now the machine drills fiducials and also mentions which tool to mount for this action.

    drill fiducial tool to use

    Accordingly we change the tool as shown below:

    changing tool tool

    Step 11-14: Marking drills, drilling, milling top layer, etc
    Just like the previous step, these few steps are about following the instructions and changing the tools appropriately as when asked for the specific action

    top layer top layer milling

    The stages and its tools used are listed below for single sided PCB (last iteration of mine) Step A: Fiducial hole marking
    Tool: Spiral Drill 1.5mm
    This step involves marking the end to end diagonal holes to define the boundary of the job

    Step B: Marking
    Tool: Micro cutter 0.1mm
    This step involves the marking of all drill points, and crucial starting point for top layer milling

    Step C: Milling
    Tool: Universal cutter 0.2mmm
    This step involves the actual milling of the 4 channels

    Step D: Reference hole
    Tool: Spiral Drill 2mmm
    This is reference hole drilling to start the boundary cut

    Step E: Boundary cut
    Tool: Contour router 2mmm
    This step is the last one to actually cut the outer boundary of the PCB

    The extensive toolbox that comes with the machine has multiple tools as shown below:

    tool box cover tool box

    Step 15: Final outcome Here's how the single sided PCB version looked like after successfull milling.

    final PCB

    Here's how the previous failed designs looked like:

    fail 1

    PCB design and production V2

    So when the input devices and output devices assignment came in, I realised the convinience to use ATMega328p chip as it is the same microcontroller of that of Arduino Uno. So I did not actually continue with the previous board but designed a new one which I then also used for my other assignments.

    I have prepared the final PCB board which I am going to use for this assignment and also the other assignments like input devices. The board is same as the Arduino UNO Board because it has the same IC i.e. 328p, and does all the functionality of UNO.

    I haven't included the in depth details of the PCB production for this as I have already explained that in depth for the previous versions. But in quick, the steps followed are as follows:

    1. So I have used EasyEDA many times, and Neil mentioned to try new things out so I used Eagle Software for designing of my final PCB for this and couple of these input output device assignments. It was anyways also suggested by our regional guru during regional reviews taht i should try new things and not use the same software that I already know. So that is why I tried Eagle.



    2. Use the ADD command to add the components to the design layout which is available under the command button bar.



    3. Add the atmega328p which is the arduino UNO chip.



    4. Add all the components such as resistor, capacitor, Leds, button, AVRISP SMD header pins, etc.



    5. Use the command net to join the two components pins with each other.



    6. After connecting all the component with each other, to know whether all the components are connected or not with the ERC command.



    7. If there is no error from the ERC error dailaog box, we are ready to switch from the schematic file to board file.

    r

    8. In the Board version, after arranging the components in the proper place, then route the wire with the routing option available from the command button bar. Before using the route option, select the ratsnet to so that the number of wires should be reduced.



    9. Then use the route option to make respective connections.



    10. Then export the file for fabrication. Save it in .png format 600dpi monochrome.



    Below are the images of the final board:



    Schematic images of the board which was made in the Eagle software.



    Board images of the final PCB.



    PCB Soldering

    Next step up is PCB soldering. Before that we need to get all the components. All the electronic items I fetched from multiple electronics stores locally in Laminton rd, Mumbai.

    Components needed for the board:



    Once we have all the components, let's start soldering!

    Step 01: Soldering station
    Let's understand all the things you need ideally at your soldering station ofr a proper and safe soldering process.

    Fume Extractor.
    The fume extractor is responsible for sucking the air around the soldering area and filtering the air.
    Soldering Station.
    Silicone Work Mat.
    Hot air gun.
    Lamp with LED and magnifier.
    Stainless Steel Anti Static Anti Magnetic Precision Tweezer Set.
    Soldering tip.

    Soldering station at riidl:



    Soldering process:



    Images of the failed soldering attempts:
    So I ended damaging some points of soldering during the soldering process and thus had to make the board all over again.



    Learnings:
    1. Don't over heat the gun - the solder doesn't stay down and comes back over the iron 2. Dont touch the solder reel directly to the gun - but the gun should touch the lead and the material to the board and the heat transfer should do the rest of the job 3. If anything goes wrong, don't try to resolve it by touching the soldering iron again, instead using desolder wick and/or desoldering gun and then after clearing all solder, resolder it. 4. Use a multimeter and test the connection after almost every solder if you are not confident.

    Image of the final working board after milled.



    Testing the PCB

    The PCB was tested by connecting it to the input and output devices. The same can be seen in detail in the specific week pages as linked below: Week 09: Output Devices
    Week 11: Input Devices

    Download design files

    Atmega328p file
    Gerber file Attiny 412
    EasyEDA Attiny 412