PCB Design¶
Designed in: kiCAD
Learning PCB Design¶
For those interested in learning to design their own PCBs. These are the resources I utilized during my co-op. They are focused on PCB design and PCB CAD tools not circuit theory.
Digi-Key’s Intro to kiCAD: this series alone taught me kiCAD. A heads up the version you use will likely be different. If an icon isn’t where it appears in the video look in the comments for the new location.
Importing custom graphics into kiCAD - If you want to fancy up your boards.
PCB Trace Width Calculator - To help with determine trace sizes.
SnapEDA - Free symbol, footprint, and 3D model files
kiCAD Project Files¶
This section contain all of the PCB design file made by myself (Liam Brinston) during my co-op term in the summer of 2020.
The have been broken out into project files of various sizes depending on what level of interest you may have.
Download the files, unzip them into your desired working directory, and then open the toolAccess.pro file from kiCAD > File > Open Project.
Note
For either set of project files there are two sets of footprints and symbols that must be added to your kiCAD library paths:
Footprints made for this project - found in the toolAccess.pretty folder.
Footprints and symbols libraries I acquired via SnapEDA - found in the libraries folder.
It should be noted that the SPADE_TERMINAL_6.3MM.kicad_model files for the spade terminal (aka. FastOn) were modified by the author to include surface mount solder pads in addition to through holes for additional rigidity.
Most recent kiCAD Project files:
toolAccessPrjMaster.zip
These files are the most recent revision of the project used to produce the second iteration of the physical tool access prototype. Includes gerbers and drill files.
Gerbers and drill files for most recent deisgn :
toolAcessMasterGerbers
Just the gerbers and drill files for the most recent revision of the PCB.
Complete Co-op 2020 kiCAD Project files:
toolAccessPrjComplete.zip
The project file contains all of the revisions made by myself (Liam Brinston) during my co-op term in the summer of 2020. They are not all complete, some are merely part layouts while others are totally traced out. I have included this complete project file should it prove necessary to understand how the final design was arrived at.
As this project is much larger with more revisions the file inheritance in the project can be referenced according to this diagram:
Makerspace Silkscreen Logo:
makerSpaceSilkLogo.zip
AC creepage and clearance considerations¶
Useful technical documentation: | High Voltage PCB Design Creepage and Clearance Distance | Advanced Circuits PCB trace width calculator | Creepage calculator | Grounding considerations | CTI and PTI | CTI Wikipedia page
Clearance - is the shortest distance through air between two conductors. Environmental conditions have a significant effect on this, primarily humidity changes.
Creepage - measures distances between two conductors along the surface of a high voltage PCB. This requirement varies with the material of your PCB and can be increaed by slotting or routing air gaps between parts.
Our circuit has a small number of high voltage AC traces. Namely the spade terminals where AC power comes onto the boards, our HiLink Mains to 5V PSU, the protection circuitry for the PSU, and the relay contactor pins. These traces will operate at either 120V or 240V depending on the tool being controlled (the HiLink is capable of stepping down both).
Determining creepage spacing¶
Pollution degree: Degree 1 - our circuit will be enclosed, dust proof, and indoors therefore falls under only dry non-conductive however, the fabrication shop does get very cold in the winter and can experience temperature swings over the course of the day so condensation is a possibility.
PCB material: FR4
FR4 CTI: 175 therefore material group IIIb.
Max current (Signal lines): 40mA DC (ESP32 GPIO limit).
Max current (5V lines): 1A (DC limit of our PSU).
Max current (AC lines): 0.5A (AC limit of our PSU/Fuse threshold).
Given that our system could have either 120V or 240V supply we must plan for clearance and creepage at 240V. Additionally although our deployment mostly falls under pollution degree 1 using the spacing recommendations for spacing level 3 (where possible) will help us guard against edge cases.
With these numbers in mind all AC traces were kept >1.25mm clear of one another and 5mm slots were routed between the high voltage AC side of the board and the low voltage DC side to achieve creepage distances of >4mm. Additionally all AC traces were excluded from the ground plane of the board.
BOM¶
Bodge Gallery¶
Mistakes are part of prototyping. Humor and joy can be found in trying to fix these mistakes after the fact. So please enjoy this small gallery of design screw-ups and after the fact repairs made in the course of this project.
Prototype 1
Prototype 2
Fortunately this design error was easily corrected by severing the trace either side of the short and soldering a a wire from the SDA pin to pin 21.