#62 Nextion Display - Timers Tutorial - no nextion.h library tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

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

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

    Genius tutorial!! do you know a solution to jump over when the gauge get to the end? so it start again!! and we can do a watch form example. Thanks a lot!

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

      It is ok!, solved with and if event. If the value get to the final value, get again the firts value and the loop will be closed in this way!

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

      I am glad you figured it out and thanks for watching

  • @user-momenahasan
    @user-momenahasan 11 หลายเดือนก่อน

    Thank you 💐

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

      You're welcome 😊

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

    Gostei muito!

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

      Thank you for the comment.

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

    Hi , My project has 4 page . I want to use chronometer, but timer is working just one page, other pages are undependent, do you have any idea about this siituation?

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

      You could try setting up global variables on the pages that are not displayed and copy the timer function to each page. then you could update the other pages so when you go back they are showing what you expect. I am not sure this is what you are looking for but it is something to try.

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

    Thanks a lot

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

      Most welcome, and thanks for watching.

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

    thanks for videos! great job.
    is there any option to make animations? for ex fade in? or only video files? (gifs too)?
    Can i move item from place to place? getting compile error trying to move with p1.x++

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

      I do not think there are any animations or gifs. only certain video files. You can use transparent images on certain models.

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

    Hello, Thanks a lot for the tutorial, i need some Help please.
    i need my Timer take me to another Page after 2 Sec for example.
    Thanks in advance

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

      Set the tim value to 2000 Then add the line "page 1" or change the 1 to whatever page you want it to go to.

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

    Thanks a lot for the video. I can't make the timer keep going after 360 seconds. Any tip for making it go over 360?

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

      You can try a timer that increments a variable then use a second timer that checks the variable

  • @alunosouza8931
    @alunosouza8931 4 ปีที่แล้ว +2

    hi
    can help me?
    how insert value of page 0 for page1 ,I did think this way, but no work : page1.x0.val=page0.x0.val
    thankyou!

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

      do you have the x0 objects set as global or local? They need to be global

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

      ​@@CheapControls thankyou for reply, I set as global now, but " page1.x0.val=page0.x0.val ", no work.
      I did see that changing the pages, the values are deleted, what you think?, is need stored the value in EEPROM and after get it in the other page?
      again thankyou!

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

      @@alunosouza8931 The code works fine on my computer. If you want more assistance you will need to join the cheap controls private Facebook. It is easier than in TH-cam comments.

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

      @@CheapControls
      Hi,
      you're right, my object was wrong, one of them was local, so my code didn't work.
      now I'm here with another problem, I want to use the Xflot object, type a float value and, with a click, pass the value to the arduino, but I don't understand how it is, a float variable in the arduino doesn't accept, it gives an error.
      *sorry, I don´t have facebook.
      very thankyou your attention!

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

      @@alunosouza8931 The Nextion calls the value a float but it is not a float it is just an integer being displayed like a float. You need to send the value and the vvs1 attributes back to the Arduino so you can do a math function to calculate the float value in the Arduino. It is too difficult to put in a TH-cam comment. I have a series of videos on transmitting float values from the Arduino to the Nextion. The third one comes out on Wednesday. I will add one on how to send the value from the Nextion to the Arduino but I have to create it so it will be a few days.

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

    Hello friend. What can I do so that when I open a keyboard or change the menu, the timers stop?

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

      On click you can disable the timers and when the keyboard closes a page refresh happens. you can enable the timers on page load.

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

    Just out of curiosity, why didn't you use a number block instead of a text block and have to do a conversion? Is there an advantage to that?

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

      No advantage just preference. I have other videos where I send as values instead of text.

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

      @@CheapControls OK, thanks!

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

      to use numbers, just set n0.val=z0.val and the timer will affect numbers

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

    Hello Cheap Controls, can you help me with a software-related matter? I want to create a project. In my project, I will be using a Nextion TFT screen, Arduino Uno, Green LED, Blue LED, DC motor driver, and DC motor components. In addition, I will use one yellow button and one red button.
    The program's operation is as follows:
    I will input a value, such as 5000 milliseconds, into the "n0" object on the Nextion screen. I will also enter a value between 0 and 255 into the "n1" object, which will be related to the motor's speed. Based on these values, the motor will run between 0 and 255 revolutions for 5000 milliseconds and then stop. After entering these values, to start the program, the "b0" object on the Nextion screen and the Arduino, connected to the analog "pin1" yellow button, will serve the same function. Whenever the analog "pin1" button or "b0" object is pressed, the motor will start running again and stop when pressed again. In case of an emergency while the motor is running, there will be a red button connected to analog "pin2" to stop the motor. When the "pin2" button is pressed, the running program will stop immediately, and the green LED will turn off. To restart the program, we will need to press the "Dual State Button" button. All of this system will be controlled by the "dual state button" object on the Nextion screen. When the dual-state button is open, the system will be ready to run, and the position of the dual-state button will be indicated by the green LED connected to digital "pin 12". I want to create a project that operates in this way. What is the cost of such a project?

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

      I got this request in an email form also. I will respond to your Email. Give me another day to work it out. Thanks for watching.

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

      You're welcome, thank you for your interest and information.@@CheapControls

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

    Hey how can i change pages using timer. Thanks

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

      I need a little more. When you press a button do you want the page to change after a set time or do you want it to change after it has been selected then pause and change or do you want a startup page? Thank you for watching.

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

      @@CheapControls nvm I figured it out. Could you by anychance help me set rtc in my nextion display. It shows correct time on debugger but when I upload it , it shows the wrong time on the display. Thanks

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

      @@sanindhyamalik2999 I am working on a video that shows how to set the time and also compares the RTC in the Nextion versus the Arduino Versus an external RTC chip. I hope to have it out next week. Maybe that will help

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

      ​@@sanindhyamalik2999 Hello, if you figured a Startup page , please let me know how to do it ?
      Thanks

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

    Hi. I have seen two people asking similar question already but I didn’t found the answer. I would like to have a page that change automatically after 10sec. Example: I open my Nextion. Page 0 appears for 10sec then change to page 1
    Thanks in advance

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

      on page 0 add a timer set to 10 sec. Then have the timer execute a single command "page 1" and Thanks for watching.

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

      Thank you so much

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

    hello sir, can u please make one video for Light On/Off through Timer Counter (HH/MM/SS format)

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

      Do you mean turn a led on the display or an external led or an external house light? Sorry for the questions but I want to make sure I understand what you are asking. Thank you very much for watching.

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

      @@CheapControls thanks for your reply. I want to turn on/off external light using relay module and for that i am using Arduino Uno board. So, how can i turn on/off light using timer. ( ex- if i want to set timer for 1 hour, so how can i make GUI for it? )
      2. Timer counter should be Hours-Minutes-second format.
      could you pls share me ?

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

      Give me a little time and I will get back to you.

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

      This would be easier to help through Email. Go over to www.cheapcontrols and submit a comment I will reply and be able to send you files.

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

      @@CheapControls hi I visited your site and raise the query but in your site submit button is not working.