Skip to content

Commit 80ef9e2

Browse files
Add type NOTCH for standoffs with small radius
1 parent ca28448 commit 80ef9e2

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

arduino.scad

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ module bumper( boardType = UNO, mountingHoles = false ) {
100100
}
101101

102102
// TODO : Boards are usually not flat on the downside, and pins
103-
// currently colide with the structure (resulting in a ~1mm gap)
104-
translate([0, 0, bumperBaseHeight]) {
105-
components(boardType = boardType, component = HEADER_M, offset = 0);
106-
}
107-
translate([0, 0, bumperBaseHeight]) {
108-
components(boardType = boardType, component = HEADER_F, offset = 0);
109-
}
103+
// currently colide with the structure (resulting in a gap)
104+
//translate([0, 0, bumperBaseHeight]) {
105+
// components(boardType = boardType, component = HEADER_M, offset = 0);
106+
//}
107+
//translate([0, 0, bumperBaseHeight]) {
108+
// components(boardType = boardType, component = HEADER_F, offset = 0);
109+
//}
110110
// Cooling opening?
111111
translate([4,(dimensions[1] - dimensions[1] * 0.4)/2,-1])
112112
cube([dimensions[0] -8,dimensions[1] * 0.4,bumperBaseHeight + 2]);
@@ -252,9 +252,10 @@ module boundingBox(boardType = UNO, offset = 0, height = 0, cornerRadius = 0, in
252252
//Creates standoffs for different boards
253253
TAPHOLE = 0;
254254
PIN = 1;
255+
NOTCH = 2; // Recommended for small radius (< 1.5mm) on FDM printers.
255256

256-
module standoffs(
257-
boardType = UNO,
257+
module standoffs(
258+
boardType = UNO,
258259
height = 10,
259260
mountType = TAPHOLE
260261
) {
@@ -275,7 +276,14 @@ module standoffs(
275276
translate([0, 0, height - 1])
276277
pintack( h=pcbHeight + 3, r = holeRadius, lh=3, lt=1, bh=1, br=topRadius );
277278
}
278-
}
279+
if( mountType == NOTCH ) {
280+
$fn = 16;
281+
translate([0, 0, height]) {
282+
cylinder(r= holeRadius *0.9 , h=pcbHeight+0.1);
283+
translate([0, 0, pcbHeight+0.1]) cylinder(r1 = holeRadius + 0.15, r2 = holeRadius * 0.7, h=0.8);
284+
}
285+
}
286+
}
279287
}
280288

281289
//This is used for placing the mounting holes and for making standoffs

examples.scad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ translate([-140,0,0]) {
3939
translate([0,0,75]) enclosureLid(NANO);
4040

4141
translate([0,100,-75]) {
42-
standoffs(NANO, mountType=PIN);
42+
standoffs(NANO, mountType=NOTCH);
4343
boardShape(NANO, offset = 3);
4444
}
4545
}

0 commit comments

Comments
 (0)