This is supposed to be a quick and simple tutorial on how to transfer your PCB from KiCad to Blender. It uses GitHub - 30350n/pcb2blender: KiCad to Blender 3D model workflow, so all kudos goes to its author, Blender authors and KiCad authors - I am just merely making a few steps tutorial.
I am also no Blender expert and there is a lot of much better Blender tutorials.
An example of what we will be creating:
The mentioned plugin consists of two tools - KiCad exporter and blender importer.
-
Install PCB exporter in KiCad. The page states that it is not available in PCM yet, so you need to install it manually. It basically means downloading the exporter from the releases page - Releases · 30350n/pcb2blender · GitHub . In time of writing this it was pcb2blender_exporter_2-7.zip .
-
When it is downloaded, extract the plugins folder from it into your KiCad plugins folder and rename it to pcb2blender_exporter. So in my case it was exctract the contents of the plugins folder in the zip into C:\Program Files\KiCad\7.0\share\kicad\scripting\plugins\pcb2blender_exporter .
-
In KiCad there should be a new icon:
-
Click the icon and export the PCB:
Even though it says 0 PCBs detected, it will export all into one file. -
Select the filename to export to and click export.
-
Download the blender importer and do NOT extract it.
-
In Blender, install the importer using Edit → Preferences → Add-ons → Install (point it to the zip archive).
-
Enable the importer plugin in the Add-ons window by clicking its checkbox:
-
Create new Blender file, delete the cube and import the file created in step 5 via File → Import → PCB
-
You should see the PCB in the right pane:
The imported PCB may be small compared to the default camera. -
You have a working PCB model in Blender and you can follow any Blender tutorial on how to work with it. All I needed was to learn how to move and rotate objects (mainly camera and lights) and how to keyframe it to make an animation.
Sidenote: I am using KiBot ( GitHub - INTI-CMNB/KiBot: KiCad automation utility ) to automate my KiCad exports and it contains the KiCad exporter and can generate Blender files.