An iPython Notebook and KiCad plugin that together can generate a variety of PCB stator coil designs for manufacture by PCBWay.
Find a file
2022-10-02 20:15:44 +01:00
.gitignore jupyter support 2022-09-29 11:53:20 +01:00
.python-version Arbitrary coil POC 2022-10-01 21:09:14 +01:00
coil.ipynb Tidy up layer handling 2022-10-02 20:15:44 +01:00
coil_plugin.py Work in progress any shaped coil 2022-09-29 11:41:17 +01:00
flexible_plugin.py Flexible plugin 2022-09-29 11:52:04 +01:00
README.md plot multiple coils 2022-10-02 16:50:49 +01:00
requirements.txt plot multiple coils 2022-10-02 16:50:49 +01:00
square_coil_plugin.py Work in progress any shaped coil 2022-09-29 11:41:17 +01:00

Getting set up

Running the notebook locally

Make sure you have python3 installed. Then run the following commands:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
jupyter notebook

Getting KiCad set up

This is a bit of a pain as KiCad comes with its own python installation. You'll need to install any required dependencies into this installation.

cd /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin
pip3 install numpy scikit-spatial

You can now link any plugins that you want to make available to KiCad by symbolic linking them into the kicad_plugins directory.

ln -s ~/Library/Application Support/kicad/scripting/plugins/XXXXXX.py XXXXXX.py