48 lines
1.6 KiB
OpenSCAD
48 lines
1.6 KiB
OpenSCAD
|
// Pole mounting bracket for camera
|
||
|
// length units are millimeters
|
||
|
|
||
|
innerScrewToScrew = 45.34;
|
||
|
outerScrewToScrew = 53.25;
|
||
|
rodDiameter = 25.60;
|
||
|
mountHeight = 30.00;
|
||
|
|
||
|
circleResolution=360*4; // faces per rotation
|
||
|
|
||
|
rodRadius = rodDiameter / 2;
|
||
|
|
||
|
screwToScrew = (innerScrewToScrew + outerScrewToScrew) / 2;
|
||
|
|
||
|
screwUnthreadedRadius = (outerScrewToScrew - innerScrewToScrew) / 4;
|
||
|
|
||
|
screwThreadedRadius = screwUnthreadedRadius * 0.80;
|
||
|
|
||
|
difference() {
|
||
|
translate([0,0,0]) {
|
||
|
difference() {
|
||
|
translate([0,0,0]) {
|
||
|
cylinder(r=rodRadius * 3, h=mountHeight, $fn=circleResolution);
|
||
|
}
|
||
|
// remove half of cylinder
|
||
|
translate([-(rodRadius * 3),-(rodRadius * 4),-0.01]) {
|
||
|
cube([rodRadius * 8.01, rodRadius * 4.01, mountHeight + 0.02]);
|
||
|
}
|
||
|
// remove screw holes
|
||
|
translate([0,-0.01,(mountHeight / 2) - screwThreadedRadius]) {
|
||
|
translate([-((screwToScrew / 2) -screwThreadedRadius),0,0]) {
|
||
|
rotate([-90,0,0])
|
||
|
#cylinder(r=screwThreadedRadius, h=mountHeight, $fn=circleResolution);
|
||
|
}
|
||
|
translate([screwToScrew / 2,0,0]) {
|
||
|
rotate([-90,0,0])
|
||
|
#cylinder(r=screwThreadedRadius, h=mountHeight, $fn=circleResolution);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
translate([0,0,-0.01]) {
|
||
|
translate([0, rodRadius, 0])
|
||
|
cylinder(r=rodRadius * 1.01, h=mountHeight + 0.02, $fn=circleResolution);
|
||
|
translate([-rodRadius * 1.01, 0, 0])
|
||
|
cube([rodRadius * 2.01, rodRadius * 1.01, mountHeight + 0.02]);
|
||
|
}
|
||
|
}
|