changeset 46:4918c6d577e9

Add servo cables to the scad model
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 17 Aug 2014 11:30:37 +0200
parents 98ecf0e48c3a
children 16316a3f7549
files scad/board.scad scad/sg90.scad
diffstat 2 files changed, 31 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scad/board.scad	Sun Aug 17 10:53:06 2014 +0200
+++ b/scad/board.scad	Sun Aug 17 11:30:37 2014 +0200
@@ -1,4 +1,5 @@
 use <arduino.scad>
+use <sg90.scad>
 
 module short_pin() {
     color("Gold") translate([0, 0, -0.5]) cylinder(r=0.3, h=25.4/3 - 2, $fn=4);
@@ -134,3 +135,9 @@
 arduino_pro_mini_goldpins();
 translate([2.54, 0, -1.75]) board();
 translate([17.72, 33 - 2.54, -1]) rotate([0, 180, 90]) jumper();
+for (y=[0:3]) {
+    translate([0, y * 2.54, -2.1]) rotate([0, 180, -90]) SG90_plug();
+}
+for (y=[1:8]) {
+    translate([7.62 * 2 + 2.54, y * 2.54, -2.1]) rotate([0, 180, 90]) SG90_plug();
+}
--- a/scad/sg90.scad	Sun Aug 17 10:53:06 2014 +0200
+++ b/scad/sg90.scad	Sun Aug 17 11:30:37 2014 +0200
@@ -27,6 +27,11 @@
             cylinder(r=0.8, h=5, $fn=10);
         }
     }
+    translate([1.27 * 3, -10, -26.6]) rotate([0, 90, 90]) {
+        color("Orange") translate([1.27, 1.27, 12]) cylinder(r1=0.75, r2=0, h=20);
+        color("Red") translate([1.27, 1.27 + 2.54, 12]) cylinder(r1=0.75, r2=0, h=20);
+        color("Brown") translate([1.27, 1.27 + 2.54 * 2, 12]) cylinder(r1=0.75, r2=0, h=20);
+    }
 }
 
 module _SG90_horn_arm() {
@@ -91,7 +96,24 @@
     }
 }
 
+module SG90_plug() {
+    color("Orange") translate([1.27, 1.27, 12]) cylinder(r1=0.75, r2=0, h=20);
+    color("Red") translate([1.27, 1.27 + 2.54, 12]) cylinder(r1=0.75, r2=0, h=20);
+    color("Brown") translate([1.27, 1.27 + 2.54 * 2, 12]) cylinder(r1=0.75, r2=0, h=20);
+    color("DimGray") difference() {
+        cube([2.54, 2.54 * 3, 12]);
+        translate([-1, -1, -1]) cube([1.25, 2.54 * 3 + 2, 7]);
+        rotate(45) cube([1, 2, 12], center=true);
+        translate([0, 2.54*3, 0]) rotate(-45) cube([1, 2, 12], center=true);
+        for (y = [0:2]) {
+            translate([1.27, 1.27 + y * 2.54, -1]) cylinder(r=0.5, h=12);
+        }
+    }
+}
+
+
 SG90();
 SG90_double_horn(90);
-//SG90_single_horn(90);
-SG90_horn_screw();
+translate([0, 0, 10]) SG90_single_horn(90);
+translate([0, 0, 20]) SG90_horn_screw();
+translate([0, -20, 10]) SG90_plug();