You are not logged in.

#1 2019-09-08 20:01:55

sinned6915
Member
Registered: 2019-08-22
Posts: 10

Nextion Display setup for nanoDLP build 2229 and above

Here is what I did to get my Nextion working with a raspberryPi3B+ and the current as of this writing (September 2019) nanoDLP Build 2229.

It turned out to be be MUCH simpler than any of the previous instructions, or what you might find as instructions online in the results of a internet search. Those instructions are for older versions of nanoDLP, and while they may be accurate, do not reflect the current state of the program.

I am using a Nextion NX4024T032 - Generic 3.2" HMI TFT LCD Touch Display Module and I am using the serial over GPIO instead of the supplied serail2USB adapter.

1. Install the nanoDLP distro to the micro SD card like any other raspi distro. I used balena Etcher.

https://www.nanodlp.com/download/#nanodlp

0POdnRr.png

2. Use raspi-config to configure the serial adapter.  I am copying info and images from 'The Wanderer' https://collingwood.me.uk/blog/index.ph … ield-v1-1/ to make this more comprehensible.

3.Set up the serial interface by going into the raspian configuration utility-

 pi@raspberrypi:~ $ sudo raspi-config 

jFAfIPU.png

In the main config screen, scroll down to “Interfacing Options” and hit enter. Its Number 5 on the list at the time of this writing.

Scroll down to “Serial” and hit enter. Its 'P6' at the time of this writing.
nWnyAva.png
The first configuration choice is "Would you like a login shell to be accessible over serial?"
Use the arrow keys to swtich options, select “No”
y4vOnjR.png
Enter to proceed to the next page
The next choice is to enable the hardware serial port-
"Would you like the serial port to be enabled?"
Use the arrow keys to swtich options, select “Yes”
cOECgJB.png
Hit enter and you will get the following confirmation screen-
xgcHryt.png
Hit enter to return to the main raspi-config menu. Use the Tab key to access the bottom selections, select “Finish” and hit enter.
KDZHIOf.png
Hit enter to reboot:
Jzlts9C.png

4. Perform the usual ritual of raspi update- SSH to the Pi and do the usual

pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get upgrade

I did not reboot yet, I will do that in the next part.

5. Set up the Nextion
The Nextion has an onboard processor and graphics system. It needs some configuration instructions. You need to put the right *.tft file on a microSD card, put that in the Nextion and then boot it up. The Nextion will find the file and start updating automatically.

Get the current Nextion files from the NanoDLP repository. Either browse to it via the 'Download' page or go here- https://www.nanodlp.com/download/#nextion. You will need to download and expand the compressed file and then choose the one that matches your unit. The directory listing of the expanded repo shown here is the file list for V1.1.0-tft from nanoDLP.
8wyXBVD.png
I have the 3.2" basic one-
jRuOedF.png

I put it on a spare card and powered up the Nextion. The screen turned a light gray, and in red letters it gave me status updates as it updated.

2X09pYa.png

6. Connect the Nextion to the Pi. I am using the included 4 wire cable that came with the display to connect to the Pi. Here is the image from Tibus' github page-
hardware.jpg
I am not sure of the BCM pin assignments, but the header connector position is correct. This is my reference to Pi pinouts - https://pinout.xyz/.

This is where I rebooted the raspi and things initialized. After reboot, the display on the Nextion showed the new logo while connecting and the new Human Machine Interface appeared.
hmi.png

7. Update NanoDLP.  Use a browser to go to the instance of NanoDLP. I assume that you can do this without instruction. After you go through the initial startup of the instance of nanoDLP, where you choose the machine type and setup your WiFi, you will want to update to the most current system. 
(At some point, I had also applied the Wanhao D7 configuration from Teching Tech, so the machine ID is 'NanoDLP D7.' Yours will be different).

Look at the version at the top right hand corner.
YhJQ6DL.png
If there is a blue box here telling you that there is an update available, click it and follow the prompts to install the update. Alternatively, you can go to the Setup->Tools ->Upgrade nanoDLP menu to get there.
You want to update to a version greater than #2101. I am on #2314 at the time of this writing. The system will reboot to complete the upgrade.
nMT0f4e.png

8. After the upgrade, you need to set nanoDLP 'Setup Mode' options to "Advanced"
In the first settings group, under "Printer Settings"
OrwkP0d.png
Scroll to the bottom and hit the green button to 'Submit'

9. After the display refreshes, scroll to the bottom where the 'Submit' button is.
In the section for 'Various Settings', there is an option for 'Nextion Display Port Address'
Since the Nextion is the only serial device connected to the Pi at this time, there is only one option.
DJpS23Y.png

10. I can not remember if I rebooted or restarted nanoDLP, but the display if responsive and functional.
My display now works as is shown in the YouTube video- https://www.youtube.com/watch?v=XrBzG2-P-Qo

Last edited by sinned6915 (2019-10-04 04:52:49)

Offline

#2 2019-09-12 10:18:25

uups
Member
Registered: 2018-01-08
Posts: 15

Re: Nextion Display setup for nanoDLP build 2229 and above

Will USB file loading work fine on pi4?
I did as above.
pi3b + only shows the loading screen.

Last edited by uups (2019-09-14 03:59:06)

Offline

#3 2019-09-13 14:50:50

mqqqquser
Member
Registered: 2019-09-13
Posts: 2

Re: Nextion Display setup for nanoDLP build 2229 and above

Hi, where is possible to find .hmi files of nextion screen?
It would be usefull su add settings to the nanodlp original version

Offline

#4 2019-09-13 23:12:38

sinned6915
Member
Registered: 2019-08-22
Posts: 10

Re: Nextion Display setup for nanoDLP build 2229 and above

I am not involved in the project in any capacity. I am just a user like you. I am replying because as a user like you, it really is disappointing when others don't respond:

1. I have no idea about raspi4 or about USB file loading. I would have to assume that as long as the raspi works, you should be able to interact with it like any other raspi. 

2. *.hmi files: as in the source code for the display? I don't believe that they are in the archive. You will have to ask the author.
I am fairly certain that the compiler and menu editor is closed source and you have to sign a EULA or similar with Nextion to get it. That is what I remember from reading forum posts somewhere.

I am sorry I can not be of more assistance.

Offline

#5 2019-09-14 03:32:42

uups
Member
Registered: 2018-01-08
Posts: 15

Re: Nextion Display setup for nanoDLP build 2229 and above

mqqqquser wrote:

Hi, where is possible to find .hmi files of nextion screen?
It would be usefull su add settings to the nanodlp original version


I wish I had a hmi file. I want to modify the ui.

Offline

#6 2019-09-14 03:38:50

uups
Member
Registered: 2018-01-08
Posts: 15

Re: Nextion Display setup for nanoDLP build 2229 and above

sinned6915 wrote:

I am not involved in the project in any capacity. I am just a user like you. I am replying because as a user like you, it really is disappointing when others don't respond:

1. I have no idea about raspi4 or about USB file loading. I would have to assume that as long as the raspi works, you should be able to interact with it like any other raspi. 

2. *.hmi files: as in the source code for the display? I don't believe that they are in the archive. You will have to ask the author.
I am fairly certain that the compiler and menu editor is closed source and you have to sign a EULA or similar with Nextion to get it. That is what I remember from reading forum posts somewhere.

I am sorry I can not be of more assistance.




Thank you for your hard work.

Did you use Raspberry Pi 3b +?

Last edited by uups (2019-09-14 03:57:55)

Offline

#7 2019-09-14 12:51:23

uups
Member
Registered: 2018-01-08
Posts: 15

Re: Nextion Display setup for nanoDLP build 2229 and above

pi4 solved.
But pi3b + still doesn't get past the loading screen.

https://www.nanodlp.com/forum/viewtopic … 9108#p9108

Offline

Board footer

Powered by FluxBB