Skip to content
NewI taught my coding agent to point at the word I should type next
Dec 3, 2026·4 MIN READ
Finding a case for my LilyGO tracker board

Finding a case for my LilyGO tracker board

My GPS tracker runs on a LilyGO T-A7670E, a long ESP32 board with LTE and GPS. Before designing a case I spent an evening on what already exists: the board drawing, four printable enclosures, and the one with OpenSCAD source that won.

My tracker is a LilyGO T-A7670E: an ESP32-WROVER-E, a SIMCom A7670E modem for LTE Cat.1 and GPS, a SIM slot, a TF card slot and an 18650 holder on the back, all on one long board. It has been living naked on the desk, with the GPS patch antenna hanging off its cable, as in the photo above. It needed a box with the two antennas inside, a hole for USB-C and nothing else.

My rule for a part like this: before I open OpenSCAD, find out what already exists. A board this popular should have a case somewhere.

The dimensions were the hard part

LilyGO's wiki page for the board returned a 404. The GitHub repo I had bookmarked was gone too; the boards now live in a repo called LilyGo-Modem-Series. It has no STEP or DXF files, only PNG drawings, and none is named after the T-A7670E. The one for the T-A760X family is the right shape, so I took the numbers from it:

Measuremm
Board length110.54
Board width33.07
Mounting holes, long axis105.56
Mounting holes, short axis27.71
Hole sizeM2, four of them
Height with the 18650 holderabout 19

The drawing is LilyGO's own, from the dimensions folder of the LilyGo-Modem-Series repo. The 1.73 mm corner radius and the 2.54 mm pin pitch are in it too, which is more than the wiki page ever gave me.

The T-A7670E exists as R1 and R2, with an FPC antenna or an SMA socket, and with an ESP32 or an ESP32-S3. The USB-C and the power switch sit in different places on different revisions. Check your board before trusting any case.

Four candidates

A web search found four printable cases that name the board. All three model sites answered my link check with a 403, so I opened each page in the browser before writing anything down. Each card links to its page; the Lilyspot one is also on Thingiverse.

Lilyspot won on one argument: source code. A ready STL fits exactly one board revision and one set of antennas. A parametric file fits mine after I measure two numbers, and the author had already put the USB-C ten millimetres off the switch, the way my board has it.

One plate, both parts

The project ships the base and the lid as separate STLs, and its own "both" mode floats the lid above the base for a preview. I wanted one file I can drop into the slicer, so I wrote a wrapper that includes the original and places both parts flat:

plate-both.scad
include <T-A7670G_case.scad>
part = "none";          // the original draws nothing on its own
sd_clearance = false;   // slim case, same as the shipped STLs
gap = 10;
base();
translate([out_w + gap, 0, 0]) lid();
Render of the base, a long open box with the switch slot in the near wall and the USB-C opening in the far wall
The base: switch slot on the near wall, USB-C on the far wall, one of the four posts in the corner.
Render of the lid upside down, four hollow screw columns, two alignment skirts and the square GPS antenna well
The lid as it prints: columns up, two skirts that centre it in the box, and the well for the GPS patch.

The lid module is already flipped for printing, outer face down with the screw columns pointing up, so no rotation was needed. The plate comes out at about 90 by 118 mm and 35 mm tall. Fits the K2 Pro with room to spare, no supports. The first slice of that file came back with a warning about floating regions, which turned out to be a 0.4 mm ring at the lid screw columns. That hunt is its own note: Why Creality Print said my case had floating regions.

flowchart LR
    A["Lilyspot repo<br/>.scad + 2 STL"] --> B["plate-both.scad<br/>include, place, flatten"]
    B --> C["OpenSCAD CLI<br/>one STL"]
    C --> D["Creality Print<br/>base + lid, one job"]
The sliced plate in Creality Print, the base and the lid side by side on the K2 Pro bed
Both parts sliced on the K2 Pro bed, 0.2 mm layers.
Creality Print G-code preview, printing time 1 h 19 min, filament 49.53 g
One job: 1 h 19 min and 50 g of PLA for the whole case.

Download from the project's GitHub, not from the Thingiverse zip. The repo had the same STLs plus the SCAD source and a README with the hardware list, and a plain URL per file is easier to script than a download button.

First attempt

The first print did not get past the floor. I stopped it myself after a few layers, when the base plate had two torn spots with strings pulled out of them. The lid plate next to it was fine.

The material is PLA, the only thing I have. My best guess is bed adhesion: the slicer was set to the Cool Plate profile while the plate in the printer is textured PEI, so the bed ran cold for that surface. A part this long and flat lets go at one spot, the nozzle catches the lifted edge and drags it. Next try: bed type set to the plate that is really in the printer, the plate washed with dish soap, and a 5 mm brim under both parts.

What is still open

The base has a 12 mm hole in the antenna-end wall, sized for a PG7 cable gland. The design has no plug for it, so there are three ways to deal with it:

  1. Nothing goes out of the box: set enable_gland = false in the wrapper and the wall prints solid. My tracker has no cable, so this is my plan.
  2. A cable goes out: screw in a PG7 nylon gland, 12 mm thread, 3 to 6.5 mm cable.
  3. Keep the hole for later: add a small printed plug, a 12 mm teardrop disc with a lip, and export it with the plate.

The USB-C and switch openings stay open in every variant. They are shaped for the connector and the switch and need no plug.

The silkscreen on my board says V1.4, which I still have to map to the R1 and R2 naming the case designers use. The project ships small test coupons for the screw stack and the port positions, and they go on the bed before the next full plate.

Parts on the shopping list: four M3 heat-set inserts with a 4 mm outer diameter, four M3x20 socket-cap screws, a 25 by 25 by 7 mm GPS patch antenna and an adhesive LTE antenna.

An evening of searching bought me a case I only have to adjust, not design, and a board drawing I would have needed anyway. The order was right: drawing first, then the candidates, then the one with source. What I would do differently is read the silkscreen before the search, because half of the candidates only fit one revision, and check the bed type in the slicer before the first print.

Share
Mariusz Smenżyk
Written by

Mariusz Smenżyk

Builder for sport. Make. Test. Launch.

Related notes