• Stars
    star
    176
  • Rank 216,987 (Top 5 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of scripts to automate PCB rendering and exporting gerbers.

kicadScripts

A collection of scripts to automate PCB rendering and exporting gerbers.

Work inspired form the following projects:

*I found PcbDraw after I started writting my own tool to do the same function. (I couldn't get lxml to install on windows.)

Usage

Create Pretty PNGs

python plot_board.py <PathToYourAwesomeProject.kicad_pcb>

Create a GerberZip

python plot_gerbers.py <PathToYourAwesomeProject.kicad_pcb>

Files are placed within a plot directory in the folder of the .kicad_pcb file

Features

plot_board.py

  • Uses Kicad python bindings to render board layers as SVG
  • Recolours SVGs
  • Stacks SVGs with user defined colour/opacity
  • Creates a drill layer
  • Mirrors the backside of the PCB.
  • Render to PNG with Inkscape CLI
  • Supports multiple colours! (edit colour definition at top of file)

plot_gerbers.py

  • creates all the gerber/drill files.
  • Renames with Protel Extensions gtl,gts,gto,gml...
  • Puts all files into a single zip
  • Renames Zip: <Project><Date>_<Time>.zip for easy tracking of versions.

Examples

alt-text

alt-text

Improvements

  • Generally Cleanup/Improve code
  • Plot front and back Images next to each other on the same image.
  • Correctly plot SolderMask ONLY over PCB. (currently masked by board outline bounding box.)
  • Generate a bare board layer to better render areas without soldermask
  • Add more commandline options. (colour choices, output DPI, )

More Repositories

1

KiBuzzard

Python
421
star
2

advent-calendar-of-circuits-2020

1 circuit board design a day for 31 days.
Python
157
star
3

obsidian-boa

Compact ESP32-S2 development board.
100
star
4

d20-hardware

Hardware design files for the icosahedran d20 build.
HTML
78
star
5

GlassUnicorn

Colection of various LED matrix projects
HTML
77
star
6

ecpprog

Programmer for the Lattice ECP5 series, making use of FTDI based adaptors
C
69
star
7

PD-sniffer

USB PD sniffer
62
star
8

boson-sd-hardware

Simple but Small Frame Grabber
HTML
36
star
9

KiZip

KiCad Plugin to package gerbers ready for ordering
Python
34
star
10

flower-mon

Zigbee CC2530 based soil moisture monitor
C
31
star
11

ArcticKoala

Development board for Lattice Crosslink-NX 72QFN
25
star
12

CH32V307-makefile-example

Example Makefile project for the CH32V307
Makefile
24
star
13

gpsLoggerLora

C++
21
star
14

CH32V003-makefile-example

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs
Makefile
14
star
15

litex-hyperram

Standard HyperRAM core for ECP5 written in Litex/Migen
Python
14
star
16

kicon-2020-virtual-badge

Unofficial badge for KiCon 2020 Virtual Edition. (From: Thomas Flummer / KiCon 2020 Virtual Badge Template)
C
13
star
17

DiVA-firmware

Firmware and Gateware for the DiVA platform.
Python
11
star
18

xmas-led

Simple KiCad project for artistic PCB ornaments
10
star
19

gsd-kicad-libs

GsD style kicad Libraries
10
star
20

imx179-carrier-pcb

A small simple carrier for the Sony IMX179 sensor
9
star
21

gpsLogger

MSP430F55xx based GPS logger, with USB MSC for log retrieval
C
9
star
22

syzygy-pods

HTML
8
star
23

cap-sense-flex

8
star
24

ClockClock

A Project to create a Clock Clock.
7
star
25

wizard-flute

Compact 4 digit 7-segment clock display controlled with an ESP32-S2
7
star
26

linux-on-litex-hadbadge

Prebuilt images for experiments on linux-on-litex for the hadbadge
7
star
27

LedCube

a cube out of LEDs. bight shiny sparkly colourful LEDs
C++
7
star
28

boson-eth-firmware

Firmware for the Boson Ethernet Adapter
C
6
star
29

ButterStick-projects

Personal projects to run on the ECP5 ButterStick board.
Python
5
star
30

led-shades

Basic RGB LED shades.
Game Maker Language
5
star
31

kimchi-crosslink

Crosslink Addon board for Kimchi
HTML
5
star
32

ecp5-mini-examples

Example projects on the ECP5-Mini
Python
4
star
33

Perplexingly-Petite-Pov

A VERY small FPGA based 10 pixel POV module.
3
star
34

gf180-mpw0-serv

Verilog
2
star
35

tt02-serv

Verilog
2
star
36

CrimsonGazelle

Development board for Lattice Crosslink-NX 400CABGA
2
star
37

setup-riscv-gnu-toolchain

Shell
2
star
38

luna-usb-serial-acm

Verilog
1
star
39

tinytapeout_spin0

Basic spin animation on LED 7 segment
Verilog
1
star
40

eink

Electronic ink desk day calendar thingamajig
C
1
star
41

boson-sd-firmware

C
1
star
42

gregdavill.github.io

HTML
1
star
43

clock-controller

Simple ATSAMD11 Clock Controller, including RTC and GPS
C
1
star
44

ledMatrixDual

1
star
45

fumecube-ctrl

ESP32 based controller for the Purex Fumecube
1
star
46

bosonAdapters

Collection of PCB adapters for the bosonFrameGrabber
1
star
47

uPythonFeatherLora

MicroPython Compatible board with LoRa in Feather form factor.
1
star