PCB Guide Part 4 - The rest of the schematic
By this point, you should have the MCU schematic zone complete.
Step 6. The rest of the schematic
The rest of the schematic is not as difficult as the MCU.
Let's power through it.
Only typical Mini-B USB will be covered here for simplicity reasons?
Type-C setups will be discussed in future sections.
Search for the molex USB connector in my library, along with polyfuse-small.
The polyfuse prevents your computer from exploding in case of a short circuit.
Connect VBUS -> Polyfuse, then Polyfuse -> +5V. Drop a VCC symbol pre-fuse. Change fuse value to 500mA.
The rest are self-explanatory. The data lines are connected using the global labels we set up earlier:
Now, let's add the switch matrix.
I will use the MX-NoLED symbol from my own library.
Combine it with a D_Small (small diode). Ignore the LED pads for now; that will be covered later.
Connect the anode of the diode to the ROW pin of the switch.
Now clone this four times as shown:
Then, drag a wire across the diode cathode and COL pins of each row and column, and terminate them using the hotkey k:
Finally, add global labels for each row and column. It is recommended to label them counting from 0 up, since that is how it is handled firmware side as well.
Note that we will NOT be connecting the rows and columns to the MCU just yet.
Finally, a schematic is complete.
Note: The schema has pin 15 and 24 (gnd and avcc) untied. These should be tied to the GND and +5V nets respectively.
However, there's one more step before getting to work on the physical PCB.
Step 7. Assigning Footprints
As of now, the electrical setup is complete.
However, KiCad doesn't know how to translate this to physical form.
Let's input the data.
First, click the "Assign PCB footprints to schematic" option, or CvPcb.
It will ask you to annotate the schematic. This is because we left our component names un-numbered, i.e. "R?" rather than "R1, R2, R3..." etc.
For larger boards, you will want to at least manually name each switch.
But for something of this size, let's let KiCad do the tedious work for us.
Simply hit annotate, and KiCad will number each component, then launch CvPcb.