2023-02-17 17:32:01 +00:00
|
|
|
import cadquery as cq
|
2023-02-16 17:57:32 +00:00
|
|
|
|
2023-02-22 17:17:29 +00:00
|
|
|
stand_positions = [(0, 0), (58, 0), (58, 49), (0, 49)]
|
2023-02-23 13:08:57 +00:00
|
|
|
stands = cq.Sketch().push(stand_positions).circle(3, mode="a").circle(2.65 / 2, mode="s")
|
2023-02-22 18:02:10 +00:00
|
|
|
pillar_height = 7
|
2023-02-17 20:55:20 +00:00
|
|
|
|
2023-02-22 21:17:02 +00:00
|
|
|
# Holes for the battery power cable and button
|
|
|
|
power_in = cq.Sketch().trapezoid(10, 5.5, 90, mode="a")
|
|
|
|
power_in_offset_x = 15
|
|
|
|
power_in_offset_y = -1
|
|
|
|
button_offset_x = 67
|
2023-02-23 13:08:57 +00:00
|
|
|
button_offset_y = 5.5
|
2023-02-22 21:17:02 +00:00
|
|
|
power_button_cut = cq.Sketch().trapezoid(7, 7, 90, mode="a")
|
|
|
|
|
|
|
|
|
2023-02-17 20:55:20 +00:00
|
|
|
# This is a holder for DuPont cables so they connect to this
|
|
|
|
# things' pogo pins which are used to power the CPU
|
2023-02-23 13:08:57 +00:00
|
|
|
pin_positions = [(3.5, 0), (4 * 2.54 + 3.5, 0)]
|
2023-02-22 17:17:29 +00:00
|
|
|
pin_holder_width = 25
|
|
|
|
pin_holder_height = 15
|
|
|
|
pin_holder = (
|
|
|
|
cq.Sketch()
|
|
|
|
.polygon(
|
|
|
|
[
|
2023-02-23 13:08:57 +00:00
|
|
|
(0.5, 0),
|
2023-02-22 17:17:29 +00:00
|
|
|
(pin_holder_width, 0),
|
|
|
|
(pin_holder_width, pin_holder_height),
|
|
|
|
(0, pin_holder_height),
|
2023-02-23 13:08:57 +00:00
|
|
|
(0.5, 0),
|
2023-02-22 17:17:29 +00:00
|
|
|
],
|
|
|
|
mode="a",
|
|
|
|
)
|
|
|
|
.push(pin_positions)
|
|
|
|
.polygon(
|
|
|
|
[(0, 0), (2.6, 0), (2.6, pin_holder_height), (0, pin_holder_height), (0, 0)],
|
|
|
|
mode="s",
|
2023-02-17 20:55:20 +00:00
|
|
|
)
|
2023-02-22 17:17:29 +00:00
|
|
|
)
|