Replies: 12 comments 22 replies
-
|
I should add that since I have a CNC router/mill, the plan is to cut this from a piece of PP plastic (poor man's POM). Hence why the back plate is quite thick as it would reduce machining time. I will likely make it even thicker where it's possible - which should also help beef it up for connecting a sort of bracket or holder for mounting on the lathe. That said, I'll probably 3D print the first version in PLA to check the fit and such. Once it's proven, I'll share the files, of course. Still to do:
|
Beta Was this translation helpful? Give feedback.
-
|
Also, I may change the legend/text a bit for the sticker on the back but I am not sure what they all mean as they are. X, Y, Z: those are the pulses for the motor drivers, right? (I think I will go with X-Motor/X-MTR) |
Beta Was this translation helpful? Give feedback.
-
|
I did have space issues fitting everything into the case and it took more than a few iterations.
That's not necessary in the 5 inch version and USB cable I linked has endpoints made from metal.
I'm also using the pre-soldered boards, pins are lower than other board features and don't seem to be a problem.
It's very convenient to have it accessible - it's okay if it's at some distance inside the case, you can 3D-print a special tool or use tweezers to put it in and out. I'm not aware of other ways to get the UI file onto the screen but it probably exists.
Not that I noticed.
Yes. JSIGNAL & JPOWER: What are those? Jog? For a jog pendant? If so, was I wrong about the PULSE inputs being for MPGs, too? Joystick signal and power. Joystick support is not implemented in the code but those pins are intended to be used with a 3-axis potentiometer-based joystick with a button. |
Beta Was this translation helpful? Give feedback.
-
|
A bit of a change as I now intend to include the buttons and handhweel needed for the ELS as well as the general lathe controls in the same enclosure as the display. Still missing a few things. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I have decided to get a 7in nextion screen and use the latest max code for a touch screen. I am wondering if you would have the initial case for the 7 in screen available please ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Nextion 7'' Enclosure Files GO HERE FOR LATEST FILES @AlanMerry and others, Keep in mind, I have not 3D-printed this myself as I don't have a printer large enough. All measurements, apart from the ones based off of Max's 5'' enclosure has been taken with calipers. As such, there's a risk I might not have gotten them all perfect, but I did my best. I am attaching two different design versions - all to do with the SD card reader slot in the Nextion. Honestly, I don't think the Nextion itself does this very cleverly. There's a fairly big opening and quite a risk of losing the card into all the empty space around it. (This will make more sense once you have the Nextion in hand.) Some pics. As you can tell, it's not aligned in the best way: As for the two different designs I am sharing, one has the larger slot (though only on the bottom): The other only has the microSD card slot, the idea being you can use its location as a starting point for your own design changes: Personally, if I needed access to the SD card I would grind some of the plastic from the Nextion itself, marked here in blue: While I think I got the screw locations sorted now some things are still left up to you:
Anyways, hope someone finds this useful. Whoever modifies this and improves on it, please share your files, too. |
Beta Was this translation helpful? Give feedback.
-
|
@AlanMerry OH! forgot, you actually have to be super careful about deleting buttons - it's a Nextion quirk and a silly one. Max's FW uses each button and text box's "Content ID". This ID than gets mapped to a specific function in the FW. The thing is, the Nextion Editor auto-assigns these IDs consecutively as you add elements during the design phase. BUT if you delete a button, the buttons created later than the deleted button will be moved up ID-wise and thus will no longer do what the code expects them them to do. So, forget what I said about "just" deleting buttons - instead MOVE unused buttons off of the canvas and I think the remaining ones should keep their ID... There's a workaround if it gets messed up - you would have to "fool" the button to send a different ID than its Nextion-assigned ID. You basically insert one line of code in the button attribute in the editor and the button will send the ID you "told it to" rather than what was auto-assigned to it, but I have explained how to do that elsewhere on the forum and I can find a link if you really need it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Final Files For 7'' Enclosure From Me - Feel Free To Modify The 7'' enclosure is good now. But do read the pointers below. About The Files GeckoSub Nextion 7'' Enclosure - V2.zip Some Pointers
Known "Issues" And Now, The Words On The Latest Changes @AlanMerry had pointed out that my bottom was thicker than Max's and I finally found out how that could lead to an issue with the female connectors not being able to fully reach the back side - which in turn, could lead to the male plugs not inserting fully. It's located so that it works with a 3mm flange thickness but since I had 4mm, that's why issues could arise (depending on the tolerances and tightness of the connector hole). The easy, proper fix was to lower the thickness in the connector area to 3mm - I kept the rest 4mm which is why you see the step: And the connectors sit ~0.2mm proud at the rear as expected per the CAD: The enclosure is also ~4mm shorter now making it 25mm tall like Max' 5'' version and M3x16mm screws work now. |
Beta Was this translation helpful? Give feedback.

















Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
UPDATE AS OF Feb 12, 2026
GO HERE FOR THE LATEST STL AND CAD FILES
Original Post Below
So, I am working on an enclosure/back as I have the bigger 7'' Nextion (with the glass front). Not too difficult with Max's original file for the 5'' version and some measurements of my own display.
Tight Fit For The USB Cable?
@kachurovskiy Did you have any space issues with the USB cable or is the one you linked to very low profile where it inserts into the ESP32? There's about 8mm from the studs that hold the H5 PCB to the floor of the countersunk area but most of the cables I have here are a bit too tall for that allowance. I guess, some of us may have to cut some of the plastic off of the USB connector?
The ESP I am using came with pins already soldered on, but perhaps those plastic spacers on the pins are a tad too tall. If I can pull them off and cut them down, that would help in this regard.
Micro-SD Access or Not?
Also, how important is it to have access to the micro-SD card once it's all assembled? On the 7'' display, there's quite the distance to the card readed on the Nextion PCB so it won't be easy popping a card in and out. Can I still bypass it and upload new Nextion files to the display in other ways? I have a TTL adapter on the way but how would I go about connecting that to the Nextion when the RX/TX port is taken up by the ESP? Can I somehow go through the ESP this?
Cooling...?
Does any of this run hot enough to become an issue? I have enough space to add a 40mm fan in the enclosure - like a 4010 from older 3D-printers. Or a 5010 if I move the H5 PCB a bit to the side.
If yes, then how would I go about it as I don't want it to suck in dust and chips...?
Beta Was this translation helpful? Give feedback.
All reactions