|
<< Click to Display Table of Contents >> Navigation: The Learning Tree > PCB Layout |
PCB layout is where electronic engineering meets physical design. It is the process of arranging components, defining the physical characteristics of your printed circuit board and creating the copper connections that bring your electronic circuit to life.
While a schematic describes how your circuit works electrically, the PCB layout determines how it is physically constructed.
AutoTRAX DEX provides an integrated PCB layout environment that allows you to develop, refine and visualise your printed circuit board without leaving your electronic design.
A good PCB layout is not simply about connecting components together. It is about creating a board that performs reliably, is easy to manufacture and assemble, and satisfies both your electrical and mechanical requirements.
What you will learn
In this section of the learning tree, you will learn how to:
•Navigate the PCB layout environment.
•Define and modify the board outline.
•Configure the PCB layer structure.
•Position, rotate and align components.
•Work with grids and snapping.
•Understand electrical connectivity and the ratsnest.
•Establish PCB design rules.
•Route and modify copper tracks.
•Work with vias and track junctions.
•Create copper pours and ground planes.
•Work with mounting holes and mechanical features.
•Add dimensions, text and graphical elements.
•Design for electrical and thermal performance.
•Optimise your PCB layout.
•Inspect your PCB in three dimensions.
•Check your PCB for design errors.
1. Understanding PCB layout
A printed circuit board provides both the mechanical support and electrical connections for the components in your electronic design.
The PCB layout defines the physical arrangement of everything on the board, including:
•Electronic components.
•Copper tracks.
•Component pads.
•Vias.
•Copper pours and planes.
•Mounting holes.
•Board outlines and cut-outs.
•Silkscreen markings.
•Mechanical features.
All these elements must work together to produce a functional and manufacturable electronic assembly.
Unlike schematic design, where component positioning is largely determined by readability, PCB layout requires careful consideration of physical dimensions, electrical performance and manufacturing constraints.
2. Working in the PCB layout environment
The PCB layout environment in AutoTRAX DEX provides the tools required to create and modify the physical elements of your printed circuit board.
As you become familiar with the layout environment, you will learn how to:
•Zoom and pan around your PCB.
•Select individual or multiple objects.
•Move and rotate objects.
•Edit object properties.
•Control layer visibility.
•Work with different viewing modes.
•Make precise geometric adjustments.
•Inspect individual components and electrical connections.
Becoming comfortable with these fundamental operations will make every subsequent stage of PCB design considerably easier.
3. Defining the board outline
The board outline determines the physical shape and dimensions of your PCB.
Although many printed circuit boards are rectangular, your PCB may need to fit inside an enclosure, follow an irregular mechanical shape or accommodate existing mounting arrangements.
When defining your board outline, consider:
•Overall board dimensions.
•Enclosure dimensions.
•Mounting hole positions.
•Connector locations.
•Mechanical restrictions.
•Board cut-outs.
•Rounded corners.
•Clearance around the board edges.
•Manufacturing limitations.
If your PCB must fit inside an existing enclosure, establish the mechanical requirements before spending too much time positioning components or routing tracks.
Changing the board outline late in the design process can result in considerable additional work.
4. Understanding PCB layers
A printed circuit board is constructed from several layers, each serving a particular purpose.
Understanding these layers is essential when creating a PCB layout.
Copper layers
Copper layers contain the conductive elements of your PCB, including tracks, pads and copper pours.
A PCB may contain a single copper layer, two copper layers or several internal copper layers.
Internal layers are frequently used for signal routing, power distribution and ground planes.
Solder mask layers
The solder mask is a protective coating applied to the PCB.
It helps protect the copper from contamination and oxidation and reduces the likelihood of unwanted solder bridges during assembly.
Openings in the solder mask expose areas of copper that need to be soldered or otherwise electrically accessible.
Solder paste layers
Solder paste layers define the areas where solder paste is applied during surface-mount assembly.
These layers are commonly used when manufacturing solder paste stencils.
Silkscreen layers
Silkscreen layers contain printed information that appears on the surface of your PCB.
This may include component reference designators, polarity indicators, connector labels, company logos and other useful information.
Mechanical layers
Mechanical layers can contain dimensions, construction information, assembly details and other non-electrical design information.
They are particularly useful when your PCB forms part of a larger mechanical assembly.
5. Working with grids and snapping
Precision is extremely important when designing a printed circuit board.
Grids and snapping help you position objects accurately and maintain consistent spacing and alignment throughout your design.
Different operations may benefit from different grid sizes.
For example:
•A relatively coarse grid may be useful when positioning large components.
•A finer grid may be useful when routing tracks.
•A very fine grid may be required when working with densely populated areas or specialised component footprints.
Avoid using an unnecessarily fine grid for every operation. Doing so can make component alignment more difficult and introduce unnecessary geometric inconsistencies.
Choose a grid appropriate to the task you are performing.
6. Component placement
Component placement is arguably one of the most important stages of PCB layout.
A well-positioned collection of components can make routing straightforward. Poor component placement can make even a relatively simple circuit unnecessarily difficult to route.
Good component placement can also improve electrical performance, thermal behaviour, manufacturability and reliability.
Start with mechanically constrained components
Some components must occupy particular positions on the PCB.
These may include:
•External connectors.
•Switches and push buttons.
•Displays.
•LEDs and indicators.
•Mounting holes.
•Heatsinks.
•Sensors.
•Components that interact with an enclosure.
Position these components first, as their locations may determine the arrangement of everything else.
Group related components
Arrange components according to their electrical functions.
For example, you might organise your PCB into functional areas containing:
•Power supply circuitry.
•Microprocessor circuitry.
•Analogue signal processing.
•Digital logic.
•Communication interfaces.
•Input and output circuitry.
•Radio-frequency circuitry.
Keeping related components together can simplify routing and make the finished PCB easier to understand and troubleshoot.
Position decoupling capacitors carefully
Decoupling capacitors should generally be positioned close to the power supply pins they serve.
Short connections and small current-loop areas help reduce unwanted inductance and improve power supply stability.
Always follow the recommendations provided in the component manufacturer's datasheet.
Consider component orientation
Rotating a component can sometimes eliminate several unnecessary track crossings.
Experiment with different orientations while observing the electrical connections between components.
A small change in component orientation can make a surprisingly large difference to routing complexity.
7. Understanding the ratsnest
Before routing your PCB, you will see indications of the electrical connections that have not yet been completed.
These are commonly referred to as the ratsnest.
The ratsnest helps you understand the electrical relationships between components and provides valuable feedback while arranging them.
When moving or rotating components, observe how the unrouted connections change.
A placement that reduces unnecessary connection lengths and crossings will often be easier to route.
However, the shortest possible connections are not always the best solution. Electrical performance, mechanical restrictions, thermal considerations and manufacturing requirements must also be taken into account.
8. Establishing PCB design rules
PCB design rules define the constraints that your layout must satisfy.
These rules help ensure that your board can be manufactured and that its physical construction meets your design requirements.
Typical design rules include:
•Minimum track widths.
•Minimum copper clearances.
•Minimum via diameters.
•Minimum drill diameters.
•Minimum annular ring dimensions.
•Copper clearance from board edges.
•Other applicable manufacturing constraints.
Your design rules should reflect both the capabilities of your PCB manufacturer and the electrical requirements of your circuit.
For example, a manufacturer may be capable of producing very narrow copper tracks, but those tracks may not be suitable for carrying the current required by your circuit.
Similarly, high-voltage circuits may require clearances considerably greater than the manufacturer's minimum production clearance.
9. Working with copper tracks
Copper tracks provide the physical electrical connections between components on your PCB.
When creating tracks, you must consider more than simply connecting one point to another.
Important considerations include:
•Track width.
•Track length.
•Electrical clearance.
•Current-carrying capacity.
•Signal frequency.
•Controlled impedance requirements.
•Signal return paths.
•Track geometry.
•Thermal behaviour.
Track width
The appropriate track width depends on factors such as copper thickness, current, acceptable temperature rise and manufacturing limitations.
Power supply tracks may need to be considerably wider than ordinary signal tracks.
Track length
Shorter tracks can reduce resistance, inductance and unwanted signal delays.
However, some high-speed circuits require particular track lengths or carefully matched track lengths.
Track geometry
Consistent track geometry can improve the readability and organisation of your PCB.
Routing with horizontal, vertical and 45-degree track segments is a common approach, although the appropriate geometry depends on the electrical and physical requirements of your design.
10. Manual and automatic routing
AutoTRAX DEX provides tools for manually and automatically routing electrical connections.
Manual routing
Manual routing gives you direct control over the position and geometry of your copper tracks.
It is particularly useful when routing electrically critical connections, power supplies, sensitive signals and connections with specialised requirements.
Automatic routing
Automatic routing can reduce the amount of repetitive work involved in completing electrical connections.
The effectiveness of automatic routing is strongly influenced by component placement, board dimensions, layer availability and design rules.
A poorly arranged PCB can be difficult for both a human designer and an automatic router.
Combining routing techniques
Many designs benefit from a combination of manual and automatic routing.
You may wish to manually route critical connections first and then use automatic routing for less critical connections.
Always inspect the resulting layout, regardless of how the tracks were created.
Automatic routing is a useful design tool, but it does not replace engineering judgement.
11. Working with vias
A via provides an electrical connection between copper layers.
Vias are particularly important when routing multilayer PCBs because they allow electrical connections to move between layers.
They can also be used for:
•Connecting ground planes.
•Distributing power.
•Providing signal return paths.
•Improving heat dissipation.
•Connecting separate copper areas.
•Creating ground stitching arrangements.
When placing vias, consider their diameter, drill size, electrical clearance and manufacturing requirements.
Avoid unnecessary vias where practical, particularly in electrically sensitive or high-frequency signal paths.
However, remember that vias are not inherently undesirable. A correctly positioned via can simplify routing and improve the overall electrical performance of your PCB.
12. Working with track junctions
Electrical nets frequently connect more than two points.
Track junctions allow copper tracks to branch and form interconnected routing structures.
For example, a power supply net may connect several integrated circuits, capacitors and connectors distributed across the PCB.
Rather than creating completely independent connections between every component, tracks can branch at appropriate junctions.
Carefully positioned junctions can help:
•Reduce unnecessary copper track length.
•Simplify routing.
•Improve the organisation of electrical connections.
•Make existing routing easier to modify.
For certain high-speed signals, branching may introduce unwanted stubs and signal reflections. The appropriate routing topology depends on the electrical characteristics of the circuit.
13. Copper pours and ground planes
Copper pours allow selected areas of a PCB layer to be filled with copper associated with an electrical net.
They are frequently used for ground connections and power distribution.
A well-designed ground plane can provide a low-impedance return path for electrical signals and contribute to improved electrical performance.
Copper pours and planes may help:
•Reduce electrical resistance.
•Improve power distribution.
•Provide continuous signal return paths.
•Reduce electromagnetic interference.
•Improve thermal performance.
•Make efficient use of available copper areas.
However, simply filling unused areas of a PCB with copper does not automatically improve its electrical performance.
Consider how the copper areas are connected, whether they provide useful current paths and whether any isolated copper regions remain.
14. Power distribution
Reliable power distribution is essential to the operation of an electronic circuit.
When designing power supply connections, consider:
•Maximum expected current.
•Copper track width and thickness.
•Voltage drop.
•Ground return paths.
•Decoupling capacitor placement.
•Power supply noise.
•Heat generation.
•Connections between copper layers.
High-current circuits may benefit from wide copper tracks, large copper areas and multiple vias.
Sensitive analogue circuits and high-speed digital circuits may require additional consideration of power supply impedance and noise.
Always consider the complete current path, including the return path, rather than concentrating solely on the positive supply connection.
15. Signal integrity
As signal frequencies increase and signal transition times decrease, the physical characteristics of your PCB become increasingly important.
Copper tracks are not ideal electrical conductors. They exhibit resistance, capacitance and inductance, and under appropriate conditions must be treated as transmission lines.
Signal integrity considerations may include:
•Controlled impedance.
•Track length matching.
•Differential pair routing.
•Signal reflections.
•Crosstalk.
•Return path continuity.
•Ground plane interruptions.
•Via transitions.
•Unwanted track stubs.
Not every PCB requires sophisticated signal integrity analysis.
A simple low-frequency circuit may operate perfectly well without specialised routing techniques, while a high-speed digital interface may require very carefully controlled PCB geometry.
Follow the layout recommendations provided by the manufacturers of the components you are using.
16. Thermal management
Electronic components generate heat during operation.
If this heat is not adequately dissipated, component temperatures may rise beyond acceptable limits, reducing reliability or causing permanent damage.
PCB layout can play an important role in thermal management.
Useful techniques include:
•Providing sufficient copper area around heat-generating components.
•Using thermal vias.
•Distributing heat across multiple copper layers.
•Allowing adequate spacing between components.
•Positioning temperature-sensitive components away from heat sources.
•Providing space for heatsinks.
•Considering airflow through the finished assembly.
Remember that copper is not only an electrical conductor but also an effective thermal conductor.
A carefully designed PCB can contribute significantly to the cooling of electronic components.
17. Mechanical features and mounting arrangements
A PCB must usually interact with something outside the electronic circuit itself.
It may be mounted inside an enclosure, connected to another PCB or attached to a larger mechanical assembly.
Mechanical considerations include:
•Mounting hole positions.
•Screw and washer clearances.
•Standoffs.
•Board thickness.
•Connector accessibility.
•Component heights.
•Mechanical cut-outs.
•Enclosure dimensions.
•Cable routing.
•Access for assembly and maintenance.
Consider the space occupied by mounting hardware as well as the mounting holes themselves.
A screw head or metal washer may occupy considerably more space than the associated hole and could interfere with nearby components or copper tracks.
18. Adding text, dimensions and graphical elements
Clear markings make your PCB easier to manufacture, assemble, test and maintain.
Useful information may include:
•Component reference designators.
•Connector names.
•Pin numbers.
•Signal names.
•Power supply voltages.
•Polarity indicators.
•Board names.
•Revision numbers.
•Test point identification.
•Company logos.
•Copyright information.
Dimensions and mechanical annotations can also help communicate important information about the PCB to manufacturers and mechanical designers.
Ensure that printed markings remain readable and are not obscured by components, mounting hardware or solder mask openings.
A well-labelled PCB can save considerable time during assembly and troubleshooting.
19. Designing for manufacturing and assembly
A PCB must be practical to manufacture and assemble, not merely electrically correct.
Design for Manufacturing (DFM) and Design for Assembly (DFA) involve considering the production processes while developing your layout.
Important considerations include:
•PCB manufacturer capabilities.
•Minimum copper track widths and clearances.
•Available drill sizes.
•Solder mask requirements.
•Component spacing.
•Component orientation.
•Assembly equipment requirements.
•Fiducial positions.
•Test point accessibility.
•Access for soldering and rework.
•Component availability.
Avoid designing unnecessarily close to manufacturing limits unless your application genuinely requires it.
Providing reasonable manufacturing tolerances can improve production yield and potentially reduce manufacturing costs.
20. Optimising your PCB layout
Completing all the electrical connections does not necessarily mean that your PCB layout is finished.
There may still be opportunities to improve the design.
Review your PCB and consider whether you can:
•Reduce unnecessary track lengths.
•Remove unnecessary vias.
•Improve component placement.
•Simplify track geometry.
•Increase electrical clearances.
•Improve ground return paths.
•Improve power distribution.
•Improve thermal performance.
•Reduce board dimensions.
•Improve component accessibility.
•Make the PCB easier to assemble and test.
PCB layout is often an iterative process.
You may find that moving a single component creates opportunities to simplify several electrical connections.
Do not be afraid to revisit earlier design decisions when doing so produces a better result.
21. Inspecting your PCB in 3D
AutoTRAX DEX integrates three-dimensional visualisation into the PCB design environment.
This allows you to inspect your electronic design as a physical assembly before committing to manufacturing.
Use the 3D view to examine:
•Overall board dimensions.
•Component positioning.
•Component orientation.
•Component heights.
•Mechanical clearances.
•Connector accessibility.
•Mounting arrangements.
•Potential mechanical interference.
•The overall appearance of your PCB.
Rotate the PCB and inspect it from different angles.
Problems that are difficult to recognise in a two-dimensional layout may become immediately apparent when viewing the board in three dimensions.
The accuracy of your mechanical inspection depends on the accuracy of the component footprints and associated 3D models.
22. Checking your PCB layout
Before preparing your PCB for manufacturing, perform a thorough review of the completed layout.
Use the Design Rule Checking facilities in AutoTRAX DEX to help identify violations of your design constraints.
In addition to automated checking, visually inspect the PCB and consider the following questions:
•Are all required electrical connections complete?
•Are track widths appropriate?
•Are electrical clearances sufficient?
•Are component footprints correct?
•Are components correctly orientated?
•Are power and ground connections satisfactory?
•Are copper pours correctly connected?
•Are mounting holes correctly positioned?
•Are connectors accessible?
•Are silkscreen markings readable?
•Are thermal requirements satisfied?
•Can the PCB be manufactured and assembled reliably?
Passing a Design Rule Check is an important milestone, but it does not guarantee that your electronic circuit will function correctly.
Automated checking complements good engineering practice; it does not replace it.
Common PCB layout mistakes
Even experienced electronic designers occasionally make layout mistakes.
Some of the most common include:
•Starting routing before completing component placement.
•Using tracks that are too narrow for the required current.
•Providing insufficient electrical clearance.
•Positioning decoupling capacitors too far from power supply pins.
•Creating unnecessarily long signal return paths.
•Using incorrect component footprints.
•Forgetting mounting holes.
•Placing components too close to board edges.
•Overlooking component heights.
•Creating inaccessible connectors.
•Providing insufficient thermal management.
•Using excessive numbers of vias.
•Placing silkscreen markings over solderable pads.
•Ignoring PCB manufacturing requirements.
•Assuming that passing a Design Rule Check guarantees correct circuit operation.
Being aware of these common mistakes can help you avoid unnecessary PCB revisions and manufacturing costs.
What makes a good PCB layout?
A good PCB layout achieves a balance between several competing requirements.
It should be:
•Electrically sound — providing reliable electrical connections and appropriate signal and power distribution.
•Mechanically sound — fitting correctly within its intended physical environment.
•Thermally sound — maintaining components within acceptable operating temperatures.
•Manufacturable — satisfying the capabilities of the PCB manufacturer.
•Easy to assemble — allowing components to be installed efficiently and correctly.
•Easy to test — providing suitable access to important electrical connections.
•Easy to maintain — allowing faults to be identified and components to be replaced where practical.
•Economical — making sensible use of board area, materials and manufacturing processes.
The smallest PCB is not necessarily the best PCB. Neither is the PCB with the shortest tracks or the fewest vias.
The best PCB is the one that reliably satisfies the requirements of your particular application.
Learning at your own pace
PCB layout is a skill that develops through experience.
Start with simple designs and become familiar with component placement, track routing, vias, copper pours and design rules.
As your confidence grows, explore more advanced techniques such as multilayer design, differential pair routing, track length matching, controlled impedance and thermal management.
Experiment with different approaches. Move components, change their orientation and explore alternative routing strategies.
One of the great advantages of designing electronically is that you can make changes and investigate alternatives long before a physical PCB is manufactured.
PCB layout combines electronic engineering, geometry, physics, manufacturing technology and creativity. There is always something new to learn and almost always an opportunity to improve a design.
Explore the topics in this section of the learning tree to discover how AutoTRAX DEX helps you create professional, reliable and manufacturable printed circuit boards.
Read More...
Moving, Rotating and Aligning Components
Copper Pours and Ground Planes
Mounting Holes and Mechanical Features
Design for Manufacturing (DFM)