Inverter Remote Screen with a Nextion

non-EV Solar, Wind and other renewable power sources
non-EV batteries and other energy storage stuff
Forum rules
Important!
This forum is for discussion of Non-EV matters.
Post Reply
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Inverter Remote Screen with a Nextion

Post by paulvk »

I thought I would start a new topic as I have the Nextion working with my PIP's as a remote screen with an AVR micro
and now communicating directly with the PIP with only the Nextion with a TTL to RS232 buffer and as a separate topic
it would be easy to find.
The Nextion screen is sending a QPIGS and then displaying some of the data on the screen as a proof of concept.
Now I am going to get the status screen I have made and alter it to work without the AVR micro in the middle.
I will be making all the code available which means people can make their own remote control touch screens.
I now have a 10 inch intelligent screen these intelligent screens have the capability to write to an sd card
to play audio files and video from the card.
I hope to get the status screen working before Xmas , a Xmas present.
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

I have succeeded in making it work!
The first page (screen) enables the sending of all the "Q" commands to get status of inverter it prints the
received data to a screen at the bottom.
The second page the status2 page automatically every 20 seconds sends QPIGS , QPGS1 AND QPGS2 to the inverter
it displays the data in text and shows animated graphics like watchpower giving a visual indication of what is happening.
Attached is the HMI and TFT file
The HMI file allows you to look at and modify the pages if you want.
The TFT file can be loaded onto a mini SD card and loaded onto a 7 inch enhanced nextion display.

Regards Paul
Attachments
ezyzip (2).zip
(1.6 MiB) Downloaded 51 times
ezyzip (1).zip
(614.3 KiB) Downloaded 40 times
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

Here is the code to calculate the CRC with the Nextion so now its possible to make
a remote display with a Nextion and change voltages etc. as the CRC can be calculated
it also means the CRC sent by the inverter can be checked.
Because the signal is RS232 very long cables or wireless links can be used and the CRC prevents errors.
I will eventually have a fully working Nextion file that you can just put onto a sd card and load into a 7 inch display.
Regards Paul
Attachments
CRC_16.Nextion.zip
(723 Bytes) Downloaded 35 times
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

Its taken some time to learn how to program these displays using the limited language they have
but now I have made 5 screens that enable the : setting of the clock , seeing the live data like watchpower ,
changing the voltage settings and changing the hardware settings.
There is also a screen that has the Q commands to query the inverter it displays the returned data in a text box.
The Nextion calculates the CRC when it sends voltages changes so the inverter can accept them.
When a voltage change is sent the Nextion looks for the ACK OR NAK to inform if successful.
The Nextion has the codes for settings hard coded into it as they are static.
Note also this code contains a much better updated CRC generator that does not use eeprom.

So it is a working remote in beta form with more tidy up needed.
Regards Paul
Attachments
Ivert_Direct_20_5_21.zip
(1.94 MiB) Downloaded 38 times
Last edited by paulvk on Thu, 20 May 2021, 10:38, edited 2 times in total.
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

This is a nextion screen that enables the generation of CRC16 for what you input.
So in the text box is QPIGS and it will generate the CRC then display it in HEX
it will also send the full command on the serial output of the nextion or
if you run it in the nextion editor the full serial output is available in the serial output box.
By clicking or touching the text box with QPIGS in it a keyboard pops up
you can then type in what you want.
Note also this code contains a much better updated CRC generator that does not use eeprom.


Regards Paul
Attachments
CRC16_20_5_21.zip
(30.7 KiB) Downloaded 32 times
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

Found an error in the voltage setting page back to grid volts
it would go up/down in 100 millivolts but should be whole volts
it still works when you send the inverter volts eg 44 , 45 , 48
but the inverter rejects 44.x but it shows on the screen
that its rejected so that works!

Found some more problems caused by fixing this one , should have update soon.
Regards Paul
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

Ok fixed the problems and added some responses that track progress when using the voltage screen
it asks to wait , checks if changes are successful and shows the command sent to inverter.
I also changed timing on the timers as the buffer sometimes has old data if the inverter
was slow to respond to a command on a previous screen.
Did some work on the Status2 screen , resize some variables and deal with zero charge and zero discharge
which on the new firmware from the forum is not a problem as the inverters respond with one amp
but is with original firmware.

I find it nice to be able to change the settings with the screen compared to a computer or worse the inverters screen
and I think I have found a way to use the graph function updating the values while the monitoring screen is running.
Regards Paul
Attachments
Ivert_Direct_25_5_21.zip
(1.66 MiB) Downloaded 30 times
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

I have written a document to try and make it easier to understand how the reparse mode works
and how to use the timers as sub programs. It also has a lot of comments and instructions on how
to use the nextion language using the inverter code as the example.
Attached is a 6 page document in microsoft word format
Attachments
Animation.zip
(326.87 KiB) Downloaded 23 times
Reparse mode.zip
(10.36 KiB) Downloaded 23 times
User avatar
Roman khan
Groupie
Posts: 49
Joined: Fri, 10 Jan 2020, 03:23

Re: Inverter Remote Screen with a Nextion

Post by Roman khan »

Hi @paulvk
Thank you so much i am interested to make a customized display screen to monitor my axpert inverter performance,mounted inside steel box.i have very low knowledge of Electrical communication.i have some questions can we connect HMI directly with axpert inverter through HMI cable?can we make a customized display like atm machine having live videos in background.do you have complete video of your above experiment?can you send me above details in email?
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

Roman khan wrote: Mon, 06 Sep 2021, 03:04 can we connect HMI directly with axpert inverter
There needs to be a RS232 to TTL interface between the Nextion and the inverter RS232 port
as the nextion works with 5 volts and the inverter RS232 volts is to high and will damage the display.
example
https://www.ebay.com.au/itm/40214411394 ... SwnuxemxcG

You then need a regulated power supply of 5volts for the Nextion.
If you use the power from inverter RS232 port one of these
https://www.ebay.com.au/itm/31256843512 ... ctupt=true
Roman khan wrote: Mon, 06 Sep 2021, 03:04 do you have complete video of your above experiment
If you install the Nextion editor
https://nextion.tech/nextion-editor/#_section1

Then download the Invert_Direct_25_5_21.zip file above you can run it in debug mode
in the editor and see how it works you can also make changes to the display.

You can order a 7 inch Nextion display with a case.
User avatar
Roman khan
Groupie
Posts: 49
Joined: Fri, 10 Jan 2020, 03:23

Re: Inverter Remote Screen with a Nextion

Post by Roman khan »

paulvk wrote: Mon, 06 Sep 2021, 05:59
If you install the Nextion editor
https://nextion.tech/nextion-editor/#_section1

Then download the Invert_Direct_25_5_21.zip file above you can run it in debug mode
in the editor and see how it works you can also make changes to the display.

You can order a 7 inch Nextion display with a case.
Thank you Paulvk
The display Resolution of Nextion is 320 * 240
How we can use a high definition HD display.
I want to make a customized display like shown below in pic.what do you say about this setup?
Attachments
IMG_20210912_010032.jpg
IMG_20210912_010032.jpg (50.86 KiB) Viewed 131 times
images (1) (21).jpeg
images (1) (21).jpeg (35.61 KiB) Viewed 131 times
IMG_20210912_005815.jpg
IMG_20210912_005815.jpg (387.05 KiB) Viewed 131 times
paulvk
Groupie
Posts: 336
Joined: Fri, 23 Oct 2015, 23:45
Real Name: Paul
Location: Sydney

Re: Inverter Remote Screen with a Nextion

Post by paulvk »

The nextion is not powerful enough to do all that you would need a rasberry Pi and a display
or program an ESP32 with Arduino it has wifi and bluetooth
The Intelligent series could do logging to its SD card but still limited.

nextion enhanced 800 x 480 , intelligent 10 inch 1024 x 600
Regards Paul
Post Reply