A calculator tool used to assist designing rigid PCB traces. Implements both the IPC2221 and IPC2152 standards and has the ability to choose between the two, with the latter having two methods available for the outputs. Each method used for the standards was derived from one of the various websites that claim to implement a trace width calculator. The initial purpose of this tool was to collect the available methods for calculating trace widths and to have them all in one place. Any improvements please let me know!
- Two methods for calculating trace widths in rigid PCBs, listed in the next section.
- Change units for any input and change the output units from imperial to metric.
- Convert any value used in the tool with the conversion functions (use
--help
to list them). - Output the results to a file for saving.
One method is implemented for IPC2221 and two methods for IPC2152. The tool defaults to the IPC2152 standard, Method A.
- Method A: Derived from The CircuitCalculator.com Blog and Omni Calculator.
- Method A: Derived from NinjaCalc.
- Method B: Derived from SMPS.us which was also posted on the Altium Resources.
To install and use the twc
command. Make sure to have the latest version, place it in a folder, and add that folder path to your Enviroment Variables.
Clone the repository and got to this directory. Using make
simply run in a command line,
make
And twc
should be build in a new build/
directory.
Running the tests or coverage can be done by running,
make test
make coverage
Testing suite used is Unity and LLVM-COV for coverage.
Some sources for creating the tool are listed below,
- Trace Width Calculators,
- Conversion calculators,
- Convert-me for area conversion
- UnitConverters
- Convert-measurement-units
- Metric Conversions C to F conversion
- Other Resources