ArduinoMount.scad 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. module plate(){
  2. difference(){
  3. cube([120,115,2]);
  4. //cube([130,115,2]);
  5. //cube([85,85,2]);
  6. for(x=[1:31],y=[1:22]){
  7. translate([x*5,y*5,0]){
  8. cylinder(5,2,2);
  9. }
  10. }
  11. }
  12. }
  13. module standoff(){
  14. difference(){
  15. cylinder(6,5,2);
  16. cylinder(6,1,1);
  17. }
  18. }
  19. module standoffLarge(){
  20. difference(){
  21. cylinder(14,5,2);
  22. cylinder(14,1,1);
  23. }
  24. }
  25. module rasPI(){
  26. standoff();
  27. translate([58,0,0]) standoff();
  28. translate([58,49,0]) standoff();
  29. translate([0,49,0]) standoff();
  30. }
  31. module hardKernel(){
  32. standoffLarge();
  33. translate([102,0,0]) standoffLarge();
  34. translate([0,81.4,0]) standoffLarge();
  35. translate([102,88.4,0]) standoffLarge();
  36. }
  37. module hardKernelX(){
  38. standoffLarge();
  39. translate([76,0,0]) standoffLarge();
  40. translate([0,52,0]) standoffLarge();
  41. translate([76,52,0]) standoffLarge();
  42. }
  43. module huzzah(){
  44. standoff();
  45. translate([45.72,0,0]) standoff();
  46. translate([0,19.05,0]) standoff();
  47. translate([45.72,19.05,0]) standoff();
  48. }
  49. module powerSupply(){
  50. standoffLarge();
  51. translate([123.825,0,0]) standoffLarge();
  52. translate([0,80,0]) standoffLarge();
  53. translate([123.825,80,0]) standoffLarge();
  54. }
  55. module breadBoard(){
  56. standoff();
  57. translate([31.75,0,0]) standoff();
  58. translate([0,44.45,0]) standoff();
  59. translate([31.75,44.45,0]) standoff();
  60. }
  61. module INA219(){
  62. standoff();
  63. translate([20.32,0,0]) standoff();
  64. translate([0,17.145,0]) standoff();
  65. translate([20.32,17.145,0]) standoff();
  66. }
  67. plate();
  68. translate([15,10,0]) huzzah();
  69. translate([15,36,0]) huzzah();
  70. translate([15,62,0]) huzzah();
  71. translate([15,88,0]) huzzah();
  72. translate([80,10,0]) breadBoard();
  73. translate([85,80,0]) INA219();