Sfoglia il codice sorgente

add lights to orange pi cam holder

Thomas Buck 6 anni fa
parent
commit
2c65c84a60

+ 10
- 6
opi-pc-plus/cam-holder.scad Vedi File

@@ -21,7 +21,7 @@ cam_hole_dist = 20.0;
21 21
 cam_mount_height = 15.0;
22 22
 cam_mount_dist = 10.0;
23 23
 
24
-mock_pole_height = 60.0;
24
+mock_pole_height = 60.0 + 40;
25 25
 mock_pole_off = 10.0;
26 26
 
27 27
 $fn = 20;
@@ -73,7 +73,7 @@ module cam_plate() {
73 73
 }
74 74
 
75 75
 module cam_mount() {
76
-    translate([0, -edge / 2 - length + hole_off, height - forw_height + mock_pole_height - mock_pole_off * 2])
76
+    translate([0, -edge / 2 - length + hole_off, height - forw_height + mock_pole_height - mock_pole_off * 2 - 40])
77 77
     difference() {
78 78
         union() {
79 79
             cylinder(d = hole_size + hole_wiggle + cam_wall * 2, h = cam_height);
@@ -98,9 +98,13 @@ module cam_mount() {
98 98
     }
99 99
 }
100 100
 
101
-holder(); adaptor();
101
+module cam_holder_mount() {
102
+    holder(); adaptor();
102 103
 
103
-%translate([0, -edge / 2 - length + hole_off, height - forw_height - mock_pole_off])
104
-    cylinder(d = hole_size, h = mock_pole_height);
104
+    %translate([0, -edge / 2 - length + hole_off, height - forw_height - mock_pole_off])
105
+        cylinder(d = hole_size, h = mock_pole_height);
105 106
 
106
-cam_mount();
107
+    cam_mount();
108
+}
109
+
110
+//cam_holder_mount();

+ 54
- 0
opi-pc-plus/cam-lights.scad Vedi File

@@ -0,0 +1,54 @@
1
+include </home/thomas/Projekte/3d/opi-pc-plus/cam-holder.scad>
2
+use </home/thomas/Projekte/3d/opi-pc-plus/opi-cam-mount.scad>
3
+
4
+light_height = 8;
5
+light_wall = 3;
6
+light_wall_add = 2;
7
+light_dia = 150;
8
+light_cut = 20;
9
+lights_off = 5.8;
10
+
11
+light_h = light_height + (2 * light_wall_add);
12
+
13
+module lights_ring() {
14
+    $fn = 50;
15
+    translate([0, light_dia / 2, 0])
16
+    difference() {
17
+        cylinder(h = light_h, d = light_dia);
18
+        
19
+        translate([0, 0, -1])
20
+            cylinder(h = light_h + 2, d = light_dia - light_wall - light_wall_add);
21
+        
22
+        translate([0, 0, light_wall_add])
23
+            cylinder(h = light_height, d = light_dia - light_wall);
24
+        
25
+        translate([-light_dia / 2, -light_dia / 2 + light_cut, -1])
26
+            cube([light_dia, light_dia, light_h + 2]);
27
+    }
28
+}
29
+
30
+module lights_mount() {
31
+    translate([0, -edge / 2 - length + hole_off, height - forw_height + mock_pole_height - mock_pole_off * 2 - 10])
32
+    difference() {
33
+        union() {
34
+            cylinder(d = hole_size + hole_wiggle + cam_wall * 2, h = light_h);
35
+            
36
+            translate([0, lights_off, 0])
37
+                lights_ring();
38
+        }
39
+        
40
+        translate([0, 0, -1])
41
+            cylinder(d = hole_size + hole_wiggle, h = light_h + 2);
42
+    }
43
+}
44
+
45
+lights_mount();
46
+
47
+/*
48
+cam_holder_mount();
49
+
50
+color("white")
51
+%translate([13, -37, 75])
52
+    rotate([90, 0, 180])
53
+    cam_holder();
54
+*/

+ 2606
- 0
opi-pc-plus/cam-lights.stl
File diff soppresso perché troppo grande
Vedi File


+ 8
- 5
opi-pc-plus/opi-cam-mount.scad Vedi File

@@ -145,12 +145,15 @@ module holder_top() {
145 145
     }
146 146
 }
147 147
 
148
-holder_bottom();
148
+module cam_holder() {
149
+    holder_bottom();
149 150
 
150
-%translate([2 * wall_size, 2 * wall_size, wall_size])
151
-    cam();
151
+    %translate([2 * wall_size, 2 * wall_size, wall_size])
152
+        cam();
152 153
 
153 154
 
154
-translate([wall_size, wall_size, wall_size + opi_cam_depth + opi_cam_bottom_depth])
155
-    holder_top();
155
+    translate([wall_size, wall_size, wall_size + opi_cam_depth + opi_cam_bottom_depth])
156
+        holder_top();
157
+}
156 158
 
159
+cam_holder();

Loading…
Annulla
Salva