My self-made 3D-printable designs, mainly in OpenSCAD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cam_bracket.scad 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Inspired by the "TinyBoy / Fabrikator mini Cam holder"
  3. * by "andy_a":
  4. * http://www.thingiverse.com/thing:1434698
  5. *
  6. * Created by:
  7. * Thomas Buck <xythobuz@xythobuz.de> in April 2016
  8. *
  9. * Licensed under the Creative Commons - Attribution - Share alike license.
  10. */
  11. //import("/Users/thomas/Downloads/TinyBoy___Fabrikator_mini_Cam_holder/files/tinyboy__fabrikator_mini_cam_holder.stl");
  12. // -----------------------------------------------------------
  13. $fn = 20;
  14. // -----------------------------------------------------------
  15. module quarter_circle(d, h) {
  16. difference() {
  17. cylinder(d = d, h = h);
  18. translate([0, -(d / 2) - 1, -1])
  19. cube([(d / 2) + 1, d + 2, h + 2]);
  20. translate([-(d / 2) - 1, 0, -1])
  21. cube([(d / 2) + 2, (d / 2) + 1, h + 2]);
  22. }
  23. }
  24. module webcam_shaft_center() {
  25. difference() {
  26. cube([9.5, 3.5, 8]);
  27. translate([4.5, 4, 4])
  28. rotate([90, 0, 0])
  29. cylinder(d = 3, h = 4.5);
  30. }
  31. }
  32. module webcam_shaft_end() {
  33. difference() {
  34. union() {
  35. // rectangular part
  36. translate([0, -5.5, 0])
  37. cube([5, 5.5, 9.5]);
  38. // front radius
  39. translate([5, -2.75, 0])
  40. cylinder(d = 5.5, h = 9.5);
  41. translate([0, 0, 9.5])
  42. rotate([90, 0, 0])
  43. quarter_circle(19, 5.5);
  44. }
  45. // axis hole
  46. translate([4.5, -2.75, -1])
  47. cylinder(d = 4.5, h = 11.5);
  48. }
  49. }
  50. module webcam_shaft() {
  51. translate([-0.5, -5.5, 9.5])
  52. webcam_shaft_center();
  53. translate([9, 0, 0])
  54. webcam_shaft_end();
  55. translate([9, -5.5, 27])
  56. rotate([0, 180, 180])
  57. webcam_shaft_end();
  58. }
  59. // -----------------------------------------------------------
  60. translate([0, 0.5, 5.5])
  61. rotate([90, 0, 90])
  62. webcam_shaft();