Skip to content
Snippets Groups Projects
Commit a84fe60b authored by fxk8y's avatar fxk8y :spider:
Browse files

Better approach

parent 9dbb445e
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,10 @@ nozzle = 0.4;
pcb_w = 50.0 + nozzle;
pcb_h = 21.5 + nozzle;
pcb_z_off = 11.6; // hieght of transceiver pcb above ground
pcb_z_off = 12.0; // height of transceiver pcb above ground
M2_outer = 5.5; // outer diameter for the M2 screw receptacles
// s = socket
......@@ -20,28 +23,52 @@ s_h = 13;
s_w = pcb_w;
// sc = screw; here: the M2 holes of the PCB
sc_x = 8.25;
sc_y = 7.75;
// ph = PinHeader
ph_led_x = 5.7;
ph_485_x = -1.9 - 1.27;
ph_led_w = 11.4 + 1.25;
ph_485_w = 16.5 + 1.25;
module screwPlacement(tz=0) {
translate([ sc_x, -sc_y, tz]) children();
translate([-sc_x, sc_y, tz]) children();
}
// screwPlacement() cylinder(d=M2_outer, h=pcb_z_off);
/* module PCBSocket() {
module pinHeaders() {
translate([ph_led_x, pcb_h/2, 0]) square([ph_led_w, 4*$str], center=true);
translate([ph_485_x, -pcb_h/2, 0]) square([ph_485_w, 4*$str], center=true);
difference() {
union() {
// body
translate([0, 0, 0]) cube([s_w, s_h, pcb_z_off]);
// endings
pw2 = pcb_w / 2;
for (tx=[-pw2, pw2]) translate([tx, 0, 0]) cube([$str, 0, 0]);
}
}
} */
}
module PCBSocket() {
linear_extrude(pcb_z_off) {
difference() {
square([pcb_w, pcb_h ], center=true);
square([pcb_w - 2*$str1, pcb_h - 2*$str], center=true);
union() {
difference() {
square([pcb_w, pcb_h ], center=true);
square([pcb_w - 2*$str1, pcb_h - 2*$str], center=true);
}
screwPlacement() circle(d=M2_outer);
}
pinHeaders();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment