#85 Nextion Display - connected to Arduino in debug mode - Nextion tutorial

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

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

  • @CestLajoie
    @CestLajoie หลายเดือนก่อน

    Merci beaucoup

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

    Hi,
    Is there a way to control the hardware control flow lines of the USB to serial adapter from the debug window? I looking at trying to use the Nextion editor as a remote monitoring terminal for my microcontroller in a project and was hoping to use the RTS line to trigger the reset pin on my micro in the event I need to reset my micro for some reason.
    Thanks

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

      If you have an enhanced display you could use a GPIO pin.

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

    Thanks a lot for your tutorial !, I recently started using Nextion I have problem in the display of data in Debug of Nextion , and I did not understand the role of Serial.write here in this program.I will be very grateful to you if you can answer me

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

      I am not sure I understand your question. This is an older video and I don't remember all of them. Is there a timestamp that you can refer to? That would help. You can also submit a comment or question on the help page of the Cheap Controls website.

    • @RihabeKharkhach
      @RihabeKharkhach ปีที่แล้ว

      @@CheapControls I have a problem displaying the data in debug , the data should be as the next syntax : " Humidity level : " + a variable of type int , I couldn't display the variable even though I tried a lot

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

      Are you using two connections. One for the Arduino IDE and one for the Nextion IDE.

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

    What version of Nextion did you use here? It seems that they removed the option to debug with a serial cable in the latest version - v1.63.3

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

      I have that version and it is still included. I am not sure if there are other ways to determine versions. Thank you for watching

  • @delgadohernandezericksaul3855
    @delgadohernandezericksaul3855 2 หลายเดือนก่อน

    Does anyone know why I don't get the option "USER MCU INPUT"? And how can I solve it?

  • @DianaMartinez-su6jh
    @DianaMartinez-su6jh ปีที่แล้ว

    Have you ever tried conecting the arduino to the PC so you can use Nextion Editor Debug and to a physical Nextion at the same time, so you simulate having two screens?

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

      I have not done this but it should work. It would be easier with a MEGA model. You would need to have three serial ports configured.

  • @Daminski_Elevator
    @Daminski_Elevator 3 ปีที่แล้ว

    Thanks for your tutorial! I have a problem: no information is coming from the Arduino to the Nextion display. Just an empty line in Debug mode. I connected the Arduino to the COM5 port with a separate cable and connected the Nextion display through the TTL adapter to the COM4 port. How can this problem be solved?

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

      When you go into debug do you select user MCU port then you have to click on the word start. Maybe you are doing that. I am sorry if I am asking silly questions.

    • @Daminski_Elevator
      @Daminski_Elevator 3 ปีที่แล้ว +1

      @@CheapControls yes, I click on user MCU and then Start. But nothing happens. When I open Arduino port monitor, nothing happens to. But if I change "Serial2" to "Serial", I see message in Arduino port monitor, not in Nextion debug mode

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

      It sounds like you are doing things correctly. You need to have two serial cables coming from the Arduino to the computer. Serial on the normal port and Serial2 on the pins. What Arduino model are you using. If you want you can send your code to my Email and I will try to review for you.

    • @Daminski_Elevator
      @Daminski_Elevator 3 ปีที่แล้ว

      @@CheapControls Thank you, I will be very grateful. Can you write your email address? Or maybe you have a Telegram messenger? I did not quite understand about Serial on the normal port and Serial2 on the pins. I tried to connect the Arduino MEGA via USB cable to the COM5 port and separately through the TTL adapter the Nextion display to the COM4 port. I did not connect the display and the controller with wires. Perhaps this is the problem?

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

      You can go to www.cheapcontrols.com and submit a comment. Then I will reply to you and I will ask for the files.

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

    it doesn't works for me
    I have a USB-TTL cable.
    RX to TX and TX to RX and power connected to the Arduino.
    No reaction.
    So I can't upload a sketch to the Arduino, it won't be found.
    If I connect the Arduino with a USB cable then I can upload the skatch.
    But nothing happens in the Nextion Editor when I start in debug mode.
    can you help me?

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

      You need to have the Arduino connected to the computer with two separate USB connections. One to code the Arduino and one to connect to the Nextion in debug mode. This is the way it needs to be configured for the examples in the video. It is possible to use only a single USB connection but the examples in this video would need modified. I hope this helps. If you still have questions consider asking it at the cheap controls facebook page. It is easier to view code and photos.

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

      @@CheapControls Thank you, i will to try

    • @MrRfaass
      @MrRfaass ปีที่แล้ว

      Connected the ground too?

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

    I was putting spaces between Val and =

  • @almagnejandelarmente6957
    @almagnejandelarmente6957 ปีที่แล้ว

    Greetings! how can you fix the "access to com7(my arduino port) is denied
    ? Thanks

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

      I don't know. I would have to understand your configuration better. What model of Arduino are you using? What pins are you using on the Arduino to connected to the Nextion IDE? It needs to be a different port than the one used to connect the Arduino to the Arduino IDE. Good Luck.

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

      @@CheapControls Hi! thankyou for your reply

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

      Did you have to stop the Serial Monitor to allow the Nextion IDE to work?

  • @krokmou6268
    @krokmou6268 ปีที่แล้ว

    Hey i have a little problem while sending value with arduino, when i click on every button in the debug mode that send a return error 04 FF FF FF Parse Invalid Pic ID so when i want a "if (datareceive == "Anything") that doesn't work if you have time to respond i appreciate

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

      Cut and paste the line you are trying to send and I will try to help. Or you can go to www.cheapcontrols.com and submit a help request.

    • @krokmou6268
      @krokmou6268 ปีที่แล้ว

      @@CheapControls I think there is a problem with the pictures but i can't see where is the problem, i want to send a string value with a simple button "gate" and i want arduino to read it so i can return a instruction for the debug mode. But when i click, that send "gate" but also "\x04ÿÿÿ" just below in the simulator return so arduino can't read just "gate", i tried to tell arduino if he can read "\x04ÿÿÿ" but its doesn't work. Here is my arduino if you want :
      void end_message(void)
      {
      Serial.write(0xFF);
      Serial.write(0xFF);
      Serial.write(0xFF);
      }
      void loop()
      {
      while (!Serial.available());
      datareceive = Serial.readString();
      if (datareceive == "gate")
      {
      Serial.print("Data return confirm");
      }
      }

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

      do you have the send component id checked in the Nextion? that would send extra characters

    • @krokmou6268
      @krokmou6268 ปีที่แล้ว

      @@CheapControls only the button to return in the previous page but not all of them send characters just a few one. If you have time i can send you my .HMI file so you can check but i don't want to
      disturb you

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

      If you want me to review your HMI file, you have to go to the help page on the www.cheapcontrols.com and submit a comment.