omdl  v0.9.8
OpenSCAD Mechanical Design Library
Power Strip Maker

Electrical receptacle power strip generator. More...

+ Collaboration diagram for Power Strip Maker:

Files

file  power_strip.scad
 A power strip maker for electrical receptacles and/or devices.
 

Functions

module power_strip_sg (cols=1, rows=1, mode=7, verb=1, cm_box=power_strip_sg_default_box, cm_mount=power_strip_sg_default_mount, cm_cover=power_strip_sg_default_cover)
 A power strip generator for single gang electrical receptacles. More...
 

Maps

 power_strip_sg_default_box
 <map> A single gang electrical device box configuration. More...
 
 power_strip_sg_default_mount
 <map> A single gang electrical device mount configuration. More...
 
 power_strip_sg_default_cover
 <map> A single gang duplex receptacle cover configuration. More...
 

Detailed Description

Electrical receptacle power strip generator.

Requires:
include <omdl-base.scad>;
include <tools/operation_cs.scad>;
include <models/3d/misc/omdl_logo.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;
include <parts/3d/enclosure/mounts.scad>;
include <parts/3d/enclosure/project_box_rectangle.scad>;
include <parts/3d/enclosure/power_strip.scad>;

Function Documentation

◆ power_strip_sg()

module power_strip_sg ( cols  = 1,
rows  = 1,
mode  = 7,
verb  = 1,
cm_box  = power_strip_sg_default_box,
cm_mount  = power_strip_sg_default_mount,
cm_cover  = power_strip_sg_default_cover 
)

A power strip generator for single gang electrical receptacles.

Parameters
cols<integer> device column count.
rows<integer> device row count.
mode<integer> part mode.
verb<integer> console output verbosity {0|1|2}.
cm_box<map> box configuration map.
cm_mount<map> device mount configuration map.
cm_cover<map> cover configuration map.

This module constructs a power strip grid of standard NEMA electrical power receptacles. The number of columns and rows in the power strip are configurable as well as most aspects of the power strip enclosure box, receptacle device mounts, and device cover. The default configuration of the enclosure box, device mount, and device cover are specified in global variable maps.

part mode

Integer value is binary encoded.

b description
0 generate enclosure box
1 generate clamp top
2 generate enclosure cover

The default configuration maps can be completely replaced with a user supplied maps or may be partially updated as shown in the following example.

Custom power strip example script

include <omdl-base.scad>;
include <tools/operation_cs.scad>;
include <models/3d/misc/omdl_logo.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;
include <parts/3d/enclosure/mounts.scad>;
include <parts/3d/enclosure/project_box_rectangle.scad>;
include <parts/3d/enclosure/power_strip.scad>;
box_conf =
[
["iscl", 15.0],
["oscl", 15.0],
["pwcd", [8.6, 3.6]],
["pwsh", [6]],
["pwco", [0, 2]],
["pwcp", 20],
["mtabs", [[0]]]
];
custom_box = map_merge(box_conf, power_strip_sg_default_box);
map_check(custom_box);
power_strip_sg(cm_box=custom_box);
// end_include
module map_check(m, verbose=false)
Perform basic format checks on a map and output errors to console.
Definition: map.scad:431
function map_merge(m1, m2)
Merge the unique key-value pairs of a second map with those of a first.
module omdl_logo(r=5, c=false, b=false, t=false, td="ltr", a=0, d)
Standard omdl logo.
Definition: omdl_logo.scad:328
power_strip_sg_default_box
<map> A single gang electrical device box configuration.
module power_strip_sg(cols=1, rows=1, mode=7, verb=1, cm_box=power_strip_sg_default_box, cm_mount=power_strip_sg_default_mount, cm_cover=power_strip_sg_default_cover)
A power strip generator for single gang electrical receptacles.
module project_box_rectangle(wth, h, size, vr, vrm, inset, lid, lip, rib, wall, post, align, mode=0, verb=0)
A rectangular box maker for project boxes, enclosures and housings.

Custom power strip example diagram
bottomfrontdiag
expand bottomexpand frontexpand diag

Definition at line 811 of file power_strip.scad.

+ Here is the call graph for this function:

Variable Documentation

◆ power_strip_sg_default_box

power_strip_sg_default_box

<map> A single gang electrical device box configuration.

The default electrical device box configuration map.

Default device box configuration map table

keyvalue
wth2
roww50
dlts108
boxd25
evrm2
evr4
cdmsfalse
lefb2
lefc2
dlogotrue
drimbtrue
drimctrue
fins[3, 270, 3, 0.75]
ribs[0, 1.75]
wmode426
wiabundef
pmode138
piabundef
piacundef
mpc2btrue
mphda0
iscl15
oscl0
lscl0
rscl0
iwdotrue
iwpd10
iwps1
pwco[0, 0]
pwcd7
pwcs0
pwct10.5
pwcpundef
pwsd3.5
pwsh[6, 3.5]
pwsn[5.75, 2.5]
mtab[4, 25, 4]
mtabsundef
mslot[4, [1, 1, 4]]
mslotsundef

Map key description is available in source. See the map

Definition at line 285 of file power_strip.scad.

◆ power_strip_sg_default_cover

power_strip_sg_default_cover

<map> A single gang duplex receptacle cover configuration.

The default electrical device cover configuration map.

Default device cover configuration map table

keyvalue
drpo38.1
rpd34.925
rpfl29.3688
rcsd[3.51, 7.5, 2.5, 0.5]

Map key description is available in source. See the map

Definition at line 587 of file power_strip.scad.

◆ power_strip_sg_default_mount

power_strip_sg_default_mount

<map> A single gang electrical device mount configuration.

The default electrical device mount configuration map.

Default device mount configuration map table

keyvalue
mss83.3438
rmsd3.175
rmsh2.38125
rshc7.9375
rmth1.5875

Map key description is available in source. See the map

Definition at line 463 of file power_strip.scad.