From 2baebe88959114e4fdd57e5ce402bdfcadf5d79f Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Fri, 17 Feb 2023 17:55:20 -0300 Subject: [PATCH] Added pogo plug connector --- notebook_nueva/battery_holder.py | 20 ++++++++++++++++++++ notebook_nueva/modelo.py | 2 +- notebook_nueva/pogo_plug.stl | Bin 0 -> 2284 bytes 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 notebook_nueva/pogo_plug.stl diff --git a/notebook_nueva/battery_holder.py b/notebook_nueva/battery_holder.py index 87b8d7b..39d78ef 100644 --- a/notebook_nueva/battery_holder.py +++ b/notebook_nueva/battery_holder.py @@ -5,3 +5,23 @@ cpu_stand_positions = [(0, 0), (58, 0), (58, 49), (0, 49)] lower_stands = cq.Sketch().push(cpu_stand_positions).circle(3, mode="a") higher_stands = cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a") + +# This is a holder for DuPont cables so they connect to this +# things' pogo pins which are used to power the CPU + +if __name__ == "__main__": + + pin_positions = [(0, 0), (4 * 2.54, 0)] + width = 5 * 2.54 + 1 + height = 7 + model = ( + cq.Workplane("XY") + .workplane() + .box(width, height, 2.54 + 1) + .faces(">Z") + .workplane(centerOption="CenterOfBoundBox") + .center(-width / 2 + 1.75, 0) + .placeSketch(cq.Sketch().push(pin_positions).trapezoid(2.60, 10, 90, mode="a")) + .cutBlind(-2.54) + ) + cq.exporters.export(model, "pogo_plug.stl") diff --git a/notebook_nueva/modelo.py b/notebook_nueva/modelo.py index 46fc323..8d3fca3 100644 --- a/notebook_nueva/modelo.py +++ b/notebook_nueva/modelo.py @@ -114,7 +114,7 @@ def model(): # Power button .faces(">Y") .workplane(centerOption="CenterOfBoundBox") - # The position is arbitrary, based on the components available, + # The position is arbitrary, based on the components available, .center(width / 2 - 67 - 21, -1) .placeSketch(power_button_cut) .cutBlind(-shell_t) diff --git a/notebook_nueva/pogo_plug.stl b/notebook_nueva/pogo_plug.stl new file mode 100644 index 0000000000000000000000000000000000000000..4a75d324c2d23f6f5a922bcc379bb35714899065 GIT binary patch literal 2284 zcmai!u}<7T5Qg^|c!1#MQbjcP05&35AR$peM8)dZ)QOf9ulkl^pq&H}m=5&bfEpo3H;$jjIs1=3H{0 zB}O!>N6OS<7WCTR4-cY!|6&pSc;|%hyfLoCA_jNUN9_gqz zRC4-7S2+Ssc%HcO+h2Z(#xyIqqV~ju@4fsu~XAn^pMHV(}~ozSyK&P{`hzj`qi@@}Z_%h35TFnMa0@EUPWGF^@Y$xw?2aJ?}Lz4_42wnR#Rg$(m~5 Wb!AH&YvFw|8l!nUN{EJ~o%;`o<>GDt literal 0 HcmV?d00001