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
|
||||
| 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_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 |
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 108 KiB |
|
@ -25,7 +25,7 @@
|
|||
// c
|
||||
//
|
||||
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 ];
|
||||
|
||||
|
|
|
@ -105,9 +105,9 @@ module NEMA(type, shaft_angle = 0, jst_connector = false) { //! Draw specified N
|
|||
}
|
||||
|
||||
if(jst_connector)
|
||||
translate([0, side / 2 - 2, -length + tabSize.z + 0.75])
|
||||
rotate(180)
|
||||
jst_xh_header(jst_xh_header, 6, true);
|
||||
translate([0, side / 2 - 2, -length + tabSize.z + 5.75 / 2])
|
||||
rotate([-90, 0, 0])
|
||||
jst_xh_header(jst_xh_header, 6);
|
||||
|
||||
if(show_threads)
|
||||
for(x = NEMA_holes(type), y = NEMA_holes(type))
|
||||
|
@ -122,15 +122,16 @@ module NEMA(type, shaft_angle = 0, jst_connector = false) { //! Draw specified N
|
|||
cylinder(r = shaft_rad, h = shaft + 5); // shaft
|
||||
else
|
||||
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);
|
||||
|
||||
translate([0, side / 2, -length + cap / 2])
|
||||
rotate([90, 0, 0])
|
||||
for(i = [0 : 3])
|
||||
rotate(225 + i * 90)
|
||||
color(["red", "blue","green","black"][i])
|
||||
translate([1, 0, 0])
|
||||
cylinder(r = 1.5 / 2, h = 12, center = true);
|
||||
if(!jst_connector)
|
||||
translate([0, side / 2, -length + cap / 2])
|
||||
rotate([90, 0, 0])
|
||||
for(i = [0 : 3])
|
||||
rotate(225 + i * 90)
|
||||
color(["red", "blue","green","black"][i])
|
||||
translate([1, 0, 0])
|
||||
cylinder(r = 1.5 / 2, h = 12, center = true);
|
||||
}
|
||||
|
||||
module NEMA_screw_positions(type, n = 4) { //! Positions children at the screw holes
|
||||
|
|
Loading…
Reference in New Issue