From 2c6bff20f380797479e049737017cf09cc1e9338 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 12 Sep 2022 16:51:14 -0400 Subject: [PATCH] Add README and put electronics department stuff in a folder --- .../oscilloscopeKnobs.scad | 0 .../oscilloscopeKnobs.stl | 0 .../relay_enclosure}/bottom.stl | 0 .../relay_enclosure}/enclosure.py | 0 .../relay_enclosure}/lid.stl | 0 .../relay_enclosure/temp.py | 93 ++++++++++++++++++ .../rotaryAttachmentCone.scad | 0 .../rotaryAttachmentCone.stl | 0 .../taz-6-camera}/camera-bracket.py | 0 .../taz-6-camera}/camera-bracket.stl | 0 .../taz-6-camera}/drop-in_5mm_t-nut.blend | Bin .../taz-6-camera}/drop-in_5mm_t-nut.stl | Bin README.md | 27 +++++ 13 files changed, 120 insertions(+) rename oscilloscopeKnobs.scad => Electronics and Digital Fabrication/oscilloscopeKnobs.scad (100%) rename oscilloscopeKnobs.stl => Electronics and Digital Fabrication/oscilloscopeKnobs.stl (100%) rename {relay_enclosure => Electronics and Digital Fabrication/relay_enclosure}/bottom.stl (100%) rename {relay_enclosure => Electronics and Digital Fabrication/relay_enclosure}/enclosure.py (100%) rename {relay_enclosure => Electronics and Digital Fabrication/relay_enclosure}/lid.stl (100%) create mode 100644 Electronics and Digital Fabrication/relay_enclosure/temp.py rename rotaryAttachmentCone.scad => Electronics and Digital Fabrication/rotaryAttachmentCone.scad (100%) rename rotaryAttachmentCone.stl => Electronics and Digital Fabrication/rotaryAttachmentCone.stl (100%) rename {taz-6-camera => Electronics and Digital Fabrication/taz-6-camera}/camera-bracket.py (100%) rename {taz-6-camera => Electronics and Digital Fabrication/taz-6-camera}/camera-bracket.stl (100%) rename {taz-6-camera => Electronics and Digital Fabrication/taz-6-camera}/drop-in_5mm_t-nut.blend (100%) rename {taz-6-camera => Electronics and Digital Fabrication/taz-6-camera}/drop-in_5mm_t-nut.stl (100%) create mode 100644 README.md 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("