Skip to content

Instantly share code, notes, and snippets.

@pwuertz
Last active November 27, 2023 07:04
Show Gist options
  • Save pwuertz/152f15b2dadca9a74039aeab944714af to your computer and use it in GitHub Desktop.
Save pwuertz/152f15b2dadca9a74039aeab944714af to your computer and use it in GitHub Desktop.
KiCad PCB pick and place assistant
Moved to:
https://github.com/pwuertz/kicad_picknplace_assistant
@0xDBFB7
Copy link

0xDBFB7 commented Dec 24, 2018

Duude! This script is amazing! Thanks for writing and publishing it.

@nelegnid
Copy link

Amazing script. It took me several days to figure out how to use it....

KiCad 5.0.2 on Windows 10 -> forget it. Missing package numpy can not be installed. (If anybody finds a way please let me know)
KiCad 5.0.2 on Ubuntu -> do the following:

  1. download and place the kicad_picknplace_assistant.py somewhere
  2. sudo apt install python-pip
  3. sudo apt install python-tk
  4. pip install numpy
  5. pip install matplotlib
  6. python2.7 'location of kicad_picknplace_assistant.py' 'location of pcb.kicad_pcb'

PS: there is a lack of documentation on KiCad <-> Python (both for Linux and Windows 10)

@tohyf
Copy link

tohyf commented Feb 4, 2019

amazing, however components on the bottom side seems to be missing. My board is a 4-layer board, if that matters.

@tohyf
Copy link

tohyf commented Feb 4, 2019

amazing, however components on the bottom side seems to be missing. My board is a 4-layer board, if that matters.

Seems like this is fixed in Simon's fork

@AlexandruBabaian
Copy link

Thank you for the script. It is extremely helpfull, however I have a problem with it.
Some of the components are offseted and I can't mannage to correct the error.

Dimmed components are somehow offsetted and overlapping. The highlighting rectangles are in the correct positions however highlighted pads are offsetted with respect to rectangles.
Could you please take a look or at least suggest me where to look more in depth?

@pwuertz
Copy link
Author

pwuertz commented Jul 19, 2019

Wow, didn't noticed the activity around here.

@tohyf is correct, we should probably transform this into a proper GitHub project with issues and PRs. I hope it is ok with you if I blatantly copy your work in writing the project description?

@LBleijendaal
Copy link

Awesome script. Used the newest version of Kicad, which uses python 3. Script works as a charm under python3. I altered the PIN1 color to something with a higher contrast (blue). Thanks!!

@pwuertz
Copy link
Author

pwuertz commented Aug 7, 2019

Thank you! So the script already works with the new Py3 version? That's good to know. Also, feel free to post ideas for enhancements like color customization to the new repository.

@atuleu
Copy link

atuleu commented Mar 26, 2021

@pwuertz the script works with python3, at least on Ubuntu 20.04. Make sure to install python3-mathplotlib package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment