mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-18 21:22:58 +02:00
Added Lichuan servo motors contributed by Niclas Hedhman.
This commit is contained in:
1
lib.scad
1
lib.scad
@@ -55,6 +55,7 @@ include <vitamins/pulleys.scad>
|
||||
include <vitamins/ring_terminals.scad>
|
||||
include <vitamins/rails.scad>
|
||||
include <vitamins/rod.scad>
|
||||
include <vitamins/servo_motors.scad>
|
||||
include <vitamins/shaft_couplings.scad>
|
||||
include <vitamins/sheets.scad>
|
||||
include <vitamins/sk_brackets.scad>
|
||||
|
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 907 KiB After Width: | Height: | Size: 907 KiB |
@@ -92,6 +92,7 @@ use <tests/rockers.scad>
|
||||
use <tests/rod.scad>
|
||||
use <tests/screws.scad>
|
||||
use <tests/sealing_strip.scad>
|
||||
//use <tests/servo_motors.scad>
|
||||
use <tests/shaft_couplings.scad>
|
||||
use <tests/sheets.scad>
|
||||
use <tests/SK_brackets.scad>
|
||||
@@ -430,13 +431,14 @@ cable_strip_y = sheets_y;
|
||||
box_sections_y = batteries_y;
|
||||
BLDC_y = steppers_y;
|
||||
|
||||
*translate([0, transformers_y])
|
||||
servo_motors();
|
||||
|
||||
translate([x4 + 200, belts_y + 58]) {
|
||||
belt_test();
|
||||
|
||||
translate([0, 60])
|
||||
opengrab_test();
|
||||
|
||||
}
|
||||
|
||||
translate([x4 + 175, belts_y, -20])
|
||||
|
87
readme.md
87
readme.md
@@ -30,22 +30,22 @@ A list of changes classified as breaking, additions or fixes is maintained in [C
|
||||
<tr><td> <a href = "#Blowers">Blowers</a> </td><td> <a href = "#Leadnuts">Leadnuts</a> </td><td> <a href = "#SSRs">SSRs</a> </td><td> <a href = "#Door_hinge">Door_hinge</a> </td><td> <a href = "#Gears">Gears</a> </td><td> <a href = "#Teardrops">Teardrops</a> </td></tr>
|
||||
<tr><td> <a href = "#Box_sections">Box_sections</a> </td><td> <a href = "#Light_strips">Light_strips</a> </td><td> <a href = "#Screws">Screws</a> </td><td> <a href = "#Door_latch">Door_latch</a> </td><td> <a href = "#Hanging_hole">Hanging_hole</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Bulldogs">Bulldogs</a> </td><td> <a href = "#Linear_bearings">Linear_bearings</a> </td><td> <a href = "#Sealing_strip">Sealing_strip</a> </td><td> <a href = "#Drag_chain">Drag_chain</a> </td><td> <a href = "#Horiholes">Horiholes</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Buttons">Buttons</a> </td><td> <a href = "#Magnets">Magnets</a> </td><td> <a href = "#Shaft_couplings">Shaft_couplings</a> </td><td> <a href = "#Fan_guard">Fan_guard</a> </td><td> <a href = "#Layout">Layout</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Cable_strips">Cable_strips</a> </td><td> <a href = "#Mains_sockets">Mains_sockets</a> </td><td> <a href = "#Sheets">Sheets</a> </td><td> <a href = "#Fixing_block">Fixing_block</a> </td><td> <a href = "#Maths">Maths</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Cameras">Cameras</a> </td><td> <a href = "#Microswitches">Microswitches</a> </td><td> <a href = "#Spades">Spades</a> </td><td> <a href = "#Flat_hinge">Flat_hinge</a> </td><td> <a href = "#Offset">Offset</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Circlips">Circlips</a> </td><td> <a href = "#Microview">Microview</a> </td><td> <a href = "#Spools">Spools</a> </td><td> <a href = "#Foot">Foot</a> </td><td> <a href = "#Quadrant">Quadrant</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Components">Components</a> </td><td> <a href = "#Modules">Modules</a> </td><td> <a href = "#Springs">Springs</a> </td><td> <a href = "#Handle">Handle</a> </td><td> <a href = "#Round">Round</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#DIP">DIP</a> </td><td> <a href = "#Nuts">Nuts</a> </td><td> <a href = "#Stepper_motors">Stepper_motors</a> </td><td> <a href = "#PCB_mount">PCB_mount</a> </td><td> <a href = "#Rounded_cylinder">Rounded_cylinder</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#D_connectors">D_connectors</a> </td><td> <a href = "#O_ring">O_ring</a> </td><td> <a href = "#Swiss_clips">Swiss_clips</a> </td><td> <a href = "#PSU_shroud">PSU_shroud</a> </td><td> <a href = "#Rounded_polygon">Rounded_polygon</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Displays">Displays</a> </td><td> <a href = "#Opengrab">Opengrab</a> </td><td> <a href = "#Toggles">Toggles</a> </td><td> <a href = "#Pocket_handle">Pocket_handle</a> </td><td> <a href = "#Rounded_triangle">Rounded_triangle</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Extrusion_brackets">Extrusion_brackets</a> </td><td> <a href = "#PCB">PCB</a> </td><td> <a href = "#Transformers">Transformers</a> </td><td> <a href = "#Press_fit">Press_fit</a> </td><td> <a href = "#Sector">Sector</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Extrusions">Extrusions</a> </td><td> <a href = "#PCBs">PCBs</a> </td><td> <a href = "#Tubings">Tubings</a> </td><td> <a href = "#Printed_box">Printed_box</a> </td><td> <a href = "#Sweep">Sweep</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Fans">Fans</a> </td><td> <a href = "#PSUs">PSUs</a> </td><td> <a href = "#Variacs">Variacs</a> </td><td> <a href = "#Printed_pulleys">Printed_pulleys</a> </td><td> <a href = "#Thread">Thread</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Fuseholder">Fuseholder</a> </td><td> <a href = "#Panel_meters">Panel_meters</a> </td><td> <a href = "#Veroboard">Veroboard</a> </td><td> <a href = "#Ribbon_clamp">Ribbon_clamp</a> </td><td> <a href = "#Tube">Tube</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Geared_steppers">Geared_steppers</a> </td><td> <a href = "#Pillars">Pillars</a> </td><td> <a href = "#Washers">Washers</a> </td><td> <a href = "#SSR_shroud">SSR_shroud</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Green_terminals">Green_terminals</a> </td><td> <a href = "#Pillow_blocks">Pillow_blocks</a> </td><td> <a href = "#Wire">Wire</a> </td><td> <a href = "#Screw_knob">Screw_knob</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Hot_ends">Hot_ends</a> </td><td> <a href = "#Pin_headers">Pin_headers</a> </td><td> <a href = "#Zipties">Zipties</a> </td><td> <a href = "#Socket_box">Socket_box</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Hygrometer">Hygrometer</a> </td><td> <a href = "#Pulleys">Pulleys</a> </td><td></td><td> <a href = "#Strap_handle">Strap_handle</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Buttons">Buttons</a> </td><td> <a href = "#Magnets">Magnets</a> </td><td> <a href = "#Servo_motors">Servo_motors</a> </td><td> <a href = "#Fan_guard">Fan_guard</a> </td><td> <a href = "#Layout">Layout</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Cable_strips">Cable_strips</a> </td><td> <a href = "#Mains_sockets">Mains_sockets</a> </td><td> <a href = "#Shaft_couplings">Shaft_couplings</a> </td><td> <a href = "#Fixing_block">Fixing_block</a> </td><td> <a href = "#Maths">Maths</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Cameras">Cameras</a> </td><td> <a href = "#Microswitches">Microswitches</a> </td><td> <a href = "#Sheets">Sheets</a> </td><td> <a href = "#Flat_hinge">Flat_hinge</a> </td><td> <a href = "#Offset">Offset</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Circlips">Circlips</a> </td><td> <a href = "#Microview">Microview</a> </td><td> <a href = "#Spades">Spades</a> </td><td> <a href = "#Foot">Foot</a> </td><td> <a href = "#Quadrant">Quadrant</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Components">Components</a> </td><td> <a href = "#Modules">Modules</a> </td><td> <a href = "#Spools">Spools</a> </td><td> <a href = "#Handle">Handle</a> </td><td> <a href = "#Round">Round</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#DIP">DIP</a> </td><td> <a href = "#Nuts">Nuts</a> </td><td> <a href = "#Springs">Springs</a> </td><td> <a href = "#PCB_mount">PCB_mount</a> </td><td> <a href = "#Rounded_cylinder">Rounded_cylinder</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#D_connectors">D_connectors</a> </td><td> <a href = "#O_ring">O_ring</a> </td><td> <a href = "#Stepper_motors">Stepper_motors</a> </td><td> <a href = "#PSU_shroud">PSU_shroud</a> </td><td> <a href = "#Rounded_polygon">Rounded_polygon</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Displays">Displays</a> </td><td> <a href = "#Opengrab">Opengrab</a> </td><td> <a href = "#Swiss_clips">Swiss_clips</a> </td><td> <a href = "#Pocket_handle">Pocket_handle</a> </td><td> <a href = "#Rounded_triangle">Rounded_triangle</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Extrusion_brackets">Extrusion_brackets</a> </td><td> <a href = "#PCB">PCB</a> </td><td> <a href = "#Toggles">Toggles</a> </td><td> <a href = "#Press_fit">Press_fit</a> </td><td> <a href = "#Sector">Sector</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Extrusions">Extrusions</a> </td><td> <a href = "#PCBs">PCBs</a> </td><td> <a href = "#Transformers">Transformers</a> </td><td> <a href = "#Printed_box">Printed_box</a> </td><td> <a href = "#Sweep">Sweep</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Fans">Fans</a> </td><td> <a href = "#PSUs">PSUs</a> </td><td> <a href = "#Tubings">Tubings</a> </td><td> <a href = "#Printed_pulleys">Printed_pulleys</a> </td><td> <a href = "#Thread">Thread</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Fuseholder">Fuseholder</a> </td><td> <a href = "#Panel_meters">Panel_meters</a> </td><td> <a href = "#Variacs">Variacs</a> </td><td> <a href = "#Ribbon_clamp">Ribbon_clamp</a> </td><td> <a href = "#Tube">Tube</a> </td><td></td></tr>
|
||||
<tr><td> <a href = "#Geared_steppers">Geared_steppers</a> </td><td> <a href = "#Pillars">Pillars</a> </td><td> <a href = "#Veroboard">Veroboard</a> </td><td> <a href = "#SSR_shroud">SSR_shroud</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Green_terminals">Green_terminals</a> </td><td> <a href = "#Pillow_blocks">Pillow_blocks</a> </td><td> <a href = "#Washers">Washers</a> </td><td> <a href = "#Screw_knob">Screw_knob</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Hot_ends">Hot_ends</a> </td><td> <a href = "#Pin_headers">Pin_headers</a> </td><td> <a href = "#Wire">Wire</a> </td><td> <a href = "#Socket_box">Socket_box</a> </td><td></td><td></td></tr>
|
||||
<tr><td> <a href = "#Hygrometer">Hygrometer</a> </td><td> <a href = "#Pulleys">Pulleys</a> </td><td> <a href = "#Zipties">Zipties</a> </td><td> <a href = "#Strap_handle">Strap_handle</a> </td><td></td><td></td></tr>
|
||||
</table>
|
||||
|
||||
---
|
||||
@@ -3226,6 +3226,61 @@ Sealing strip from B&Q used to seal around the door of 3D printers.
|
||||
| 1 | `sealing_strip(100)` | Sealing strip 10mm x 4mm x 100mm |
|
||||
|
||||
|
||||
<a href="#top">Top</a>
|
||||
|
||||
---
|
||||
<a name="Servo_motors"></a>
|
||||
## Servo_motors
|
||||
BLDC servos for CNC machines
|
||||
|
||||
[vitamins/servo_motors.scad](vitamins/servo_motors.scad) Object definitions.
|
||||
|
||||
[vitamins/servo_motor.scad](vitamins/servo_motor.scad) Implementation.
|
||||
|
||||
[tests/servo_motors.scad](tests/servo_motors.scad) Code for this example.
|
||||
|
||||
### Properties
|
||||
| Function | Description |
|
||||
|:--- |:--- |
|
||||
| `faceplate_boss_size(type)` | Centre boss outer d, inner d and height |
|
||||
| `faceplate_hole_dia(type)` | Screw hole size |
|
||||
| `faceplate_hole_pitch(type)` | Screw hole pitch |
|
||||
| `faceplate_thickness(type)` | Thickness of the faceplate |
|
||||
| `faceplate_width(type)` | Width of faceplate |
|
||||
| `servo_motor_cap(type)` | Diameter height and corner radius of encoder cover |
|
||||
| `servo_motor_faceplate(type)` | Face plate type |
|
||||
| `servo_motor_length(type)` | Total length from the faceplate |
|
||||
| `servo_motor_shaft(type)` | Shaft type |
|
||||
| `shaft_diameter(type)` | Shaft diameter |
|
||||
| `shaft_key_size(type)` | None |
|
||||
| `shaft_length(type)` | Shaft length |
|
||||
| `shaft_type(type)` | String to indicate the shaft type |
|
||||
|
||||
### Functions
|
||||
| Function | Description |
|
||||
|:--- |:--- |
|
||||
| `servo_motor_width(type)` | Width of the motor body |
|
||||
|
||||
### Modules
|
||||
| Module | Description |
|
||||
|:--- |:--- |
|
||||
| `faceplate_screw_positions(type)` | Position children at faceplate screw positions |
|
||||
| `motor_faceplate(type)` | Draw specified motor faceplate |
|
||||
| `motor_shaft(type)` | Draw the specified motor shaft |
|
||||
| `servo_motor(type)` | Draw the specified servo |
|
||||
| `servo_screw_positions(type)` | Position children at screw positions |
|
||||
|
||||

|
||||
|
||||
### Vitamins
|
||||
| Qty | Module call | BOM entry |
|
||||
| ---:|:--- |:---|
|
||||
| 1 | `servo_motor(Lichuan_M01330_80ST) ` | Servo Lichuan LCMT07L02NB-80M01330B 80ST mount 80 x 123mm |
|
||||
| 1 | `servo_motor(Lichuan_M02430_80ST) ` | Servo Lichuan LCMT07L02NB-80M02430B 80ST mount 80 x 150mm |
|
||||
| 1 | `servo_motor(Lichuan_M03530_80ST) ` | Servo Lichuan LCMT07L02NB-80M03530B 80ST mount 80 x 178mm |
|
||||
| 1 | `servo_motor(Lichuan_M04030_80ST) ` | Servo Lichuan LCMT07L02NB-80M04030B 80ST mount 80 x 190mm |
|
||||
|
||||
|
||||
<a href="#top">Top</a>
|
||||
|
||||
---
|
||||
|
BIN
tests/png/servo_motors.png
Normal file
BIN
tests/png/servo_motors.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
31
tests/servo_motors.scad
Normal file
31
tests/servo_motors.scad
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// NopSCADlib Copyright Chris Palmer 2021
|
||||
// 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 <https://www.gnu.org/licenses/>.
|
||||
//
|
||||
include <../core.scad>
|
||||
use <../utils/layout.scad>
|
||||
|
||||
include <../vitamins/servo_motors.scad>
|
||||
|
||||
module servo_motors()
|
||||
layout([for(s = servo_motors) servo_motor_width(s)], 10) let(s = servo_motors[$i]) {
|
||||
rotate(-90) // Show the keyway
|
||||
servo_motor(s);
|
||||
}
|
||||
|
||||
if($preview)
|
||||
servo_motors();
|
140
vitamins/servo_motor.scad
Normal file
140
vitamins/servo_motor.scad
Normal file
@@ -0,0 +1,140 @@
|
||||
//
|
||||
// NopSCADlib Copyright Niclas Hedhman 2018
|
||||
// niclas@hedhman.org
|
||||
//
|
||||
// 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
//
|
||||
//! BLDC servos for CNC machines
|
||||
//
|
||||
|
||||
include <../core.scad>
|
||||
include <../utils/tube.scad>
|
||||
include <../utils/round.scad>
|
||||
include <../utils/quadrant.scad>
|
||||
include <../utils/rounded_cylinder.scad>
|
||||
|
||||
function servo_motor_cap(type) = type[2]; //! Diameter height and corner radius of encoder cover
|
||||
function servo_motor_length(type) = type[3]; //! Total length from the faceplate
|
||||
function servo_motor_shaft(type) = type[4]; //! Shaft type
|
||||
function servo_motor_faceplate(type) = type[5]; //! Face plate type
|
||||
|
||||
function faceplate_width(type) = type[1]; //! Width of faceplate
|
||||
function faceplate_thickness(type) = type[2]; //! Thickness of the faceplate
|
||||
function faceplate_boss_size(type) = type[3]; //! Centre boss outer d, inner d and height
|
||||
function faceplate_hole_pitch(type) = type[4]; //! Screw hole pitch
|
||||
function faceplate_hole_dia(type) = type[5]; //! Screw hole size
|
||||
|
||||
function servo_motor_width(type) = faceplate_width(servo_motor_faceplate(type)); //! Width of the motor body
|
||||
|
||||
function shaft_type(type) = type[0]; //! String to indicate the shaft type
|
||||
function shaft_diameter(type) = type[1]; //! Shaft diameter
|
||||
function shaft_length(type) = type[2]; //! Shaft length
|
||||
function shaft_key_size(type) = type[3]; //! Keyway [length, width, depth]
|
||||
|
||||
module servo_motor(type) { //! Draw the specified servo
|
||||
fplate = servo_motor_faceplate(type);
|
||||
t = faceplate_thickness(fplate);
|
||||
w = servo_motor_width(type);
|
||||
inset = (w - faceplate_hole_pitch(fplate)) / 2;
|
||||
cap = servo_motor_cap(type);
|
||||
l = servo_motor_length(type);
|
||||
|
||||
vitamin(str("servo_motor(", type[0], ") : Servo ", type[1], " ", fplate[0], " mount ", servo_motor_width(type), " x ", servo_motor_length(type), "mm"));
|
||||
|
||||
color(grey(20))
|
||||
translate_z(-l + cap.z) {
|
||||
linear_extrude(l - t - cap.z)
|
||||
round(2)
|
||||
difference() {
|
||||
square([w, w], center = true);
|
||||
|
||||
faceplate_screw_positions(fplate)
|
||||
rotate($i * 90 + 180)
|
||||
quadrant(w = 2 * inset, r = inset, center = true);
|
||||
}
|
||||
|
||||
vflip()
|
||||
rounded_cylinder(r = cap.x / 2, r2 = cap.y, h = cap.z);
|
||||
}
|
||||
|
||||
motor_shaft(servo_motor_shaft(type));
|
||||
|
||||
motor_faceplate(fplate);
|
||||
}
|
||||
|
||||
module motor_shaft(type) { //! Draw the specified motor shaft
|
||||
diameter = shaft_diameter(type);
|
||||
length = shaft_length(type);
|
||||
key_size = shaft_key_size(type);
|
||||
key_r = key_size.y / 2;
|
||||
|
||||
color("silver")
|
||||
if( shaft_type(type) == "keyed" ) {
|
||||
render() difference() {
|
||||
cylinder(h = length, d = diameter);
|
||||
|
||||
translate([diameter / 2, 0, length])
|
||||
rotate([0, 90, 0])
|
||||
slot(r = key_r, l = 2 * (key_size.x - key_r), h = 2 * key_size.z);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module servo_screw_positions(type) //! Position children at screw positions
|
||||
faceplate_screw_positions(servo_motor_faceplate(type))
|
||||
children();
|
||||
|
||||
module faceplate_screw_positions(type) //! Position children at faceplate screw positions
|
||||
for($i = [0 : 3])
|
||||
let(corner = [[1, 1], [-1, 1], [-1,-1], [1, -1]][$i], pitch = faceplate_hole_pitch(type))
|
||||
translate(corner * pitch / 2)
|
||||
children();
|
||||
|
||||
module motor_faceplate(type) { //! Draw specified motor faceplate
|
||||
w = faceplate_width(type);
|
||||
t = faceplate_thickness(type);
|
||||
boss = faceplate_boss_size(type);
|
||||
boss_r = boss[0] / 2;
|
||||
boss_ir = boss[1] / 2;
|
||||
boss_t = boss.z;
|
||||
rad = 5; // corner radius
|
||||
|
||||
translate_z(-t) {
|
||||
color(silver)
|
||||
linear_extrude(t)
|
||||
difference() {
|
||||
rounded_square([w - eps, w - eps], rad);
|
||||
|
||||
faceplate_screw_positions(type)
|
||||
circle(d = faceplate_hole_dia(type));
|
||||
}
|
||||
|
||||
color(grey(10))
|
||||
translate_z(eps)
|
||||
linear_extrude(t - 2 * eps)
|
||||
difference() {
|
||||
rounded_square([w, w], rad);
|
||||
|
||||
faceplate_screw_positions(type)
|
||||
circle(d = faceplate_hole_dia(type) + eps);
|
||||
}
|
||||
}
|
||||
|
||||
color(grey(10))
|
||||
tube(h = boss_t, or = boss_r - eps, ir = boss_ir + eps, center = false);
|
||||
|
||||
color(silver)
|
||||
tube(h = boss_t - eps, or = boss_r, ir = boss_ir, center = false);
|
||||
}
|
33
vitamins/servo_motors.scad
Normal file
33
vitamins/servo_motors.scad
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// NopSCADlib Copyright Niclas Hedhman 2018
|
||||
// niclas@hedhman.org
|
||||
//
|
||||
// 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
// type w, t, boss, pitch, screw dia
|
||||
80ST_faceplate = [ "80ST", 80, 8, [70, 34, 3], 63.63, 6 ];
|
||||
|
||||
// type, dia, len, key length, width, depth
|
||||
Shaft_19mm_keyed = [ "keyed", 19, 35, [25, 6, 3.5] ];
|
||||
|
||||
// Code, Description, Cap, Length, Shaft, Faceplate
|
||||
Lichuan_M01330_80ST = [ "Lichuan_M01330_80ST", "Lichuan LCMT07L02NB-80M01330B", [70, 3, 38], 123, Shaft_19mm_keyed, 80ST_faceplate ];
|
||||
Lichuan_M02430_80ST = [ "Lichuan_M02430_80ST", "Lichuan LCMT07L02NB-80M02430B", [70, 3, 38], 150, Shaft_19mm_keyed, 80ST_faceplate ];
|
||||
Lichuan_M03530_80ST = [ "Lichuan_M03530_80ST", "Lichuan LCMT07L02NB-80M03530B", [70, 3, 38], 178, Shaft_19mm_keyed, 80ST_faceplate ];
|
||||
Lichuan_M04030_80ST = [ "Lichuan_M04030_80ST", "Lichuan LCMT07L02NB-80M04030B", [70, 3, 38], 190, Shaft_19mm_keyed, 80ST_faceplate ];
|
||||
|
||||
servo_motors = [Lichuan_M01330_80ST, Lichuan_M02430_80ST, Lichuan_M03530_80ST, Lichuan_M04030_80ST];
|
||||
|
||||
use <servo_motor.scad>
|
Reference in New Issue
Block a user