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

  Рет қаралды 23,530

Cheap Controls

Cheap Controls

Күн бұрын

Пікірлер
@pablosaizortuno4740
@pablosaizortuno4740 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 жыл бұрын
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 жыл бұрын
I am glad you figured it out and thanks for watching
@hakankilic4228
@hakankilic4228 7 ай бұрын
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.
@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 жыл бұрын
You can try a timer that increments a variable then use a second timer that checks the variable
@yazani19
@yazani19 3 жыл бұрын
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.
@aleXelaMec
@aleXelaMec 11 ай бұрын
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 11 ай бұрын
I do not think there are any animations or gifs. only certain video files. You can use transparent images on certain models.
@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.
@alunosouza8931
@alunosouza8931 4 жыл бұрын
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 KZbin 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 KZbin 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.
@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.
@sanindhyamalik2999
@sanindhyamalik2999 4 жыл бұрын
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
@user-momenahasan
@user-momenahasan Жыл бұрын
Thank you 💐
@CheapControls
@CheapControls 11 ай бұрын
You're welcome 😊
@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 жыл бұрын
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
@dedub222
@dedub222 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
to use numbers, just set n0.val=z0.val and the timer will affect numbers
@cihansalcioglu4222
@cihansalcioglu4222 Жыл бұрын
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
@sebastiao4130
@sebastiao4130 3 жыл бұрын
Gostei muito!
@CheapControls
@CheapControls 3 жыл бұрын
Thank you for the comment.
@hussainmp559
@hussainmp559 4 жыл бұрын
Thanks a lot
@CheapControls
@CheapControls 4 жыл бұрын
Most welcome, and thanks for watching.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
65  Nextion Display - no Arduino Nextion.h Library part 2 or 01B
8:48
Cheap Controls
Рет қаралды 34 М.
😱Я Добавил Деменцию в Майнкрафт
17:29
Подключение дисплея Nextion к Arduino
15:58
NEXTION - MOVING INFO AMONG PAGES
12:25
Royal Newberry
Рет қаралды 15 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН