Nextion+Arduino Tutorial #4 Custom Gauge And Play Video

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
a short video here I've been experimenting with a custom gauge for the next display and I wanted to share it with you guys there are three things I don't like about a traditional gauge included on the next error first is the flickering when we will refresh the gauge that you can minimize by doing a few things I mentioned before but some flickering is always there second is that you can't put any object inside the square where the gauge is or they will flicker too and the third thing I don't like about the traditional gauge is that you can only change the size and width of the needle but not the shape so what some people had done including myself is create a bunch of images of a gauge on every value and include them to the next project so you can load the correct image depending on the value you want to show you can create the images with Photoshop or any image editor you want but it's time-consuming and it uses a lot of flash memory of the display so this strategy is not for everyone but if you really want a good looking gauge that doesn't flicker and one another object near the gauge this is the solution it also looks nicer because you can make the images with anti-aliasing and the same concept can be even used to show short videos and animations I experimented with a short clip at 30 frames per second and works pretty well but consider that I have the enhanced version with a faster CPU so this might not work as well on slower models anyway what I did is to add the images to my project in the correct order and remind the range of the value I'm going to use to match the number of images the gauge has in this case it goes from zero to 208 so I remapped the RPM that goes from zero to 8,000 to match the images I later send that value to the object called tag that is right here and this happens on the loop so we are continuously sending the value to the gauge for my test I use a potentiometer to simulate an RPM sensor so I had to remap the value of the potentiometer to send a value from 0 to 8,000 optionally you can smooth the gauge with this code which makes it look more realistic here you can choose which value to use anyway as always you can download the files on the description and I hope it's helpful for you see ya
Info
Channel: InterlinkKnight
Views: 283,381
Rating: undefined out of 5
Keywords: nextion, arduino, tutorial, beginner, how to, editor, send data, receive, data, button, page, guide, display, lcd, learn, hmi, gauge, video, play, clip, fps, InterlinkKnight
Id: eDn7LFyoEm8
Channel Id: undefined
Length: 2min 41sec (161 seconds)
Published: Tue Oct 17 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.