logo elektroda
logo elektroda
X
logo elektroda

Video tutorial displays NEXTION

ekrzychoooo 40851 274
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #211 18918362
    ekrzychoooo
    Level 17  
    One picture. With the xpic command, you cut and display what you currently need.
  • ADVERTISEMENT
  • #212 18918385
    kaino
    Level 12  
    hmm, i still don't really know how to do it :)
  • #213 18918400
    ekrzychoooo
    Level 17  
    In the project, insert the same picture that you put here (containing all cases of progress bar).
    With the xpic command you can cut a fragment out of this image and display it on the screen. The xpic command can be used locally in the LCD or sent from eg arduino (sendcommand ("....")).
  • #215 18918762
    Anonymous
    Level 1  
  • #216 18918858
    ekrzychoooo
    Level 17  
    You absolutely must have every 1%? I think that, as you showed in the previous picture, every 10% for a pest is not bad.
  • ADVERTISEMENT
  • #217 18977476
    kuba2509
    Level 14  
    Hello

    The first time I have to use this display, the project I want to copy is: http: //souliss.net/articles/DST/ I made the project and it works great but.
    In the project in the HMI file there are words in some exotic language I would like to change them. So I ask colleagues with more experience whether it can be done in Nextion Editor, or do I have to design the HMI file from scratch.

    best regards
  • #218 18977523
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #220 18977601
    ekrzychoooo
    Level 17  
    I don't see any exotics in the display design itself. Paste the screen where you can see it.
  • #221 18977652
    kuba2509
    Level 14  
    Hello

    On "page 1" upper left corner.
    On "page 2 and 3" everything in some language I don't know, probably Italian.
  • #222 18977681
    Anonymous
    Level 1  
  • #223 18977686
    ekrzychoooo
    Level 17  
    these are pictures. Replace them in some photo shop
    Link
  • #224 18977721
    kuba2509
    Level 14  
    Approx.
    thanks for the hints i will try to do it.

    Added after 3 [hours] 24 [minutes]:

    Hello
    I took pictures in the right resolution and I had no problem with pasting them to the "picture" on the bottom left in Nextion Editor, so I have no problem with pasting them to the "page" on the right at the top.
    What am I doing wrong?
  • #225 18978373
    ekrzychoooo
    Level 17  
    Parameter sta in settings page you pass there image
    Parameter drink in settings page there you enter the index of the image
  • ADVERTISEMENT
  • #226 18979610
    kuba2509
    Level 14  
    Thank you for your help I managed to change it.
    best regards
  • #227 19001249
    ekrzychoooo
    Level 17  
    Good morning
    I need help. Someone could open the hmi file at home. There is one TextSelect element in the project and it causes NextionEditor to hang during compilation.
    I wanted to check if this only happens on my PC.
    TEST2.ZIP Download (16.59 MB)
  • #228 19001255
    kaino
    Level 12  
    ekrzychoooo wrote:
    Good morning
    I need help. Someone could open the hmi file at home. There is one TextSelect element in the project and it causes NextionEditor to hang during compilation.
    I wanted to check if this only happens on my PC.


    I will go classic, I can see that you are combining with the new display
  • #229 19001297
    ekrzychoooo
    Level 17  
    kaino wrote:
    I will go classic, I can see that you are combining with the new display

    Well, if I change the drag attribute to yes, it hangs when compiling.
    I am using version V1.61.2 on Win7
  • #230 19001323
    Anonymous
    Level 1  
  • #231 19001334
    ekrzychoooo
    Level 17  
    On the new editor.

    Added after 1 [minutes]:

    OK thanks. I will try to reinstall.
  • #232 19364124
    doran5
    Level 8  
    Hello.
    I have the screen as you can see.
    At the bottom I have a numeric field n7, a text field t7 and a button that changes the type of timer with the code:
    
    n7.val+=1
    if(n7.val>4)
    {
      n7.val=1
    }
    if(n7.val==1)
    {
      t7.txt="monostab: 0 na 1"
    }
    if(n7.val==2)
    {
      t7.txt="monostab: 1 na 0"
    }
    if(n7.val==3)
    {
      t7.txt="generator od 0"
    }
    if(n7.val==4)
    {
      t7.txt="generator od 1"
    }
    



    There is also a timer on the page which after loading the page updates the string t7 according to the value of the numeric field n7 after loading the page
    Code:
    
    // ładuje opisy
    if(n7.val==1)
    {
      t7.txt="monostab: 0 na 1"
    }
    if(n7.val==2)
    {
      t7.txt="monostab: 1 na 0"
    }
    if(n7.val==3)
    {
      t7.txt="generator od 0"
    }
    if(n7.val==4)
    {
      t7.txt="generator od 1"
    }
    //////////////////////////////////
    if(n6.val==1)
    {
      t6.txt="tranzystor"
    }
    if(n6.val==2)
    {
      t6.txt="triak"
    }
    if(n6.val==3)
    {
      t6.txt="przekaŸnik"
    }
    if(n6.val==4)
    {
      t6.txt="beep"
    }
    
    
    Video tutorial displays NEXTION
    As I change the value in the first two X-type fields using any keyboard, the value of the generator type is reset to zero. (this also applies to the type of output)
    The question is where is the cause.
  • #233 19364138
    ekrzychoooo
    Level 17  
    Upload the HMI file here
  • #236 19364251
    doran5
    Level 8  
    Thanks for the fix, but what was the error?
  • #237 19364268
    ekrzychoooo
    Level 17  
    I showed it in one of the films (local vs global, I think).
    The keyboard is the next screen and on returning from it all local variables are cleared and the global ones remain unchanged
  • #238 19364283
    doran5
    Level 8  
    Thanks, I'm only sitting in it for the 3rd day but it's still cool because the previous screen was 1000 lines on the UTF library.
    Sometimes, as always, he writes faster than I think and read.
    Greetings to AS
  • #239 19671728
    kuba5642
    Level 2  
    Hi,
    I have a nextion display from the intelligent and arduino mega series, I would like to use gps to display the current speed and distance traveled on the display. Could someone explain how to do this?
  • #240 19671744
    Slawek K.
    Level 35  
    Take a look at the tutorials in this thread and you will have the knowledge how to do it.

    Greetings

Topic summary

A new video tutorial series for NEXTION displays is being developed, focusing on various functionalities and programming techniques. Users discuss the capabilities of NEXTION displays, including sending commands, managing timers, and handling multiple pages. Key topics include using buttons to control outputs, sending data from Arduino to NEXTION, and managing display states across different pages. Users share code snippets for specific tasks, such as updating text fields based on variable values and implementing timers. There are also discussions about troubleshooting issues related to memory usage on Arduino, interfacing with GPS modules, and optimizing communication between Arduino and NEXTION displays.
Summary generated by the language model.
ADVERTISEMENT