Creating footprints in KiCad using a scanner

Some time ago I sourced a number of very cheap SD card sockets from China for a hobby project I was working on. Sadly, when it came to PCB design, I couldn’t find the footprints for this particular socket anywhere – the part being a proprietary invention of the factory rather than a cheap knockoff of a reputable brand like Amphenol or Molex for which drawings are readily available off of snapeda.com.

Creating footprints in KiCad using a scanner

Turns out, this is a problem with many, many parts – there are no CAD drawings to be found anywhere, and the only way to really fit the part onto a board is to measure the part and draw everything yourself – a tedious manual process, but with a few tools, any part can be precisely drawn and transferred onto the board.

Step one – Scan the part using a flatbed scanner

In the absence of other tools, one can use any flatbed scanner to reproduce the measurements required to draw a part. At 300dpi, a scan will yield a sufficient measurement on most, if not all parts. One key thing to remember is to ensure that each part is aligned with the edge of the scanner – I’ve managed to accomplish this, using a public transport card I’ve found in my drawer. Simply place the card (or any other rectangular item) next to the edge, and make sure it touches it and is aligned with it, then – align your parts with the edges of the card. The alternative is to use the edges of the scanner to align the parts, but I’ve found that to be unreliable.

Step two – Open your CAD package and import the bitmap

Fire up your favorite CAD package (QCAD is my choice), and import the bitmap. Ensure that it is scaled properly – in my case (a 300 dpi) scan, the width/height factor turned out to be 0.0847 (300 dpi is 11.811 dots/mm, and 1/11.811 = 0.08466683600033867).

Read more: Creating footprints in KiCad using a scanner


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top