Adding graphics to KiCad PCBs

The wrong way to use Bitmap2Component

There are many, many blogposts and videos about how to convert a bitmap image into a KiCad module for putting on a PCB.

Here are a two:
http://www.re-innovation.co.uk/web12/index.php/en/blog-75/230-adding-logo-to-kicad

None of them worked for me. I eventually got it working with a slightly altered workflow.

The first step is the same, using Bitmap2Component to create a KiCad module from a bitmap:

Bitmap2Component

With MY version of KiCad, you get a .kicad_mod file. I put this file into my project folder, thinking this this was a fairly sensible thing to do:WrongLocation

Then I added the file itself as a library in PCBnew Preferences->Library Tables:

LibraryTables

But when I tried to add this module onto the PCB, I got an error:

LibraryBrowserError

Since KiCad changed its library format some time in the past, I thought maybe that Bitmap2Component still produced legacy libraries.

So I changed the Plugin Type from KiCad to Legacy in Preferences->Library Tables.

I got a different error:

LibraryBrowserError02

After much swearing, I finally figured out what I was doing wrong.

What I was doing wrong (and how to do it right)

Bitmap2Component DOES produce the current (not legacy) module files.

But Library Tables expects the path of the folder they’re in, not the path to the module itself. This is why KiCad has the .pretty folders. They’re full of .kicad_mod files.

So I moved the module file I created to a Graphics.pretty folder inside my project:

RightLocation

And then I changed the Library tables path to point at that folder (with the KiCad plugin type). After that, success!

LogoOnPCB

Apart from image scaling, but that’s a ranty blog post for another day.

Advertisements
This entry was posted in Electronics and tagged , . Bookmark the permalink.

3 Responses to Adding graphics to KiCad PCBs

  1. Did you end up scaling it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s