Skip to content

Instantly share code, notes, and snippets.

View tomek-szczesny's full-sized avatar

Tomek Szczęsny tomek-szczesny

View GitHub Profile
@tomek-szczesny
tomek-szczesny / diff_pairs.sh
Created May 7, 2022 20:54
Differential pairs on cheap 2-layer PCBs
#!/bin/bash
# Requires GNU parallel and atlc to run.
# Three cases:
# Case 1: Trace width 0.28, diff pair spacing 0.15, diff pair to ground plane spacing 0.15
# Case 2: Trace width 0.31, diff pair spacing 0.15, diff pair to ground plane spacing 0.20
# Case 3: Trace width 0.40, diff pair spacing 0.20, diff pair to ground plane spacing 0.20
# create_bmp ... w s g ...
# trace width, pair space, outer space