AJB2K3
Published © CC BY-NC-ND

M5Stack Panel Maker in OpenScad

How to use OpenScad to automate the creation of infill panels for use with M5Stack Aluminium extrusion.

IntermediateFull instructions provided1 hour291
M5Stack Panel Maker in OpenScad

Things used in this project

Software apps and online services

OpenSCAD

Story

Read more

Code

Open SCAD Source Code

SCAD
// -------------------------------------------
//
//   1515 Panel Maker by Adam Bryant
//
// -------------------------------------------

// Place holder for Size variables.
// M5Stack Extrusion is pre cut to 50, 100, 200, 500mm long.

Length=50; // X Dimension
Width=50; // Y Dimension
Height=15; //1515 Extrusion width
Screw_hole=3.2; // M3 Screw
Wall=4; // Wall thickness.


difference() {
cube([Length,Width,Height],center=true); //Initial Panel size.
translate([0,0,2]) // Moves Cavity Piece to correct height.

minkowski(){
cube([Length-Wall,Width-Wall,Height],center=true); // Cavity size.
sphere(1); // If this is increased, Wall thickness must be increased.
}

rotate([90,0,0])
cylinder(Length+2,Screw_hole/2,Screw_hole/2, center=true);
rotate([0,90,0])
cylinder(Width+2,Screw_hole/2,Screw_hole/2, center=true);
}

Github 3D files

Instructions in repository.

Credits

AJB2K3

AJB2K3

46 projects • 29 followers
I have always had an interest in electronics but having failed my school exams, it has taken me 20+ years to produce products to share.

Comments