diff --git a/readme.md b/readme.md index c5c30c3..125f86e 100644 --- a/readme.md +++ b/readme.md @@ -28,27 +28,28 @@ See [usage](docs/usage.md) for requirements, installation instructions and a usa Components Psus Fan_guard Offset D_connectors Pulleys Fixing_block Quadrant Displays Rails Flat_hinge Round - Extrusions Ring_terminals Foot Rounded_cylinder - Fans Rockers Handle Rounded_polygon - Fuseholder Rod Pcb_mount Sector - Geared_steppers Screws Psu_shroud Sweep - Green_terminals Scs_bearing_blocks Ribbon_clamp Thread - Hot_ends Sealing_strip Screw_knob Tube - Hygrometer Sheets Socket_box - Iecs Sk_brackets Ssr_shroud - Inserts Spades Strap_handle - Jack Spools - Kp_pillow_blocks Springs - Ldrs Ssrs - Leadnuts Stepper_motors - Leds Toggles - Light_strips Transformers - Linear_bearings Tubings - Mains_sockets Variacs - Meter Veroboard - Microswitches Washers - Microview Wire - Modules Zipties + Extrusion_brackets Ring_terminals Foot Rounded_cylinder + Extrusions Rockers Handle Rounded_polygon + Fans Rod Pcb_mount Sector + Fuseholder Screws Psu_shroud Sweep + Geared_steppers Scs_bearing_blocks Ribbon_clamp Thread + Green_terminals Sealing_strip Screw_knob Tube + Hot_ends Sheets Socket_box + Hygrometer Sk_brackets Ssr_shroud + Iecs Spades Strap_handle + Inserts Spools + Jack Springs + Kp_pillow_blocks Ssrs + Ldrs Stepper_motors + Leadnuts Toggles + Leds Transformers + Light_strips Tubings + Linear_bearings Variacs + Mains_sockets Veroboard + Meter Washers + Microswitches Wire + Microview Zipties + Modules --- @@ -589,6 +590,54 @@ LCD dispays. | 1 | ```display(SSD1963_4p3)``` | LCD display SSD1963 4.3" | +Top + +--- + +## Extrusion_brackets +Brackets for joining extrusions at a corner. + + +[vitamins/extrusion_brackets.scad](vitamins/extrusion_brackets.scad) Object definitions. + +[vitamins/extrusion_bracket.scad](vitamins/extrusion_bracket.scad) Implementation. + +[tests/extrusion_brackets.scad](tests/extrusion_brackets.scad) Code for this example. + +### Properties +| Function | Description | +|:--- |:--- | +| ```extrusion_corner_bracket_base_thickness(type)``` | Thickness of base of bracket | +| ```extrusion_corner_bracket_hole_offset(type)``` | Hole offset from corner | +| ```extrusion_corner_bracket_side_thickness(type)``` | Thickness of side of bracket | +| ```extrusion_corner_bracket_size(type)``` | Size of bracket | +| ```extrusion_inner_corner_bracket_size(type)``` | Size of inner bracket | + +### Modules +| Module | Description | +|:--- |:--- | +| ```extrusion_corner_bracket(type)``` | Corner bracket for extrusion | +| ```extrusion_corner_bracket_assembly(type, part_thickness = 2, screw_type = M4_cap_screw, nut_type = M4_sliding_t_nut, max_screw_depth = 6)``` | Assembly with fasteners in place | +| ```extrusion_corner_bracket_hole_positions(type)``` | Place children at hole positions | +| ```extrusion_inner_corner_bracket(type, grub_screws = true)``` | Inner corner bracket for extrusion | + +![extrusion_brackets](tests/png/extrusion_brackets.png) + +### Vitamins +| Qty | Module call | BOM entry | +| ---:|:--- |:---| +| 1 | ```extrusion(E2020, 20)``` | Extrusion E2020 x 20mm | +| 1 | ```extrusion(E2020, 30)``` | Extrusion E2020 x 30mm | +| 1 | ```extrusion(E2020, 40)``` | Extrusion E2020 x 40mm | +| 1 | ```extrusion(E2020, 50)``` | Extrusion E2020 x 50mm | +| 2 | ```extrusion_corner_bracket(E20_corner_bracket)``` | Extrusion corner bracket 20 | +| 2 | ```extrusion_inner_corner_bracket(E20_inner_corner_bracket, true)``` | Extrusion inner corner bracket 4.5 | +| 1 | ```extrusion_inner_corner_bracket(E20_inner_corner_bracket, false)``` | Extrusion inner corner bracket 4.5 | +| 4 | ```sliding_t_nut(M4_sliding_t_nut)``` | Nut M4 sliding T | +| 4 | ```screw(M4_cap_screw, 8)``` | Screw M4 cap x 8mm | +| 4 | ```washer(M4_washer)``` | Washer M4 x 9mm x 0.8mm | + + Top --- diff --git a/tests/extrusion_brackets.scad b/tests/extrusion_brackets.scad index acb4d04..d43d11b 100644 --- a/tests/extrusion_brackets.scad +++ b/tests/extrusion_brackets.scad @@ -1,5 +1,5 @@ // -// NopSCADlib Copyright Chris Palmer 2018 +// NopSCADlib Copyright Chris Palmer 2020 // nop.head@gmail.com // hydraraptor.blogspot.com // @@ -58,4 +58,3 @@ module extrusion_brackets() { if($preview) let($show_threads = true) extrusion_brackets(); - diff --git a/tests/png/extrusion_brackets.png b/tests/png/extrusion_brackets.png new file mode 100644 index 0000000..aa612ae Binary files /dev/null and b/tests/png/extrusion_brackets.png differ diff --git a/vitamins/extrusion_bracket.scad b/vitamins/extrusion_bracket.scad index 4cab760..1334cb6 100644 --- a/vitamins/extrusion_bracket.scad +++ b/vitamins/extrusion_bracket.scad @@ -1,13 +1,34 @@ +// +// NopSCADlib Copyright Chris Palmer 2020 +// nop.head@gmail.com +// hydraraptor.blogspot.com +// +// This file is part of NopSCADlib. +// +// NopSCADlib is free software: you can redistribute it and/or modify it under the terms of the +// GNU General Public License as published by the Free Software Foundation, either version 3 of +// the License, or (at your option) any later version. +// +// NopSCADlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// See the GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along with NopSCADlib. +// If not, see . +// + +//! Brackets for joining extrusions at a corner. + include include include -function extrusion_inner_corner_racket_size(type) = type[1]; //! Size of bracket +function extrusion_inner_corner_bracket_size(type) = type[1]; //! Size of inner bracket module extrusion_inner_corner_bracket(type, grub_screws = true) { //! Inner corner bracket for extrusion vitamin(str("extrusion_inner_corner_bracket(", type[0], ", ", grub_screws, "): Extrusion inner corner bracket ", type[1].z)); - size = extrusion_inner_corner_racket_size(type); + size = extrusion_inner_corner_bracket_size(type); armLength = size.x; bottomTabOffset = 4; topTabOffset = 10; @@ -116,4 +137,3 @@ module extrusion_corner_bracket_assembly(type, part_thickness = 2, screw_type = sliding_t_nut(nut_type); } } -