Enclosure
Nothing here waits on a PCB. Print the base and the lid, and print a lid to match your panel. This is the half that can be built tonight, and the carrier board mounts into it rather than the other way round.
THE ENCLOSURE
Floorplan
Base interior is 79 mm wide and 137 mm long, 2 mm pocket, 4 mm floor, M3 bosses at ±36, ±66. The enclosure has already fixed every module position (origin = case centre): module centre x, y size buck-boost 0, -60 20 x 12 (pocket) LiPo pack 0, -35 45 x 34 PN532 V3 0, 4 43 x 41 ATGM336H GPS 0, 40 16 x 13 CC1101 HW-863 -23, 48 15 x 40 NRF24 PA+LNA 22, 47.5 16 x 41 Six, not eight, and on the centreline. The MT3608 and the TP4056 are gone because the CYD already has both functions in one chip, and taking them out took 28 mm out of the length and let everything else line up on x = 0. With EXT_CHARGER they come back, the case grows to 85 x 170, and the layout goes back to being built around them. Which constrains the board: SMA bulkheads at x = -23 and x = +22, 45 mm apart, through the top wall. The radio footprints have to put their board SMAs exactly there. The axis height is no longer a free choice: both radios carry their own edge-mounted SMA, so it lands wherever the module ends up once stacked on the carrier. Derived rather than asserted, it now comes out at 7.6 mm above the pocket floor with the radios soldered down, against the 5.0 mm the case was cut for. A socket adds its own height on top of that. The PN532 needs a clear window. The case thins the floor to 1.4 mm under its coil at (0, 4). Keep copper, and especially ground pour, out of that footprint on both layers, or the field is attenuated by your own board. micro-USB on the right wall at y = -62, 11 x 6, and only with EXT_CHARGER. It is the TP4056's own jack, so without that module there is nothing behind it and the base wall stays shut. The TP4056 in hand has a micro-USB jack, not Type-C; the cutout clears the plug's metal shell, not its overmoulded boot, which stays outside the wall. The default build plugs into the CYD instead, through the lid, which is further down. The GPS antenna is on a 90 mm pigtail, a separate 20 x 6 board rather than a patch on the module. That decouples it from where the module sits, but 90 mm is a hard limit, and in the larger case it was very nearly spent: from the GPS module's first position the top-wall recess was 94 mm away in a straight line, which is how the module came to sit in the corridor between the radios in the first place. The shorter case makes that a non-issue. The module is at (0, 40), the recess is hard against the wall at y = 65, and the run is 25 mm. Battery pocket at (0, -35), 45 x 34, no copper under it. Its leads go to the CYD's own BAT1, which is what charges the cell. Keep the radios as modules. Header sockets for the HW-863 and NRF24 rather than integrating the silicon. Integrating CC1101 or NRF24 means matching networks and antenna tuning, and two or three spins to equal a $4 module you can swap when one dies. The cost is height, and the case has less of it than it looked. The PN532 is the exception. Copper keepout solves one half of the NFC problem; the other half is distance, and a carrier board makes it worse. The case thins its floor to 1.4 mm under the coil so the field can reach through, a budget that assumed the module sitting on the floor. On a carrier it rises 1.6 mm soldered, 6.6 on a low-profile socket, 10.1 on a standard one, against a read range of a couple of centimetres to begin with. Either solder it down, leave it on the floor with a flying lead, or window the carrier so it hangs through at floor level. The window is appealing because that area is already a copper keepout, so a hole costs nothing in routing, but it takes structure out of the middle of a 79 mm wide board.
Printing it
The enclosure. Print the base and the lid that matches your panel. One base, and a lid per panel. The base holds the radios, the power train and the SMAs, none of which care which screen is in front of them, and nothing in it is placed from the bezel. The microSD opening is cut through the lid's side wall, so it moves with the panel and the base does not. Take the lid that matches your panel. The base is the same part in either row, listed twice so a row is a complete build: 3.5″ ESP32-3248S035R, the reference board pueo-enclosure-base-35.stl pueo-enclosure-lid-35.stl 2.8″ ESP32-2432S028R, kept, not maintained pueo-enclosure-base-28.stl pueo-enclosure-lid-28.stl pueo-enclosure-both-35.stl base + 3.5″ lid, for viewing only pueo-owl.svg the logo outline, on its own The OpenSCAD source is here too, which it has not been before: pueo-enclosure.scad every dimension on this page, as the model nrf24-fit-test.scad the bracket test print These sit behind the same password as this page. The owl outline does not: it is the mark rather than the case.
Case size
The case is 84 × 142 × 20, down from 85 × 170. The CYD carries an FM5324GA beside its battery connector (a single chip that is both a Li-ion charger and a 5 V boost converter), so the TP4056 and the MT3608 that used to ride inside looked redundant. They were what made the case wide: side by side they spanned 79 mm of the 79 mm of content. The EXT_CHARGER flag in the SCAD puts them and the larger case back, for a board that has no charger of its own. Half of that held up and half did not, measured 2026-09-26. The charger is real: the cell charges through the board and the board runs off it afterwards. The boost is not reachable. P1's 5V pin is an input, not an output. On battery it reads about 4 V unloaded and 0 V under 92 mA, and with USB attached it holds 4.75 V under the same load. It is the board's 5 V input node, alive only while tethered. So on battery there is no 5 V anywhere in this case, and the +3V3_RF buck has no input. The floorplan below is unaffected (every module is where it was, and the slot at 0, −60 is still 20 × 12), but what goes in that slot is now open. An MP2307 cannot be it: a buck only steps down, and a 1S cell swings 3.0–4.2 V against a 3.3 V target, with that module spec'd from 4.75 V in. The likely answer is one buck-boost from the cell straight to 3.3 V, since going up to 5 and back down is two conversions to cross 0.4 V. Restoring the MT3608 is the answer nobody wants: it is 14 mm against 13.9 mm of headroom, which is the problem deleting it solved.
USB in the lid
The CYD is screwed into the lid with its long axis down the case, so its sockets are at the short end, the one opposite the GPS recess. The opening is a 14 mm hole through that end wall, centred at x = -0.5 and 1 mm above the mating face. It is cut in both builds. EXT_CHARGER adds a TP4056's jack to the base; it does not take the display board's socket off the board, and that socket is what you flash through. Gating the lid opening on the flag gives you a sealed case. Those are measured rather than derived, and the way round is worth saying. The source used to cut a rectangle through the base's long side at y = 0, which was the wrong wall of the wrong part. The opening that works was cut by hand in the slicer, as a negative cylinder against the lid, and then read back out of the 3MF. What makes those numbers trustworthy is a check that falls out of the arithmetic: the lid's own extents came out 84 x 142 x 12, which is the width, the length and the lid height exactly, so the transform that placed the cut is sound. The rendered opening now lands at x -7.50 to 6.50 against the print's -7.48 to 6.49. 14 mm is wider than the lid is thick, so the hole takes the full height of the wall. Measured by fit, 2026-09-25: it is right. The plug seats and the opening does not show daylight around it. Worth saying why not to tighten it later. The socket is not what has to pass through the wall; the moulded boot of whatever cable is in your hand is, and those vary by more than the tolerance anyone would be shaving. 14 is the number that took a real cable on a real print. Four bosses, one in each corner, bored 4.2 mm for M3 heat-set inserts (INSERTS). The lid is blank, LOGO puts the owl back. The 2.8″ parts are the last ones. The model dropped its PANEL option when the firmware dropped that panel, so those two STLs are still served for anyone who printed against them and cannot be regenerated. The base is no loss: base-28 and base-35 are the same solid, 2944 facets each and the same set of them, because nothing in the base ever moved with the panel. Their bytes differ, which means nothing: OpenSCAD is not deterministic and the same file rendered twice gives different bytes at the same size. The two lids were not the same idea. This one covers the board and shows only the screen, because there is a dimensioned outline drawing for this panel and there was not for the other. The 2.8″ lid cuts a board-sized window, 56 × 92.5, and the board sits in it, measured by eye rather than taken off a drawing. QDtech's E32R35T sheet, V1.0 2024-08-14, whose vertical chains close on the 101.50 overall to the hundredth: aperture 49.96 × 77.24 the touch panel's active area rebate 55.90 × 85.36 the module outline plus 0.40 clearance lip 1.0 mm what the module bears against offset +2.35 mm the image is not centred on the board posts 47.90 × 94.50 four M2.5 x 5, on the board's hole pattern The module sits up into the rebate and bears on a 1 mm lip, so the glass ends a millimetre below the outer face, near enough to flush to read as flush, and far enough to keep the glass edge off a desk. SCREEN_LIP = 0 makes it literally flush and stops the lid retaining the screen at all; that is the trade, not an oversight. The four posts hang off the inside of the face and land in the 8.27 mm of bare PCB above and below the module, which is the only place the board's top face is exposed. The module is exactly as wide as the board. Their height is not a choice: the module bears on the lip, so the PCB sits 4.20 mm behind it and the posts come out at 2.70. The screw goes in from behind and threads into the post, and the pilot is 2.50.
Screws
M2.5 × 5 is the screw, confirmed by driving them into a printed lid: they bite and hold without splitting the post. The 3.20 in the board's own hole pattern is off the outline sheet and is an M3 clearance, so it is loose around an M2.5 shank, which does not matter, because the post's shoulder locates the board and the screw only clamps it. 5 mm is the length the 4.0 mm blind hole wants behind a 1.60 PCB: 3.4 mm of engagement, 0.6 spare. A 6 bottoms out before it clamps. One number here is still not from the drawing: the RGB LED's hole, whose position was taken off a photograph because the outline sheet does not dimension it. A printed lid puts the hole over the LED, so it is close enough to keep, but it is the softest figure in the file, and if yours misses, measure from the board's top and left edges.
The card slot
The lid used to seal it in. The microSD socket is on the back of the display board, facing into the case, so fitting a card meant taking out the four screws and lifting the screen. That is tolerable once and wrong every time after, because a card comes out to be read. The socket sits about 3 mm in from one long edge and ejects sideways, so the opening is a slot through the lid's side wall rather than a hole in the face. Both numbers that place it are off the same QDtech sheet as everything else above, from the chain of dimensions down the right of its Back view: 17.87 + 14.54 + 25.48 = 57.89 socket to the bottom edge of the PCB 101.50 - 57.89 = 43.61 from the top edge 101.50/2 - 43.61 = 7.14 above the board's centre Which side takes one more step, and it is the step worth stating because it is the one that inverts. The socket is on the right of that Back view, with the UART and BAT headers; a back view mirrors, so it is the left edge looking at the screen. The I2C, SPI and SPEAKER headers are on the other side in both the drawing and a photograph of the board, which is what confirms the two views agree about handedness rather than one of them being flipped. The opening is 16 × 4 for an 11 × 1 card. Not a close fit on purpose: the socket is itself 16 mm along the board, so matching the card would buy nothing and cost a fingernail. Z is not a choice either. The module bears on the lip, so the PCB's back face is one lip, one screen stack and one PCB thickness below the outer face, and the socket stands about 2 mm proud of that. The slot straddles it. And then a screw boss was standing in front of it. The first printed lid with the slot in it would still not take a card. The middle one of the three lid screws on that side sat at y = 5, which is nowhere near the board (it is outboard of the PCB entirely), but squarely across the 15 mm of gap the card crosses between the wall and the socket mouth. It left 8 mm of clear span for an 11 mm card. It moved up, and getting there took two goes. The first attempt moved it down instead, to sit just below the slot, on the argument that a screw beside the opening stiffens the edge a 16 mm hole weakens, and that the screw spacing comes out evener that way, 77.5 and 71.5 against 103 and 46. Both of those are true, and neither survived the part. Down is pinched between the slot and the battery pocket, so it only fits with the boss narrowed. Narrowing it left the cylinder exactly tangent to the wall face rather than overlapping it, which is coincident, which is not a 2-manifold, so it needed moving half a millimetre outboard as well. Three adjustments holding each other up. And it still was not clean: the slot is cut with a prism longer than the wall is thick, so it bit a 3 × 0.9 × 4 mm notch out of the corner of the boss it had just been necessary to narrow. A notch that carries nothing, that nobody asked for, taking material off the thinnest boss in the model. Up needs none of it. Full radius, original x, 2.9 mm clear of the slot and 5.4 mm clear of the card, nothing tangent to anything, no notch. The uneven spans are a real cost and the right one to pay: 103 mm between screws is a stiffness argument about a lid with 2.5 mm walls, and what it bought was three interacting fudges around a part that has to come off a printer. All four STLs were regenerated, not just the 3.5″ lid. The bosses are shared geometry, so the base and the 2.8″ lid moved with them. A base printed before this needs reprinting; the middle pair of holes will not line up.
Behind a password, and in no repository. The OpenSCAD source is not in the firmware repository and not in pueo-<version>-src.zip; it is served from here and nowhere else, to whoever can open this page. The models are the same. That is a narrower arrangement than it sounds. This page is the design written down, the dimensions, the wall, the clearances and the reasons for each, and it was written to be enough to cut your own. The files save you the typing.
The logo
The logo is cut into the lid rather than glued on, and the artwork is published on its own above because it is worth having whether or not you print anything. Which way up the lid prints decides whether the logo reads, if you turn it on. LOGO is false by default now and the lid face is blank; the rest of this section is for when it is not. The owl is line art rather than a silhouette, so its thinnest strokes are what decide whether it prints, and how big it can be is decided by the lid rather than by taste. It was wrong until 2026-09-25, and the check had been saying so. LOGO_Y centred a 30 mm owl in the chin of the old 170 mm lid. The case has been 142 for a while, that lid ends at y = -71, and the owl was running to -80.5: nine and a half millimetres of it hung off the bottom edge and only 69% of the deboss survived. Nobody chased it because the logo is off by default, so no printed part ever showed it. What bounds the band is where the outer face still has its full 2.5 mm, not where the window is. Above the rebate the skin thins to SCREEN_LIP, and a 0.6 mm cut into 1.0 mm of material leaves 0.4. So the ceiling is the rebate edge, less 3 mm off the bottom edge and 2 off the window: panel band LOGO_H LOGO_Y thinnest stroke 3.5″ -68.00 .. -42.68 25 -55.3 0.42 mm 2.8″ -68.00 .. -48.25 19 -58.1 0.32 mm The second row is why the 2.8″ lid is no loss. 0.32 mm is under one extrusion on a 0.4 nozzle and closes up, so that panel could not really carry this artwork at all. The model used to render it anyway, with a warning, because the logo is opt-in and the trade was the printer's to make. The honest fix would have been different artwork rather than a smaller copy of this one. Turn the lid over in the slicer. It is a tray, and printed the way it is modelled, outer face up, its ceiling is an 80 × 165 bridge that wants support across the whole cavity. Flipped outer-face-down it needs none, and that is what puts the logo against the bed. Bed-side debossing behaves differently from top-side: a glass-smooth floor and crisp walls, but anything narrower than roughly one extrusion closes up as the first layer squashes out. The module positions, the SMA holes, the PN532 window and the M3 bosses are named constants at the top; the placement table and the floorplan above are just this file, measured.
HEIGHT BUDGET
What you print has no carrier board. The modules sit in pockets cut into the floor and get wired to each other, which is why the floorplan above is a placement drawing rather than a PCB layout. On that arrangement the budget is the whole cavity: base outer height 20.00 mm pocket floor, at FLOOR - POCKET 2.00 mm room above the pocket floor 18.00 mm 18 mm against modules whose tallest parts are single-digit millimetres. There is no fit question in the default build, which is the short version of everything below. The rest of this section is about a carrier that does not exist yet. It is kept because the carrier is still worth building and the arithmetic does not change, but nothing here describes the printed case. It assumes the EXT_CHARGER layout, with the power stack inside and the modules soldered to a board rather than lying in pockets. A carrier cannot sit on the pocket floor, because through-hole leads have to go somewhere: cavity above the pocket floor 18.00 mm standoff 2.5 + carrier 1.6 4.10 mm room above the carrier 13.90 mm 13.90 mm is the budget every soldered-down module lives inside. That is a smaller number than it sounds, and it turns one unresolved dimension into the one that decides whether the design works. The MT3608 boost has two contradictory dimension sets in circulation: 36 x 17 x 6.25 and 30 x 17 x 14. Width agrees, length differs by 6 mm, and the height differs by more than double. MT3608 at 6.25 mm -> +7.65 mm spare MT3608 at 14.00 mm -> -0.10 mm At 14 mm it does not fit. Not tightly, over by a tenth of a millimetre, before any tolerance on the standoff or the print. The likely reading is that 6.25 is the bare board with low components and 14 is the overall height with the multi-turn trimmer and the inductor standing proud, but that is a guess, and the conclusion flips on it. None of which matters unless you set EXT_CHARGER. The MT3608 and the TP4056 are only in the case at all when the display board cannot charge its own battery, and the reference 3.5″ can. Everything else has room. Module heights are mostly not published, listings give footprint and stop, so these are estimates reasoned from the tallest visible component rather than measurements: MT3608 boost 6.25 or 14 decides it EXT_CHARGER only LiPo pack 6-10 structural, not a fit question NRF24 PA+LNA ~8 est ~6 mm clear HW-863 CC1101 ~7 est ~7 mm clear buck-boost 3.0 spec ~11 mm clear TP4056 charger ~4 est ~10 mm clear EXT_CHARGER only ATGM336H GPS ~3.5 est sits in its own recess PN532 V3 ~3.5 est sits on the thinned floor Every one of those would have to be wrong by 6 mm or more to bind, and they are flat modules whose tallest part is visible in a photograph. Without a carrier they each gain the 4.10 mm the carrier stack was taking. The radios looked like the risk and are not. Their SMA has to line up with a hole in a wall, so the axis must land between 3.25 and 14.75 mm above the pocket floor for a 6.5 mm hole to stay inside the cavity. With the carrier top at 4.10 mm: radios soldered down SMA axis 0.00 .. 10.65 mm above their own board radios on a 5 mm socket SMA axis 0.00 .. 5.65 mm Any real SMA mounting is 1 to 4 mm above the board it sits on, so this is not a fit risk in either configuration. It only sets where the hole goes, which is a formula in the enclosure rather than a constant. One number there did get confirmed rather than estimated: an SMA coupling barrel is 6.35 mm outside diameter, fixed by the connector standard, so the 6.5 mm bulkhead holes have been right all along. One inconsistency is still in the model, and it is worth knowing about. SMA_Z is built from the carrier stack, standoff plus carrier plus module board plus axis height, and comes out at 7.6 mm above the pocket floor. A module resting straight on that floor would put its axis at 3.5 mm instead, so on paper the holes are 4.1 mm high for a build with no carrier in it. On paper: the hole is 6.5 mm across against a 6.35 mm barrel, bulkheads reach through on a lead rather than being fixed to a module, and an assembled unit takes both antennas without complaint. It is recorded here rather than corrected, because a printed part that works outranks a formula that disagrees with it.
What is blocking
Three things, and none of them can be looked up: which converter feeds +3V3_RF now that the 5 V rail turned out not to exist on battery, whether it fits the 20 × 12 slot, and the battery's thickness. All of it belongs to the carrier. Everything in the printed case is decided. The MT3608's height was on this list and is off it: it only ever mattered under EXT_CHARGER, and the measurement above makes restoring it the least likely of the options rather than the default one.