NopSCADlib/libtest.scad

465 lines
9.9 KiB
OpenSCAD
Raw Normal View History

2019-06-08 17:10:47 -04:00
//
// NopSCADlib Copyright Chris Palmer 2018
// 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/>.
//
//!# NopSCADlib
//! An ever expanding library of parts modelled in OpenSCAD useful for 3D printers and enclosures for electronics, etc.
//!
//! It contains lots of vitamins (the RepRap term for non-printed parts), some general purpose printed parts and some utilities.
//! There are also Python scripts to generate Bills of Materials (BOMs),
//! STL files for all the printed parts, DXF files for CNC routed parts in a project and a manual containing assembly
//! instructions and exploded views by scraping markdown embedded in OpenSCAD comments, [see scripts](scripts/readme.md).
//!
//! A simple example project can be found [here](examples/MainsBreakOutBox/readme.md).
//!
//! For more examples of what it can make see the [gallery](gallery/readme.md).
//!
//! The license is GNU General Public License v3.0, see [COPYING](COPYING).
//!
//! See [usage](docs/usage.md) for requirements, installation instructions and a usage guide.
//!
2021-03-03 09:12:21 -05:00
//! A list of changes classified as breaking, additions or fixes is maintained in [CHANGELOG.md](CHANGELOG.md).
//!
//! <img src="libtest.png" width="100%"/>
2019-06-08 17:10:47 -04:00
//
// This file shows all the parts in the library.
//
include <lib.scad>
use <tests/ball_bearings.scad>
use <tests/batteries.scad>
use <tests/belts.scad>
use <tests/blowers.scad>
use <tests/bulldogs.scad>
use <tests/buttons.scad>
use <tests/cable_strips.scad>
use <tests/cameras.scad>
2020-11-13 17:43:55 -05:00
use <tests/camera_housing.scad>
2020-03-24 13:22:32 -04:00
use <tests/circlips.scad>
2019-06-08 17:10:47 -04:00
use <tests/components.scad>
use <tests/d_connectors.scad>
use <tests/displays.scad>
2020-11-18 11:25:45 -05:00
use <tests/drag_chain.scad>
use <tests/extrusions.scad>
use <tests/extrusion_brackets.scad>
2019-06-08 17:10:47 -04:00
use <tests/fans.scad>
use <tests/fuseholder.scad>
use <tests/geared_steppers.scad>
2019-06-08 17:10:47 -04:00
use <tests/hot_ends.scad>
use <tests/IECs.scad>
2019-06-08 17:10:47 -04:00
use <tests/inserts.scad>
use <tests/jack.scad>
use <tests/KP_pillow_blocks.scad>
2019-06-08 17:10:47 -04:00
use <tests/leadnuts.scad>
use <tests/LDRs.scad>
use <tests/LEDs.scad>
2019-06-08 17:10:47 -04:00
use <tests/light_strips.scad>
use <tests/linear_bearings.scad>
use <tests/LED_meters.scad>
2020-08-23 11:46:29 -04:00
use <tests/magnets.scad>
2019-06-08 17:10:47 -04:00
use <tests/microswitches.scad>
use <tests/modules.scad>
use <tests/nuts.scad>
use <tests/o_ring.scad>
use <tests/opengrab.scad>
use <tests/panel_meters.scad>
use <tests/PCBs.scad>
2019-06-08 17:10:47 -04:00
use <tests/pillars.scad>
2020-11-27 13:13:01 -05:00
use <tests/press_fit.scad>
use <tests/PSUs.scad>
2019-06-08 17:10:47 -04:00
use <tests/pulleys.scad>
use <tests/rails.scad>
use <tests/ring_terminals.scad>
use <tests/rockers.scad>
use <tests/rod.scad>
use <tests/screws.scad>
use <tests/SCS_bearing_blocks.scad>
2019-06-08 17:10:47 -04:00
use <tests/sealing_strip.scad>
2020-11-13 14:31:49 -05:00
use <tests/shaft_couplings.scad>
2019-06-08 17:10:47 -04:00
use <tests/sheets.scad>
use <tests/SK_brackets.scad>
2019-06-08 17:10:47 -04:00
use <tests/spades.scad>
use <tests/springs.scad>
use <tests/SSRs.scad>
2019-06-08 17:10:47 -04:00
use <tests/stepper_motors.scad>
use <tests/Swiss_clips.scad>
2019-06-08 17:10:47 -04:00
use <tests/toggles.scad>
use <tests/transformers.scad>
use <tests/tubings.scad>
use <tests/veroboard.scad>
use <tests/washers.scad>
use <tests/variacs.scad>
use <tests/zipties.scad>
use <tests/box.scad>
use <tests/butt_box.scad>
use <tests/cable_grommets.scad>
use <tests/carriers.scad>
use <tests/corner_block.scad>
use <tests/door_hinge.scad>
use <tests/door_latch.scad>
use <tests/fan_guard.scad>
use <tests/fixing_block.scad>
2020-02-28 20:27:17 -05:00
use <tests/flat_hinge.scad>
2019-06-08 17:10:47 -04:00
use <tests/foot.scad>
use <tests/handle.scad>
use <tests/PCB_mount.scad>
2021-02-17 08:20:39 -05:00
use <tests/pocket_handle.scad>
2020-02-28 20:27:17 -05:00
use <tests/printed_box.scad>
use <tests/printed_pulleys.scad>
2019-06-08 17:10:47 -04:00
use <tests/ribbon_clamp.scad>
use <tests/screw_knob.scad>
use <tests/socket_box.scad>
use <tests/strap_handle.scad>
use <tests/SSR_shroud.scad>
use <tests/PSU_shroud.scad>
2019-06-08 17:10:47 -04:00
x0 = 0;
2020-04-15 19:59:27 -04:00
x1 = x0 + 110;
x2 = x1 + 90;
x3 = x2 + 130;
x4 = x3 + 200;
x5 = 850;
x6 = x5 + 150;
2019-06-08 17:10:47 -04:00
cable_grommets_y = 0;
translate([x5, cable_grommets_y])
cable_grommets();
2020-11-27 13:13:01 -05:00
translate([x5 + 50, cable_grommets_y])
ribbon_clamps();
2019-06-08 17:10:47 -04:00
2020-11-27 13:13:01 -05:00
translate([x5 + 95, cable_grommets_y])
press_fits();
translate([x5, cable_grommets_y + 60])
2019-06-08 17:10:47 -04:00
fixing_blocks();
translate([x5, cable_grommets_y + 90])
2019-06-08 17:10:47 -04:00
corner_blocks();
translate([x5, cable_grommets_y + 150])
feet();
2019-06-08 17:10:47 -04:00
translate([x5 + 70, cable_grommets_y + 150])
screw_knobs();
translate([x5, cable_grommets_y + 470]) {
door_hinges()
door_latches();
2019-07-19 05:30:02 -04:00
translate([120, 0])
flat_hinges();
2019-06-08 17:10:47 -04:00
}
translate([x5, cable_grommets_y + 370])
no_explode() socket_boxes();
translate([x5 + 60, cable_grommets_y + 200])
strap_handles();
translate([640, cable_grommets_y + 200])
printed_pulley_test();
2019-06-08 17:10:47 -04:00
translate([x5, cable_grommets_y + 250])
handle();
translate([950, 600])
2019-06-08 17:10:47 -04:00
box_test();
2021-02-17 08:20:39 -05:00
translate([830, 770])
pocket_handles();
translate([950, 750])
2020-02-28 20:27:17 -05:00
printed_boxes();
2020-03-24 13:22:32 -04:00
translate([850, 1330])
2019-06-08 17:10:47 -04:00
bbox_test();
2020-02-28 20:27:17 -05:00
2019-06-08 17:10:47 -04:00
inserts_y = 0;
nuts_y = inserts_y + 20;
2020-03-15 13:35:21 -04:00
washers_y = nuts_y + 120;
2019-06-08 17:10:47 -04:00
screws_y = washers_y + 120;
2020-03-24 13:22:32 -04:00
circlips_y = screws_y + 160;
springs_y = circlips_y + 20;
o_rings_y = springs_y;
2019-06-08 17:10:47 -04:00
sealing_strip_y = springs_y + 20;
tubings_y = sealing_strip_y + 20;
pillars_y = tubings_y + 20;
ball_bearings_y = pillars_y + 40;
pulleys_y = ball_bearings_y +40;
2019-06-08 17:10:47 -04:00
hot_ends_y = pulleys_y + 60;
linear_bearings_y = hot_ends_y + 50;
sheets_y = linear_bearings_y + 90;
pcbs_y = sheets_y + 60;
displays_y = pcbs_y + 170;
fans_y = displays_y + 80;
2019-06-08 17:10:47 -04:00
transformers_y = fans_y + 120;
psus_y = transformers_y + 190;
2020-04-15 19:59:27 -04:00
translate([x0 + 35, inserts_y])
2019-06-08 17:10:47 -04:00
inserts();
translate([x0, inserts_y])
ring_terminals();
translate([x0, nuts_y])
nuts();
translate([x0, washers_y])
washers();
translate([x0, screws_y])
screws();
2020-03-24 13:22:32 -04:00
translate([x0, circlips_y])
circlips();
2019-06-08 17:10:47 -04:00
translate([x0, o_rings_y])
o_rings();
2020-03-24 13:22:32 -04:00
translate([x0 + 20, springs_y])
2019-06-08 17:10:47 -04:00
springs();
translate([x0 + 50, sealing_strip_y])
sealing_strip_test();
translate([x0, tubings_y])
tubings();
translate([x0, pillars_y])
pillars();
translate([x0, ball_bearings_y])
2019-06-08 17:10:47 -04:00
ball_bearings();
translate([x0, pulleys_y])
pulleys();
translate([x0, linear_bearings_y]) {
linear_bearings();
rods();
}
translate([x0 + 10, hot_ends_y])
hot_ends();
translate([x0, sheets_y])
sheets();
translate([x0, pcbs_y])
pcbs();
translate([x0, displays_y])
displays();
translate([x0, fans_y]) {
fans();
translate_z(3)
fan_guards();
}
translate([x0, transformers_y])
variacs();
2019-06-27 08:20:50 -04:00
translate([x0, psus_y]) {
2019-06-08 17:10:47 -04:00
psus();
2019-06-27 08:20:50 -04:00
psu_shrouds();
}
2019-06-08 17:10:47 -04:00
zipties_y = 0;
bulldogs_y = zipties_y + 30;
2020-04-15 19:59:27 -04:00
swiss_clips_y = bulldogs_y + 35;
leadnuts_y = swiss_clips_y + 50;
2019-06-08 17:10:47 -04:00
translate([x1, zipties_y])
zipties();
translate([x1, bulldogs_y])
bulldogs();
2020-04-15 19:59:27 -04:00
translate([x1, swiss_clips_y])
swiss_clips();
translate([x1, leadnuts_y])
leadnuts();
2019-06-08 17:10:47 -04:00
leds_y = 0;
carriers_y = leds_y + 40;
2020-08-23 11:46:29 -04:00
magnets_y = carriers_y + 40;
spades_y = magnets_y + 20;
buttons_y = spades_y + 20;
2019-06-08 17:10:47 -04:00
jacks_y = buttons_y + 40;
microswitches_y = jacks_y + 40;
rockers_y = microswitches_y + 40;
2020-02-23 10:02:39 -05:00
toggles_y = rockers_y + 60;
2019-06-08 17:10:47 -04:00
components_y = toggles_y + 40;
translate([x2, leds_y])
leds();
translate([x2 + 35, leds_y])
2019-07-25 06:00:04 -04:00
ldrs();
2019-06-08 17:10:47 -04:00
translate([x2 + 8, carriers_y])
carriers();
2020-08-23 11:46:29 -04:00
translate([x2, magnets_y])
magnets();
translate([x2 + 20, carriers_y])
led_meters();
2019-06-08 17:10:47 -04:00
translate([x2 + 70, leds_y])
2019-06-08 17:10:47 -04:00
fuseholders();
translate([x2, spades_y])
spades();
translate([x2, buttons_y])
buttons();
translate([x2, jacks_y])
jacks();
translate([x2, microswitches_y])
microswitches();
translate([x2, rockers_y])
rockers();
translate([x2, toggles_y])
toggles();
translate([x2, components_y])
components();
veroboard_y = 0;
d_connectors_y = veroboard_y + 110;
iecs_y = d_connectors_y + 80;
modules_y = iecs_y + 60;
ssrs_y = modules_y + 80;
blowers_y = ssrs_y + 60;
batteries_y = blowers_y + 100;
2021-01-02 06:02:06 -05:00
steppers_y = batteries_y + 55;
panel_meters_y = steppers_y + 70;
extrusions_y = panel_meters_y + 80;
2019-06-08 17:10:47 -04:00
translate([x3, veroboard_y])
veroboard_test();
translate([x3 + 70, veroboard_y + 30])
geared_steppers();
translate([x3 + 140, veroboard_y + 20])
pcb_mounts();
translate([x3 + 170, veroboard_y + 16])
cameras();
2019-06-08 17:10:47 -04:00
translate([x3, d_connectors_y])
d_connectors();
2020-11-13 17:43:55 -05:00
translate([x3 + 170, d_connectors_y - 10])
camera_housings();
2019-06-08 17:10:47 -04:00
translate([x3, iecs_y])
iecs();
translate([x3 + 15, modules_y])
microview();
2019-08-21 13:50:15 -04:00
translate([x3 + 60, modules_y])
hygrometer();
translate([x3 + 90, modules_y])
2019-06-08 17:10:47 -04:00
modules();
2019-06-22 07:36:07 -04:00
translate([x3, ssrs_y]) {
2019-06-08 17:10:47 -04:00
ssrs();
2019-06-22 07:36:07 -04:00
ssr_shrouds();
}
2019-06-08 17:10:47 -04:00
translate([x3, blowers_y])
blowers();
translate([x3, batteries_y])
batteries();
translate([x2, steppers_y]) // interloper
stepper_motors();
translate([x2, panel_meters_y])
panel_meters();
translate([x2, extrusions_y])
extrusions();
2019-06-08 17:10:47 -04:00
translate([x3, transformers_y])
transformers();
belts_y = 0;
rails_y = belts_y + 200;
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;
2019-06-08 17:10:47 -04:00
translate([x4 + 200, belts_y + 58]) {
2019-06-08 17:10:47 -04:00
belt_test();
translate([0, 60])
opengrab_test();
2020-11-18 11:25:45 -05:00
2019-06-08 17:10:47 -04:00
}
2020-11-18 11:25:45 -05:00
translate([x4 + 175, belts_y, -20])
drag_chains();
2019-06-08 17:10:47 -04:00
translate([x4, rails_y + 130])
rails();
2020-11-27 13:13:01 -05:00
translate([770, fans_y + 50])
cable_strips();
translate([x4, kp_pillow_blocks_y])
kp_pillow_blocks();
translate([x4, sk_brackets_y])
sk_brackets();
translate([x4, extrusion_brackets_y])
extrusion_brackets();
2020-11-13 14:31:49 -05:00
translate([x4 + 120, extrusion_brackets_y])
shaft_couplings();
translate([x4, scs_bearing_blocks_y])
scs_bearing_blocks();
2019-06-08 17:10:47 -04:00
translate([x6, 125])
light_strips();