67 Nextion Display Page Change with Arduino and NO Nextion Library Nextion tutorial Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2019
  • This video explains changing pages using a standard Nextion Button and then sending a command from the Arduino.
    If you enjoy the content considering donating a cup of coffee at ko-fi.com/cheapcontrols
    You can sort and find videos better on at www.cheapcontrols.com
    I have started a group on Facebook to make it easier to interact with user-requested videos. Consider looking it up. pg/cheapcont...

ความคิดเห็น • 64

  • @Fishbowlfx8
    @Fishbowlfx8 2 หลายเดือนก่อน

    Because of this tutorial. I'm becoming more smarter. Thank you for the clear and concise explanation.

  • @ZOLDAIOQUE88MADACI
    @ZOLDAIOQUE88MADACI 3 ปีที่แล้ว +1

    all what i can say is that your videos are amazingly satisfying..... keep going please please

  • @00015957
    @00015957 4 ปีที่แล้ว +1

    Pristine explanations. Your channel is totally underrated

  • @jonrans73
    @jonrans73 4 ปีที่แล้ว +7

    Nice and clear! Why can't everyone do that?

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว +1

      Thank you, I try to break everything down to show it the way I learned.

  • @paolosbriglio1624
    @paolosbriglio1624 4 ปีที่แล้ว

    very nice explanation

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว

      Thank you for the compliment.

  • @electrobricolarte9623
    @electrobricolarte9623 4 ปีที่แล้ว

    very nice explanation thanks

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว

      Thank you for the positive feedback

  • @spendenliketv3470
    @spendenliketv3470 3 ปีที่แล้ว +1

    Thank you very much for your videos. TH-cam Gold

  • @awdgt2stinger270
    @awdgt2stinger270 8 หลายเดือนก่อน +1

    I'm sorry if this has been covered... But I'm not quite sure I understand what physical pin on the controller your using to "Write" to the Nextion. Did I miss something? Edit...
    I think I got it. Serial.Write is hard coded to go out the tx pin of the Arduino, no need to define an output pin.

    • @CheapControls
      @CheapControls  8 หลายเดือนก่อน

      That is true. In some of my videos I use a nano and in some I use a Mega. When I use the nano I use a library called softwareserial.

  • @wikovisser3664
    @wikovisser3664 3 ปีที่แล้ว +1

    Hi I'm using currently the library for this display. I can't go to a page using your method manually via Arduino... Any idea why?

    • @CheapControls
      @CheapControls  3 ปีที่แล้ว +1

      I am not sure without seeing the code. If you go to www.cheapcontrols.com you can cut and paste the code for comparison. Thanks for watching.

  • @worstgamer848
    @worstgamer848 3 ปีที่แล้ว

    Hello, can i read only over seriell pin the actually loaded page number from the nextion display without the libary. i mean, when i power on an arduino, the scetch reads over the seriell connection, which page is on the nextion display loaded? i doesn't found anything in the internet, only examples with the nextion libarys, but nothing without the libary ...

    • @CheapControls
      @CheapControls  3 ปีที่แล้ว +1

      the sendme command will send the page number over the serial port. I have been meaning to make a video on this command. No library needed for this.

  • @BrainTrance
    @BrainTrance ปีที่แล้ว

    Is it possible to include the same instruction in EVERY button in a single Page without tediously copy/pasting this instruction in each button separately? Does Touch Press/Release Events in a Page's section have to do with that?

    • @CheapControls
      @CheapControls  ปีที่แล้ว +1

      That is an interesting question. My first thought was, you have to copy and paste all buttons but I wonder if there is another way. I know in JavaScript you can make the whole page a button and then reference the id. I wonder if there is a way in the Nextion ide. To be honest I am not sure and it will take time to dig into it but I think I want to dig into it. Thanks for that question.

  • @john2478
    @john2478 หลายเดือนก่อน +1

    I am making progress in understanding how to program the ESP32 and the Nextion. It is slow but I am making progress in a determined way. Now I cannot find any videos of sending a signal from the Arduino to different pages on the Nextion. If I comment out page 1 on IDE then there is no problem in getting the boxes populated from the Arduino to page 2 on the Nextion. Also when moving from page 1 to page 2, data from the Arduino is deleted on page 1. Have you experienced this or is it jut a feature of the Nextion?
    I currently have 6 numbers boxes that are populated from EEprom in the Nextion but can be updated and saved back to EEprom. I do like to see the same data coming back from the Arduino sitting in a column of number boxes alongside. To complete the project I am working on I need to have a second page of both number boxes and text boxes. At the moment I am stumped. Can you help?
    John

    • @CheapControls
      @CheapControls  หลายเดือนก่อน

      You have to set the box to global. Try this video th-cam.com/video/jXpgeZ7cmRo/w-d-xo.html

    • @john2478
      @john2478 หลายเดือนก่อน

      @@CheapControls Thanks for the reply.. I had found that I had not noted them as Global myself. I am rapidly learning now and the latest stumbling block was to get some simple division to work. I discovered there is no such thing with Arduino and Nextion! I spent ages figuring out for myself how float values v int v long v string worked and by using numbers rather than cell references I eventually got it to work by trial and error, subsituting cell references for actual numbers and gradually it all worked. Thanks again for the various tutorials. John

  • @aliyaadila1350
    @aliyaadila1350 ปีที่แล้ว

    hi! may i know is it possible if I want the button in second page go to page one and display the text(from arduino) in first page nextion?

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      That is possible. I am not sure I completely understand you but if you mean control a text box on a page that is not being displayed you need to set the text box as global. I have more videos on such things. Let me know if I understood your question correctly and thank you for watching.

  • @user-hu8sc5cn4n
    @user-hu8sc5cn4n ปีที่แล้ว +1

    If I have "Next" button that will go to the page 4 but it will not go to the page unless I receive number from arduino that will be less than 100 for example I added float number called x0 in the screen and it will show the number I reviewed from arduino
    So in the "next" button I added instructions set
    in nextion editor :
    If( x0.val

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      this would depend on how you have your x0 button configured. How many decimal places are you showing?

  • @EmbeddedEnigma
    @EmbeddedEnigma 2 ปีที่แล้ว

    Hi i know this is an old video but i am gonna ask anyway. How can i stop nextion to referesh my page when i change yhe page. For ecample i habe a button and slider on page 2 now on page 2 my slider is on 30per and button is pressed but when i go to page 1 and come back to page2 the button is shown as unpressed and slider back to 50per position like verything is reset to its priginal condition

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      Do you have the slider set to global or local?

  • @Clip7heApex
    @Clip7heApex 2 ปีที่แล้ว

    I can't get the nextion software to load properly on Windows 10. Keep getting errors saying C++ redistribuables not up to date even though I've reinstalled them and updated them countless times. I don't know what I'm doing wrong.

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      Can you get an older version? If you go to my website and submit a comment with your email I can send you an older version. I think I have in older one on another computer.

  • @joescopo8933
    @joescopo8933 ปีที่แล้ว

    I have a question regarding the Nextion display and a double state button with the project having multiple pages. Here's an example of my project: On "page 0" I have a double state button used to turn on and off an LED hooked to an arduino. On "page 1" of the project, I have a number box that shows the data coming in from a potentiometer hooked to the arduino. The problem I'm having is that when I press the button to turn on the LED, then go to page 1 to look at the potentiometer value, then go back to page 0, the button is in the LED off state eventhough the LED hooked to the arduino is on. I have to push the button twice to turn off the LED. How do I configure this project to show that the button is in the ON state when switching back and forth from page 0 and page 1, since the LED hooked to the arduino is ON. Anyways, these are great video tutorials on the Nextion display. Thank you!

    • @CheapControls
      @CheapControls  ปีที่แล้ว +1

      Try changing the scope attribute on the button the from local to global.

    • @joescopo8933
      @joescopo8933 ปีที่แล้ว

      @Cheap Controls , ok I'll try it, thank you.

  • @juanandreslopezcubides5626
    @juanandreslopezcubides5626 8 หลายเดือนก่อน

    Hello, do you know what I can do so that when I change the page the timers stop until I return to said page again?

    • @CheapControls
      @CheapControls  8 หลายเดือนก่อน

      I believe the timers stop when you are not on the current page. then when you go back to the page the timers reset back and start over again.

  • @lukesmith251
    @lukesmith251 3 ปีที่แล้ว

    Why does my nextion have an extremely noticeable page change? A white slider slides quickly across the screen and load the new page. Really ruins my designs.
    Im running the enhanced 4024k011 3.2”

    • @lukesmith251
      @lukesmith251 3 ปีที่แล้ว

      Here is an example of what mine does: th-cam.com/video/y5fZlWnO4tU/w-d-xo.html

    • @CheapControls
      @CheapControls  3 ปีที่แล้ว

      That model is one my favorites. Enhanced but at a good price. I have not been able to justify the cost of the intelligent models yet. I had a similar issue. i wanted to have a png of an led and use the vis command to display and hide it at a rate that made it look like it was fading out. This is not possible with these displays. You have to remember that sometimes it comes down to the fact that you get what you pay for. Over all I am happy with them but I do wish they had a little more power.

    • @CheapControls
      @CheapControls  3 ปีที่แล้ว

      Thanks for the link. I don't remember it being that distinct. I will look at it again. Do you mind listing the background color numbers you are using?

    • @lukesmith251
      @lukesmith251 3 ปีที่แล้ว

      Cheap Controls I don’t have them at the moment, I can check when I get home but, it does it regardless of the background colors

  • @Dvance
    @Dvance 2 ปีที่แล้ว

    I wonder if there's a way to make a one-time setup type screen. Where the code runs the first time it turns on, then after that, however many times you turn the screen off and on, it'd never run that code again.

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      On the Nextion or load a single time from the Arduino? Both are possible. Thank you for watching and taking the time to think of an original idea.

    • @Dvance
      @Dvance 2 ปีที่แล้ว

      @@CheapControls either. I just really want a way to make a one-time setup screen with my Basic Nextion Display, since you can't save data with it, according to the documentation, I thought you might have an answer :)

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      Let me think about it. What do you normally connect your display too? I usually use an Arduino nano.

    • @Dvance
      @Dvance 2 ปีที่แล้ว

      @@CheapControls I use my Leonardo.

    • @Dvance
      @Dvance 2 ปีที่แล้ว

      @@CheapControls But yeah, I basically just want to be able to save data between on-off cycles, whether it be variables or constant, but I don't want to get the Enhanced version to be able to programmatically save files to an SD card.

  • @tunguyen-vh7pg
    @tunguyen-vh7pg 12 วันที่ผ่านมา

    I tried many times but couldn't

    • @tunguyen-vh7pg
      @tunguyen-vh7pg 12 วันที่ผ่านมา

      Can you send me code and file HMI?

  • @user-hu8sc5cn4n
    @user-hu8sc5cn4n ปีที่แล้ว +1

    If I have "Next" button that will go to the page 4 but it will not go to the page unless I receive number from arduino that will be less than 100 for example I added float number called x0 in the screen and it will show the number I reviewed from arduino
    So in the "next" button I added instructions set
    in nextion editor :
    If( x0.val

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      this would depend on how you have your x0 button configured. How many decimal places are you showing?

    • @user-hu8sc5cn4n
      @user-hu8sc5cn4n ปีที่แล้ว +1

      @@CheapControls 3 integer digit 2 decimal digits
      For example 100.25

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      I would probably need to see the code but 100.25 xfloat value is actually 10,025 integer.

    • @user-hu8sc5cn4n
      @user-hu8sc5cn4n ปีที่แล้ว +1

      @@CheapControls how can I send it to you?

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      You have 2 choices. There is an email associated to this youtube channel or you can go to www.cheepcontrols.com and submit a comment. I will reply and then you can send me your code.