From 7165694b31a1282845abe5b4f5b8f2600115784e Mon Sep 17 00:00:00 2001 From: maride Date: Wed, 3 Jan 2018 17:10:09 +0100 Subject: [PATCH] Add Raspi mount for 2020 profile --- Camera_2020_Mount.scad | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Camera_2020_Mount.scad diff --git a/Camera_2020_Mount.scad b/Camera_2020_Mount.scad new file mode 100644 index 0000000..6566541 --- /dev/null +++ b/Camera_2020_Mount.scad @@ -0,0 +1,47 @@ +PIN_DIAMETER=1.75; +PIN_HEIGHT=4; +PIN_SPACING_X=12; +PIN_SPACING_Y=21; +CAMERA_ROTATION=45; + +THICKNESS=5; + +resulting_x=abs(sin(CAMERA_ROTATION)*(PIN_SPACING_X + THICKNESS*2)); +resulting_y=abs(cos(CAMERA_ROTATION)*(PIN_SPACING_X + THICKNESS*2)); + +$fn=36; + +include + + +module camera_mount() { + translate([0, 0, HEIGHT]) { + // camera pins + translate([-PIN_SPACING_X/2, PIN_SPACING_Y/2]) + cylinder(d=PIN_DIAMETER, h=PIN_HEIGHT); + translate([PIN_SPACING_X/2, PIN_SPACING_Y/2]) + cylinder(d=PIN_DIAMETER, h=PIN_HEIGHT); + translate([PIN_SPACING_X/2, -PIN_SPACING_Y/2]) + cylinder(d=PIN_DIAMETER, h=PIN_HEIGHT); + translate([-PIN_SPACING_X/2, -PIN_SPACING_Y/2]) + cylinder(d=PIN_DIAMETER, h=PIN_HEIGHT); + } +} + +translate([resulting_y/2, 0, resulting_x/2]) { + rotate([0, CAMERA_ROTATION, 0]) + camera_mount(); + + // the triangle to connect the (rotated) camera mount plate + rotate([-90, 0, 180]) + translate([0, 0, -(PIN_SPACING_Y+THICKNESS*2)/2]) + linear_extrude(height=PIN_SPACING_Y+THICKNESS*2) + polygon([ + [-resulting_y/2, resulting_x/2], + [ resulting_y/2, resulting_x/2], + [ resulting_y/2, -resulting_x/2] + ]); +} + +translate([-21-THICKNESS*2, -21/2 - THICKNESS, 0]) +__2020(resulting_y, THICKNESS); \ No newline at end of file