Skip to content

Commit

Permalink
Merge pull request #100 from RobertGawron/feature/chassis
Browse files Browse the repository at this point in the history
cut-off for srew connectors (issue #50)
  • Loading branch information
RobertGawron authored Jun 6, 2020
2 parents 1b75172 + 96e75c1 commit 94a7f71
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 22 deletions.
Binary file modified mechanical/Chassis/FreeCAD/Chassis.FCStd
Binary file not shown.
Binary file modified mechanical/Chassis/FreeCAD/Chassis.FCStd1
Binary file not shown.
23 changes: 16 additions & 7 deletions mechanical/Chassis/OpenSCAD/ChassisBottom.csg
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
group() {
difference() {
linear_extrude(height = 10, center = false, convexity = 10, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [86, 71], center = false);
difference() {
group() {
difference() {
linear_extrude(height = 10, center = false, convexity = 10, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [86, 71], center = false);
}
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 3], [0, 0, 0, 1]]) {
linear_extrude(height = 7, center = false, convexity = 10, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [80, 65], center = false);
}
}
}
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 3], [0, 0, 0, 1]]) {
linear_extrude(height = 7, center = false, convexity = 10, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [80, 65], center = false);
}
group() {
multmatrix([[1, 0, 0, 83], [0, 1, 0, 36.44], [0, 0, 1, 3], [0, 0, 0, 1]]) {
linear_extrude(height = 10, center = false, convexity = 10, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [3, 20.668], center = false);
}
}
}
Expand Down
35 changes: 20 additions & 15 deletions mechanical/Chassis/OpenSCAD/ChassisBottom.scad
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,33 @@ BOTTOM_CHASSIS_THICKNESS = 3;
BOTTOM_CHASSIS_HEIGHT = 10;


module Enclousure()
{
// Union()
{
///
// linear_extrude(height = BOTTOM_CHASSIS_THICKNESS, convexity = 10, twist = 0)
// square([PCB_X_LENGTH + BOTTOM_CHASSIS_THICKNESS, PCB_Y_LENGTH + BOTTOM_CHASSIS_THICKNESS]);
// TODO move to common file for upper enclousure
SCREW_CONNECTORS_Y = 33.440;
SCREW_CONNECTORS_DY = 20.668;


difference()
module Enclousure()
{
difference()
{
linear_extrude(height = BOTTOM_CHASSIS_HEIGHT, convexity = 10, twist = 0)
square([PCB_X_LENGTH + 2*BOTTOM_CHASSIS_THICKNESS, PCB_Y_LENGTH + 2*BOTTOM_CHASSIS_THICKNESS]);

translate([BOTTOM_CHASSIS_THICKNESS, BOTTOM_CHASSIS_THICKNESS, BOTTOM_CHASSIS_THICKNESS])
linear_extrude(height = BOTTOM_CHASSIS_HEIGHT - BOTTOM_CHASSIS_THICKNESS, convexity = 10, twist = 0)
square([PCB_X_LENGTH , PCB_Y_LENGTH ]);


}
translate([BOTTOM_CHASSIS_THICKNESS, BOTTOM_CHASSIS_THICKNESS, BOTTOM_CHASSIS_THICKNESS])
linear_extrude(height = BOTTOM_CHASSIS_HEIGHT - BOTTOM_CHASSIS_THICKNESS, convexity = 10, twist = 0)
square([PCB_X_LENGTH , PCB_Y_LENGTH ]);
}
}


Enclousure();
module ScrewConnectors()
{
translate([PCB_X_LENGTH+BOTTOM_CHASSIS_THICKNESS, SCREW_CONNECTORS_Y+BOTTOM_CHASSIS_THICKNESS, BOTTOM_CHASSIS_THICKNESS])
linear_extrude(height = BOTTOM_CHASSIS_HEIGHT, convexity = 10, twist = 0)
square([BOTTOM_CHASSIS_THICKNESS, SCREW_CONNECTORS_DY]);
}

difference() {
Enclousure();
ScrewConnectors();
}

0 comments on commit 94a7f71

Please sign in to comment.