An iPython Notebook and KiCad plugin that together can generate a variety of PCB stator coil designs for manufacture by PCBWay.
Find a file
robdobsn 5fac72557d Added support for LED ring
Changed larger PCB radius option from 30mm to 35mm
Added 60 LEDs in a ring
Added KiCad PCB template for a 12 coil 8 layer 70mm OD 20mm ID PCB with 60 LEDs
Added option to set net of each track, via and pad
Added option to set width of each track
2023-02-03 22:11:44 +00:00
simulations Make the hole larger on the 12 coil board 2023-02-03 13:39:50 +00:00
.DS_Store Trying out some new visualisations 2022-11-19 08:24:27 +00:00
.gitignore Adds coils 2022-11-19 08:38:23 +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 Make the hole larger on the 12 coil board 2023-02-03 13:39:50 +00:00
coil_generator-12.ipynb Added support for LED ring 2023-02-03 22:11:44 +00:00
coil_generator-radial.ipynb Added support for LED ring 2023-02-03 22:11:44 +00:00
coil_plugin.py Added support for LED ring 2023-02-03 22:11:44 +00:00
coils_12_35_10_8_layer_leds_and_conn_template.kicad_pcb Added support for LED ring 2023-02-03 22:11:44 +00:00
helpers.py Adds coil simulation 2022-11-02 18:24:06 +00:00
pcb_json.py Added support for LED ring 2023-02-03 22:11:44 +00:00
README.md Trying out some new visualisations 2022-11-19 08:24:27 +00:00
requirements.txt Run the simulations in parallel for speed 2022-11-23 16:19:12 +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/