Author Topic: FOSS Trace Width Calculator in C using both IPC2221 and IPC2152  (Read 533 times)

0 Members and 1 Guest are viewing this topic.

Offline ymichTopic starter

  • Newbie
  • Posts: 3
  • Country: cy
Hi everyone. This is my first post here, and it seems like a really nice community! In the past year I've been making this project because I was very interested in how trace widths are calculated, I found it kind of silly that at my work we (for some reason) trust online websites for trace width calculations. Here is the link to the project repository.

https://github.com/ymich9963/twc

In the repo I talk about the features, motivation, and example usage of the project. To install for Windows it's a simple copy-paste command in a PowerShell terminal with Admin rights. Please let me know your thoughts, improvements, or any issues! Thanks.

 

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 4102
  • Country: nl
Re: FOSS Trace Width Calculator in C using both IPC2221 and IPC2152
« Reply #1 on: May 02, 2025, 07:04:53 am »
I quite like the track width calculator in KiCad's "calculator tools". It also runs on my linux box.
 

Offline ymichTopic starter

  • Newbie
  • Posts: 3
  • Country: cy
Re: FOSS Trace Width Calculator in C using both IPC2221 and IPC2152
« Reply #2 on: May 03, 2025, 11:40:45 am »
I quite like the track width calculator in KiCad's "calculator tools". It also runs on my linux box.

Yeah builds for different OSs is something I didn't really want to do at the very start. If you've got Make installed you could always just build it from source.

The KiCAD calculator is IPC-2221 and not the new IPC-2152, which as I point out in the repo, all the different calculators for it I could find online have a different implementation. One of the reasons why I made this project is so that the community can have a discussion around the IPC-2152 because not much info about it exists online.
« Last Edit: May 03, 2025, 11:43:01 am by ymich »
 

Offline eugene

  • Frequent Contributor
  • **
  • Posts: 536
  • Country: us
Re: FOSS Trace Width Calculator in C using both IPC2221 and IPC2152
« Reply #3 on: May 03, 2025, 03:57:57 pm »
I don't have any Windows machines, but I was able to compile it on my Linux box after modifying the Makefile so that it uses gcc instead of clang and adding -lm to the end of CFLAGS.

At this point I cannot comment much other than to say that it seems to work.
90% of quoted statistics are fictional
 
The following users thanked this post: ymich

Offline ymichTopic starter

  • Newbie
  • Posts: 3
  • Country: cy
Re: FOSS Trace Width Calculator in C using both IPC2221 and IPC2152
« Reply #4 on: May 06, 2025, 02:17:56 pm »
I don't have any Windows machines, but I was able to compile it on my Linux box after modifying the Makefile so that it uses gcc instead of clang and adding -lm to the end of CFLAGS.

At this point I cannot comment much other than to say that it seems to work.

That's definitely a good sign!  :-+ ;D
« Last Edit: May 08, 2025, 03:25:00 pm by ymich »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf