Python script to generate a printable rotary encoder pattern. This script can produce a pattern of a given diameter split into a given number of segments.
Use the latest version by running the following commands:
% git clone git://gitorious.org/rotenc/rotenc.git
% cd rotenc
Usage: rotenc INNER_DIAMETER OUTER_DIAMETER N_SEG OUT_FILE
INNER_DIAMETER is the diameter of the inner circle in millimetres.
OUTER_DIAMETER is the diameter of the outer circle in millimetres.
N_SEG is the number of segments to draw
OUT_FILE is the name of the pdf file to write to.
% ./rotenc 50 60 16 encoder.pdf
Also announced here: http://xgoat.com/wp/2009/08/12/rotary-encoder-pattern-generator/