Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "pegmixer"]
path = pegmixer
url = https://github.com/ahmad-amrey/pegmixer
43 changes: 43 additions & 0 deletions gridfinity-rebuilt-baseplate.scad
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include <gridfinity-rebuilt-utility.scad>
include <standard.scad>
include <pegmixer/pegmixer.scad>
use <gridfinity-rebuilt-holes.scad>

// ===== INFORMATION ===== //
Expand Down Expand Up @@ -64,6 +65,16 @@ chamfer_holes = true;

hole_options = bundle_hole_options(refined_hole=false, magnet_hole=enable_magnet, screw_hole=false, crush_ribs=crush_ribs, chamfer=chamfer_holes, supportless=false);

/* [Pegboard mount] */
// Add pegboard mounting plate and pegs.
enable_pegboard = false;
pegboard_spacing = 25;
pegboard_thickness = 6;
pegboard_hole_diameter = 6.35;
pegboard_mount_plate_thickness = 3;
add_gussets = false;
gussets_thickness = 3;

// ===== IMPLEMENTATION ===== //

color("tomato")
Expand Down Expand Up @@ -224,6 +235,10 @@ module gridfinityBaseplate(grid_size_bases, length, min_size_mm, sp, hole_option
cutter_screw_together(grid_size.x, grid_size.y, length);
}
}

if (enable_pegboard) {
pegboard_mount(size_mm);
}
}

function calculate_offset(style_plate, enable_magnet, style_hole) =
Expand Down Expand Up @@ -404,3 +419,31 @@ module cutter_screw_together(gx, gy, size = l_grid) {
cylinder(h=size/2, d=d_screw, center = true);
}
}

/**
* @brief Add pegboard mounting part to gridfinity base
* @param base_dimensions an array (X, Y, Z) of baseplate final dimensions
*/
module pegboard_mount(base_dimensions) {
// If Gussets are enabled, add its width to the plate
plate_width = base_dimensions.x + (add_gussets? (gussets_thickness * 2) : -(BASEPLATE_OUTSIDE_RADIUS * 2));
plate_height = (pegboard_spacing + (pegboard_hole_diameter * 2));

translate([0, (base_dimensions.y / 2) + (pegboard_mount_plate_thickness / 2), (plate_height / 2)])
pegmixer(spacing = pegboard_spacing, board_thickness = pegboard_thickness, hole_d = pegboard_hole_diameter, peg_hole_percentage = 0.75)
solid([plate_width, pegboard_mount_plate_thickness, plate_height]);

if(add_gussets) {
// Add right gusset
translate([(base_dimensions.x / 2) + gussets_thickness, 0, 0])
rotate([0, -90, 0])
linear_extrude(height = gussets_thickness)
polygon(points = [[0, -((base_dimensions.y / 2) - BASEPLATE_OUTSIDE_RADIUS)], [plate_height, (base_dimensions.y / 2)], [0, (base_dimensions.y / 2)]]);

// Add left gusset
translate([-(base_dimensions.x / 2), 0, 0])
rotate([0, -90, 0])
linear_extrude(height = gussets_thickness)
polygon(points = [[0, -((base_dimensions.y / 2) - BASEPLATE_OUTSIDE_RADIUS)], [plate_height, (base_dimensions.y / 2)], [0, (base_dimensions.y / 2)]]);
}
}
1 change: 1 addition & 0 deletions pegmixer
Submodule pegmixer added at 58d8b2