Rotary Encoder Script by rspanton


expand image details


expand image details

Description

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.

Instructions

Use the latest version by running the following commands:


% git clone git://gitorious.org/rotenc/rotenc.git
% cd rotenc
% ./rotenc
Usage: rotenc INNER_DIAMETER OUTER_DIAMETER N_SEG OUT_FILE
Where:
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: xgoat.com/wp/2009/08/12/rotary-encoder-pattern-generator/

Required Tools

Discussion

Downloads

rotenc

2 kb / 250 downloads
There was a problem rendering this file.

download