Search models, users, collections, and posts

Parametric enclosure for 2× MAX7219 LED modules

Print Profile(1)

All
A1
X1E
P1S
H2D
H2D Pro
P2S
H2S
P1P
H2C
X1 Carbon
X1
X2D
A2L

AMS 0.2mm layer, 3 walls, 15% infill |100% infill for white
AMS 0.2mm layer, 3 walls, 15% infill |100% infill for white
Designer
2.3 h
2 plates
5.0(1)

Open in Bambu Studio
Boost
8
16
1
0
25
8
Released 

Description

MAX7219 LED Matrix Enclosure - User Guide

📦 What's Included

  • Body (main_body) - Holds the LED modules with friction-fit grooves
  • Cover - Slides into grooves with cable management slot
  • Source file (.scad) - Fully parametric and customizable

🎯 Quick Start

Print Settings (Bambu Lab A1 recommended)

  • Material: PLA Basic (white for body/diffuser, black for cover)
  • Layer height: 0.20mm
  • Infill: 15-20%
  • Wall loops: 3
  • Supports: None required ✅
  • Print time: ~6-7 hours total
  • Filament: ~75g total

Assembly

  1. Insert LED modules into body from the top
  2. Route cables through the slot in the cover (left side)
  3. Press cover into groove until flush
  4. Friction holds it securely in place

⚙️ Customization Guide

The design is fully parametric. Open the .scad file in OpenSCAD to modify parameters.

 

🔧 Main Parameters (lines 7-13)

modules          = 2;        // Number of 4-in-1 modules mod_len          = 131.5;    // Length of each module section mod_height       = 32;       // Height of LED module mod_thickness    = 15.5;     // Depth of LED module side_margin      = 4;        // Side margins front_margin     = 2;        // Front margin (diffuser side) back_margin      = 2;        // Back margin

Common modifications:

What you wantParameter to changeExample
Longer/shorter enclosuremod_len140 = longer, 120 = shorter
More modules (3 or 4)modulesChange to 3 or 4
Taller enclosuremod_thickness18 = taller, 12 = shorter
More diffusion spacefront_margin5 = more space in front

🎚️ Fine-Tuning Fit (lines 19-24)

cover_thick           = 2;      // Cover thickness groove_tolerance_len  = 5.0;    // Length fit adjustment groove_tolerance_wid  = 1.0;    // Width fit adjustment

If your printed cover doesn't fit:

ProblemSolutionParameterAdjust to
Cover too longIncrease length tolerancegroove_tolerance_len6.0 or 7.0
Cover too shortDecrease length tolerancegroove_tolerance_len4.0 or 3.0
Cover too wideIncrease width tolerancegroove_tolerance_wid2.0 or 3.0
Cover too narrowDecrease width tolerancegroove_tolerance_wid0.5 or 0.3
Cover too looseReduce both tolerancesBothDecrease by 0.5mm
Cover too tightIncrease both tolerancesBothIncrease by 0.5mm

📏 Module Pocket Adjustments (lines 15-17)

pocket_clearance_len = 0.3;     // Length clearance pocket_clearance_wid = 1.0;     // Width clearance   pocket_clearance_dep = -1.5;    // Depth (negative = closer to front)

Adjust if modules don't fit:

  • Modules too tight? Increase pocket_clearance_len and pocket_clearance_wid to 1.5 or 2.0
  • Modules too loose? Decrease to 0.2 and 0.5
  • LEDs not visible enough? Make pocket_clearance_dep more negative (-2.0 or -2.5)

🔌 Cable Slot Position (lines 27-29)

cable_slot_w      = 12;    // Slot width cable_slot_h      = 8;     // Slot height cable_slot_offset = 10;    // Distance from left edge

To adjust cable slot:

  • Move left/right: Change cable_slot_offset (smaller = more left)
  • Larger cables: Increase cable_slot_w and cable_slot_h
  • Different position: Move slot to right side (modify code in cover module)

🖨️ How to Export Modified Design

  1. Open in OpenSCAD: Load the .scad file
  2. Modify parameters: Edit the values at the top
  3. Preview: Press F5 to see changes
  4. Render: Press F6 (this may take 30-60 seconds)
  5. Export Body:
    • Comment out cover line: // cover();
    • Menu: Design → Export as STL
    • Save as Body.stl
  6. Export Cover:
    • Comment out body lines
    • Uncomment: cover();
    • Export as STL → Cover.stl

📐 Verify Dimensions

After rendering (F6), check the console output:

=== BODY DIMENSIONS === Length: 271 mm Width: 41 mm   Height: 18.5 mm === COVER DIMENSIONS === Length: 266 mm Width: 36 mm Height: 2 mm

💡 Tips & Tricks

Multi-Color Printing (with AMS)

  • Body: Print in white PLA for better LED diffusion
  • Cover: Print in black PLA for contrast
  • Use "Paint" tool in Bambu Studio to assign colors
  • use 100% infill for layers 0 to 3.4mm to avoid seeing infill patern on white part

Print Orientation

  • Both parts print flat on bed
  • No supports needed
  • Grooves face up on body

📄 License

This design is released under Creative Commons Attribution 4.0 International (CC BY 4.0)

  • ✅ You can remix, adapt, and build upon this work
  • ✅ Commercial use allowed
  • ℹ️ Attribution required

🙏 Credits

Designed with parametric flexibility in mind. Special thanks to ChatGPT and Claude for the heavy lifting and myself for testing and refining it (lol).

Enjoy your custom LED matrix enclosure! 🎉

Comment & Rating (1)

(0/1000)

License

This user content is licensed under a Standard Digital File License.

You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including - but not limited to - remixes of this object, and hosting on other digital platforms). The objects may not be used without permission in any way whatsoever in which you charge money, or collect fees.