mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2025-01-26 17:42:44 -05:00
Fixed connector position, fixed missing wires, updated images.
Reverted the jst header pin position change.
This commit is contained in:
parent
2e0e833d40
commit
c9c2ffafba
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 818 KiB After Width: | Height: | Size: 819 KiB |
@ -3422,7 +3422,7 @@ NEMA stepper motor model.
|
|||||||
### Modules
|
### Modules
|
||||||
| Module | Description |
|
| Module | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| ```NEMA(type, shaft_angle = 0)``` | Draw specified NEMA stepper motor |
|
| ```NEMA(type, shaft_angle = 0, jst_connector = false)``` | Draw specified NEMA stepper motor |
|
||||||
| ```NEMA_outline(type)``` | 2D outline |
|
| ```NEMA_outline(type)``` | 2D outline |
|
||||||
| ```NEMA_screw_positions(type, n = 4)``` | Positions children at the screw holes |
|
| ```NEMA_screw_positions(type, n = 4)``` | Positions children at the screw holes |
|
||||||
| ```NEMA_screws(type, screw, n = 4, screw_length = 8, earth = undef)``` | Place screws and optional earth tag |
|
| ```NEMA_screws(type, screw, n = 4, screw_length = 8, earth = undef)``` | Place screws and optional earth tag |
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 108 KiB |
@ -25,7 +25,7 @@
|
|||||||
// c
|
// c
|
||||||
//
|
//
|
||||||
2p54header = ["2p54header", 2.54, 11.6, 3.2, 0.66, "gold", grey(20), 8.5];
|
2p54header = ["2p54header", 2.54, 11.6, 3.2, 0.66, "gold", grey(20), 8.5];
|
||||||
jst_xh_header = ["JST XH header",2.5, 10, 3.2, 0.64, "gold", grey(90), 7];
|
jst_xh_header = ["JST XH header",2.5, 10, 3.4, 0.64, "gold", grey(90), 7];
|
||||||
|
|
||||||
pin_headers = [ 2p54header ];
|
pin_headers = [ 2p54header ];
|
||||||
|
|
||||||
|
@ -105,9 +105,9 @@ module NEMA(type, shaft_angle = 0, jst_connector = false) { //! Draw specified N
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(jst_connector)
|
if(jst_connector)
|
||||||
translate([0, side / 2 - 2, -length + tabSize.z + 0.75])
|
translate([0, side / 2 - 2, -length + tabSize.z + 5.75 / 2])
|
||||||
rotate(180)
|
rotate([-90, 0, 0])
|
||||||
jst_xh_header(jst_xh_header, 6, true);
|
jst_xh_header(jst_xh_header, 6);
|
||||||
|
|
||||||
if(show_threads)
|
if(show_threads)
|
||||||
for(x = NEMA_holes(type), y = NEMA_holes(type))
|
for(x = NEMA_holes(type), y = NEMA_holes(type))
|
||||||
@ -122,8 +122,9 @@ module NEMA(type, shaft_angle = 0, jst_connector = false) { //! Draw specified N
|
|||||||
cylinder(r = shaft_rad, h = shaft + 5); // shaft
|
cylinder(r = shaft_rad, h = shaft + 5); // shaft
|
||||||
else
|
else
|
||||||
not_on_bom()
|
not_on_bom()
|
||||||
leadscrew(shaft_rad * 2, shaft.x + 5, shaft.y, shaft.z, center = false)
|
leadscrew(shaft_rad * 2, shaft.x + 5, shaft.y, shaft.z, center = false);
|
||||||
|
|
||||||
|
if(!jst_connector)
|
||||||
translate([0, side / 2, -length + cap / 2])
|
translate([0, side / 2, -length + cap / 2])
|
||||||
rotate([90, 0, 0])
|
rotate([90, 0, 0])
|
||||||
for(i = [0 : 3])
|
for(i = [0 : 3])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user