Nextion+Arduino Tutorial #5 Troubleshooting

Поділитися
Вставка
  • Опубліковано 29 бер 2018
  • I go through the most common problems when trying to use the nextion display with arduino, and the solutions.
    - Buy the Nextion 3.5" Enhanced: amzn.to/3qMfjTd
    - Buy the Arduino nano: amzn.to/3iru0op
    Recommended Tools:
    - Electronic Parts Tester (ESR LCR-T4): amzn.to/2QvQJlP
    - Breadboard (good quality): amzn.to/2QsyY3C
    - Storage Case for Jumper Wire: www.walmart.com/ip/The-Hillma...
    - Multimeter (Fluke 17B+): amzn.to/2L3PNQk
    - Rigol DS1054Z Digital Oscilloscope: amzn.to/2C5ZwD7
    Note: As an Amazon Associate I earn from qualifying purchases.
    Nextion library: github.com/itead/ITEADLIB_Ard...
    Nextion project to change default baud rate: drive.google.com/open?id=1sqW...
    Nextion+Arduino Tutorial #1 Beginner's Guide: • Nextion+Arduino Tutori...
    Nextion+Arduino Tutorial #2 Sending Data To Arduino: • Nextion+Arduino Tutori...
    Nextion+Arduino Tutorial #3 RTC and EEPROM (Enhanced Version): • Nextion+Arduino Tutori...
    Nextion+Arduino Tutorial #4 Custom Gauge And Play Video: • Nextion+Arduino Tutori...
    Nextion+Arduino Tutorial #6 A Project From Scratch: • Nextion+Arduino Tutori...
    Website: www.interlinkknight.com/
    Patreon: / interlinkknight
  • Наука та технологія

КОМЕНТАРІ • 129

  • @alex.t.4312
    @alex.t.4312 3 роки тому +1

    Thank you for your very good tutorial. I manage to get a program initially made for uno on my mega arduino board ! Keep on the good work.

  • @HSter0
    @HSter0 4 роки тому +1

    Thanks! watching your tutorial #6 video helped get my project done. I was so frustrated until I saw you had a config file mod. Wish I had seen this video before that.

    • @interlinkknight
      @interlinkknight  4 роки тому

      Having challenges on our projects is part of the fun. Learning is the important thing. I'm glad I could help.

  • @warrenmabunga7633
    @warrenmabunga7633 Рік тому

    Thank you sir for this tutorial ❤ . its very helpful to configure the error in the serial communication between nextion and arduino. God bless 😇.

  • @ericksonengineering7011
    @ericksonengineering7011 3 роки тому

    Thanks much, your videos are a great help. I am using a low-cost USB logic analyzer to monitor the serial communications and debug my Nextion code. The Kingst LA1010 for $80 works swell. I tried using a Rigol scope to analyze the serial data, but the dedicated logic analyzer works better.

  • @PietersBrend
    @PietersBrend 4 роки тому +1

    Thank you for this tutorial!!! I would not have succeeded without your help. I am sending and receiving data on a Teensy 3.2. The only part that does not work is de j0 Progress bar as a button press. The compiler gives an error. But I don't need that part, so I leave it.Thanks again!!!

  • @plageran
    @plageran 4 роки тому

    Thank you so much dude! I've been struggling to get a reading on a NE555 chip via arduino. I will get your code and disect the bits i need. I guess using 1 of the pins as a input won't work, will try the RX pin

  • @yuchoy1
    @yuchoy1 Рік тому

    I think you just saved my life: at 1:09 you changed the NexConfig.h file to force the Nextion display/touch panel to communicate with Serial2. This works on ESP32! Then you don't have to disconnect the Nextion wires every time you reprogram the ESP32. Thanks for the video!

    • @interlinkknight
      @interlinkknight  Рік тому +1

      I'm glad I could help :)

    • @yuchoy1
      @yuchoy1 Рік тому

      @@interlinkknight the problem I have now though is that I can't change the baud rate to 115200, it seems stuck at 9600 🤔

    • @interlinkknight
      @interlinkknight  Рік тому

      How did you try to change the baud rate of your display?

    • @yuchoy1
      @yuchoy1 Рік тому

      @@interlinkknight I used the following lines, after defining the pins (#define RXD2 16, #define TXD2 17):
      void setup() {
      Serial.begin(115200); // Define and start default (UART0) hardware serial port 0 (and monitor?)
      Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
      nexInit();
      ...

    • @interlinkknight
      @interlinkknight  Рік тому

      I have no idea where that code comes from. I already show in the video how to set baud rate on the nextion display in minute 2:40

  • @valarmorghulisx
    @valarmorghulisx 6 років тому

    Thank you so much ! you are the best!

  • @reno2529
    @reno2529 4 роки тому +1

    Gracias amigo!!!! Cali colombia!!

  • @leeharrington6438
    @leeharrington6438 6 років тому +1

    Thanks - helpful as always!

    • @interlinkknight
      @interlinkknight  6 років тому

      :)

    • @taicr80
      @taicr80 5 років тому

      @@interlinkknight Thank you for the excellent tutorials. Have you noticed any link between font size and refresh speed? I have a very large font on a 3.5 inch enhanced display and a single text command takes 60+ms and if I try to increase the baud rate the display stops responding like it can't keep up. This is OK for a single parameter, but each additional parameter adds another 60ms and causes the display to require an even slower baud.. tiny.cc/9ph48y

  • @turbozobb
    @turbozobb 6 років тому

    For Arduino Uno Postinitialize Event did the trick or if I use 9600baud in Arduino sketch

  • @samanthaalexieverdida8292
    @samanthaalexieverdida8292 6 років тому +1

    You are awesome 😇

  • @paddy3290
    @paddy3290 Рік тому

    Do you have any information on using the popup keyboard and keypad on the edior. i cant find much about using them online. thanks

  • @tamgaming9861
    @tamgaming9861 6 років тому +5

    thanks for the video! I think most of us wish that you make a realtime video where you make a project of nextion and arduino where you step by step without jumping over any steps, what to do.

    • @interlinkknight
      @interlinkknight  6 років тому +2

      Really? Do you think that would be interesting and useful? I mean, what else can I really show that I didn't already showed? I try not to be too boring. I use my examples as templates for my new projects. Nothing new or special about creating a new project. Do you have troubles creating your projects?

    • @tutorialshackstop1052
      @tutorialshackstop1052 6 років тому +2

      yes please!!! I know a lot of arduino beginners who would love to see it - and you would get nice views and new subscribers :-)

    • @interlinkknight
      @interlinkknight  6 років тому +1

      But what are the things that you guys want to see? I mean, about what would be the project? What parts are you guys having trouble understanding how to do?

    • @tamgaming9861
      @tamgaming9861 6 років тому +3

      Its the Step by Step, to follow easily. You are such a smart guy, that it looks everything is no problem for you, but most of us, would love to have a step buy step guide. From start to finish a small project. Really like read and write data. Make a multi part series out of it. It would be awesome!!! Make it as easy as possible, and be sure you will can make a lot of money with it if you use a adlinks, because coding is not everyones love - and technic and coding is often ?² :-) And the solution is always a good teacher. Because nothing is hard to learn if you have a good teacher! You could be this one!

    • @Banchuba
      @Banchuba 6 років тому +2

      Make a Menu with an 2560 and Ramps and let nema steppers rotate, make a menu, and something how you can increase and decraese the rotation. Start Stop button for the Nema. Or a Weightscale which is shows the weight on the Display :-)

  • @liemhingkik
    @liemhingkik 5 років тому

    Thank you very much for the very clear tutorial of Nextion.
    Yesterday, I have successfully upload the GUI through Arduino Uno.
    But today.. it fails. The editor always print: "Connection failed. Forced Interrupt!"
    I have tried several times: checking the config file, connecting and/or disconnecting the blue wire, put more volt through to upload, they are still failed.
    Would you mind giving some tips? Thank you

    • @interlinkknight
      @interlinkknight  5 років тому

      I never uploaded a project to the nextion display through serial so I can't help you.

    • @liemhingkik
      @liemhingkik 5 років тому

      @@interlinkknight thank you sir

  • @mbuntugnugnu6895
    @mbuntugnugnu6895 5 років тому

    Hello! Why using the debug window on the nextion software everything works correctly, while between the arduino uno and my nextion display does not work?
    Thanks for the great job you did.

    • @interlinkknight
      @interlinkknight  5 років тому

      I don't know, men. There's a million mistakes you could have done. To troubleshoot things you need to test one thing at a time. For example: did you tested by examples? Did the example #1 works? Did the example #2 works?

    • @mbuntugnugnu6895
      @mbuntugnugnu6895 5 років тому

      @@interlinkknight Example #2

    • @mbuntugnugnu6895
      @mbuntugnugnu6895 5 років тому

      @@interlinkknight Problem solved. Sometimes the platitudes block you. Simply connect the pin ground between arduino and nextion.

  • @suloman5845
    @suloman5845 6 років тому

    thanks for the info! i wanna ask you something about the connection between arduino and the nextion display. im using serial.print() to send variables to nextion display and im not using nextion library. is this okay , can this cause any kinds of problems or low performance issues?
    here is an example of the code that i use:
    String command6 = "tripright.txt=\""+String("1")+"\"";
    Serial.print(command6);

    • @interlinkknight
      @interlinkknight  6 років тому +1

      That's perfectly fine. Actually I always prefer sending data to the display without using the nextion library.
      Check my first video tutorial about the nextion display, where I do exactly that: ua-cam.com/video/wIWxSLVAAQE/v-deo.html

    • @suloman5845
      @suloman5845 6 років тому

      InterlinkKnight thanks for the answer. Im on it!

  • @shailendra8823
    @shailendra8823 4 роки тому

    When i choose crop image or image instead of solid image in attribute toolbar.
    Error is coming during compile. Can you solve this problem ?

  • @mbsingh4597
    @mbsingh4597 2 роки тому

    hello, I bought 2 display 7" enhanced. One is working and on 2nd display, our firmware is visible and touchscreen works but our amplifier does not rx any commands from it nor Display rx any from the amplifier so RX/TX data lines not working. What could be the reason and how to deal with it? Please suggest. Thank you.

    • @interlinkknight
      @interlinkknight  2 роки тому

      Maybe it's a defective unit? Maybe it's set in a different baud rate?

  • @johnnywonka1211
    @johnnywonka1211 6 років тому

    thank you....

  • @hanifahyulihandinipurbon5415
    @hanifahyulihandinipurbon5415 2 роки тому

    i have problem, when i running in simulation nextion editor program work well, but when i nextion button doesn't change and rx tx in arduino doesn't blingking

    • @interlinkknight
      @interlinkknight  2 роки тому

      Make sure to use an Arduino nano or uno, make sure to use the same library as i put in the description, check connections rx to tx and tx to rx

  • @parinazhoseini293
    @parinazhoseini293 4 роки тому +1

    Hello
    I use Nextion with ESP32 and i changed config.h and upload.h files , commented debug and use serial2 and use 250000 as baudrate , but touch of display sometimes doesn't work correctly and after 4 or 3 times struggle with it , its work, Do you have any solution?

    • @interlinkknight
      @interlinkknight  4 роки тому

      I don't know. Your setup is so different than mine. I suggest trying exactly my same setup and exact code first. If that works without problems, then change one thing at the time. Maybe first change the module from arduino nano to ESP32. Making sure that works, then change another thing like maybe the baud rate. Etc. One variable at the time.

    • @parinazhoseini293
      @parinazhoseini293 4 роки тому

      @@interlinkknight thanks , ill try your soulotion

  • @jansmith9587
    @jansmith9587 6 років тому

    Thanks for the video! Probably a stupid question but when I look at my serial monitor there are three reversed question marks on the place where "0xff" should be. How do I fix this? because the serial communication between my arduino and nextion still don't work.

    • @interlinkknight
      @interlinkknight  6 років тому

      Are you using my example sketch of my first tutorial?
      When I print this:
      Serial.print("n0.val=");
      Serial.print(PotentiometerValue);
      Serial.write(0xff);
      Serial.write(0xff);
      Serial.write(0xff);
      I see on my Serial Monitor this:
      n0.val=0ÿÿÿ
      That's something very basic, so it seems there is something wrong with your overall setup.

    • @jansmith9587
      @jansmith9587 6 років тому

      Thank you! Your sketch from your first video works fine now. But the sketch of your second video only works half with me. On page 0 the n4, n3, b0, b4 and bp don't work. On the next two pages only n0 work. I included all your tips from this video but still those don't work. Do you know what the problem could be? oh, and I forgot that the radios, checkboxes and the three send buttons on page 2 also work. And ofcourse all the "back" and "next" buttons.

    • @jansmith9587
      @jansmith9587 6 років тому

      So I guess it's only my void loop() that works than?

    • @interlinkknight
      @interlinkknight  6 років тому

      I don't know what could be the problem, to be honest. Make sure you use an arduino uno or nano, because using other boards could complicate things. What board are you using?

    • @jansmith9587
      @jansmith9587 6 років тому

      InterlinkKnight I am using the mega 2560. But that’s because my final project is with a code that’s to big for the uno or nano

  • @phucnguyen-wv5ki
    @phucnguyen-wv5ki 6 років тому

    I'm working on Arduino Project using Nextion Display. At first It worked perfectly Arduino used to read and write data to display shown component, but for some reason Nextion doesn't send data to arduino anymore . Do you know what the problem could be?

    • @interlinkknight
      @interlinkknight  6 років тому

      You mean that now when you upload my example files to your display and arduino, it doesn't work?
      There are many things that can go wrong. If the problem is only your personal project, then something that you added later is causing the problem.
      You still can send data to the display fine?

    • @phucnguyen-wv5ki
      @phucnguyen-wv5ki 6 років тому

      thank for repply!
      i'm working with 4.3 inch screen and uno. it can receive and display data from arduino, but when i touch button it doen't send data.this is my example file.drive.google.com/open?id=19Mp98-4ieZQzkMLDBC_O16bHBIEV4OPw
      drive.google.com/open?id=1M_d-e5BUKrHzmqgm7VlZZ0nSsHFPmRiM
      please, check program help me ! thank you

    • @interlinkknight
      @interlinkknight  6 років тому

      You are not using the nextion library nor following my tutorials. I have no idea why you expect that code you gave me to work. Sorry but I can't help you. Good luck.

  • @craiglacey3047
    @craiglacey3047 Рік тому

    any idea how to key in a numer to number box then send it to the arduino?

  • @TheRadickale
    @TheRadickale 4 роки тому

    Hi, i've a little probleme with an arduino mega, i can't get it work with your #2 example on the serial 1/2/3, only on serial(0). Have you got an idea ?

    • @interlinkknight
      @interlinkknight  4 роки тому

      Change all the code where it say serial to serial1

    • @TheRadickale
      @TheRadickale 4 роки тому +1

      @@interlinkknight I've allready do this and also i check the output with a UART to USB reader, the arduino send commands but nextion doesnt react !

    • @interlinkknight
      @interlinkknight  4 роки тому

      I don't know

    • @hanifahyulihandinipurbon5415
      @hanifahyulihandinipurbon5415 2 роки тому

      @@TheRadickale i've same problem, can you help me how to solve this problem?

    • @TheRadickale
      @TheRadickale 2 роки тому

      @@hanifahyulihandinipurbon5415 Yop, my problem was an mistake, i've forgot to connect the ground between Arduino and screen

  • @Lindermann95
    @Lindermann95 5 років тому

    Hola, Tengo un problema con mi pantalla TFT le estoy cargando el programa por medio de una memoria Micro SD de 16Gb pero cuando enciendo la pantalla se queda en negro, en una ocasión encendió en blanco diciendo que si estaba seguro que la memoria era Fat 32 después de eso solo se pone negro y después de unos segundos regresa al programa de ejemplo

    • @interlinkknight
      @interlinkknight  5 років тому

      Nunca e visto que me pase eso asi que no se. Sorry.

    • @Lindermann95
      @Lindermann95 5 років тому

      Ya lo pude resolver ayer, simplemente cambié de marca de memoria SD... pero creo que tenía una pantalla defectuosa de cualquier manera, le conecté la comunicación serial y se quemó :s

    • @interlinkknight
      @interlinkknight  5 років тому

      Que raro. Supongo que estara cubierto por la garantia y te pueden dar otra?

  • @Kitsu_no_mirai
    @Kitsu_no_mirai 5 років тому

    I just got my 2.8 nextion display. First it work fine. Until i use it for a couple minutes when suddenly it goes blank. Nothing. I tried to turn on and off again. But still. Doesnt work. Can you help me

  • @per19963
    @per19963 4 роки тому

    Hey, I was uploading in my nextion display and suddnly an error of "Timeout" appeared and the upload stopped at 41% After that I tired again and now it doesn´t reconginze the nextion anymore. Do you know what it could be? Thanks

    • @interlinkknight
      @interlinkknight  4 роки тому +1

      I never seen that, but sounds bad. I suggest contacting costumer support on ITEAD

    • @per19963
      @per19963 4 роки тому

      @@interlinkknight Solved it: I just inserted a formatted SD card with a tft file in it and conected the nextion to the wall with a phone charger. It started uploading the tft inmediately. The sd card has to be HC-1 model. Anyways, thank you!

    • @interlinkknight
      @interlinkknight  4 роки тому

      Oh, that's great. I got worry. Enjoy it!

  • @thenderick7434
    @thenderick7434 2 роки тому

    Hi, i have a question, why cant i use my nextion display in arduino NANO but i can use it with the same code on the arduino UNO

    • @interlinkknight
      @interlinkknight  2 роки тому

      My code should work on both, arduino nano and uno without any modification. Why you say it doesn't work?

    • @thenderick7434
      @thenderick7434 2 роки тому

      @@interlinkknight im talking about my code, its something strange, i use arduino UNO and it works perfect but when i change to NANO my display cant send information to arduino

    • @interlinkknight
      @interlinkknight  2 роки тому

      At least did you try my code? Does it work?

    • @thenderick7434
      @thenderick7434 2 роки тому

      @@interlinkknight yes i tried bro in 3 arduino NANO of the same developer, i had to buy another version of NANO and that works

    • @interlinkknight
      @interlinkknight  2 роки тому

      Very interesting. Can you share with us what version of arduino nano were you using that didn't work, and what version you bought that worked?

  • @nicolasyesidriveralesmes6277
    @nicolasyesidriveralesmes6277 4 роки тому

    I have a problem, when i was loading my program to the Nextion with a SD Card the Nextion started to load but it stayed there, Just say the file size and "COPY SD %", after a minutes the Nextion still there. Can anyone help me?. I already loaded a project and it worked and now does not work.

  • @MrAehrhard
    @MrAehrhard 5 років тому +1

    Thanks for
    your great work which is very helpful but I have one problem and I hope you can help.
    I found no help in all web discussion so farWith
    Arduino UNO I have to include the “Nextion.h” and also"NexButton.h"
    and library, By only including
    the “Nextion.h” the compiler claimed “NexButton
    does not name a type” or “NexButton does not name a type”. With espe2 I have the same issue but by
    including "NexButton.h" or compiler is referring to a an issue with Board
    ESP32.Sending data from esp32 to Nextion display works well but I am not able to receive data from
    Nextion . I also used different Arduino IDI’s with no success. Nextion.h is version 0.9.0.
    Thanks in
    advance for your time to help me.

    • @interlinkknight
      @interlinkknight  5 років тому

      Apparently you didn't use the same library as me. Start from scratch. Delete the nextion library that you have and download the same one I put in the description.
      Also, I never had to add NexButton.h nor anything like that. Please try my examples first, and then mess around.

    • @MrAehrhard
      @MrAehrhard 5 років тому

      Thanks a
      lot for your response.
      By re-installing the complete Arduino IDI and libraries my
      system is now running as expected, all is fine. Thanks again for your help and great
      videos which are very important for beginners like me. Waiting for your next
      one. Regards from Germany.

    • @interlinkknight
      @interlinkknight  5 років тому

      I'm glad. Good luck

  • @essouaiedameur7642
    @essouaiedameur7642 4 роки тому

    hello i have a problem in my programe if i send Serial.print"page 2" Serial.write(0xff)Serial.write(0xff)Serial.write(0xff) it changes the page but inside my programme it only takes it without respond where can the problem be can u help me? btw i am not using the nextion library

    • @interlinkknight
      @interlinkknight  4 роки тому

      I don't understand the problem

    • @essouaiedameur7642
      @essouaiedameur7642 4 роки тому

      @@interlinkknight i am sending id and pw to arduino board if that person have access i order to go next page but when i open the serial loop i see that am serially sending the page 2 order but nextion doesnt change at all

    • @interlinkknight
      @interlinkknight  4 роки тому

      Page 2? That sounds wrong by itself. The first page is 0 so I think you mean page 1. Also, I don't know if you are using the command correctly. Test it on the "simulator" in the nextion editor. I think is call "debugger"? Test there the command

  • @stefaniebeer1418
    @stefaniebeer1418 Рік тому

    ❤❤❤❤❤❤

  • @pascalschulte-zalewski6099
    @pascalschulte-zalewski6099 6 років тому

    Hello, i have an good message and an bad message: The good one: I have finished turbine.^^ The bad one it will never run again. SOMEONE (my friend) thought its an good idea to start the engine by hand... He had an firetorch. but he was clever enough to start the turbine from the front. then he judt walked by the back and was lets say he was an middle steake and now lays in the intensive station in an Hospital. oh and as i wanted to help him i have destroyed the turbine by killing it with an fire thing ( you know the thing which is big and red and used to put fire out. have forgot the name) The metal cooled down and the turbine was just crap from there on. But thats the Update for my turbine ^^

    • @interlinkknight
      @interlinkknight  6 років тому

      Are you kidding? If what you say is true, then your friend is very stupid. How old is he? The name of the metal red thing is called extinguisher.

    • @pascalschulte-zalewski6099
      @pascalschulte-zalewski6099 6 років тому

      InterlinkKnight oh thanks for thr name. Yeah he isnt the cleverest one. His belly is burned thats why he is in the intensive station

  • @davemetalhead2136
    @davemetalhead2136 Рік тому

    Hey man i absoltely need your help i literally losing my mind with this! where i can ask you?

    • @interlinkknight
      @interlinkknight  Рік тому +1

      In my website there's a contact form. Did you followed the instructions in the first tutorial?

    • @davemetalhead2136
      @davemetalhead2136 Рік тому

      @@interlinkknight absolutely yes i followed all the steps and checked at least 10 times 🤣 but i have one "recvretcommand err"

    • @interlinkknight
      @interlinkknight  Рік тому

      Where do you get that error?

    • @davemetalhead2136
      @davemetalhead2136 Рік тому

      @@interlinkknight when I open the serial monitor to check first he write "□□□□?□□□°□□•? " and after recvretcommandfinished ok
      Recvretcommandfinished ok
      Recvretcommandfinished err
      Recvretcommandfinished ok
      Recvretcommandfinished ok "this is literally what happen, it's strange because when I press the botton on the screen it work but not with the spst button 😅

    • @interlinkknight
      @interlinkknight  Рік тому

      So you can send data to the nextion display fine? The problem is with a button in the display to send data to Arduino? With such little information about the problem, I can't do much

  • @Dvance
    @Dvance 2 роки тому

    When Verifying the sketch, it's giving me this error in the console. 'NexButton' does not name a type; did you mean 'Nextion'?
    It has an issue with every single one of my buttons, I've followed your tutorial, and I didn't do anything wrong. Is this code still working after updates to the Nextion library?
    NexButton w3 = NexButton(0, 4, "w3");
    EDIT: My Nextion Library folder isn't NEARLY as full as yours, could you provide the library you're using so I can download it? My folder has 7 files total, Nextion.h is a notable one.
    EDIT 2: Found it, that was harder than it should have been. I hope this is my solution. I got my nextion library from the official Arduino add library list.

    • @interlinkknight
      @interlinkknight  2 роки тому

      The library that I used is in the description of the video. Sadly, there are multiple nextion libraries that they don't all work

    • @Dvance
      @Dvance 2 роки тому

      @@interlinkknight Alrighty, thank you. I found the github, but I don't think your video ever mentioned which library you used.

    • @interlinkknight
      @interlinkknight  2 роки тому

      The library is also mentioned on the the sketch (near the top). Enjoy

    • @carlotucarellarr9026
      @carlotucarellarr9026 21 день тому

      @@interlinkknight I downloaded the library you have posted in the description and added the file to the master folder and still NexButton and every other iteration returns the "does not name a type..." error.

  • @specscheck952
    @specscheck952 2 роки тому

    anyone ever got data error on top left off screen

  • @stefaniebeer1418
    @stefaniebeer1418 Рік тому

    😂😅