first commit

This commit is contained in:
René Arnhold 2020-08-05 11:18:09 +02:00
commit 34d61cb5d4
3 changed files with 59 additions and 0 deletions

40
CruiserBC.scad Normal file
View File

@ -0,0 +1,40 @@
include <ks0454.scad>;
include <PololuMiniPushbutton.scad>
thickness = 10;
handlebar_diameter = 22;
render = "housing";
module CruiserBC_Housing()
{
difference() {
translate([0,0,-1]) cylinder(r=25, h=1, $fn=100);
translate([-7.5,-3,-1.5]) cube([3,6,3]);
translate([6,-3,-1.5]) cube([3,6,3]);
}
difference() {
union() {
cylinder(r=25, h=thickness, $fn=100);
translate([-20,-35,-1]) cube([40,20,thickness+1]);
}
translate([-1.75,-33, thickness-1]) {
translate([-16.75,-0.75, -thickness+2]) cube([37,20, thickness+1]);
#translate([-14,0,-2.4]) pmpb2p();
#translate([0,0,-2.4]) pmpb2p();
#translate([14,0,-2.4]) pmpb2p();
}
translate([0,0,-0.1]) cylinder(r=24, h=thickness+0.2);
translate([0,0,thickness-6]) ks0454_noholes();
translate([10,-28.2,-2.5]) cylinder(h=5, r=3.2, $fn=100);
}
translate([-15, -20, 0]) cylinder(d=10, h=thickness-5.9);
translate([15, -20, 0]) cylinder(d=10, h=thickness-5.9);
//%translate([0,0,thickness-5.9]) ks0454();
}
if (render == "housing") {
rotate([0, 0, 270]) CruiserBC_Housing();
}
#translate([-300,0,-12]) rotate([0,90,0]) cylinder(d=handlebar_diameter, 600);

View File

@ -0,0 +1,4 @@
module pmpb2p() {
cube([3.5, 6, 3.5]);
translate([1,1.5,3.5]) cube([1.5, 3, 0.8]);
}

15
ks0454.scad Normal file
View File

@ -0,0 +1,15 @@
module ks0454() {
difference() {
union() {
cylinder(6, d=46, $fn=80);
translate([-18.11, -25.735, 0]) cube([36.22,15,6]);
}
translate([-15, -22.2,-0.1]) cylinder(6.2, d=6, $fn=80);
translate([15, -22.2,-0.1]) cylinder(6.2, d=6, $fn=80);
}
}
module ks0454_noholes() {
cylinder(6, d=46, $fn=80);
translate([-18.11, -25.735, 0]) cube([36.22,15,6]);
}