diff --git a/oscilloscopeKnobs.scad b/Electronics and Digital Fabrication/oscilloscopeKnobs.scad similarity index 100% rename from oscilloscopeKnobs.scad rename to Electronics and Digital Fabrication/oscilloscopeKnobs.scad diff --git a/oscilloscopeKnobs.stl b/Electronics and Digital Fabrication/oscilloscopeKnobs.stl similarity index 100% rename from oscilloscopeKnobs.stl rename to Electronics and Digital Fabrication/oscilloscopeKnobs.stl diff --git a/relay_enclosure/bottom.stl b/Electronics and Digital Fabrication/relay_enclosure/bottom.stl similarity index 100% rename from relay_enclosure/bottom.stl rename to Electronics and Digital Fabrication/relay_enclosure/bottom.stl diff --git a/relay_enclosure/enclosure.py b/Electronics and Digital Fabrication/relay_enclosure/enclosure.py similarity index 100% rename from relay_enclosure/enclosure.py rename to Electronics and Digital Fabrication/relay_enclosure/enclosure.py diff --git a/relay_enclosure/lid.stl b/Electronics and Digital Fabrication/relay_enclosure/lid.stl similarity index 100% rename from relay_enclosure/lid.stl rename to Electronics and Digital Fabrication/relay_enclosure/lid.stl diff --git a/Electronics and Digital Fabrication/relay_enclosure/temp.py b/Electronics and Digital Fabrication/relay_enclosure/temp.py new file mode 100644 index 0000000..016e418 --- /dev/null +++ b/Electronics and Digital Fabrication/relay_enclosure/temp.py @@ -0,0 +1,93 @@ +import cadquery as cq +from cadquery import exporters + + +p_innerWidth = 27.0 # Outer width of box enclosure +p_innerLength = 51.0 # Outer length of box enclosure +p_innerHeight = 20 # Outer height of box enclosure + +p_thickness = 1.0 # Thickness of the box walls +p_bottomHeight = 3 +p_boardThickness = 1 + +p_screwpostSpacing = [20.4, 44.4] +p_screwpostID = 3.5 +p_screwpostOD = 5 +p_innerScrewpostOD = 6.25 +p_screwLength = 12.0 + +p_countersinkDiameter = 5.75 + +p_hexnutDiameter = 6.5 +p_hexnutDepth = 2.5 + +p_wireOpening = [15, 6] + +countersinkDepth = (p_innerHeight + p_thickness * 2) - p_screwLength + +enclosed = ( + cq.Workplane("XY") + .rect(p_innerWidth, p_innerLength) + .extrude(p_innerHeight) +) + +# split box into lid and bottom parts +(bottom, lid) = ( + enclosed.shell(p_thickness) + .faces("Z").workplane() + .rect(*p_screwpostSpacing, forConstruction=True) + .vertices().tag("screw_holes") + .circle(p_countersinkDiameter / 2.0 + p_thickness) + .extrude(-(countersinkDepth + p_thickness)) + .vertices(tag="screw_holes") + .cboreHole(p_screwpostID, p_countersinkDiameter, countersinkDepth) +) + +lid = ( + lid.faces(">Y").edges("