kocherdeckel.scad 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. use <threads.scad>
  2. $fn=90;
  3. Delta = 0.01;
  4. Inch = 25.4;
  5. Gesamt_Hoehe = 15;
  6. Kompressor_Nippel = 8;
  7. //intersection() {
  8. difference() {
  9. union(){
  10. // Deckel mit Innengewinde
  11. difference() {
  12. union() {
  13. cylinder(d=32, h=Gesamt_Hoehe-1, $fn=90);
  14. translate([0,0,Gesamt_Hoehe-1]) hull() {
  15. rotate_extrude() translate([30/2,0]) circle(d=2);
  16. }
  17. }
  18. // Metric Thread 25.75x1
  19. translate([0,0,-Delta])
  20. metric_thread (diameter=25.75, pitch=1, length=Gesamt_Hoehe-4+2*Delta, internal=true, test=false);
  21. translate([0,0,Gesamt_Hoehe-4])
  22. cylinder(d=26, h=1);
  23. }
  24. /*
  25. Ansatz für Kompressor - Schrader valve:
  26. External 8V1 thread: 0.305 in (7.747 mm) x 32 TPI[3] (1⁄32 in or 0.7938 mm pitch) (Tap size: 8v1-32)
  27. https://en.wikipedia.org/wiki/Schrader_valve
  28. */
  29. translate([0,0,Gesamt_Hoehe])
  30. english_thread (diameter=0.305, threads_per_inch=32, length=Kompressor_Nippel/Inch, leadin=1);
  31. // for (i=[0:0.5:8]) translate([0,0,i]) hull() rotate_extrude() translate([(7.747-0.8)/2,0]) circle(d=1);
  32. // "Rändelung" für mehr Grip
  33. translate([0,0,7]) for (i=[0:40:360]) rotate([0,0,i]) translate([31/2,0,0]) hull() {
  34. sphere(d=3, $fn=45);
  35. translate([0,0,6]) sphere(d=3, $fn=45);
  36. }
  37. // Ansatz ganz oben wegen Aufbauplatte/Harz/Bottom-Layer
  38. translate([0,0,Gesamt_Hoehe+Kompressor_Nippel]) cylinder(d1=7, d2=6.5, h=0.5);
  39. }
  40. // Innenbohrung
  41. cylinder(d=3, h=50, $fn=60, center=true);
  42. }
  43. // translate([0,50,0]) cube(100, center=true);
  44. //}
  45. // Test, ob das Gewinde passt
  46. *difference() {
  47. cylinder(d=30, h=4);
  48. // Metric Thread 25.75x1
  49. translate([0,0,-Delta]) metric_thread (diameter=25.75, pitch=1, length=6, groove=true);
  50. }