How to design your own footprint and symbol for KiCad!!
by @espcaa
Who never encountered the eternal component that didn't have a footprint or symbol in KiCad? That's why i'm trying to teach you how to design your owns today! To do this, i'll use this button as an example, but you can use any component you want!
Step 1: Find the datasheet
If you don't have any footprint or symbol to refer to, the first step is to find the datasheet where you'll likely also find the measurements of the component. In this case, the datasheet can be easily found because this is LCSC and is even in english!! See it here.
Step 2: Create the symbol
To create the symbol, you can use the KiCad Symbol Editor. Open it like this:
Then, create a new library where you'll store that custom symbol. You can do this by clicking on the File
menu and selecting New Library
.
Select project and continue
Name it however you want and save it in the project folder
Now you're ready to start creating the symbol! Click on the Create Symbol
button in the File
menu or use the shortcut Ctrl+N.
Then just change the name to whatever you want, in this case, button
(please name yours better sob) and click OK
. (don't touch at the other values it should be fine for now)
Now go look at your datasheet and add the number of pins you need! (If you can, try to match the actual layout, but it doesn't matter.)
(Ps, the pin tool is here ->)
According to the datasheet, I need 6 pins in a 3x2 layout:
After you've done this, you could just stop there but don't fear adding a rectangle as a background or even some text!
Save your file with ctrl+s! (or cmd+s for the macos users) (tux+s??? okay imma stop there)
Step 3 : Create the footprint!
Now let's open the footprint editor!!
Just repeat what you did in the symbol editor to make a new footprint! (the lib doesnt need to be named the same way, dw too much about it)
_Note: because this is a component wich is mounted through holes (long poles on the component that go through the pcb), I'm going to select the Through Hole option when creating my footprint but if you have a SMD component, the process should be very similar (= just copper pads on the surface)
Now that you're in the footprint editor, you're going to do almost the same thing, creating new real pins this time!
Be careful because this time, this will really appear on your pcb as it is on your footprint! You need to make sure every dimension is corresponding to the datasheet!
_ You can use the datasheet and the ruler tool!!_
At the end you should have something like this: (Make sure the pins/pads numbers correspond to your datasheet EXACTLY!!!)
Once everything is finished, just save with ctr+s (or... tux ...)
Step 4 : Using all of this mess!!
Now that you sucessfully created all of your symbols/footprints you can go back to your schematic editor and add it like any other component just by typing its name!
Last note: don't forget to assign it a footprint by double clicking then changing the footprint field!
On this, i'm going to sleep, I hope this helped someone and if you see any error, just dm me on slack!