What is a PCB and why make your own?
A printed circuit board (PCB) is the foundation that supports and connects all the components in an electronic circuit. It is made from a non-conductive substrate material, usually fiberglass, with copper traces printed on it that form the wiring between components. Components like resistors, capacitors, and integrated circuits are then soldered onto the PCB to form a complete circuit.
Mass-produced electronics use PCBs to compactly and reliably assemble circuits. However, there are several reasons you may want to make your own custom PCB:
- Prototyping a new circuit design
- Building a circuit not available as a commercial product
- Learning about electronics fabrication
- Customizing a circuit to your exact needs
- Starting small-scale production of an electronic product
Making your own PCBs is a great skill to learn for electronics hobbyists, engineers, and entrepreneurs. Let’s look at how it’s done.
The PCB Design Process
Circuit Design
The first step in making a PCB is designing your circuit. This involves creating a schematic diagram that shows how all the components connect together. You’ll need to select the components required for your circuit and determine the values and specifications for each one.
There are many software tools available for schematic capture and PCB design. Some popular options are:
Software | License | Schematic | PCB Layout |
---|---|---|---|
KiCad | Open source | Yes | Yes |
Eagle | Freemium | Yes | Yes |
EasyEDA | Freemium, web-based | Yes | Yes |
Fritzing | Freemium | Yes | Yes |
LTspice | Free | Yes | No |
When designing your schematic, follow best practices like:
- Using standard symbols for components
- Labeling components with reference designators (R1, C1, etc.)
- Connecting components with nets (wires)
- Adding notes to explain the circuit operation
- Checking pin assignments for ICs
PCB Layout
Once you have a completed schematic, you need to create a PCB layout that positions the components and routes the copper traces between them. The PCB layout is what you will eventually fabricate as a physical board.
PCB layout can be challenging as you need to fit all the components and traces within the size constraints of your PCB while following electrical and manufacturing rules. Some key considerations for PCB layout are:
- Placing components to minimize trace lengths and crossovers
- Providing sufficient clearance between traces and components
- Determining trace widths based on current requirements
- Adding copper pours or planes for power and ground
- Defining the board outline and mounting holes
- Checking the design against manufacturing capabilities (minimum trace width, drill sizes, etc.)
Again, PCB design software will help you create your PCB layout. Many of them have autorouters that can automatically place traces, but it’s best to manually route critical signals for optimal performance.
PCB Fabrication Methods
There are several ways to fabricate a PCB once you have a completed design. The three main methods for DIY PCB fabrication are:
Toner transfer
The toner transfer method uses a laser printer to print your PCB layout onto a special transfer paper. You then iron the paper onto a copper clad board so that the toner transfers to the copper. After removing the paper, you can etch away the unprotected copper with ferric chloride or a similar etchant chemical. This leaves your PCB traces behind on the board.
Toner transfer is an inexpensive method and only requires a laser printer, transfer paper, copper clad board, and basic etching supplies. However, the resolution and reliability are limited compared to other methods.
Photoresist etching
Photoresist etching uses a photosensitive film or coating on the copper board that hardens when exposed to UV light. By placing a transparency of your PCB layout on the photoresist and exposing it to UV, you can selectively harden the resist in the shape of your traces. The unhardened photoresist can then be removed with a developer solution, allowing you to etch the exposed copper.
Photoresist etching requires more materials and equipment than toner transfer, namely a UV exposure unit and photoresist. However, it can produce higher resolution traces and is less prone to flaws.
PCB milling
PCB milling uses a CNC machine to mechanically cut away the unwanted copper from the board, leaving only your trace pattern behind. The CNC machine follows your PCB layout file to route out the traces and drill holes with high precision.
PCB milling can be used with standard copper clad boards and doesn’t require any chemicals for etching. It can produce professional-quality PCBs and is easily repeatable for small batches. The downside is that CNC machines are expensive and require some skill to operate.
Here is a comparison of the different DIY PCB fabrication methods:
Method | Cost | Resolution | Equipment | Complexity |
---|---|---|---|---|
Toner transfer | Low | Medium | Minimal | Low |
Photoresist etching | Medium | High | Moderate | Medium |
PCB milling | High | Very high | Expensive | High |
Choose a fabrication method that matches your budget, skill level, and the demands of your project. You can also combine methods, such as using toner transfer for prototypes and PCB milling for final boards.
Steps to Make Your Own PCB
Now that we’ve covered the basics of PCB design and fabrication, let’s go through the step-by-step process of making your own PCB. For this example, we’ll use the toner transfer method as it is the most accessible for beginners.
Step 1: Design your PCB
- Create a schematic of your circuit using PCB design software. Carefully check pin assignments, component values, and net connections.
- Switch to the PCB layout view in your software. Define the board outline and place mounting holes if needed.
- Arrange components on the board, trying to minimize the distance between connected components. Ensure there is enough space between components for traces.
- Route traces between component pads. Adjust trace widths for power traces or high current paths. Avoid acute angles in traces.
- Add copper fills for ground and power planes if applicable. Define solder mask and silkscreen layers.
- Perform a design rule check (DRC) to verify that your PCB meets manufacturing specs like minimum trace widths and clearances.
- Export Gerber files of your PCB layers. Inspect them in a Gerber viewer to make sure they are correct.
Step 2: Print the PCB layout
- Load your laser printer with the toner transfer paper. Make sure the shiny side is facing the right direction to print on.
- Import the top layer (copper) Gerber file into a graphics program or PCB transfer tool. Mirror the image horizontally so the text will read correctly on the final board.
- Set the printer to its highest quality setting. Print the mirrored PCB layout onto the transfer paper.
- Repeat for the bottom layer if making a double-sided board. You can print a registration mark on both layers to help align them later.
Step 3: Transfer the toner
- Cut a piece of copper clad board to the size of your PCB. Clean the copper thoroughly with fine steel wool or abrasive pad and isopropyl alcohol.
- Place the transfer paper toner-side down on the copper. Tape it in place or use a hinge method to help align it.
- Heat your iron to its highest setting. Do not use steam. Lay a piece of plain paper on top of the transfer paper to protect your iron.
- Press the iron firmly onto the paper and hold for 2-3 minutes, moving slowly back and forth to evenly heat the board. Apply firm pressure to ensure good transfer.
- Carefully remove the transfer paper while the board is still hot. All the toner should stick to the copper. If not, replace the paper and apply the iron again.
- If making a double-sided board, align the other transfer sheet using your registration marks and repeat the process on the other side.
Step 4: Etch the PCB
- In a plastic tub, prepare your copper etchant solution according to the instructions. Wear gloves and safety glasses when handling chemicals.
- Submerge your transferred PCB into the etchant. Regularly agitate the board with tongs or stir the solution.
- Periodically check the etching progress. Once all the unwanted copper is removed, take the board out and rinse it thoroughly with water.
- Clean any remaining toner off the board with isopropyl alcohol to reveal the final copper traces.
Step 5: Drill and finish the PCB
- Inspect the etched board for breaks or shorts in the traces. Use a multimeter or visual inspection to check trace continuity. Repair any defects with solder or wire.
- Use a drill press or handheld drill to bore all the holes for component leads and vias. A Dremel tool with a small bit can also work. Refer to your drill file to find the correct hole locations and sizes.
- Apply a layer of liquid tin or hot air solder leveling (HASL) to the copper to prevent oxidation and prepare it for soldering. This step is optional but recommended for beginners.
- If desired, apply solder mask to cover any unused copper on the board. You can paint on a liquid solder mask and cure it.
- Print your silkscreen layer onto transparent sticker paper and apply it to the board for component labels. You can also use rub-on transfer letters.
Step 6: Assemble the PCB
- Insert component leads into the holes on your finished PCB. Bend the leads outward slightly to hold the parts in place when you flip the board over.
- Flip the board and solder each component pad, applying just enough solder to form a cone around the lead and pad. Avoid bridging solder between pads.
- Clip the excess leads close to the solder joint with wire cutters.
- Visually inspect all solder joints. Reheat and add more solder to any incomplete joints. Remove solder bridges with desoldering braid.
- Power up your board and test its functionality with a multimeter or oscilloscope. Debug any issues by checking component placement and solder joints.
Congratulations, you’ve just made your own PCB! With practice, you’ll be able to design and fabricate complex multilayer boards. Making your own PCBs is a rewarding skill that will greatly expand your electronics capabilities.
FAQ
What tools and materials do I need to make my own PCB?
The basic tools and materials required are:
– PCB design software
– Laser printer
– Toner transfer paper or photo paper
– Copper clad board
– Ferric chloride or other etchant chemical
– Plastic tub for etching
– Drill or drill press
– Soldering iron and solder
– Basic hand tools like tweezers and cutters
How much does it cost to make your own PCB?
The cost depends on the fabrication method and the materials needed. For the toner transfer method, you can expect to spend around $50-100 for the initial supplies (assuming you already have a laser printer). Each PCB will then cost a few dollars in board and chemical costs.
What are some common mistakes when making PCBs?
Some common mistakes include:
– Not mirroring the PCB layout before printing
– Printing on the wrong side of the transfer paper
– Applying insufficient iron pressure or heat during transfer
– Etching for too long or not long enough
– Forgetting to clean the copper clad board before transfer
– Not checking continuity of traces before assembly
Can I make multi-layer PCBs at home?
Making multi-layer PCBs at home is possible but very challenging. You need to make each layer separately, then precisely align and laminate them together under heat and pressure. It requires specialized materials and equipment. Single or double layer boards are much more practical for DIY fabrication.
What are some advanced techniques for making PCBs?
Once you’ve mastered the basics of PCB fabrication, you can try more advanced techniques like:
– Using a solder paste stencil to apply solder to pads before assembly
– Designing with surface mount devices (SMD) for smaller boards
– Making PCBs with impedance controlled traces for high speed signals
– Experimenting with flexible or aluminum PCB substrates
– Integrating a microcontroller and programming it directly on the board
There are endless ways to customize and optimize your PCB designs. Making your own PCBs opens up a world of electronics possibilities!