-
-
Notifications
You must be signed in to change notification settings - Fork 49
Modifying HASPone to work with other Nextion screens
The HASPone project is developed for the Nextion 2.4" Basic or Discovery devices, models NX3224T024
(Basic series) and NX3224F024
(Discovery series). If you're building your own HASPone, it is strongly advised that you purchase one of these two specific model devices for everything to work out of the box.
- It's the largest Nextion device which can fit between the mounting screws of a North American workbox in portrait mode
- They're less expensive than the other 2.4" devices ("Enhanced", "Intelligent", etc) and the project does not make any use of the additional functions offered by the more expensive models
- Usable with the English-language Nextion editor
- The 3D printable enclosure models included with the project will only fit these two specific displays
- The power supply on the PCB is specified to handle the current draw from these displays
It technically is possible to utilize another Nextion device with this project but you might need to do some substantial work on your side to make it happen. This next section will explain that options available, and what one would need to do in order to accomodate the chosen display.
Using an Enhanced 2.4" Nextion display is possible in this project but is probably not a good idea. You'll be creating extra work for yourself for no benefit, as the additional functionality is not used in the project. You'll pay more for the device and what you'll get in return is additional hassle.
- You'll need to modify the 3D printed enclosure to fit the display, as the Enhanced models have a battery mount which will get in the way.
- Flash the device with the file
HASwitchPlate-Enhanced.tft
using the SD card upload method.
Nextion makes a line of display devices up to 10". Parts of this project might work with the larger displays but you'll need to deal with the issues outlined below.
- You'll need to re-work the position of all objects on every page of the Nextion project in the Nextion editor.
- Any updates to the main project that update the Nextion firmware will require that you repeat the process above with each release
- Some of the provided Home Assistant blueprints provided in the project will not work correctly (typically, those blueprints which have "with icon" in the title).
- You'll need to redesign both sides of the 3D printed enclosure models.
- The power supply used in the project is rated for 600ma. ~250ma of that is utilized by the microcontroller, leaving about 350ma available for the Nextion. Most Nextion models above 5" consume more than that, and as such, cannot be safely powered by the project PCB as provided. Check the Nextion datasheet library here to confirm the power draw for the specific display model is less than 350ma.
"TJC" is the Chinese company which manufactures the Nextion displays. Nextion has distribution rights to these devices outside of mainland China, however one might find TJC panels being sold at a discount. The panels are the same as the Nextion devices but are only compatible with a Chinese language editor. You have a couple options in front of you with a TJC device.
If you have the TJC equivalent to the Nextion 2.4 basic specified in the project, you can flash the device with the file HASwitchPlate-TJC.tft
using the SD card upload method. This display will function as expected and will work with the 3D printed models provided. Any modification to this project file will require the use of a Chinese-language editor.
Other TJC devices will also work but are subject to all of the concerns raised above (meaning, you need to rework the project file, the enclosure, and keep within the 350ma power budget). On top of that, the editor that works with TJC devices is entirely in Chinese. The UI of the TJC editor is the same as the English-language Nextion. I created the original TJC-compatible firmware by opening both the English language Nextion editor and the Chinese language TJC editor side-by-side, and referring to the English UI to figure out which button does what while working through the TJC editor. It's not exactly fun but it's doable.