Skip to content

Commit

Permalink
More chassis modifications
Browse files Browse the repository at this point in the history
- Adjusted battery supports position
- Added holes tothe battery supports for placing screws
  • Loading branch information
sebasgm committed Sep 19, 2015
1 parent 477be7e commit ff6c3a7
Showing 1 changed file with 40 additions and 28 deletions.
68 changes: 40 additions & 28 deletions openscad/dreamster-chassis.scad
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ thickness_wall = 3.5;
dreamster_base_r = 140/2;
dreamster_base_thickness = 3;

arduino_base_depth = 80;
arduino_base_depth = 84;
arduino_base_width = 65;
arduino_base_height_wall = 25+8+1.5;
arduino_base_thickness = 3;

battery_hole_depth = 60;
battery_hole_width = 37.5;

battery_support_height = 22;

mount_holes_diameter = 3;
hole_width = 40;
hole_depth = 50;
Expand Down Expand Up @@ -86,6 +88,15 @@ module ball_caster() {
}
}

module ball_caster() {
translate([0, 15, 0]) {
sphere(r = 3, $fn=50);
}
translate([0, 0, 0]) {
sphere(r = 3, $fn=50);
}
}

module base() {
difference() {
cube([width, depth, thickness], center=true);
Expand Down Expand Up @@ -164,20 +175,13 @@ module holes() {
translate([0, depth/2-5, 0]) ball_caster();
}


//-------------------------------

module dreamster_base_holes() {
translate([17, -depth/2 + 13, 0]) {
cube([10, 10, 3], center=false);
}
translate ([20, -depth/2 + 74, -5]) {
cylinder (h = 20, r = 1.775);
}
translate ([-8.5, -depth/2 + 74, -5]) {
cylinder (h = 20, r = 1.775);
}
translate ([-22.5, -depth/2 + 24, -5]) {
cylinder (h = 20, r = 1.775);
}
translate([0, depth/2-5, 0]) ball_caster();
translate([battery_hole_width/2, battery_hole_depth/2 + 3.5 + 5.25, -5]) cylinder(r = 3.5/2, 35);
translate([-battery_hole_width/2, -(battery_hole_depth/2 + 3.5 + 5.25), -5]) cylinder(r = 3.5/2, 35);
}

module arduino_holes() {
Expand All @@ -196,6 +200,8 @@ module arduino_holes() {
translate([2, -hole_pos_y, 0]) {
cube([hole_width, hole_depth, thickness+2], 1, center=true);
}
translate([battery_hole_width/2, battery_hole_depth/2 + 3.5 + 5.25, -5]) cylinder(r = 3.5/2, 35);
translate([-battery_hole_width/2, -(battery_hole_depth/2 + 3.5 + 5.25), -5]) cylinder(r = 3.5/2, 35);
}

module wheels_holes() {
Expand All @@ -205,50 +211,56 @@ module wheels_holes() {
module battery_supports() {
translate([battery_hole_width/2, battery_hole_depth/2 + 3.5 + 5.25, 0]) {
union() {
cube([14, 7, 15], center=true);
cube([14, 7, 22], center=true);
translate([3.5, -3.5, 0]) {
cube([7, 14, 15], center=true);
cube([7, 14, 22], center=true);
}
}
}

translate([-battery_hole_width/2, -(battery_hole_depth/2 + 3.5 + 5.25), 0]) {
rotate([0, 0, 180]) {
union() {
cube([14, 7, 15], center=true);
cube([14, 7, battery_support_height], center=true);
translate([3.5, -3.5, 0]) {
cube([7, 14, 15], center=true);
cube([7, 14, battery_support_height], center=true);
}
}
}
}
}
}

module arduino_base() {
difference() {
cube([arduino_base_width, arduino_base_depth, arduino_base_thickness - 1], center=true);
arduino_holes();
arduino_holes();
}
}

module dreamster_base() {
difference() {
cylinder (h = dreamster_base_thickness, r = dreamster_base_r, center = true);
translate([0, 0, -1]) {
cube([battery_hole_width, battery_hole_depth, dreamster_base_thickness + 2], center=true);
union() {
difference() {
cylinder (h = dreamster_base_thickness, r = dreamster_base_r, center = true);
translate([0, 0, -1]) {
cube([battery_hole_width, battery_hole_depth, dreamster_base_thickness + 2], center=true);
}
}
translate([0, 0, dreamster_base_thickness + battery_support_height/2 - 2]) {
battery_supports();
}
}
dreamster_base_holes();
}
}
}


//------------------------

translate([0, 0, 20]) {
translate([0, 0, 25]) {
arduino_base();
}
translate([0, 0, dreamster_base_thickness]) {
battery_supports();
}

dreamster_base();

//difference() {
Expand Down

0 comments on commit ff6c3a7

Please sign in to comment.