Splendid explanations of some of the Nextion control instructions. On that theme are you able to expand on this by explaining what to code for the nextion to change the colour of a text object when the linked trackbar reaches a certain value?
Thank you, I will start on this right away. I try to put out new videos on Tuesdays and Thursdays. Consider joining the Private Cheap Controls Facebook group. It should be easier to post code and examples. It is new for 2020.
Are you asking if you can have switch with two states controls more than 2 pages or are you asking if you could add more switches to control more pages? Thanks for watching!!
@@CheapControls Thank you for respond. Your example works great with Arduino uno. Unfortunately when i try to use with Arduino DUE your code, Arduino DUE crash. After some search i found that using serial print code inside Interruption crash Arduino DUE. Im working on project with 4 pages on Nextion dislay and switchig pages with push button. Im trying to avoid using Nextion library .
I was wondering how to use a nextion button to trigger an interrupt instead of a physical button on the MCU.. I'm trying to Pause, Stop machine procedures that requires state changes to a few field components if either was called. I figured an interrupt with a goto STOP function will [instantly] break me out of a while loop and put me at the beginning of the STOP: process code.. Is that even possible and do I connect a nextion GPIO Output to my MCU input that is set as an interrupt? Didn't realize STOPING and Pausing a loop that's about 120 sec, can be so difficult
The GPIO outputs on the Nextion are rated at 1 milliamp so be carful connecting them directory to the MCU, but I can't wee any reason it wouldn't work. If you want a kill switch why not connect a physical switch directly to the device. I would not use an electromechanically controlled thing work as an E-stop, because I would fear the Nextion device itself my fail and it could result in injury. I have done it in theory but for my CNC I have a physical stop switch in place as my E-stop. If you are controlling no life threating equipment then I think a GPIO pin would be interesting way to go. GOOD LUCK!
@@CheapControls Thanks for your response.. I’m not talking about an E-Stop that disconnects power per say but soft stops/pause that would be use to walk away from my machine and come back or cancel the process.. If I use Nextion dual state buttons to send a stop or pause command to the MCU, the command wouldn’t be addressed until it loops back to the condition that sets the command parameters to stop or pause. This can take up to 2mins.. An additional task would be to retract a cylinder and set a temp to “idle degrees”.. So the Nextion buttons are for day to day operations and the e-stop will be wired to my control panel circuitry.. I was wondering if an asynchronous delay would do the same job but two parallel task such as calling a (goto label;) and running a loop that you want to instantly jump out of and into, seems like running next to a train and trying to hop on or off..
I used the standard Arduino IDE and the Software that comes with the Nextion Display. I don't use the nextion.h library for the Arduino. I hand code the messages and signals between the display and the Arduino. I hope that answered your question.
@@CheapControls thank you very much for the prompt reply it makes a huge difference from many other youtubers. The information is great and I'm looking forward to trying this. Your video was very informative, thank you
Splendid explanations of some of the Nextion control instructions. On that theme are you able to expand on this by explaining what to code for the nextion to change the colour of a text object when the linked trackbar reaches a certain value?
Thank you, I will start on this right away. I try to put out new videos on Tuesdays and Thursdays. Consider joining the Private Cheap Controls Facebook group. It should be easier to post code and examples. It is new for 2020.
Hi. Thanks for excellence video. I tried this example works great, but what about if we will have more than 2 pages?
Are you asking if you can have switch with two states controls more than 2 pages or are you asking if you could add more switches to control more pages? Thanks for watching!!
@@CheapControls Thank you for respond. Your example works great with Arduino uno. Unfortunately when i try to use with Arduino DUE your code, Arduino DUE crash. After some search i found that using serial print code inside Interruption crash Arduino DUE. Im working on project with 4 pages on Nextion dislay and switchig pages with push button. Im trying to avoid using Nextion library .
Thnak you for another great share.
Thanks for watching!
I was wondering how to use a nextion button to trigger an interrupt instead of a physical button on the MCU.. I'm trying to Pause, Stop machine procedures that requires state changes to a few field components if either was called. I figured an interrupt with a goto STOP function will [instantly] break me out of a while loop and put me at the beginning of the STOP: process code.. Is that even possible and do I connect a nextion GPIO Output to my MCU input that is set as an interrupt? Didn't realize STOPING and Pausing a loop that's about 120 sec, can be so difficult
The GPIO outputs on the Nextion are rated at 1 milliamp so be carful connecting them directory to the MCU, but I can't wee any reason it wouldn't work. If you want a kill switch why not connect a physical switch directly to the device. I would not use an electromechanically controlled thing work as an E-stop, because I would fear the Nextion device itself my fail and it could result in injury. I have done it in theory but for my CNC I have a physical stop switch in place as my E-stop. If you are controlling no life threating equipment then I think a GPIO pin would be interesting way to go. GOOD LUCK!
@@CheapControls Thanks for your response.. I’m not talking about an E-Stop that disconnects power per say but soft stops/pause that would be use to walk away from my machine and come back or cancel the process.. If I use Nextion dual state buttons to send a stop or pause command to the MCU, the command wouldn’t be addressed until it loops back to the condition that sets the command parameters to stop or pause. This can take up to 2mins.. An additional task would be to retract a cylinder and set a temp to “idle degrees”.. So the Nextion buttons are for day to day operations and the e-stop will be wired to my control panel circuitry.. I was wondering if an asynchronous delay would do the same job but two parallel task such as calling a (goto label;) and running a loop that you want to instantly jump out of and into, seems like running next to a train and trying to hop on or off..
An async delay would work but, all process would need to function on multiple async delays. This way the main loop cycles very quickly.
How to change state of dual state button ?
Do mean remotely from an arduino or internally in the Nextion with a timer or a different button?
hi ! is it possible just use Nextion button to trigger the interrupt function? instead of using a external push button?
You can do this, but only with Nextion displays that have GPIO pins. I think the enhanced and intelligent. I am not sure about the discovery series.
@@CheapControls I have been keep trying just don’t know where when wrong:(
Can have your email please?
I do not publish my email in youtube. You can go to the www.cheapcontrols.com website and submit a comment.
What software program are you using?
I used the standard Arduino IDE and the Software that comes with the Nextion Display. I don't use the nextion.h library for the Arduino. I hand code the messages and signals between the display and the Arduino. I hope that answered your question.
@@CheapControls thank you very much for the prompt reply it makes a huge difference from many other youtubers.
The information is great and I'm looking forward to trying this.
Your video was very informative, thank you
@@fleckditchburn2494 Your Welcome and thanks for watching