#70 Nextion Display Page Change with Arduino and NO Nextion Library Interrupts Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 21

  • @lesliesaunders7625
    @lesliesaunders7625 4 ปีที่แล้ว +1

    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?

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว +1

      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.

  • @2006azim
    @2006azim 4 ปีที่แล้ว +1

    Hi. Thanks for excellence video. I tried this example works great, but what about if we will have more than 2 pages?

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว +1

      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!!

    • @agi659
      @agi659 4 ปีที่แล้ว

      ​@@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 .

  • @ser7ser7i
    @ser7ser7i 4 ปีที่แล้ว +1

    Thnak you for another great share.

  • @StarChild.no1
    @StarChild.no1 2 ปีที่แล้ว +1

    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

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      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!

    • @StarChild.no1
      @StarChild.no1 2 ปีที่แล้ว +1

      @@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..

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      An async delay would work but, all process would need to function on multiple async delays. This way the main loop cycles very quickly.

  • @ajaysiswal7913
    @ajaysiswal7913 4 ปีที่แล้ว +1

    How to change state of dual state button ?

    • @CheapControls
      @CheapControls  4 ปีที่แล้ว

      Do mean remotely from an arduino or internally in the Nextion with a timer or a different button?

  • @daryl7237
    @daryl7237 2 ปีที่แล้ว

    hi ! is it possible just use Nextion button to trigger the interrupt function? instead of using a external push button?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      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.

    • @daryl7237
      @daryl7237 2 ปีที่แล้ว

      @@CheapControls I have been keep trying just don’t know where when wrong:(
      Can have your email please?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      I do not publish my email in youtube. You can go to the www.cheapcontrols.com website and submit a comment.

  • @fleckditchburn2494
    @fleckditchburn2494 2 ปีที่แล้ว

    What software program are you using?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      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.

    • @fleckditchburn2494
      @fleckditchburn2494 2 ปีที่แล้ว +1

      @@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

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      @@fleckditchburn2494 Your Welcome and thanks for watching