best pcb layout custom pcb design rule check DIY Electronics easyeda gerber file how to design a pcb how to make a pcb layer thickness optimize pcb design pcb design pcb design software pcb design techniques pcb layout pcb manufacturing service printed circuit board Technology trace angle trace thickness trace width

How to Design a PCB Layout

How to Make a Custom PCB - LM386 Audio Amp Schematic

Breadboards are nice for prototyping circuits, however they aren’t so good for truly utilizing the factor you’re constructing. Sooner or later, you’ll in all probability need to make a undertaking extra everlasting. One of the simplest ways to do that’s to put it on a PCB.

On this tutorial, I’ll stroll you thru the method of designing a PCB format and getting it printed by a customized PCB producer. The efficiency of your circuit will rely enormously on the way it’s laid out on the PCB, so I’ll offer you plenty of recommendations on how to optimize your design.

You’ll be able to all the time etch PCBs at residence with a course of that’s comparable to creating prints from photographic movie. However that technique is messy and it makes use of a lot of chemical compounds. It’s a lot simpler (and cheaper) to get your PCB made by a skilled producer. To reveal the method, I’ll use a web-based service referred to as EasyEDA to design a PCB format for an LM386 audio amplifier, then I’ll have it manufactured and present you the outcomes. Their free on-line design software program is straightforward to use and the charges are very reasonably priced.

It All Begins With a Schematic

How to Make a Custom PCB - LM386 Audio Amp Schematic

Earlier than you begin designing your PCB, it’s a good concept to make a schematic of your circuit. The schematic will function a blueprint for laying out the traces and putting the elements on the PCB. Plus, the PCB modifying software program can import all the elements, footprints, and wires into the PCB file, which can make the design course of simpler (extra on this later).

Begin by logging in to EasyEDA, and create a new challenge:

How to Make a Custom PCB - EasyEDA Create a New ProjectHow to Make a Custom PCB - EasyEDA Create a New Project

When you’re on the Begin web page, click on on the “new Schematic” tab:

How to Make a Custom PCB - EasyEDA New Schematic TabHow to Make a Custom PCB - EasyEDA New Schematic Tab

Now you’ll see a clean canvas the place you’ll be able to draw the schematic:

How to Make a Custom PCB - EasyEDA Blank SchematicHow to Make a Custom PCB - EasyEDA Blank Schematic

It’s greatest to place your whole schematic symbols on the canvas earlier than drawing any wires. In EasyEDA, schematic symbols are situated in “Libraries”. The default EasyEDA library has a lot of the widespread symbols, however there are additionally “User Generated Libraries” with a lot of different symbols:

How to Make a Custom PCB - EasyEDA LibrariesHow to Make a Custom PCB - EasyEDA Libraries

Every schematic image you employ wants to have a PCB footprint related to it. The PCB footprint will outline the element’s bodily dimensions and placement of the copper pads or via holes. Now’s a good time to determine which elements you’ll be utilizing.

The schematic symbols within the EasyEDA library have already got footprints related to them, however they are often modified in case your’re utilizing a totally different measurement or fashion:

How to Make a Custom PCB - EasyEDA Package SelectionHow to Make a Custom PCB - EasyEDA Package Selection

To vary the footprint related to a schematic image, search within the “User Generated” libraries for a footprint that matches the element you’re utilizing. As soon as you discover it, click on on the guts icon to “Favorite” it:

How to Make a Custom PCB - Favorite a Schematic SymbolHow to Make a Custom PCB - Favorite a Schematic Symbol

Then copy the identify of the element:

How to Make a Custom PCB - Copy the Name of the Schematic Symbol and FootprintHow to Make a Custom PCB - Copy the Name of the Schematic Symbol and Footprint

Now click on on the image within the schematic editor, and paste the identify of the brand new footprint into the “package” area in the fitting sidebar menu (watch the video under for a demonstration):

How to Make a Custom PCB - Changing the Package TypeHow to Make a Custom PCB - Changing the Package Type

As soon as your whole symbols are positioned on the schematic and also you’ve assigned footprints to every image, it’s time to begin drawing the wires. Quite than clarify the small print of all that on this article, I’ve made a video so you possibly can watch me draw the schematic for my LM386 audio amplifier:

After all of the wiring is completed, it’s a good concept to label the symbols. The labels can be transferred over to the PCB format and ultimately be printed on the completed PCB. Every image has a identify (R1, R2, C1, C2 and so on.) and worth (10 μF, 100 Ω, and so on.) that may be edited by clicking on the label.

The subsequent step is to import the schematic into the PCB editor, however earlier than we do this, let’s speak about some issues to bear in mind when designing your PCB.

PCB Design Optimization

Determine what every a part of your circuit does, and divide the circuit into sections in accordance to perform. For instance, my LM386 audio amplifier circuit has 4 most important sections: a energy provide, an audio enter, the LM386, and an audio output. It’d assist to draw some diagrams at this level to assist you to visualize the design earlier than you begin laying it out.

Hold the elements in every part grouped collectively in the identical space of the PCB to hold the conductive traces brief. Lengthy traces can decide up electromagnetic radiation from different sources, which may trigger interference and noise.

The totally different sections of your circuit ought to be organized so the trail of electrical present is as linear as attainable. The alerts in your circuit ought to stream in a direct path from one part to one other, which can maintain the traces shorter.

Every part of the circuit must be provided energy with separate traces of equal size. That is referred to as a star configuration, and it ensures that every part will get an equal provide voltage. If sections are related in a daisy-chain configuration, the present drawn from sections nearer to the availability will create a voltage drop and end in decrease voltages at sections farther from the availability:

How to Make a Custom PCB - Daisy Chained vs Star ConfigurationHow to Make a Custom PCB - Daisy Chained vs Star Configuration

PCB Form and Measurement

It’s not unusual to see spherical, triangular, or different fascinating PCB shapes. Most PCBs are designed to be as small as potential, however that’s not vital in case your software doesn’t require it.

In the event you plan on placing the PCB into an enclosure, the size could also be restricted by the dimensions of the housing.  In that case, you’ll want to know the enclosure’s dimensions earlier than laying out the PCB in order that every part matches inside.

The elements you employ may also affect the dimensions of the completed PCB. As an example, floor mounted elements are small and have a low profile, so that you’ll give you the option to make the PCB smaller. By way of gap elements are bigger, however they’re typically simpler to discover and simpler to solder.

Consumer Interfaces

The situation of elements like energy connections, potentiometers, LEDs, and audio jacks in your completed challenge will have an effect on how your PCB is laid out. Do you want an LED close to a energy change to point out that it’s on? Or do you want to put a quantity potentiometer subsequent to a achieve potentiometer? For the most effective consumer expertise you may need to make some compromises and design the remainder of your PCB across the places of those elements.

PCB Layers

Bigger circuits might be troublesome to design on a single layer PCB as a result of it’s onerous to route the traces with out intersecting each other. You may want to use two copper layers, with traces routed on each side of the PCB.

How to Make a Custom PCB - Single Layer PCB vs Double Layer PCBHow to Make a Custom PCB - Single Layer PCB vs Double Layer PCB

The traces on one layer may be related to the opposite layer with a by way of. A by way of is a copper plated gap within the PCB that electrically connects the highest layer to the underside layer. You may also join prime and backside traces at a element’s by way of gap:

How to Make a Custom PCB -Top Layer Trace vs Bottom Layer TraceHow to Make a Custom PCB -Top Layer Trace vs Bottom Layer Trace

Floor Layers

Some double layer PCBs have a floor layer, the place the complete backside layer is roofed with a copper aircraft related to floor. The constructive traces are routed on prime and connections to floor are made with by way of holes or vias. Floor layers are good for circuits which might be susceptible to interference, as a result of the massive space of copper acts as a defend towards electromagnetic fields. They additionally assist dissipate the warmth generated by the elements.

Layer Thickness

Most PCB producers will allow you to order totally different layer thicknesses. Copper weight is the time period producers use to describe the layer thickness, and it’s measured in ounces. The thickness of a layer will have an effect on how a lot present can stream by means of the circuit with out damaging the traces. Hint width is one other issue that impacts how a lot present can safely circulate by way of the circuit (mentioned under).  To find out protected values for width and thickness, you want to know the amperage that may movement via the hint in query. Use an on-line hint width calculator to decide the perfect hint thickness and width for a given amperage.

PCB Traces

When you take a look at a professionally designed PCB, you’ll in all probability discover that a lot of the copper traces bend at 45° angles. One cause for that is that 45° angles shorten the electrical path between elements in contrast to 90° angles. One more reason is that prime velocity logic alerts can get mirrored off the again of the angle, inflicting interference:

How to Make a Custom PCB - 90 Degree Trace vs 45 Degree TraceHow to Make a Custom PCB - 90 Degree Trace vs 45 Degree Trace

In case your venture makes use of digital logic or excessive velocity communication protocols above 200 MHz, you need to in all probability keep away from 90° angles and vias in your traces. For slower velocity circuits, 90° traces gained’t have a lot of an impact on the efficiency of your circuit.

Hint Width

Like layer thickness, the width of your traces will have an effect on how a lot present can move via your circuit with out damaging the circuit.

The proximity of traces to elements and adjoining traces will even decide how broad your traces can be. In the event you’re designing a small PCB with numerous traces and elements, you may want to make the traces slender for all the things to match.

Creating the PCB Layout

Now that we’ve mentioned some off the methods you’ll be able to optimize your PCB design, let’s see how to format a PCB in EasyEDA.

Open your schematic in the schematic editor, and click on on the “Convert Project To PCB” button:

How to Make a Custom PCB - Convert Schematic to PCBHow to Make a Custom PCB - Convert Schematic to PCB

The footprints related to every schematic image shall be routinely transferred to the PCB editor:

How to Make a Custom PCB - EasyEDA PCB EditorHow to Make a Custom PCB - EasyEDA PCB Editor

Discover the skinny blue strains connecting the elements. These are referred to as ratsnest strains. Ratsnest strains are digital wires that symbolize the connections between elements. They present you the place you want to route the traces in accordance to the wiring connections you created in your schematic:

How to Make a Custom PCB - Ratsnest LinesHow to Make a Custom PCB - Ratsnest Lines

Now you can begin arranging the elements, maintaining in thoughts the design ideas talked about above. You may want to perform some research to discover out if there are any particular design necessities on your circuit. Some circuits carry out higher with sure elements in particular places. For instance, in an LM386 amplifier circuit the facility provide decoupling capacitors want to be positioned shut to the chip to scale back noise.

After you’ve organized all the elements, it’s time to begin drawing the traces. Use the ratsnest wires as a tough information for routing every hint. Nevertheless, they gained’t all the time present you the easiest way to route the traces, so it’s a good concept to refer again to your schematic to confirm the right connections.

Traces can be routed mechanically utilizing the software program’s auto-router. For sophisticated circuits, it’s usually higher to route traces manually, however attempt the auto-router on easier designs and see what it comes up with. You possibly can all the time regulate particular person traces later.

How to Make a Custom PCB - Manual Routing vs Auto-RouterHow to Make a Custom PCB - Manual Routing vs Auto-Router

This video will present you ways to draw traces in EasyEDA’s PCB editor:

Now it’s time to outline the dimensions and form of the PCB define. Click on on the board define and drag all sides till all the elements are inside:

How to Make a Custom PCB - PCB OutlineHow to Make a Custom PCB - PCB Outline

The very last thing to do earlier than putting the order is to run a design rule examine. A design rule verify will inform you if any elements overlap or if traces are routed too shut collectively. The design rule examine might be discovered by clicking the “Design Manager” button in the suitable aspect window:

How to Make a Custom PCB - Design Rule Check in the Design ManagerHow to Make a Custom PCB - Design Rule Check in the Design Manager

Gadgets that fail the design rule examine shall be listed under the “DRC Errors” folder. In the event you click on on one of many errors, the issue hint or element shall be highlighted within the PCB view:

How to Make a Custom PCB - Design Rule Check ErrorsHow to Make a Custom PCB - Design Rule Check Errors

You’ll be able to specify your personal settings for the design rule verify by clicking the drop down menu within the higher proper hand nook and going to Miscellaneous > Design Rule Settings:

How to Make a Custom PCB - Create Design Rule SettingsHow to Make a Custom PCB - Create Design Rule Settings

This can convey up a window the place you’ll be able to set design guidelines for hint width, distance between traces, and different helpful parameters:

How to Make a Custom PCB - Design Rule Check OptionsHow to Make a Custom PCB - Design Rule Check Options

At this level it’s a good concept to double examine your PCB format towards your schematic to make it possible for the whole lot is related correctly. In case you’re glad with the outcome, the subsequent step is to order the PCB. EasyEDA makes this half very easy…

Ordering the PCB

Begin by clicking the “Fabrication Output” button within the prime menu of the PCB editor:

How to Make a Custom PCB - PCB Fabrication Output ButtonHow to Make a Custom PCB - PCB Fabrication Output Button

This can take you to one other display the place you’ll be able to select the choices in your PCB order:

How to Make a Custom PCB - Ordering the PCB from EasyEDAHow to Make a Custom PCB - Ordering the PCB from EasyEDA

You possibly can choose the variety of PCBs you need to order, the variety of copper layers, the PCB thickness, copper weight, and even the PCB colour. After you’ve made your choices, click on “Save to Cart” and also you’ll be taken to a web page the place you’ll be able to enter your delivery tackle and billing info.

You may as well obtain your PCB’s Gerber information if you need to ship them to a totally different producer:

How to Make a Custom PCB - Download the Gerber Files for your PCBHow to Make a Custom PCB - Download the Gerber Files for your PCB

Gerber information are a set of picture information that include the patterns used to manufacture your PCB. All the information are compressed into a single .zip file. There’s a separate file for the copper traces, silk display, and places of drill holes and vias:

How to Make a Custom PCB - Gerber FilesHow to Make a Custom PCB - Gerber Files

I ordered 15 PCBs for my LM386 audio amplifier circuit and the price got here out to about $15 USD. Manufacturing and delivery took about two weeks. The PCBs have been nicely made, and I couldn’t discover any defects. After I soldered on the elements and examined the amplifier, it labored nice. You possibly can clone my LM386 amplifier schematic and PCB right here if you need.

Making your personal customized PCB is a lot of enjoyable, and the outcomes could be very rewarding. Hopefully this text will assist you to get your prototype circuit onto a PCB. Tell us within the feedback in case you have any questions, and tell us what PCB design tasks you could have deliberate. Should you appreciated this tutorial and need to get extra prefer it, ensure to subscribe!

Recent Comments

    Archives

    Categories