PCB Design in GNU Emacs

Gerber


For fun, here's a Gerber file generated from SVG footprints drawn in GNU Emacs.

Note: gerbv displays polygon pad incorrectly as circle in fast mode. You should use use normal mode for this. Or else use gerbview.

3D Model

If you have properly modeled footprints (1:1 scale, XY plane of the 3D model on the PCB and origin at the center of the bounding box), then you can easily generate 3D view of the assembly. In this screenshot, you can see the generated model being rendered by view3dscene. The code expects eda:url attribute to point to the 3D model (.wrl file for VRML 2.0). The shape with eda:type="board" is used as the PCB.

(require 'gerber)
(setq canvas-plugin-map pcb-canvas-map)

Fancy fonts on Silkscreen

Do you want fancy fonts on your PCB silkscreen? You can use a Hershey font or stroke font in SVG format to achieve the desired result. A small collection of these fonts are available at https://gitlab.com/oskay/svg-fonts .

Code:

https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/svg.el
https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/gerber.el

Comments

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Mozilla Readability in GNU Emacs

Data Visualization with GNU Emacs