If an image (PNG, JPEG…etc) from any program is all you have, do this:
• You’re going to make a Footprint from the Image and load it into the PCB.
[PCB Image to be used is from Fritzing]
I’m not going to take the time to dial-in the exact/fractional dimensions and confirmations but, that’s easy to do.
Assuming you have a good image (always best to have White or Transparent Image) (you can use Inkscape/others to remove background colors/opaqueness)
In Kicad’s Main Panel, click the ‘Bitmap’ tool icon.
Import your Image (does not need to be BMP, I used PNG)
Set the DPI for the correct/desired scale. May take some trial/error but, you’ll see the relationships of the shown dimensions when changing DPI. Different programs use different DPI’s…)
Try the different “Picture” tabs and Drag the Black/White slider to fine-tune the graphic.
Export to PCBnew (creates a .mod file). You Now have a Footprint
- Place the new Footprint in desired PCB.
Confirm some Known Dimensions. If needing to scale it, redo the above. Generally, once getting it correct, the same DPI can be used for similar images from the same program…
The Example (Fritzing) Image contains Rulers just for Confirmaions. But, if you know the dims of some objects in the Image (including the Pitch of the Pads), you have the info needed. Best to strive for using Big distances so as to get better resolutions…
Example shows confirmations of ~50mm distance. Can use the measurement info at bottom of panel…
[EDIT] Added last screenshot showing a Kicad part (LM386) dropped into the image/footprint - dim’s are perfect!
Image Loaded Into BMP Tool
Footprint Loaded Into PCB