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-11-19 08:24:27 +00:00
simulations Trying out some new visualisations 2022-11-19 08:24:27 +00:00
.DS_Store Trying out some new visualisations 2022-11-19 08:24:27 +00:00
.gitignore Trying out some new visualisations 2022-11-19 08:24:27 +00:00
.pre-commit-config.yaml New version that handles shape corners elegantly and optimises lines 2022-10-07 15:33:20 +01:00
.python-version Arbitrary coil POC 2022-10-01 21:09:14 +01:00
coil_generator-6.ipynb Trying out some new visualisations 2022-11-19 08:24:27 +00:00
coil_generator-12.ipynb Trying out some new visualisations 2022-11-19 08:24:27 +00:00
coil_generator-radial.ipynb Trying out some new visualisations 2022-11-19 08:24:27 +00:00
coil_plugin.py Trying out some new visualisations 2022-11-19 08:24:27 +00:00
helpers.py Adds coil simulation 2022-11-02 18:24:06 +00:00
pcb_json.py New version with edge cuts 2022-11-01 20:00:12 +00:00
README.md Trying out some new visualisations 2022-11-19 08:24:27 +00:00
requirements.txt Trying out some new visualisations 2022-11-19 08:24:27 +00:00

Demo Video

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

Add the plugin to KiCad by symbolically linking it to the kicad_plugins directory.

ln -s ${PWD}/coil_plugin.py ~/Documents/KiCad/6.0/scripting/plugins/coil_plugin.py

The project is still very experimental - so there are no guarantees that these will work or do anything useful...

Building python to take advantage of the M1 Mac Multiprocessors

https://www.reddit.com/r/Python/comments/qog8x3/if_you_are_using_apples_m1_macs_compiling_numpy/