Electronic – How should I design a schematic component for a component library

kicadpcbschematics

This is my first time making schematic components, of which I will then be making the footprints for PCB designs. I'm using KiCad.

I don't know the best "layout" for the components I'm making. For example, some component libraries seem to bunch different connections together logically (e.g. Power and ground pins are next to each other, microcontroller ports are placed next to each other in order etc.) and then you get components where they have just randomly drawn any old shape and put the connections anywhere.

For example, these two components I've picked, the connections are in groups (note that this is a direct screenshot of one schematic page, I haven't resized either image):

enter image description here

My questions are:

  • Firstly, what shape should I use? I see some components as rectangles, other one as squares.
  • Is there a industry standard or something similar that states where the connections/pins should be displayed on the components (e.g. "put power and ground on the bottom side", that type of thing.)
  • What size should I make the schematic components? As can be seen above, there is quite a large difference between the size of the component, it's text, and the font used.
  • What colours/fonts should I use? Above one uses white one uses yellow as the filler colour.

Best Answer

I generally want signals to flow from left to right, so I put inputs on the left of the box, and outputs on the right. Power connections (if shown) go on top, and power (again, if shown) on the bottom edge. The box must, of course, be tall enough to show all the pins, but only needs to be wide enought that the pin names don't overlap. I would usually put the reference designator and part type above the part, not inside it.

Spacing of pin/signal groups, as in your right example, can be helpful in separating functions on a part.