Let's Make Robots!

rotary encoder generator

Simple Optical/Rotary Encoder Generator

Was building a simple Rotary Encoder for the ARP platofrm yesterday. Could not find a simple tool to generate the pattern according to my needs, there were some Postscript based tools but they did not work on Windows.

So here is my little script to generate it ...

PHP Code:

header("Content-type: image/gif");
$size = isset($_GET['size'])?intval($_GET['size']):200;
$size1 = isset($_GET['size1'])?intval($_GET['size1']):0;
$count = isset($_GET['count'])?intval($_GET['count']):10;