Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CyanLight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fxk8y
CyanLight
Commits
a84fe60b
Commit
a84fe60b
authored
2 years ago
by
fxk8y
Browse files
Options
Downloads
Patches
Plain Diff
Better approach
parent
9dbb445e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cad/CyanBusTransceiver/PCBSocket.scad
+42
-15
42 additions, 15 deletions
cad/CyanBusTransceiver/PCBSocket.scad
with
42 additions
and
15 deletions
cad/CyanBusTransceiver/PCBSocket.scad
+
42
−
15
View file @
a84fe60b
...
...
@@ -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();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment