Add m5 nut to the common lib

This commit is contained in:
Matt McWilliams 2023-02-02 19:48:08 -05:00
parent 2dce6f4b08
commit d0fe54b429
1 changed files with 12 additions and 7 deletions

View File

@ -34,6 +34,10 @@ module trap_cube(height = 19, top_x = 30, top_y = 34, bottom_x = 45, bottom_y =
echo("common.scad - R()");
function R (diameter) = diameter / 2.0;
module hex (diag = 10, h = 1) {
cylinder(r = diag / 2, h = h, center = true, $fn = 6);
}
echo("common.scad - m3_nut");
module m3_nut (H = 5) {
cylinder(r=R(6.6), h=H, center=true, $fn=6);
@ -45,6 +49,11 @@ module m4_nut (H = 5, DIAG = 8.1) {
hex(diag = DIAG, h = H);
}
echo("common.scad - m5_nut");
module m5_nut (H = 5, DIAG = 9.1) {
hex(diag = DIAG, h = H);
}
module opto_endstop(){
difference(){
union(){
@ -79,10 +88,6 @@ module optoswitch() {
}
}
module hex (diag = 10, h = 1) {
cylinder(r = diag / 2, h = h, center = true, $fn = 6);
}
module NEMA17_motor_shaft (L = 22.75) {
//shaft
difference () {