#135
Vložit
- čas přidán 5. 09. 2024
- In this video, I go over gauges and how to use them on the Nextion display.
If you enjoy the content considering donating a cup of coffee at ko-fi.com/chea...
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. www.facebook.c...
thank you man for your videos. currently, I'm working on a big project around the nextion display and I really take benefit of your videos.
Glad I could help!
here comes the master, all the best :)
Thanks
Hello!
Thank you for one more wonderful video.
So nice of you
Hello @Cheap Controls, Your tutorials are awesome, I have get enough knowledge from you.
Can you make detailed tutorial on how to use multiple double state button on nexion display with Arduino.
Check this video out and let me know if it helps. czcams.com/video/IsRS8MRLBgQ/video.html
Nextion’s choice to call the needle-of-a-gauge a Gauge is an unfortunate misnomer. Spinning a line around in a circle is a necessary component of a Gauge, but it is completely insufficient to allow a maker to display information on a Gauge.
The magic, at least the part I don’t understand how to do, is how do you create the graphic of the actual gauge you want (i.e. speedometer, altimeter, amp/volt meter) and make it appear visible and non-flickering behind the indicating needle. Without this part you just cannot make any “real” or useful gauge at all.
Also, speaking of Nextion’s poor choices, it is a shame they set the zero-position of their gauge to the 270-degree position instead of the normal top-of-the-circle position. Oh well!
In any case, thank you for the great intro to the Nextion devices, it has been a great help getting going on my project.
I agree sometimes Nextion does not hit the mark on their products. But I try to keep in mind that it is a cheap product and for the price it is not too bad. I am going to look into a follow up video on the gauge. While filming I discovered the issue of writing to the display will bring the display forward and I want to investigate it a bit more before I make the video. I am wondering if I can make the Gauge more functional using some other technics. I also want to verify if the Intelligent display allows transparency background images.
Hi once again! Now I'm using a gauge in order to show a POT input. This is showed in a initial page. I have a second page where I show and control other things, so I set the gauge as a global varibale.
When I go to the 2nd page, change the POT, and then go back to the 1st page (where the gauge is displayed) the gauge does not update until I change the POT again. Can you advice something so it update on itself even if I move the POT while on the 2nd page? I hope I have explained mysef. Thanks a lot for your videos and replies!
That is an interesting question. I am not sure I have seen this exact thing tried. Sometimes objects operate in ways that you don't expect. I am not in a position to try anything but instead of writing directly to the Gauge you could write to a global variable. then you could use a timer to update the gauge to the same value as the variable. When you enter the page it would update as soon as the timer sets it. You would not need to have you gauge global if you tried it this way. This is the best I can do at the moment. I will be using a gauge in my next video. I will see about trying it out your way with a global gauge and see what happens. Maybe I will have a different answer after I make the next video:-)
I apologize, I misspoke in my last comment My next video is on the scrolling text. It comes out today. I am working on one with a gauge that I hope to have ready next Thursday. Sometimes I forget that my next video to make is not always the next video that is about to publish.
@@CheapControls could you recomend any video about the use of timers?
Try this one czcams.com/video/AQJud69jAx8/video.html
Good time. Can you tell me? How to do so. So that the arrow starts its movement not from 0. But, say, from 300 and ends with 240. I want to make a speedometer. Thank you for your lessons. I learned a lot from your videos.
I will look into this and get back to you.
@@CheapControls thank you! That would be great. Unless of course it's not difficult for you. see about this video. As a separate lesson. ;) Happy New Year!!!
Of course I try it myself. but so far to no avail.
n0.val++
if(n0.val>360)
{
n0.val=0
}
va0.val=n0.val*1000
va0.val=va0.val/360
va0.val=va0.val*300
va0.val=va0.val/1000
if(va0.val
@@CheapControls Thanks! I'll try and let you know if it works out. Thanks again. That you pay attention to your subscribers and do not leave them without attention. Even if it doesn't work out, you've pushed in the right direction.
I am glad you liked the suggestion. Please let me know what you find out. The gauges on the nextion have always been something I have wanted to figure out a way to make them look better without a bunch of images. Some people take a bunch of images with needles at different positions and then display the appropriate picture for the degree they want to display.
@@CheapControls I also considered the option with a lot of pictures. But I want it to still be a "gauge", I do not promise, but if it comes out, I will definitely let you know.
I have a made a note to myself to look into this a bit more. I will do my best to revisit and let you know if I come up with a better solution