From 5ede2d0895a8a813ef2bc47bf94462d668bc440b Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 14 Jun 2019 16:20:42 +0100 Subject: [PATCH] Smooth pulleys now show their OD on the BOM. --- readme.md | 6 +++--- vitamins/pulley.scad | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 888e23c..f03b251 100644 --- a/readme.md +++ b/readme.md @@ -204,7 +204,7 @@ Individual teeth are not drawn, instead they are represented by a lighter colour | 1 | ```belt(T5x6, [ ... ])``` | Belt T5 x 6mm x 130mm | | 1 | ```insert(F1BM3)``` | Heatfit insert M3 | | 2 | ```pulley(GT2x20_toothed_idler)``` | Pulley GT2 idler 20 teeth | -| 2 | ```pulley(GT2x16_plain_idler)``` | Pulley GT2 idler smooth | +| 2 | ```pulley(GT2x16_plain_idler)``` | Pulley GT2 idler smooth 9.63mm | | 2 | ```pulley(GT2x20ob_pulley)``` | Pulley GT2OB 20 teeth | | 1 | ```screw(M3_cs_cap_screw, 20)``` | Screw M3 cs cap x 20mm | | 4 | ```screw(M3_grub_screw, 6)``` | Screw M3 grub x 6mm | @@ -1765,8 +1765,8 @@ Timing belt pulleys, both toothed and plain with internal bearings for idlers. | ---:|:--- |:---| | 1 | ```pulley(GT2x16_toothed_idler)``` | Pulley GT2 idler 16 teeth | | 1 | ```pulley(GT2x20_toothed_idler)``` | Pulley GT2 idler 20 teeth | -| 1 | ```pulley(GT2x20_plain_idler)``` | Pulley GT2 idler smooth | -| 1 | ```pulley(GT2x16_plain_idler)``` | Pulley GT2 idler smooth | +| 1 | ```pulley(GT2x20_plain_idler)``` | Pulley GT2 idler smooth 12mm | +| 1 | ```pulley(GT2x16_plain_idler)``` | Pulley GT2 idler smooth 9.63mm | | 1 | ```pulley(GT2x20ob_pulley)``` | Pulley GT2OB 20 teeth | | 1 | ```pulley(GT2x12_pulley)``` | Pulley GT2RD 12 teeth | | 1 | ```pulley(GT2x20um_pulley)``` | Pulley GT2UM 20 teeth | diff --git a/vitamins/pulley.scad b/vitamins/pulley.scad index 32caa89..d94cb32 100644 --- a/vitamins/pulley.scad +++ b/vitamins/pulley.scad @@ -55,8 +55,9 @@ GT_r = 0.555; module pulley(type) { //! Draw a pulley teeth = pulley_teeth(type); + od = pulley_od(type); - vitamin(str("pulley(", type[0], "): Pulley ", pulley_type(type), pulley_screws(type) ? " " : " idler ", teeth ? str(teeth, " teeth") : "smooth")); + vitamin(str("pulley(", type[0], "): Pulley ", pulley_type(type), pulley_screws(type) ? " " : " idler ", teeth ? str(teeth, " teeth") : str("smooth ", od, "mm"))); ft = pulley_flange_thickness(type); tw = pulley_od(type) * PI / (teeth * 2); @@ -64,7 +65,7 @@ module pulley(type) { //! Draw a pulley w = pulley_width(type); r1 = pulley_bore(type) / 2; - or = pulley_od(type) / 2; + or = od / 2; ir = pulley_ir(type); module core() { translate_z(pulley_hub_length(type) + ft)