Hello Cheap Controls ... pls, how to call object Waveform, if is on "page1"? Because objid is 3. But objid 3 is on the first page (page0) too. And syntaxe dont allow call for example "add page1.3,0,va0.val" Thank you very much for help.
Thank you for these waveform examples! I'm struggling with something and wondered if you've encountered or addressed it... My waveform is 300 pixels wide, and I have a 30 second duration with datapoints every 1 second. If I add 30 datapoints, then I see them in the first 10th of the waveform -- i really want them to be added with a 'pixel gap' of 10, so that they cover the entire x-range of the waveform. Thanks in advance!
@@CheapControls That's a good question... I would like a linear interpolation between the previous datapoint and the newly added one. I'm interfacing with an arduino, and I can certainly fully program the expected behaviour there (e.g. constant or linear), but was wondering if any way to do this in the Nextion had been discovered.
you have me thinking about it. It has been a little while since I worked with the waveform and it seems like I forget things about an hour after working on it. I asked myself a few questions. Can you change the color of each individual point as you plot them, but no each line is a color. I was also wondering what would happen if you plotted 10 values outside the range and then went back to plotting data. Would there be a line? I still need to look into this. If you don't mind being one data point behind you could write the value from the Arduino to a variable then compute points between the last value and the next. Then the Nextion could plot the values between the readings to show a linear change. I am working on sending data from the Arduino to the Nextion's SD card, with the twfile command. I have been looking for a real world example for a small amount of data. Maybe this will work. let me know if you figure something out.
@@CheapControls At this point, I'm thinking the second option fits best. I think I'll generate/record my real values (on the Arduino) and then use the Arduino to do a linear interpolation of however many pixels I want. SD card isn't too helpful for me because I collect data on the Arduino and use serial comms to get it to the nextion. I do plan to record >5 curves worth of 40 data points each (one per second) on the arduino, and store them on an FRAM. I"ll plot from there to the nextion with the linear interp described above. The issue is that I don't want/need to store hundreds of data per curve.
@@CheapControls I've now tried to use addt to push the larger datasets from the Arduino to the nextion, and am having problems. Specifically, when I try to push 10 constant values, the nextion plots a high frequency oscillation. Any chance you've done an example pushing hex values to the nextion?
Nice example. 99.9% of similar channels show how to work with sensors connected to Arduino. But Nextion has its own processing unit, even more powerful. Can you please make video about working with sensors (temperature / pressure / sonar, GPS etc) without arduino? Just by using nextion enhanced version display with sensors connected to its own GPIO interface? There are 7 independent i/o channels (5-volt signal), including 4 with pwm-control. Isn`t it enough for standard tasks? Why everybody uses Arduino and UART when it is unnecessary..? Please.
I am planning on a video using the external 16 channel PWM PCA9685. this device uses an I2C bus. I do not believe that the Nextion has this type of connectivity. If this video does not get to long I will add using the PWM directly from the Nextion. If this PCA9685 does get to long I will make the built in Nextion PWM my video next week. Thank you for the suggestion.
I recorded a video that goes over the built input/output in more of an overview way. I will then expand on it over time. With the holidays I wont get it fully edited until Monday or Tuesday next week. I wanted to thank you for the push to create one on this topic.
Thanks keep going .
Thank you too
Good work, Thanks
Your Welcome
Hello Cheap Controls ... pls, how to call object Waveform, if is on "page1"? Because objid is 3. But objid 3 is on the first page (page0) too. And syntaxe dont allow call for example "add page1.3,0,va0.val"
Thank you very much for help.
Will you please explain why you want to access a waveform on another page. I am not sure it is allowed on Nextion.
Hi.Can I get the code Arduino? Thanks.
You have to make file request at www.cheapcontrols.com on the help page
Very interesting, many thanks to you. Please how can I get the code?
You can go to www.cheapcontrols.com and place a comment asking for the code. Please include the video number i.e. #129
@@CheapControls Thanks a lot
Thank you for these waveform examples!
I'm struggling with something and wondered if you've encountered or addressed it... My waveform is 300 pixels wide, and I have a 30 second duration with datapoints every 1 second. If I add 30 datapoints, then I see them in the first 10th of the waveform -- i really want them to be added with a 'pixel gap' of 10, so that they cover the entire x-range of the waveform.
Thanks in advance!
Do you want to see space between the pixels or a line with the average of the difference between the two points
@@CheapControls That's a good question... I would like a linear interpolation between the previous datapoint and the newly added one. I'm interfacing with an arduino, and I can certainly fully program the expected behaviour there (e.g. constant or linear), but was wondering if any way to do this in the Nextion had been discovered.
you have me thinking about it. It has been a little while since I worked with the waveform and it seems like I forget things about an hour after working on it. I asked myself a few questions. Can you change the color of each individual point as you plot them, but no each line is a color. I was also wondering what would happen if you plotted 10 values outside the range and then went back to plotting data. Would there be a line? I still need to look into this.
If you don't mind being one data point behind you could write the value from the Arduino to a variable then compute points between the last value and the next. Then the Nextion could plot the values between the readings to show a linear change.
I am working on sending data from the Arduino to the Nextion's SD card, with the twfile command. I have been looking for a real world example for a small amount of data. Maybe this will work. let me know if you figure something out.
@@CheapControls At this point, I'm thinking the second option fits best. I think I'll generate/record my real values (on the Arduino) and then use the Arduino to do a linear interpolation of however many pixels I want.
SD card isn't too helpful for me because I collect data on the Arduino and use serial comms to get it to the nextion.
I do plan to record >5 curves worth of 40 data points each (one per second) on the arduino, and store them on an FRAM. I"ll plot from there to the nextion with the linear interp described above. The issue is that I don't want/need to store hundreds of data per curve.
@@CheapControls I've now tried to use addt to push the larger datasets from the Arduino to the nextion, and am having problems. Specifically, when I try to push 10 constant values, the nextion plots a high frequency oscillation.
Any chance you've done an example pushing hex values to the nextion?
Nice example. 99.9% of similar channels show how to work with sensors connected to Arduino. But Nextion has its own processing unit, even more powerful. Can you please make video about working with sensors (temperature / pressure / sonar, GPS etc) without arduino? Just by using nextion enhanced version display with sensors connected to its own GPIO interface? There are 7 independent i/o channels (5-volt signal), including 4 with pwm-control. Isn`t it enough for standard tasks? Why everybody uses Arduino and UART when it is unnecessary..? Please.
I am planning on a video using the external 16 channel PWM PCA9685. this device uses an I2C bus. I do not believe that the Nextion has this type of connectivity. If this video does not get to long I will add using the PWM directly from the Nextion. If this PCA9685 does get to long I will make the built in Nextion PWM my video next week. Thank you for the suggestion.
Thx! Just waiting for new video-release.
(gpio interface is available in Nextion enhanced display version)
I recorded a video that goes over the built input/output in more of an overview way. I will then expand on it over time. With the holidays I wont get it fully edited until Monday or Tuesday next week. I wanted to thank you for the push to create one on this topic.
Thanks for sharing. Editor is annoying.
Tell me about it. But he is my brother so what can you do? I will give him a wedge! ;-)