3D Printing Basics for Electronics: the short answer
Most maker 3D printers are FDM (fused deposition modelling) machines. 2 mm thick. Example: Around 50 g. The slicer gives the exact figure; for boxes, the wall thickness matters far more than infill.
- Level
- Beginner
- Time
- About 6 min
- Topic
- PCB and making
Understand how FDM printing works, choose a material, and estimate an enclosure's print time, weight and cost.
Before this: Planning a Prototype
Most maker 3D printers are FDM (fused deposition modelling) machines. They melt plastic filament and draw your part layer by layer, usually 0.2 mm thick. You design or download a 3D model, export it as an STL file, and a slicer program (such as Cura, PrusaSlicer or OrcaSlicer) cuts it into layers and creates the machine instructions. Settings in the slicer decide the strength, time and cost: layer height, wall count, infill percentage and supports.
PLA is the easiest material: it prints well, smells little and is stiff, but it softens at about 55 to 60 °C, so a PLA box in a car or on a sunny terrace in an Indian summer can warp. PETG handles more heat (about 75 to 80 °C) and is tougher, and ABS and ASA handle more again but need an enclosed printer and ventilation. For most indoor electronics boxes, PLA is fine; for outdoor or warm locations, choose PETG or ASA.
Printed parts have tolerances. A hole drawn at 3.0 mm often prints closer to 2.8 mm, and two parts designed to fit exactly will not slide together, so leave about 0.2 to 0.4 mm of clearance. Infill of 15 to 20 % with three walls suits most enclosures. Weight decides cost: the slicer reports grams of filament, and ElectroLark's in-house printing is priced by weight from your uploaded STL, so thinner walls and less infill cost less. Overhangs steeper than about 45° need supports, so design boxes to print flat-side down.
Slicer settings that matter
Layer height sets the detail and the time. 0.2 mm is the usual balance; 0.12 mm gives a smoother finish and takes about twice as long, and 0.28 mm is quick and rougher. Wall count affects strength more than infill: three walls of 0.4 mm give a firm shell for most boxes. Infill of 15 to 20 % in gyroid or grid patterns is plenty, and above 40 % rarely adds much.
Supports let the printer build overhangs, but they leave marks and waste plastic. A better fix is often to rotate the part or add a chamfer instead of a sharp overhang. Print speed and temperature depend on the filament; follow the filament maker's range and run a small test first.
Designing a box for electronics
Measure the board and parts with callipers and add 0.3 to 0.5 mm clearance around them. Use standoffs for screw holes, and screw posts that take M2.5 or M3 screws directly or with heat-set inserts. Add vents or a gap if the board gets warm, since a closed PLA box in summer heat can soften.
Include openings for the USB port and any connector, and add a little extra for cables. Print the lid and the base flat side down. Test the fit with a short, thin version of the part before printing a long one.
Why prints fail
Warping at the corners means the bed is not sticking or the room is cold; clean the bed with isopropyl alcohol, level it, and use a brim. A "spaghetti" failure often begins with a first layer that was too far from the bed. Stringing is wet filament or too high a temperature; dry the filament and lower the nozzle temperature by 5 degrees.
Print a small test first. A failed 10-minute test costs little; a failed 6-hour print costs a day.
Strength, heat and safety
Layers are the weak direction: a part is much weaker pulled between layers than along them, so orient parts so loads run along the layers. For mounting brackets and hinges, add thickness at corners and use fillets instead of sharp inner corners.
Keep electronics away from the hot nozzle and bed. Printing ABS and ASA releases fumes, so print them in a ventilated place. Do not leave a printer running unattended without smoke detection, and never use printed plastic as the only insulation for mains.
- Drawing holes at their exact size and expecting them to fit.
- Printing a long part before a short test of the fit.
- Using PLA for something that sits in a hot car or in sun.
Estimate the weight of a small enclosure
- A box 100 × 60 × 30 mm with 2 mm walls has an outer volume of 180 cm³ and inner volume of about 96 × 56 × 28 ≈ 150 cm³.
- Wall volume ≈ 180 − 150 = 30 cm³, plus a lid of about 100 × 60 × 2 = 12 cm³, so about 42 cm³ of solid plastic.
- PLA density is about 1.24 g/cm³, so about 52 g; walls are printed solid, so infill adds little here.
- At ₹10 per gram plus GST, about ₹520 + GST.
Result. Around 50 g. The slicer gives the exact figure; for boxes, the wall thickness matters far more than infill.
Download or design a simple box for a breadboard project, slice it in a free slicer with 0.2 mm layers, 3 walls and 15 % infill, and note the print time and grams. Change infill to 40 % and compare both numbers.
3 quick questions
Which material is easiest to print?
Why choose PETG over PLA for a box on a sunny terrace?
You design a 3 mm hole for an M3 screw. What should you expect?
