From 9d87552f99b70ea9d8a8037b67e9be240f5957ce Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 3 Jan 2024 11:18:28 +0100 Subject: mech: Switch to custom front panel The front panel needs holes for the HDMI, micro USB and cinch connectors of the Raspberry Pi Zero W. --- mech/panel_front.scad | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 mech/panel_front.scad (limited to 'mech/panel_front.scad') diff --git a/mech/panel_front.scad b/mech/panel_front.scad new file mode 100644 index 0000000..31f4ff7 --- /dev/null +++ b/mech/panel_front.scad @@ -0,0 +1,31 @@ +use +use + +tol = 2; +cinch_d = 8.8; + +module panel_front(pcb_dim, margins, t) { + dim = dim_pcb_to_case(pcb_dim, margins, t); + x_off = dim[0]-2*t; + + difference() { + pcb_case_panel_front(pcb_dim, margins, t); + translate([x_off, 17-tol/2, 7.7-tol/2]) mini_hdmi_hole(t); + translate([x_off, 47.7-tol/2, 8-tol/2]) micro_usb_hole(t); + translate([x_off, 60.1-tol/2, 8-tol/2]) micro_usb_hole(t); + translate([x_off, 42.6+cinch_d/2, 26.5+cinch_d/2]) cinch_hole(t); + translate([x_off, 58.5+cinch_d/2, 26.5+cinch_d/2]) cinch_hole(t); + } +} + +module mini_hdmi_hole(t) { + cube([t, 14+tol, 8.9+tol]); +} + +module micro_usb_hole(t) { + cube([t, 10.5+tol, 6.6+tol]); +} + +module cinch_hole(t) { + rotate([0, 90, 0]) cylinder(d=cinch_d+tol, h=t, $fn=30); +} -- cgit v1.2.3-70-g09d2