diff --git a/_projects/usbc_power_station.md b/_projects/usbc_power_station.md index cc80865..69bc3f5 100644 --- a/_projects/usbc_power_station.md +++ b/_projects/usbc_power_station.md @@ -11,7 +11,7 @@ img: class: invertable social_image: /assets/projects/usbc_power_supply/thumbnail.png -model: +model: /assets/projects/usbc_power_supply/usb-c_psu.glb head: | @@ -111,9 +111,9 @@ TODO: Add some knobs to the simulator so you can test different conditions such - + diff --git a/assets/projects/usbc_power_supply/README.md b/assets/projects/usbc_power_supply/README.md new file mode 100644 index 0000000..12d1b06 --- /dev/null +++ b/assets/projects/usbc_power_supply/README.md @@ -0,0 +1,7 @@ +To generate the board GLTFs: + +``` +/Applications/KiCad/KiCad.app/Contents/MacOS/kicad-cli pcb export glb usb-c_psu.kicad_pcb --subst-models -f -o /Users/math/git/tomhodson.github.com/assets/projects/usbc_power_supply/usb-c_psu.glb --include-tracks --include-zones +``` + +Using `kicad-cli` (/opt/homebrew/bin/kicad-cli) seems to work but a few things are misconfigured, you need to add `-D KICAD8_3DMODEL_DIR=/Applications/KiCad/KiCad.app/Contents/SharedSupport/3dmodels/` and probably other things are broken too. \ No newline at end of file diff --git a/assets/projects/usbc_power_supply/usb-c_psu.glb b/assets/projects/usbc_power_supply/usb-c_psu.glb new file mode 100644 index 0000000..5b841e0 Binary files /dev/null and b/assets/projects/usbc_power_supply/usb-c_psu.glb differ