1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-26 02:59:34 +02:00
wernermisc/fisl2012/talk.tex

544 lines
15 KiB
TeX
Raw Normal View History

2012-07-22 07:59:13 +03:00
\documentclass[12pt,trans]{beamer}
\usepackage{color}
\usepackage{url}
\usepackage{colortbl}
%\usepackage{soul}
%\usepackage{verbatim}
\usefonttheme{structurebold}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{items}[ball]
%\setbeamersize{sidebar width left=-5mm}
2012-07-22 07:59:13 +03:00
\title{\Large Making Hardware \\ with KiCad and Friends}
\author{Werner Almesberger \\\url{werner@almesberger.net}}
2012-07-27 14:47:54 +03:00
\date{July 27, 2012}
%\setul{}{1.5pt}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
% --- Overview ----------------------------------------------------------------
\begin{frame}{Overview}
\begin{itemize}
\item KiCad introduction
\item Collaborative design in Qi-Hardware
2012-07-27 14:47:54 +03:00
\item Tools to improve KiCad
\item Workflow overview
\end{itemize}
\vskip5mm
2012-07-22 07:59:13 +03:00
{\small \url{downloads.qi-hardware.com/people/werner/fisl13.pdf}}
\end{frame}
% --- KiCad Introduction ------------------------------------------------------
\begin{frame}{KiCad}
\begin{itemize}
\item Complete EDA solution
2012-07-22 07:59:13 +03:00
\item Free Software: GPL, LGPL
\item Development team by Jean-Pierre Charras, \\
Dick Hollenbeck, and many others
\item C++, wxWidgets
\item Multi-platform: Linux, Windows, Mac
2012-07-27 14:47:54 +03:00
\item Text files $\rightarrow$ extensible
\end{itemize}
\vskip5mm
{\small \url{www.kicad-pcb.org}}
\end{frame}
% --- Schematics --------------------------------------------------------------
\begin{frame}{KiCad: Schematics}
\begin{center}
\includegraphics[width=1.0\textwidth]{schem.pdf}
\end{center}
\end{frame}
% --- Footprints --------------------------------------------------------------
\begin{frame}{KiCad: Footprints}
\begin{center}
2012-07-25 22:39:31 +03:00
\includegraphics[width=1.0\textwidth]{assoc.pdf}
\end{center}
\end{frame}
% --- Layout ------------------------------------------------------------------
\begin{frame}{KiCad: Layout}
2012-07-26 18:34:54 +03:00
\begin{center}
\includegraphics[width=1.0\textwidth]{layout.pdf}
\end{center}
\end{frame}
% --- Qi-Hardware -------------------------------------------------------------
\begin{frame}{Qi-Hardware}
2012-07-22 07:59:13 +03:00
Structure and goals:
\begin{itemize}
\item Collection of loosely connected projects
\item Informal gathering of like-minded developers
\item Copyleft Hardware with Free Software
\item Development and manufacturing
\item Toolmaking
\end{itemize}
Products:
\begin{itemize}
\item Ben NanoNote (Handheld computer)
\item Ben-WPAN (IEEE 802.15.4 wireless)
\item Milkymist One (FPGA-based Video synthesizer)
\end{itemize}
\vskip2mm
{\small \url{www.qi-hardware.com}}
\end{frame}
% --- Collaborative Design ----------------------------------------------------
\begin{frame}{Collaborative Design}
\begin{itemize}
\item Follow other people's work
2012-07-22 07:59:13 +03:00
\item Review other people's work (projects and libraries)
\item Shared design information
\item Shared version control (git)
\item Shared procedures and rules
\end{itemize}
\end{frame}
% --- KiCad Limitations -------------------------------------------------------
\begin{frame}{KiCad Limitations}
\begin{itemize}
\item No integrated version control system support
\item Integration leads to weak peripheral tools
\begin{itemize}
\item Footprint editor
\item Component catalog
\item Module catalog
\end{itemize}
\item No scripting (coming)
2012-07-26 22:39:22 +03:00
\item Scattered libraries
\end{itemize}
\end{frame}
% --- Qi-Hardware Adaptation --------------------------------------------------
\begin{frame}{Qi-Hardware Adaptation}
\begin{itemize}
\item Keep things simple: only Linux
2012-07-22 07:59:13 +03:00
\item Command-line-oriented use
\item Extend KiCad with patches
\item External scripts/programs
\item Own component and module libraries with common rules
\end{itemize}
\end{frame}
% --- Libraries ---------------------------------------------------------------
\begin{frame}{Libraries}
Goals:
\begin{itemize}
\item Consistent naming
2012-07-27 14:47:54 +03:00
\item Known origin of design information \\
E.g., IPC-7351
2012-07-27 14:47:54 +03:00
\item Documented development process
\end{itemize}
To do:
\begin{itemize}
\item Improve organization
\item Better integrate background information
\item Reviews !
\end{itemize}
\vskip4mm
% URL http://projects.qi-hardware.com/index.php/p/kicad-libs/source/tree/master/components/
2012-07-27 14:47:54 +03:00
{\small \url{tiny.cc/kicad-libs-components}} \\
% URL http://projects.qi-hardware.com/index.php/p/kicad-libs/source/tree/master/modules/
2012-07-27 14:47:54 +03:00
{\small \url{tiny.cc/kicad-libs-modules}}
\end{frame}
% --- What goes into git ------------------------------------------------------
\begin{frame}{What goes into git}
KiCad:
\begin{itemize}
2012-07-26 22:39:22 +03:00
\item Project file: {\tt {\em project}.{\color{red}pro}}
\item Schematics: {\tt {\em project}.{\color{red}sch}},
{\tt {\em subsheet}.{\color{red}sch}}
\item Footprint mapping: {\tt {\em project}.{\color{red}cmp}}
\item Layout: {\tt {\em project}.{\color{red}brd}}
\end{itemize}
Qi-Hardware:
\begin{itemize}
\item Makefile ({\tt sch}, {\tt brd}, {\tt fab}, {\tt clean})
\item Bookshelf (for dsv)
\item Project-local libraries
\end{itemize}
\end{frame}
% --- What doesn't ------------------------------------------------------------
\begin{frame}{What doesn't}
\begin{itemize}
2012-07-26 22:39:22 +03:00
\item Netlist: {\tt {\em project}.{\color{red}net}} \\
2012-07-27 14:47:54 +03:00
Generated with eeschema from
{\tt *.{\color{red}sch}}
and
2012-07-26 22:39:22 +03:00
{\tt {\em project}.{\color{red}cmp}}
\item Caches and backups:
2012-07-27 14:47:54 +03:00
{\tt {\em sheet}.{\color{red}bak}},
2012-07-26 22:39:22 +03:00
{\tt {\em project}.{\color{red}000}},
{\tt {\em project}{\color{red}-cache.lib}}
2012-07-26 22:39:22 +03:00
\item Postscript:
{\tt {\em project}-{\em sheet}.{\color{red}ps}},
{\tt {\em project}-{\em layer}.{\color{red}ps}}
\item Gerbers:
{\tt {\em project}-{\em layer}.{\color{red}g{\em ??}}}
\item BOMs: {\tt {\em project}.{\color{red}lst}},
{\tt {\em project}.{\color{red}cvs}}
\item Fab outputs: {\tt {\em project}.{\color{red}drl}},
{\tt {\em project}.{\color{red}pos}}
\item And so on: {\tt {\em project}.{\color{red}cad}},
{\tt {\em project}.{\color{red}erc}},
{\tt {\em project}.{\color{red}dsn}},
{\tt {\em project}.{\color{red}rpt}},
{\tt {\em project}.{\color{red}wrl}}, $\ldots$
\end{itemize}
\end{frame}
% --- Project File ------------------------------------------------------------
2012-07-24 18:30:12 +03:00
\begin{frame}{Project File ({\tt {\em project}.pro})}
2012-07-22 07:59:13 +03:00
Contains:
\begin{itemize}
\item Project settings
\item Lists of libraries
\end{itemize}
Issues:
\begin{itemize}
\item Local absolute paths
\item Default libraries
\item Timestamps $\rightarrow$ commit noise
\end{itemize}
Solution:
\begin{itemize}
\item Maintain paths manually
2012-07-22 07:59:13 +03:00
\item {\tt purge} script: \\
% URL http://projects.qi-hw.com/index.phpp/wernermisc/source/tree/master/bin/purge
{\small \url{tiny.cc/wernermisc-bin-purge}}
\end{itemize}
\end{frame}
% --- Makefile ----------------------------------------------------------------
\begin{frame}[fragile]{Makefile}
2012-07-22 07:59:13 +03:00
Objectives:
\begin{itemize}
\item Convenience shortcuts
2012-07-22 07:59:13 +03:00
\item Combine tools
\item Share common procedures
2012-07-22 07:59:13 +03:00
\item Avoid mistakes
\end{itemize}
2012-07-22 07:59:13 +03:00
{\small
\begin{verbatim}
front:
2012-07-22 07:59:13 +03:00
pcbnew --plot=ps --plot-fill-all-zones \
--layers=Front --plot-mirror \
$(PROJECT).brd
lpr $(PROJECT)-Front.ps
\end{verbatim}
2012-07-22 07:59:13 +03:00
}
\end{frame}
% --- KiCad Command-Line Patches ----------------------------------------------
\begin{frame}{KiCad Command-Line Patches}
2012-07-27 14:47:54 +03:00
Original hack by Werner Almesberger, clean rewrite by Wolfgang Spraul,
soon rewrite for scripting.
\begin{itemize}
\item Idea: command-line access to main output functions
\item eeschema
\begin{itemize}
\item Visualization: Postscript (and SVG, DXF)
\item BOM $\rightarrow$ BOOM
\item Netlist, ERC
\end{itemize}
\item pcbnew
\begin{itemize}
\item Fabrication: Gerbers, drill (Excellon), component positions
\item Visualization and DIY: Postscript
\item Attributes: mirror, size, origin, fill zones, $\ldots$
\end{itemize}
\end{itemize}
\vskip5mm
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/kicad-patches/
{\small \url{tiny.cc/eda-tools-kicad-patches}}
\end{frame}
% --- Data Sheet Viewer (dsv) -------------------------------------------------
\begin{frame}[fragile]{Data Sheet Viewer (dsv)}
\begin{itemize}
2012-07-22 07:59:13 +03:00
\item Bookshelf: name and aliases $\rightarrow$ PDF or ZIP with PDF
\item Download (wget) to local cache
\item Hierarchical lookup by name or alias
\item Example: \\
{\tt dsv avr} $\rightarrow$ ATtiny87 ({\tt doc8265.pdf})
$\rightarrow$ xpdf
\end{itemize}
\vskip5mm
Bookshelf example:
\begin{verbatim}
N: attiny87
A: attiny167
A: avr
D: http://www.atmel.com/Images/doc8265.pdf
\end{verbatim}
\end{frame}
% --- Data Sheet Viewer (dsv) -------------------------------------------------
\begin{frame}{dsv Motivation}
\begin{itemize}
\item Make sure everybody uses the same data sheet
\begin{itemize}
\item Same component
\item Same manufacturer
\item Same data sheet revision
\end{itemize}
\item Copyright: can't just check in PDF
2012-07-22 07:59:13 +03:00
\item Industrial pragmatism: private mail or ``internal'' repository
2012-07-27 14:47:54 +03:00
\item Qi-Hardware: share {\tt BOOKSHELF}
\end{itemize}
\vskip10mm
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/dsv/
{\small \url{tiny.cc/eda-tools-dsv}}
\end{frame}
% --- Schematics Symbol Catalog ----------------------------------------------
\begin{frame}{Schematics Symbol Catalog}
\begin{itemize}
\item For selection, review
\item Hierarchical order with alphabetical index
2012-07-27 14:47:54 +03:00
\item Short descriptions and data sheet links \\
To do: connect to dsv
\item Added value: indicate pin types
\end{itemize}
\begin{center}
\includegraphics[width=1.0\textwidth]{cat-comp.pdf}
\end{center}
\end{frame}
% --- Schematics History ------------------------------------------------------
\begin{frame}{Schematics History}
\begin{itemize}
\item Schematics revision history
\item {\tt git diff} produces gibberish
\end{itemize}
\begin{center}
\includegraphics[height=4.5cm]{../fisl2011/schhist.png}
\qquad
\includegraphics[height=4cm]{../fisl2011/USB.png}
\end{center}
2012-07-22 07:59:13 +03:00
{\small \url{projects.qi-hardware.com/schhist/}}
\end{frame}
% --- Schematics History (cont'd) ---------------------------------------------
\begin{frame}{Schematics History (cont'd)}
How it works:
\begin{itemize}
\item Walk git revision history
\item Check out project whenever schematics change
\item Run eeschema to make Postscript
\item Convert to PNG (find diffs, with highlighting) and PDF
\item Wrap in HTML
\end{itemize}
%Issues:
%\begin{itemize}
% \item Nasty shell script
% \item Resource-hungry (partial caching)
% \item Large schematics get confusing
% \item Projects spanning multiple repositories
%\end{itemize}
\vskip5mm
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/schhist/
{\small \url{tiny.cc/eda-tools-schhist}}
\end{frame}
2012-07-22 07:59:13 +03:00
% --- Fped --------------------------------------------------------------------
\begin{frame}{Footprint Editor (fped)}
\begin{center}
\includegraphics[height=45mm]{../fisl2011/fped.png}
\end{center}
2012-07-22 07:59:13 +03:00
\begin{itemize}
\item Fully parametric
\item Automated repetition (loops, tables, sub-frames)
\item GUI or text-based
\item Automatic measurements
\item Output: KiCad, Postscript, Gnuplot
\end{itemize}
\end{frame}
2012-07-27 14:47:54 +03:00
% --- Footprint Catalog ------------------------------------------------------
\begin{frame}{Footprint Catalog}
\begin{itemize}
\item Like schematics symbol catalog, but for footprints
\item Added value: measurements, pad types
\end{itemize}
\begin{center}
\includegraphics[width=1.0\textwidth]{cat-mod.pdf}
\end{center}
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/genkicat/
{\small \url{tiny.cc/eda-tools-genkicat}}
\end{frame}
% --- Layout History ----------------------------------------------------------
\begin{frame}{Layout History}
\begin{itemize}
\item Layout revision history
\item To do $\ldots$
\end{itemize}
\vskip5cm
%% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/brdhist/
% {\small \url{tiny.cc/eda-tools-brdhist}}
\end{frame}
% --- Gerber Renderer ---------------------------------------------------------
\begin{frame}{Gerber Renderer (prettygerbv)}
\begin{columns}
\begin{column}[l]{8.5cm}
\begin{itemize}
\item ``Photorealistic'' view of PCB
\item Combines Gerber (traces, drawings) and Excellon (holes)
\item Easy to see issues with solder paste, silk screen,
solder mask, $\ldots$
\item Uses gerbv for rendering
\end{itemize}
\vskip10mm
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/fab/prettygerbv/
2012-07-27 14:47:54 +03:00
{\small \url{tiny.cc/eda-tools-fab-prettygerbv}}
% MORE ??
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/fab/
2012-07-27 14:47:54 +03:00
{\small \url{tiny.cc/eda-tools-fab}}
\end{column}
\begin{column}[r]{4cm}
\includegraphics[width=3cm]{../fisl2011/atusb-front.png}
\end{column}
\end{columns}
\end{frame}
% --- BOM Processor -----------------------------------------------------------
\begin{frame}{BOM Processor (BOOM)}
\begin{itemize}
\item BOM $\rightarrow$ select components $\rightarrow$ find supplier
$\rightarrow$ \\
shopping list
\begin{itemize}
\item Decode product numbers
\item Match characteristics (manufacturer part)
\item Find part in inventories (distributor part)
\item Select best price
\end{itemize}
\item Work in progress. Rewrite from Perl to C.
% \item Snag: Digi-Key spider no longer works
2012-07-26 18:34:54 +03:00
\item Future: Help with component selection
\end{itemize}
\vskip3mm
% URL http://projects.qi-hardware.com/index.php/p/eda-tools/source/tree/master/b2/
2012-07-27 14:47:54 +03:00
{\small \url{tiny.cc/eda-tools-b2}}
\end{frame}
% --- BOOM Data Flow ----------------------------------------------------------
%\begin{frame}{BOOM Data Flow}
%DRAWING
%\end{frame}
% --- Schematics Design Rules -------------------------------------------------
\begin{frame}{Schematics Design Rules}
2012-07-26 22:39:22 +03:00
Work in progress. First compilation by Adam Wang.
\begin{itemize}
\item Clean visual representation
\item Compatibility with post-processors (e.g., BOOM)
\end{itemize}
Examples:
2012-07-26 18:34:54 +03:00
\begin{itemize}
\item Value naming (4k7, 10nH, $\ldots$)
2012-07-26 18:34:54 +03:00
\item Junction style
\item Naming of negated pins (e.g., nRESET)
2012-07-26 22:39:22 +03:00
\item Text placement and size
\item Checklists for reviews
2012-07-26 18:34:54 +03:00
\end{itemize}
{\small \url{en.qi-hardware.com/wiki/Rules_on_Editing_Schematics}}
\end{frame}
% --- Qi-Hardware Workflow ----------------------------------------------------
\begin{frame}{Qi-Hardware Workflow}
\begin{center}
\includegraphics[width=1.0\textwidth]{all.pdf}
\end{center}
\end{frame}
% --- Conclusion --------------------------------------------------------------
\begin{frame}{Conclusion}
2012-07-22 07:59:13 +03:00
Experience this far:
\begin{itemize}
\item KiCad is a good basis for collaborative projects
\item Easy to extend, thanks to open design
\item Automation makes workflow less intimidating
\end{itemize}
To do:
\begin{itemize}
\item Spread the word
2012-07-27 14:47:54 +03:00
\item Finish BOOM and write brdhist
\item Unify meta-data (bookshelf, etc.)
\item Improve quality of libraries
\item Command-line support in mainline KiCad
\end{itemize}
\vskip2mm
{\small \url{projects.qi-hardware.com/}} \\
2012-07-22 07:59:13 +03:00
{\small \url{downloads.qi-hardware.com/people/werner/fisl13.pdf}}
\end{frame}
\end{document}