diff --git a/lib.scad b/lib.scad index 4b31f33..4c9c24d 100644 --- a/lib.scad +++ b/lib.scad @@ -28,6 +28,7 @@ include include include include +include include include include diff --git a/libtest.png b/libtest.png index 54c1cd4..4c9d0f6 100644 Binary files a/libtest.png and b/libtest.png differ diff --git a/libtest.scad b/libtest.scad index cda2a62..f42ac1f 100644 --- a/libtest.scad +++ b/libtest.scad @@ -45,6 +45,7 @@ use use use use +use use use use @@ -427,7 +428,9 @@ extrusion_brackets_y = rails_y + 250; sk_brackets_y = extrusion_brackets_y + 80; kp_pillow_blocks_y = sk_brackets_y + 50; scs_bearing_blocks_y = kp_pillow_blocks_y + 60; -box_sections_y = sheets_y; +cable_strip_y = fans_y + 50; +box_sections_y = cable_strip_y; +BLDC_y = sheets_y; translate([x4 + 200, belts_y + 58]) { belt_test(); @@ -443,7 +446,7 @@ translate([x4 + 175, belts_y, -20]) translate([x4, rails_y + 130]) rails(); -translate([770, fans_y + 50]) +translate([770, cable_strip_y]) cable_strips(); translate([x4, kp_pillow_blocks_y]) @@ -461,7 +464,10 @@ translate([x4 + 120, extrusion_brackets_y]) translate([x4, scs_bearing_blocks_y]) scs_bearing_blocks(); -translate([x4, box_sections_y]) +translate([x4, BLDC_y]) + bldc_motors(); + +translate([x6, box_sections_y]) box_sections(); translate([x6, 125]) diff --git a/readme.md b/readme.md index c087a73..d8416d9 100644 --- a/readme.md +++ b/readme.md @@ -22,30 +22,30 @@ A list of changes classified as breaking, additions or fixes is maintained in [C - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
Vitamins A-H Vitamins I-Q Vitamins R-Z Printed Utilities Core Utilities
Axials IECs Rails Box Annotation BOM
Ball_bearings Inserts Ring_terminals Butt_box Bezier Clip
Batteries Jack Rockers Cable_grommets Catenary Global
Bearing_blocks LDRs Rod Camera_housing Core_xy Polyholes
Belts LED_meters SK_brackets Carriers Dogbones Rounded_rectangle
Blowers LEDs SMDs Corner_block Fillet Sphere
Box_sections Leadnuts SSRs Door_hinge Gears Teardrops
Bulldogs Light_strips Screws Door_latch Hanging_hole
Buttons Linear_bearings Sealing_strip Drag_chain Horiholes
Cable_strips Magnets Shaft_couplings Fan_guard Layout
Cameras Mains_sockets Sheets Fixing_block Maths
Circlips Microswitches Spades Flat_hinge Offset
Components Microview Spools Foot Quadrant
DIP Modules Springs Handle Round
D_connectors Nuts Stepper_motors PCB_mount Rounded_cylinder
Displays O_ring Swiss_clips PSU_shroud Rounded_polygon
Extrusion_brackets Opengrab Toggles Pocket_handle Rounded_triangle
Extrusions PCB Transformers Press_fit Sector
Fans PCBs Tubings Printed_box Sweep
Fuseholder PSUs Variacs Printed_pulleys Thread
Geared_steppers Panel_meters Veroboard Ribbon_clamp Tube
Green_terminals Pillars Washers SSR_shroud
Hot_ends Pillow_blocks Wire Screw_knob
Hygrometer Pin_headers Zipties Socket_box
Pulleys Strap_handle
BLDC_motors Inserts Ring_terminals Butt_box Bezier Clip
Ball_bearings Jack Rockers Cable_grommets Catenary Global
Batteries LDRs Rod Camera_housing Core_xy Polyholes
Bearing_blocks LED_meters SK_brackets Carriers Dogbones Rounded_rectangle
Belts LEDs SMDs Corner_block Fillet Sphere
Blowers Leadnuts SSRs Door_hinge Gears Teardrops
Box_sections Light_strips Screws Door_latch Hanging_hole
Bulldogs Linear_bearings Sealing_strip Drag_chain Horiholes
Buttons Magnets Shaft_couplings Fan_guard Layout
Cable_strips Mains_sockets Sheets Fixing_block Maths
Cameras Microswitches Spades Flat_hinge Offset
Circlips Microview Spools Foot Quadrant
Components Modules Springs Handle Round
DIP Nuts Stepper_motors PCB_mount Rounded_cylinder
D_connectors O_ring Swiss_clips PSU_shroud Rounded_polygon
Displays Opengrab Toggles Pocket_handle Rounded_triangle
Extrusion_brackets PCB Transformers Press_fit Sector
Extrusions PCBs Tubings Printed_box Sweep
Fans PSUs Variacs Printed_pulleys Thread
Fuseholder Panel_meters Veroboard Ribbon_clamp Tube
Geared_steppers Pillars Washers SSR_shroud
Green_terminals Pillow_blocks Wire Screw_knob
Hot_ends Pin_headers Zipties Socket_box
Hygrometer Pulleys Strap_handle
--- @@ -334,6 +334,73 @@ Individual teeth are not drawn, instead they are represented by a lighter colour | 6 | `screw(M3_grub_screw, 6)` | Screw M3 grub x 6mm | +Top + +--- + +## BLDC_motors + Brushless DC electric motor + +[vitamins/bldc_motors.scad](vitamins/bldc_motors.scad) Object definitions. + +[vitamins/bldc_motor.scad](vitamins/bldc_motor.scad) Implementation. + +[tests/BLDC_motors.scad](tests/BLDC_motors.scad) Code for this example. + +### Properties +| Function | Description | +|:--- |:--- | +| `BLDC_base_diameter(type)` | Base diameter | +| `BLDC_base_height_1(type)` | Base height 1 | +| `BLDC_base_height_2(type)` | Base height 2 | +| `BLDC_base_hole_diameter(type)` | Base hole diameter | +| `BLDC_base_holes(type)` | Base holes | +| `BLDC_base_open(type)` | Base open | +| `BLDC_bell_diameter(type)` | Bell diameter | +| `BLDC_bell_height_1(type)` | Bell height 1 | +| `BLDC_bell_height_2(type)` | Bell height 2 | +| `BLDC_bell_hole_diameter(type)` | Bell hole diameter | +| `BLDC_bell_holes(type)` | Bell holes | +| `BLDC_bell_spokes(type)` | Bell spoke count | +| `BLDC_body_colour(type)` | Body colour | +| `BLDC_boss_diameter(type)` | Boss diameter | +| `BLDC_boss_height(type)` | Boss height | +| `BLDC_diameter(type)` | Diameter of motor | +| `BLDC_height(type)` | Height of motor including boss, if any, but excluding prop shaft | +| `BLDC_prop_shaft_diameter(type)` | Diameter of unthreaded portion of prop shaft | +| `BLDC_prop_shaft_length(type)` | Prop shaft length, including threaded section | +| `BLDC_prop_shaft_thread_diameter(type)` | Diameter of threaded section of prop shaft | +| `BLDC_prop_shaft_thread_length(type)` | Length of threaded section of prop shaft | +| `BLDC_shaft_diameter(type)` | shaft diameter | +| `BLDC_shaft_length(type)` | Total shaft length | +| `BLDC_shaft_offset(type)` | shaft offset from base | +| `BLDC_side_colour(type)` | Side colour | +| `BLDC_wire_diameter(type)` | Wire diameter | + +### Modules +| Module | Description | +|:--- |:--- | +| `BLDC(type)` | Draw specified BLDC motor | +| `BLDC_base_screw_positions(type, n = 4)` | Positions children at the base screw holes | +| `BLDC_bell_screw_positions(type, n = 4)` | Positions children at the bell screw holes | +| `BLDC_screw_positions(holes, n = 4)` | Screw positions utility function | + +![bldc_motors](tests/png/bldc_motors.png) + +### Vitamins +| Qty | Module call | BOM entry | +| ---:|:--- |:---| +| 1 | `BLDC(BLDC0603)` | Brushless DC motor BLDC0603 | +| 1 | `BLDC(BLDC0802)` | Brushless DC motor BLDC0802 | +| 1 | `BLDC(BLDC1105)` | Brushless DC motor BLDC1105 | +| 1 | `BLDC(BLDC1306)` | Brushless DC motor BLDC1306 | +| 1 | `BLDC(BLDC1804)` | Brushless DC motor BLDC1804 | +| 1 | `BLDC(BLDC2205)` | Brushless DC motor BLDC2205 | +| 1 | `BLDC(BLDC2212)` | Brushless DC motor BLDC2212 | +| 1 | `BLDC(BLDC3548)` | Brushless DC motor BLDC3548 | +| 1 | `BLDC(BLDC4250)` | Brushless DC motor BLDC4250 | + + Top --- diff --git a/tests/png/bldc_motors.png b/tests/png/bldc_motors.png new file mode 100644 index 0000000..e8d3eee Binary files /dev/null and b/tests/png/bldc_motors.png differ