Adjust battery holder dimensions

This commit is contained in:
Roberto Alsina 2023-02-16 15:58:30 -03:00
parent 9840e6ad70
commit 424396a266
4 changed files with 16264 additions and 15687 deletions

View File

@ -1,7 +1,7 @@
import cadquery2 as cq
from cadquery2 import exporters
cpu_stand_positions = [(0, 0), (58, 0), (58, 48), (0, 48)]
cpu_stand_positions = [(0, 0), (54, 0), (54, 48), (0, 48)]
lower_stands = cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -79,6 +79,9 @@ screw_holes = cq.Sketch().push(mounting_pillar_positions).circle(3, mode="a")
# Hole for the USB hub's exposed port
usb_in = cq.Sketch().trapezoid(13, 5.5, 90, mode="a")
# Holes for the battery power cable and button
power_in = cq.Sketch().trapezoid(10, 5.5, 90, mode="a")
power_button_cut = cq.Sketch().trapezoid(7, 7, 90, mode="a")
# CPU stand pins
lower_stands = (
@ -101,6 +104,20 @@ def model():
.fillet(2)
.faces(">Z")
.shell(-shell_t)
# Power inlet
.faces(">Y")
.workplane(centerOption="CenterOfBoundBox")
# The position is arbitrary, based on the components available
.center(width / 2 - 15 - 21, -8.5)
.placeSketch(power_in)
.cutBlind(-shell_t)
# Power button
.faces(">Y")
.workplane(centerOption="CenterOfBoundBox")
# The position is arbitrary, based on the components available,
.center(width / 2 - 63 - 21, -1)
.placeSketch(power_button_cut)
.cutBlind(-shell_t)
# USB inlet
.faces(">X")
.workplane(centerOption="CenterOfBoundBox")