0
0
Embedded-cHow-ToBeginner · 4 min read

How to Use Vias in PCB Layout: Simple Guide for Beginners

In PCB layout, use vias to connect electrical signals between different layers of the board. Place vias where traces need to jump from one layer to another, ensuring proper size and clearance for reliable connections.
📐

Syntax

A via in PCB design is a small hole drilled through the board, plated with metal to connect copper layers. The main parts of a via are:

  • Drill size: Diameter of the hole.
  • Pad size: Copper area around the hole on each layer.
  • Type: Through-hole (all layers), blind (outer to inner), or buried (inner layers only).

In PCB design software, you define vias by setting these parameters and placing them on the layout where layer connections are needed.

python
Via(
  drill_size=0.3,  # in mm
  pad_size=0.6,    # in mm
  type='through-hole'  # options: through-hole, blind, buried
)
💻

Example

This example shows placing a via to connect a trace from the top layer to the bottom layer in a PCB layout tool script.

python
board = PCB()

# Draw trace on top layer
board.draw_trace(layer='top', start=(10, 10), end=(20, 10))

# Place via to connect top to bottom
via = Via(drill_size=0.3, pad_size=0.6, type='through-hole')
board.place_via(position=(20, 10), via=via)

# Continue trace on bottom layer
board.draw_trace(layer='bottom', start=(20, 10), end=(30, 10))

board.render()
Output
Visual PCB layout showing a trace on the top layer ending at a via at (20,10), connected through the board to a trace continuing on the bottom layer.
⚠️

Common Pitfalls

Common mistakes when using vias include:

  • Using vias that are too small for the current, causing overheating.
  • Placing vias too close to pads or traces, risking shorts.
  • Overusing vias, which can increase cost and reduce board reliability.
  • Not considering via inductance in high-speed signals.

Always check design rules and electrical requirements before placing vias.

python
wrong_via = Via(drill_size=0.1, pad_size=0.2, type='through-hole')  # Too small for power
right_via = Via(drill_size=0.4, pad_size=0.8, type='through-hole')  # Proper size for power

# Place wrong via near pad (risk of short)
board.place_via(position=(5, 5), via=wrong_via)

# Place right via with safe clearance
board.place_via(position=(15, 15), via=right_via)
📊

Quick Reference

AspectDescriptionBest Practice
Drill SizeDiameter of the via holeMatch current and manufacturing limits
Pad SizeCopper area around the holeEnsure enough clearance to avoid shorts
Via TypeThrough-hole, blind, buriedChoose based on layer connection needs
PlacementWhere vias are locatedAvoid pads and tight spaces
QuantityNumber of vias usedMinimize to reduce cost and complexity

Key Takeaways

Use vias to connect traces between PCB layers safely and reliably.
Choose via size based on current and manufacturing capabilities.
Avoid placing vias too close to pads or other traces to prevent shorts.
Limit the number of vias to reduce cost and improve board reliability.
Select via types (through, blind, buried) according to your layer connection needs.