I recently upgraded my Ender 3 Pro to a MKS Gen L and wanted to fully enclose a Raspberry Pi, Mosfet and Buck Converter within the base of the printer. There are 4 boxes and 4 lids along with a cover for the wiring passing thru the frame.
M5 T-Nuts x20
Coarse thread 4mm fan screws x8
40mm Fan grill x2
40x10mm fan x2
6" Right angle USB USB Cable (printer style) x1 (for Pi)
USB Male to Female 90 degree Coupler x1 (For Pi)
Tobsun 24v to 5v 5A Buck Converter