Skip to the content
PCBKitNew board
2 layersExample project, the printed circuit board in 3D

Example project

ignamv/kicad_scripts24

Utility Kicad scripts

Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
6
Pads
21
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 4
Created
3 Sep 2015
Updated
29 Dec 2015

Overview

Example project is an open-source printed circuit board by ignamv, from the ignamv/kicad_scripts repository on GitHub, published under the GPL-2.0 licence. It is a 2-layer board with 10 parts on 6 nets.

It is built around the BC547. Its parts include 4 resistors, 3 connectors, 2 capacitors and 1 transistor.

Main components

1

README

README.md

kicad_scripts

Utility Kicad scripts

spiral_inductor.py - PCB Spiral Inductor tool

Making RFID readers and tags requires designing antenna inductors. This tool simplifies the process by allowing you to quickly analyze PCB spiral inductors with FastHenry to find inductance and Q. Once you're satisfied with a design, you can save a Kicad footprint to incorporate into your PCB layout.

Instructions

You can use it online at http://ignamv2.linkpc.net/spiral/

For local use, download the folder rfid_calculator and run cmdline.py. Example:

text
$ python3 cmdline.py --help
usage: cmdline.py [-h] --width WIDTH --height HEIGHT --trace_width TRACE_WIDTH
                  [--mirror] --turns TURNS
                  (--pitch PITCH | --separation SEPARATION) [--zpitch ZPITCH]
                  [--frequency FREQUENCY]
                  [--thickness THICKNESS | --weight WEIGHT] [--fasthenry]
                  [--kicad_mod KICAD_MOD] [--pad_size PAD_SIZE]
                  (--mm | --cm | --mil | --in) [--square | --ellipse]
                  [--vertices_per_turn VERTICES_PER_TURN]

Calculate PCB spiral inductor with FastHenry and produce Kicad footprint

optional arguments:
  -h, --help            show this help message and exit
  --width WIDTH         Total outside width
  --height HEIGHT       Total outside height
  --trace_width TRACE_WIDTH
                        Trace width
  --mirror              Reflect footprint horizontally
  --turns TURNS         Number of turns
  --pitch PITCH         Trace pitch (width + separation)
  --separation SEPARATION
                        Separation between traces
  --zpitch ZPITCH       Vertical pitch (default 0 for planar inductor)

place_footprints.py

When you first start pcbnew and read a netlist, all components are piled up in one place. This script takes the schematic and pcb files and moves the footprints to match their placement in the schematic. This is a nicer starting point to route your PCB.

Instructions

You need to have python 2 installed. First, finish the schematic:

Input schematic

Then export the netlist for pcbnew, and run cvpcb to associate a footprint to each component. Launch pcbnew and load the netlist and footprint association, then save. These are standard steps when making PCBs with Kicad, you can check out Contextual Electronics for more detailed instructions.

My script takes the pcb file you just saved and moves the footprints to match the schematic. You need to download the script to your project directory. To run it, just drag the project file (.pro) or project folder into the script icon. Your pcb file now has placed components.

Here's the output from the schematic above:

Output pcb

If you want to see detailed script output (for troubleshooting), open a terminal (in Windows, use Start -> Run -> cmd.exe) and go to your project directory

text
$ cd %USERPROFILE%\My Documents\example_project
$ python place_footprints.py .
Found project ./example_project
Found schematic: ././example_project.sch
Found pcb: ././example_project.kicad_pcb
13:06:04: Debug: Skipping general section token 'links' 
13:06:04: Debug: Skipping general section token 'area' 
13:06:04: Debug: Skipping general section token 'drawings' 
13:06:04: Debug: Skipping general section token 'tracks' 
13:06:04: Debug: Skipping general section token 'zones' 
13:06:04: Debug: Skipping general section token 'symbol' 
Moving module...R1 R2 Q1 R4 C2 R3 C1 P1 P3 P2 
Backing up ././example_project.kicad_pcb to ././example_project.kicad_pcb.bak6

Parts

10
QtyValueFootprintReferences
3CONN_01X02Pin_Headers:Pin_Header_Angled_1x02P1, P2, P3
2.1uCapacitors_SMD:C_0805_HandSolderingC1, C2
210kResistors_SMD:R_0805_HandSolderingR1, R2
11kResistors_SMD:R_0805_HandSolderingR4
1200Resistors_SMD:R_0805_HandSolderingR3
1BC547Housings_TO-92:TO-92_Inline_Narrow_OvalQ1

Questions

What parts does the Example project use?

10 parts, built around the BC547. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Example project KiCad files?

From the ignamv/kicad_scripts repository on GitHub, at the commit this page was made from: the board is example_project/example_project.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Example project design in my own project?

Its repository publishes it under the GPL-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers83.3 × 65.3 mmSimonShield, the printed circuit board in 3D

    SimonShield

    github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    46 parts14kMIT
  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers99.1 × 99.7 mmRC6502 General Video Adapter, the printed circuit board in 3D

    RC6502 General Video Adapter

    tebl/RC6502-Apple-1-Replica

    An expandable SBC-version of the Apple 1 computer, easy to get started with and lot of cool stuff that can be added to it!

    80 parts193GPL-3.0
  • 2 layers55.9 × 38.6 mmMega Amp, the printed circuit board in 3D

    Mega Amp

    theacodes/genesynth

    A Sega Genesis inspired synthesizer

    40 parts178Apache-2.0
  • 2 layers40 × 100 mmBack pcb, the printed circuit board in 3D

    Back pcb

    ZeroPhone/ZeroPhone-PCBs

    PCB files for ZeroPhone - for gerbers and schematics, go to "Releases" tab!

    118 parts148GPL-3.0
  • 2 layers100 × 100 mmCANBuster, the printed circuit board in 3D

    CANBuster

    GBert/misc

    miscellaneous stuff / unsorted

    182 parts99