3
1
Back

// please feel free to improve on this script somewhere where OpenSCAD can find it (your current project's * working directory/folder or your OpenSCAD libraries directory/folder). * Add the label font so we don't lose it QuentinEF.ttf | Bin 0 -> 510084 bytes // Width of module (HP) width = 40; // widest element is rotary, at 30mm right_panel_width = 12; label_font_size = 5; width_mm=90; height=16; thickness=2; label_inset_height = thickness-1; // Width of module (HP) width = 17; // [1:1:84] width = 36; // [1:1:84] left_panel_width = 12.5*3 + tolerance*4; // column from edge plus hole radius // mounting holes 33.3mm, distance of mounting holes 63.5mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 9-pin D-Sub connector, straight/vertical, THT-mount, male, pitch 2.29x1.98mm, pin-PCB-offset 8.35mm, distance of mounting holes 63.5mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 9-pin D-Sub connector horizontal https://katalog.we-online.de/pbs/datasheet/7499010001A.pdf 10/100Base-TX RJ45 ethernet magnetic transformer connector horizontal angled 90deg THT female pitch 2.77x2.84mm pin-PCB-offset 4.9399999999999995mm mounting-holes-distance 25mm mounting-hole-offset 25mm 9-pin D-Sub connector, horizontal/angled (90 deg), THT-mount, female, pitch 2.29x1.98mm, pin-PCB-offset 8.35mm, distance of mounting holes with circular drills, http://www.alps.com/prod/info/E/HTML/Encoder/Incremental/EC12E/EC12E1240405.html & http://cdn-reichelt.de/documents/datenblatt/F100/402097STEC12E08.PDF Alps rotary encoder, EC12E..., vertical shaft, mounting holes 63.5mm, distance of mounting holes to PCB edge 9.12mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 15-pin D-Sub connector horizontal angled 90deg THT female pitch 2.77x2.84mm mounting holes 33.3mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 15-pin D-Sub connector, horizontal/angled (90 deg), THT-mount, female, pitch 2.77x2.84mm, pin-PCB-offset 14.56mm, distance of mounting holes 63.5mm, distance of mounting holes distance 63.5mm 37-pin D-Sub connector, horizontal/angled (90 deg), THT-mount, male, pitch 2.41x1.98mm, distance of mounting holes to PCB edge 10.889999999999999mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 37-pin D-Sub connector horizontal angled 90deg THT female pitch 2.29x1.98mm pin-PCB-offset 3.0300000000000002mm mounting-holes-distance 63.5mm mounting-hole-offset 63.5mm 37-pin D-Sub connector, horizontal/angled (90 deg), THT-mount, female, pitch 2.29x1.98mm, pin-PCB-offset 9.4mm, see http://docs-europe.electrocomponents.com/webdocs/1585/0900766b81585df2.pdf 37-pin D-Sub connector horizontal angled 90deg THT female pitch 2.77x2.84mm pin-PCB-offset 4.9399999999999995mm mounting-holes-distance 63.5mm mounting-hole-offset 63.5mm 62-pin D-Sub connector horizontal angled 90deg THT female pitch 2.29x1.98mm mounting holes 25mm, see https://disti-assets.s3.amazonaws.com/tonar/files/datasheets/16730.pdf 37-pin D-Sub connector, horizontal/angled.