Nextion+Arduino Tutorial #2 Sending Data To Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2017
  • I show a few examples on how you can send data from the Nextion display to the Arduino board and vice versa. This time I use the nextion library, but only to receive data from the display. To send data to the display I still prefer sending it without using the library (like I showed on my 1st tutorial), so this tutorial is a mix of both techniques.
    Note: On the video I said "microseconds", but it's actually milliseconds.
    - Buy the Nextion 3.5" Enhanced: amzn.to/3qMfjTd
    - Buy Arduino nano: amzn.to/2Q4sA5h
    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+Arduino Tutorial #1 Beginner's Guide: • 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 #5 Troubleshooting: • Nextion+Arduino Tutori...
    Nextion+Arduino Tutorial #6 A Project From Scratch: • Nextion+Arduino Tutori...
    My example nextion project file #2: drive.google.com/open?id=1srT...
    My example arduino sketch file #2: drive.google.com/open?id=1HjA...
    Nextion library (Original): github.com/itead/ITEADLIB_Ard...
    Nextion library (My copy): drive.google.com/open?id=1e9v...
    Nextion library configuration file for Arduino Uno/Nano: drive.google.com/open?id=1OTg...
    You put this file on the "ITEADLIB_Arduino_Nextion-master" folder, that is on your library folder.
    Quick Start Guide:
    www.itead.cc/wiki/Nextion_Edi...
    Nextion Instruction Set:
    www.itead.cc/wiki/Nextion_Ins...
    nextion.itead.cc/resource/doc...
    FAQ:
    What model is your display?
    It's the 3.5" enhanced version NX4832K035.
    Website: interlinkknight.wixsite.com/i...
    Patreon: / interlinkknight
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @passelig
    @passelig 4 ปีที่แล้ว +8

    REALLY well made video! I love the effort you have put into making it "to the point" and focusing on the difficult parts

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

    I’m remaking the check control display in my 1985 BMW 635CSi to look modern and impressive. I have a lot to do and am currently brainstorming workflow charting all of the processes before designing my screens in CorelDraw. I’ve made a few but it’s super challenging. I’ll be referring to your videos as I complete the build. Keep your videos coming. They’re a HUGE HELP and I’m very grateful.

  • @CleancutCampers
    @CleancutCampers 5 ปีที่แล้ว

    Thank you so much for this. I've been searching so hard for the information in this video. Keep up the good work.

  • @matzs.5168
    @matzs.5168 6 ปีที่แล้ว +2

    Thanks for your Nextion tutorials!! Great Work!

  • @betoarango1772
    @betoarango1772 6 ปีที่แล้ว +4

    This clears up so many questions. Thank you very much for this video as well as the sample sketch.

  • @emil.mammadov
    @emil.mammadov 4 ปีที่แล้ว +1

    Man you saved my day with that Send Component ID thing. I appreciate you

  • @leeharrington6438
    @leeharrington6438 6 ปีที่แล้ว +10

    This has been a big big help - so many thanks for this!!

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I am glad. If you have any problem, let me know.

    • @alien4ufo364
      @alien4ufo364 5 ปีที่แล้ว

      Hi i'm wondering if this sketch run on your arduino cause when i upload the whole code it messages...
      C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\HardwareSerial.cpp:203:1: internal compiler error: Segmentation fault
      }
      ^
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See for instructions.
      lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
      compilation terminated.
      c:/program files/windowsapps/arduinollc.arduinoide_1.8.15.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
      collect2.exe: error: ld returned 1 exit status
      exit status 1
      Error compiling for board Arduino/Genuino Mega or Mega 2560.

  • @REXONCROSS
    @REXONCROSS 5 ปีที่แล้ว +2

    Thanks a lot for your help mate. This is the perfect tutorial for all my questions.

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

    you are best so far in explaining the nextion displays.thank you for all your hard work and R&D. please make more videos !!

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

      My pleasure.
      So far the only video about the nextion display that I plan to make is comparing the basic version vs the enhanced. I can't think of any other thing to make a video about that I didn't talk about already.
      Do you have any other idea about more videos about the nextion display?
      I am working on other new videos, but they are not about the nextion display.

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

    your code inside with explanations is very good and clear, thanks a lot!

  • @becky3505
    @becky3505 6 ปีที่แล้ว

    Hiya,
    Thank you for taking the time to post the videos. I have a large RC project that include touch screen to control multiple distances on a single stepper.

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Sounds nice. Do you have a video showing your project?

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

    Many thanks, excellent presentation and commented coding. I hadn't figured out there is a PushCallback as I'd based my work on the CompButton example (uses just Pop) so I'd spent a couple of hours wondering why buttons only invoked the Arduino routine on release... So wish TH-cam had suggest your channel sooner before several others. Thank you again.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      That's great. I love helping. If you have a question about my examples let me know.

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

    Thank you for your time and effort. Great video!!! Help me understand better the nextion library.

  • @ivandaniel9535
    @ivandaniel9535 4 ปีที่แล้ว +3

    Thank you for your video, it has opened the door for me with the nextion display. My project is a multi screen EFIS for my Light Sports Aircraft (2 seater). The plan is two 3.5 inch displays and a 7 inch. The micro computer/s are ESP32. Will keep you updated as the system progresses. thanks again

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

      Your project sounds awesome. Yes, please keep me inform about your project. My email is on my channel page

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

      Salut Ivan, dacă ești disponibil și dispus as vrea să-ți adresez niște întrebări despre cum as putea face un ecran EFIS prin intermediul arduino și nextion, mi se pare foarte interesant și m-ar ajuta foarte mult dacă ai vedea acest mesaj, mulțumesc anticipat!!

  • @NikolayAgopyan
    @NikolayAgopyan 5 ปีที่แล้ว

    Thank you for the great tutorial, answered LOTS of questions!

  • @lanfrancosimoncelli3980
    @lanfrancosimoncelli3980 5 ปีที่แล้ว

    Finally someone who puts the sketch to help and not just a movie to show that it is cool
    Thank you

    • @omribarkan170
      @omribarkan170 5 ปีที่แล้ว

      Hi,
      Can you share the sketch ?

    • @lanfrancosimoncelli3980
      @lanfrancosimoncelli3980 5 ปีที่แล้ว

      @@omribarkan170 Hi Omri, My project is opensource, you can find all information in this forum: www.psktrentunisti.it/psk/forum/7-autocostruzione/959-sostituzione-controller-yaesu-con-display-nextion.html?limitstart=0
      The new video is here: th-cam.com/video/JVZOkg2VBbw/w-d-xo.html

  • @sebastianm7894
    @sebastianm7894 5 ปีที่แล้ว

    Thank you my friend! You form Beginners to Amateurs.

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

    You are so right about not using the Nextion library to send to the display. I had everything coded correctly using the library but the Nextion was not responding reliably. So I changed to sending data to Nextion using the plain simple print/write statements like you say to use. When I do that everything works right. Thanks.

  • @sirthomas2591
    @sirthomas2591 4 ปีที่แล้ว +3

    You were sent from coding heaven. Thanks a million. Now I have a chance. Thats a lot of work you've saved me.

  • @AndreAnaPena
    @AndreAnaPena 5 ปีที่แล้ว

    Just what I was looking for! Thanks so much!!!

  • @glynnmason8205
    @glynnmason8205 6 ปีที่แล้ว

    I like this display it makes displaying different things easy good video you have done

  • @MrJordinhand
    @MrJordinhand 5 ปีที่แล้ว +2

    Thanks for the video, great help!!!!

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

    Congratulations on the excellent tutorial.

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

    This was very helpful.
    Thank you.

  • @gr7480
    @gr7480 6 ปีที่แล้ว

    Thanks from Spain, good tutorial, very complet.

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

    Thank you for doing this Nextion tutorial series. I plan to use the Intelligence model as 2 dimensional 'slider' to control X & Y gains of a laser controller. IOW, sliding from bottom left to upper right increases both X & Y. Sliding in a circle changes the symmetry of quadrature waveform pairs or the overall image. Of course, a dot will be required to indicate the current position, as well.
    I've never seen any similar HIDs on any other controllers, but it is much needed in laser controllers to combine two x & y sliders (requiring 2 hands) into a single touch pad (requiring only one finger). There are never enough hands for a single laserist to keep up with a 4 piece band nor orchestra in real time.

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

      That sounds really cool. If you can, post a link of a video showing that project. I would love to see that

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

      @@interlinkknight Yeah, me too. Lots of R&D ahead, but that's part of the challenge, isn't it? Just hit snag with my Teensy's audio DACs being capacitor coupled, so they filter out DC offests, like beam positions and DC color control. 🤔
      This project could take months to complete, assuming that everything works like it's supposed to.
      Shoot for the stars and wear a parachute, right?😎

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

      Totally! Good luck

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

    Absolutely perfect! Thank you very much for sharing the details of your code.

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

    Fantastic video, man! Thank you 👌

  • @robertsatoer4668
    @robertsatoer4668 5 ปีที่แล้ว

    seriously great vids to get me started. hope I will debug all the typo's before i get sick of it ;)

  • @claybeard1
    @claybeard1 6 ปีที่แล้ว

    very clear explanation, great detail in the arduino file, many thanks for this upload!

  • @jeromedormoy3932
    @jeromedormoy3932 6 ปีที่แล้ว

    Thank you ! That was very helpful !

  • @jarno4054
    @jarno4054 6 ปีที่แล้ว

    Very nice video, very good explaned and the instructions are very clear, thanks!

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

    Thank you for the excellent learning video. Helped me a lot.

  • @Electromaniaworld
    @Electromaniaworld 6 ปีที่แล้ว

    sorry for non tech question, what software do you use for pc screen capture, i liked it when it zooms IN when you click at certain place on screen.

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I use nvidia shadowplay that it's included on GeForce Experience but the zoom is not made by the screen capture. I zoom manually using my video editor (Sony Vegas) much after I record/capture everything.

  • @SuperADI2
    @SuperADI2 6 ปีที่แล้ว

    You are very good in explaining and presentation I like it, Great job :)

  • @experimentboyTV
    @experimentboyTV 5 ปีที่แล้ว +2

    Thanks for the great video! However I'm having issues with a Teensy 3.6 and a Nextion 3.5". In one way I can send text info from the teensy to the display and change the text inside a button, but nothing happens whenever I press buttons I created... I've tried everything :(

    • @experimentboyTV
      @experimentboyTV 5 ปีที่แล้ว +2

      Found the issue, Serials 1 to 3 wouldn't work, I had to use Serial4 and set it in NexConfig.h too

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

      @@experimentboyTV I have a problem with the button is not responding, I use nextion screen 3.2, can you help me?

  • @patrickvalk
    @patrickvalk 5 ปีที่แล้ว

    Amazing sound improvement !!

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

      Thanks. Yeah, I got a new mic.

    • @patrickvalk
      @patrickvalk 5 ปีที่แล้ว

      @@interlinkknight really liked your videos, but with the new mic it's just so much better :)

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

    Thanks for yours videos !!!

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

      It makes me happy to help. So, my pleasure.

  • @captainspongeboy
    @captainspongeboy 5 ปีที่แล้ว

    You are a superhero! Thank you

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

    Thanks for the tutorial. It was very helpful. I just needed to figure out why it didn't work. So I ended up downloading a few files with bug fixes by Ray Livingston (NexConfig.h, NexHardware.cpp and Nexhardware.h). But the main culprit in my case was probably the fact that I had Arduino Nano connected to the USB while using the RX0 and TX1 pins for serial communication. After disconnecting the USB and resetting the Arduino it suddenly worked! Before that I always had a get.value error (or time-out after using Livingston's bug fixed files). Now I can use a dual-state button for motor on/off and a slider to regulate RPMs through a motor driver with PWM. Project: I am designing a touch screen MMI for a cosmetic machine.

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

      so will you consider to look at touch screen display?

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

    Great! Thanks for sharing to the world @@!

  • @andrewpepper1
    @andrewpepper1 6 ปีที่แล้ว

    Thanks Thanks Thanks !!! Fantastic clear simple step by step explanation again Thanks

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I am glad you find it useful. Cheers

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

    thank you very very very much bro!!!!
    your video saved me!

  • @johnnywonka1211
    @johnnywonka1211 6 ปีที่แล้ว

    also would like to know, can you only write to the page that is currently displaying? if you write data to a non displayed page , will data be retained ?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      The only object that it can receive data without being on the current page is the global variable, at least that I can think of. All the rest have to be on the current page. But why do you care about sending data to objects in other pages? What is the thing that you are trying to do?

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

    some sources write the library like this #include "nextion.h" instead of
    or
    NexDSButton bt0 = NexDSButton(0, 2, "bt0"); what is DS?

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      DS = Double State. It's one type of button in nextion when you press is ON and when you press again is OFF.
      The "nextion.h" vs doesn't matter.
      I can only help you if you stay focus on my examples. If you get information for any other source, I have no idea what you are doing so no way I can help you. And if you need to write and write a lot, better send me an email.

    • @alien4ufo364
      @alien4ufo364 5 ปีที่แล้ว

      Yes Please i'll appreciate if you give me your Email address...

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

    thanks for very good tutorial 👍🏻🌹

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

      Hi bob will you consider to use some other brand touchscreen display?

  • @atmk
    @atmk 6 ปีที่แล้ว

    super helpful, Thank you

  • @twin331000
    @twin331000 5 ปีที่แล้ว

    Hi I tred your example, but i got an error on :
    nexLoop(nex_listen_list);
    exit status 1
    expected constructor, destructor, or type conversion before '(' token
    can you tell whats wrong

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I never seen that error. Watch my troubleshooting video.

  • @razvandinica7705
    @razvandinica7705 6 ปีที่แล้ว

    Thanks for the great videos. Very clear to understand how to comunicate with Nextion displays. I still have an issue with getting data from the display. Not receiving the value with the get command. I am using software serial on Arduino Pro Mini " SoftwareSerial HMISerial(2,3) ". The receiving variable remains zero ( or the value what is given on the initialization ). Any ideea why this is happening ?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I tested software serial with the nextion display too and I got problems receiving data too. Solution: don't use software serial, unless is to only send data to the display.

  • @jamescullins2709
    @jamescullins2709 6 ปีที่แล้ว

    very interesting video, I have learned a lot form it.

  • @naveenshetty2891
    @naveenshetty2891 6 ปีที่แล้ว

    Instead of putting the code bauds=115200 in arduino code , can i have it set as a pre-initialization in nextion

  • @renatocanhaify
    @renatocanhaify 5 ปีที่แล้ว

    Thanks for your work. I have a question: is it possible to make an xy plot with online data from arduinto. Let me explain: I am buiding an potensiostat, a devide which imposes a triangular potential ramp perturbation o an electrochemical system (batery for example) and record the current flowing between electrodes. I need to plot current in y axis and potential on x axis. Thank you.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      The nextion display does support wave form that is similar to a xy plot. Is it enough? There's no native way to have a xy plot, but I imagine it could be done with some tricks and hard work. You know, maybe creating a matrix of square images and control each one as pixels. But not easy.
      If all you need is a simple xy plot, a conventional display would be better because you can control the pixels more directly and that way you have more freedom. The nexiton display is more for complex stuff that can't be done by arduino directly.

  • @stevekimanthi9582
    @stevekimanthi9582 5 ปีที่แล้ว

    Hi, is it possible to change the state of a dual state button on the display with an external dual state button connected to the arduino? I want to control a light with both buttons so when i physically press the button connected to the arduino the button on the nextion should go to the same state as the physical button.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Of course you can. Just send the value to the button like anything else. Example: bt0.val=1 to press or bt0.val=0 to release. Obviously send also the 3 finishing lines as always. See my examples.

  • @omribarkan170
    @omribarkan170 5 ปีที่แล้ว

    Hi,
    First, I want to thank you for your very nice and clear example.
    It taught me a lot of things.
    And second, I have a few quetions:
    1. In your example, you've changed the value in page 2, box "n0" between 0 and 1, by pushing butten "c0" (number3) but I didn't see where do you change the value of "number3".
    2. How can I use softwareSerial in this example ("SoftwareSerial HMISerial(10, 11);" ?
    3. If I want to play with this example, and follow the values, how can I do this, or in different words, how can I debug the sketch?
    4. Where can I find the command list for Nextion, like " c0.getValue(&number3)", "Serial.print(number3)".......etc.
    Thanks,
    Omri

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I am glad you like the video.
      To answer your questions:
      1. In page2 object n0 is showing the page number between 1 and 3. That's sent by arduino.
      2. I don't recommend using software serial with the nextion library. It doesn't work well. The only way the software serial works with the nextion display is if you want to only send data to the display, and you can do it normally as you would with any other serial device.
      3. I don't understand the question.
      4. I don't understand the question.

  • @igeorge688
    @igeorge688 6 ปีที่แล้ว

    What is the tiny Arduino you use on the video, part number and where to buy.
    Thank you

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      It's called arduino nano. It's very common. It uses the same code as arduino uno. I like it because is small, can be plugged into a breadboard and it's super cheap from china (US $3). I buy them on ebay, usually 10pcs at a time

  • @cedricbron7472
    @cedricbron7472 5 ปีที่แล้ว

    Thanks a lot...amazing job...

  • @drakkorvladimir4012
    @drakkorvladimir4012 5 ปีที่แล้ว

    Awesome! Thank You.

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

    Hello, I have one, and as I can se it's use serial comunication, did tou declare de pins for the comunication on Arduino ? I didn't see this on your code.

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

      In arduino uno and nano there's only one serial port. Nothing to declare there

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

    Thank for your video. I think there is a problem with "nexLoop(nex_listen_list); // Check for any touch event". popmenus does not work or never. ..

  • @stahelpeter
    @stahelpeter 6 ปีที่แล้ว

    Hello, many thanks for your video and helped me a lot. I try to to identify the button / dual state button which is pressed on the display and use the getValue function. I get this error "MySensorNextion:254: error: 'class NexButton' has no member named 'getValue'
    bt0.getValue(&number1);". Any idea what the issue could be?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I see the problem. In the first main section where we declare the objects you put NexButton instead of NexDSButton. NexButton is for normal buttons and you are trying to read a dual state button. Dual state buttons are called NexDSButton in this section.

    • @stahelpeter
      @stahelpeter 6 ปีที่แล้ว

      Thank you for the reply I know now what to do :-). I use the github.com/itead/ITEADLIB_Arduino_Nextion/archive/v0.7.0.zip library which does not include the DS button .h file. Are you working with the github.com/itead/ITEADLIB_Arduino_Nextion/archive/master.zip. libraray? (which das the DS button .h file)

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      The link for the library I used is on the description

  • @atngo5599
    @atngo5599 6 ปีที่แล้ว

    I bought a HMI China. I couldn't use CallBack function in Nextion library. Dosen't it support for this HMI display? Thank for your attention!

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I am not sure what kind of display you bought but this tutorial is for the nextion display only.

  • @naveenshetty2891
    @naveenshetty2891 6 ปีที่แล้ว

    Hi ,
    in the code u had mentioned that u can change the baude rate to 115200 , ( bauds = 115200) , but with this change my nextion and nodemcu does not communicate ( led set at D5 ), when i change it back to 9600 it does communicate properly , does bauds code work with the regular 2.8 board.

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      It works with any display version. Did you change anything on my code? Did you cycle power OFF and ON both devices? The display has to receive the command to change the baud rate using the baud 9600. That's why I start the serial communication at 9600 and later give the instruction "bauds=115200" and after that end serial communication and start another serial in 115200. And power off the arduino so executes the setup.

    • @naveenshetty2891
      @naveenshetty2891 6 ปีที่แล้ว

      HI
      i did the following in the setup
      void setup() { // Put your setup code here, to run once:
      Serial.begin(9600); // Start serial comunication at baud=9600
      delay(500); // This dalay is just in case the nextion display didn't start yet, to be sure it will receive the following command.
      Serial.print("bauds=115200"); // Set new baud rate of nextion to 115200, but it's temporal. Next time nextion is power on,
      Serial.write(0xff);Serial.write(0xff);Serial.write(0xff);
      Serial.end(); // End the serial comunication of baud=9600
      Serial.begin(115200); // Start serial comunication at baud=115200
      bt0.attachPop(bt0PopCallback); // Dual state button bt0 release
      pinMode(D5,OUTPUT);
      }
      then i disconnect the nodemcu from the pc and connect it to a power bank and connected the tx and rx to nextion, then i click the dual mode , it does not work , then i comment the code for baude change and again reload the code and then it works.

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      By putting "bauds" instead of "baud" you are trying to change the default baud rate of the display, meaning it will have that by default. Try removing the "s" so you change the current baud rate instead of default to see if works.

  • @mattnsac
    @mattnsac 5 ปีที่แล้ว

    Is there a way to code Nextion to tell Arduino when its ready to receive new instructions? The rather unhelpful Nextion forum mod basically said that sending data to the Nextion in a quote "unbridled" way was causing a progress bar to redraw choppy and blamed the code on it and not the speed of the Nextion. If it is in fact code related that causes the progress to redraw slowly, what can be done to minimize it? I cant link other TH-cam videos here, but the issue is that the areas being drawn as the bar climbs or descends, you can see vertical lines of the bar being drawn and looks similar to flickering.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I don't see any flickering in the progress bar. Can you show me? BTW you can put links to youtube videos in the comments.

    • @mattnsac
      @mattnsac 5 ปีที่แล้ว

      I didnt think you could. Notice the progress bar on this dash, you can see it drawing like vertical stripes as it goes up or down and is much more prevalent when the changes are large or happening very fast. I cannot figure out how to fix that if there actually is a fix th-cam.com/video/nmV7ax51Ozk/w-d-xo.html

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Oh. I suppose you are using the basic version? What size? Better use the enhanced version, if your display is 3.5" or bigger because it has a faster cpu.
      By the way how did you make the progress bar have a gradient color?

    • @mattnsac
      @mattnsac 5 ปีที่แล้ว

      No I am using a 7" Enhanced. I made the progress bar in Adobe Illustrator and yes it has a gradient.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Maybe the high resolution is too much for the cpu, even for been the fast cpu. Did you put the gradient bar on the background image?

  • @adeekhan3463
    @adeekhan3463 6 ปีที่แล้ว

    Brother i am using Nextion to send command to arduino to run the stepper and control relays. i have buttons for their control... do i have to mention all pages in arduino code??? because i have done everything mentioned in your code except mentioning pages.... will be really thankful if you help

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      As I mentioned on the video, I let arduino know what page the display is on to avoid arduino sending data to non-existing objects. If you are not sending data to the display, then you don't need this. If you do send data to the display, then you might notes some slowdown on the arduino loop because the display would be sending a constant error message. The problem is that if you send data to the display and that object doesn't exist on the current page, the display will send an error message and arduino will listen to that. This slows down the loop and will create some lag.

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

    hello again , i have one more question ,
    if i want to read multiple texts from the nextion display, i cannot read more than one text , i tried multiple things like create a new character "char buzzer2" for example , it only gives me on arduino monitor one text(buzzer or buzzer1) only,
    do you have any suggestion that can help me sir
    Thank you

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

    After editing and looking to upload, on the Adino board but not upload error.
    Please helping sir

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

    Hi excellent vids and they helped greatly. Any idea why id get an "NexButton does not name a type, did you mean Nextion" error? Using a arduino Mega.

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

      Watch the troubleshooting video

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

      @@interlinkknight i figured it out. Thanks again for the great tutorials and the fast reply. Happy New year

  • @TheFlybyman
    @TheFlybyman 5 ปีที่แล้ว

    Will you make more videos about this ? Ill like to control some neopixel, and make pattons and color, when push bottons. And i can get it to work :)

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I feel that I already showed everything relevant to show about the nextion display.

  • @jasonpowell9718
    @jasonpowell9718 6 ปีที่แล้ว

    I get an error using your provided links. I modified nothing except the display settings to match my enhanced 7". The arduino library is stating numerous errors about types
    "Nextion_Tutorial2:68: error: 'NexDSButton' does not name a type
    NexDSButton bt0 = NexDSButton(0, 8, "bt0"); // Dual state button added"
    I took a look through the library you linked to and all the errors pertain to missing .h files. NexButton.h is there and does not throw an error. Has this library been modified since this video was made? Or am i missing something?

    • @jasonpowell9718
      @jasonpowell9718 6 ปีที่แล้ว

      I used the stable release which is much further behind in progression. They should update that lol

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Stable release of what? Are you still having the problem?

    • @jasonpowell9718
      @jasonpowell9718 6 ปีที่แล้ว

      I downloaded the stable release of the git Arduino nextion library that you linked to. I have been unable to use the serial interface you have. But the DS version I have had success. I am using the wemos d1 mini and mini pro for the microcontrollers

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Try with arduino uno or nano, and should work. My examples are made for those.

    • @jasonpowell9718
      @jasonpowell9718 6 ปีที่แล้ว

      I meant the DBserial. Either way I need the extra code memory and the wifi of the esp8266. I think something is going on with my IDE as each time i install the examples, only three are left after restart of IDE. Then this morning I got a message stating invalid library for Nextion. Great work on your videos btw. They were the reason I decided to buy this display.

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

    Hi, great tutorial, but I'm stuck on my project, How to send variable from Nextion to arduino bigger than 255?
    for ex.:
    variable1.val=450 i need to get that number in to my arduino sketch (int var1) variable.

  • @wenzhuoyili4781
    @wenzhuoyili4781 5 ปีที่แล้ว

    do we all have to add 0xff for each command? because mine says I should add something else. so maybe it fits for a different board. and my question is how to find what should I add for commands?

    • @wenzhuoyili4781
      @wenzhuoyili4781 5 ปีที่แล้ว

      please help, you are a genius

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      The list of commands is here: www.itead.cc/wiki/Nextion_Instruction_Set
      All nextion displays work the same way.

    • @wenzhuoyili4781
      @wenzhuoyili4781 5 ปีที่แล้ว

      @@interlinkknight thank you

  • @markschuurman4000
    @markschuurman4000 5 ปีที่แล้ว

    Great vid, very helpfull!
    Question for any geniusses here: I want to control a Nextion and a SIM808 simultaniously by my Arduino 328. They both want to be connected at RX/TX pins. Any workaround thinkable?

    • @markschuurman4000
      @markschuurman4000 5 ปีที่แล้ว

      Looks like the answer is in this library:
      www.arduino.cc/en/Reference/SoftwareSerial

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

      Yeah, you can use software serial, although in my experience the nextion display doesn't like software serial, at least for receiving data from the display. You can also use a Arduino Mega that has multiple serial ports.

    • @markschuurman4000
      @markschuurman4000 5 ปีที่แล้ว

      @@interlinkknight tnx for your answer. I'll choose the SIM808 to be served by software serial then, for now. If stuck, I'll follow your advice towards a Mega.

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

    This is incredibly helpful, for some reason my slider is only sending the PWM value on Release even though I added the line of code printh 65 00 04 00 FF FF FF on the Touch Move.. any idea what I could do to get the brightness of my LED smooth instead of only refreshing after I release the touchscreen?

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

      My only suggestion is to try my example and compare it with your code so you can see what you did differently

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

    LIke Thomas said.. you were sent by coding heaven. I do have some problems though when I interface with STM32 nucleo. Working on it...:)

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

    Can I use software serial 2,3 on the Nano with the nextion, instead of the hardware serial 0,1?

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

      Works for sending data from arduino to the display, but doesn't work well when receiving data from the display

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

    Thank you for this great tutorial. What if there are other tasks in the main loop (multi-tasking), what to do in order not to lose the communication between HMI and arduino?

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

      Multitasking is not a problem. Just don't use delays nor additional loops to keep the main loop going.

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

      ​@@interlinkknight Thanks for quick reply, I have not tried yet ( I will within a few days), but my concern is missing the input from nextion while being busy with another process. For example, missing the input from a very quick screen button press. Could "listening the nextion with a timer interrupt (for example with 10 ms frequency)" be a solution?

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

      I'm not sure how the nextion library works but so far i haven't seen missing and input, except the slider in real time, but i solved that by reading multiple times if received a 0. Try it. I think it already use interrupts

  • @enderq666
    @enderq666 5 ปีที่แล้ว

    Hi. Thanks for your tutorials, they're are extreamly helpful. I am struggling here with one problem. Whenever I run my layout in Nextion editor debug and I connect to the arduino, buttons works like a charm. But when I upload it to the display, they don't. I still have a readdings from sensors, but buttons seems not to be working. In debug mode, I see values from sensors and buttons works. How come?

    • @enderq666
      @enderq666 5 ปีที่แล้ว

      UPDATE! I have uploaded tutorial_2 code to MEGA and tutorial2.tft to the 7" screen. Exactly same story. sinus wave is not shown, nothing change on page2 buttons doesnt work. Page1 only shows variables but nothing from the buttons. I went through your troubeshooting vide, checked everything and still nothing :-( any ideas?

    • @enderq666
      @enderq666 5 ปีที่แล้ว

      It's like TX is not working at all...

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Did you watch my troubleshooting video? Maybe you didn't edit the word Serial to Serial1. I mean, I was using the arduino nano that is 100% compatible with arduino uno. If you want to use another arduino other than uno/nano you need to do some modifications.

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

      i've same problem, can you help me?

  • @georgbrunhuber2329
    @georgbrunhuber2329 5 ปีที่แล้ว

    Hello, maybe you can help me.
    I want to build a small filling station. It stumbled on deas Nextion Display that pleases with a lot. Is this possible with an Arduion Uno HX711 and a stepper motor. How should I tackle the project am new to the field but know something about programming. Maybe you can help me there.
    mfg George

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Start trying my examples and go from there.

  • @motti9000
    @motti9000 6 ปีที่แล้ว

    HI,
    I use arduino mega which have 3 tx/rx port - none of them load arduino sketch to the nextion....I replace to uno it load te sketch but only when yelow line
    at nextion connect to pin 0 rx and the blue connect to pin 1 ???Do you know whay??

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Why works on arduino uno and not on mega? Because the serial name on arduino mega has a number, and arduino uno/nano is just called "Serial". Replace everything that say "Serial" with "Serial1" and it should work. Obviously connect the display to the pins for serial1 (TX and RX)

    • @motti9000
      @motti9000 6 ปีที่แล้ว

      Where to change?
      At the softwarserial lib?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Software serial? No-one here is using/talking about software serial. You change it on the sketch.

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

    Dear,
    Can you help me again?
    I have "Number BOX" with Number Keypad in the Nextion. I need to get the value to a "int" in arduino... Do you know ? Tks a lot.

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

      I showed on this video how to do that

  • @edwarzela248
    @edwarzela248 5 ปีที่แล้ว

    Thank you for the tutorial, I learned a lot from it. Though I have a problem that could be interesting to you. I manage the Nextion HMI with an Arduino Mega, which works as a master in my project. This Arduino needs to send data gathered from the screen to another Arduino over serial communication. The second Arduino Mega works as a slave and controls several stepper motors. I'm using Serial2 for the HMI and Serial1 for the slave. I have tested the code for sending data to the slave separately using the serial monitor, and it worked well, but I can't make it work integrating it with the HMI's code. Could you please give me some suggestion?

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Check that the debugging serial is disabled on the nextion library

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

      @@interlinkknight After disabling that, my serial ports work well. I still have other issues but i'll try to figure them out rewatching your tutorials. Thank, you and congratulations for the great job!

  • @user-xm5gy8tp9y
    @user-xm5gy8tp9y 3 ปีที่แล้ว

    Thank you for good example. But i have a problem. I wonder why i coudn't use getText or getValue function. My nextion library is ITEADLIB_Arduino_Nextion-0.7.0. I changed library version but it didn't work. If you know how to get it work, could you tell me what i have to do?

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

      You tried my example, right? Are saying that my example works except the text?

  • @THECAPTAIN-ev7bj
    @THECAPTAIN-ev7bj 4 ปีที่แล้ว

    Best tutorial

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

    I have a textbox on the Nextion and I need to get the value of the textbox as a String on the Arduino. It looks like the code for this video uses:
    memset(buffer, 0, sizeof(buffer));
    t0.getText(buffer, sizeof(buffer));
    But when I do Serial.println(buffer); it prints out [1296:1,14,b11]
    recvRetString[0,]
    How do I get it to print the value of the textbox?

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I already show how to do what you asked in minute 8:50

    • @korbano
      @korbano 5 ปีที่แล้ว

      @@interlinkknight that shows how to get the text to the arduino and then back onto the nextion, but I was looking for how to get that text into an integer on the nextion. The following worked:
      String inString = buffer;
      number = inString.toInt();

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Oh. Good to know.

  • @wenzhuoyili4781
    @wenzhuoyili4781 5 ปีที่แล้ว

    does the programme work with Arduino UNO? or is it for Arduino Nano only?

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Arduino nano = arduino uno. Same program, same pins, same everything.

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

    I want to make a quad state button. I put the code in to rotate through the 4 different images. Is there a way to send back the PICC of an button? Knowing that it was pressed doesn't do me any good if I don't know what image it's currently showing.

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

      You can't know directly, but you could do it storing the state of the button in a variable inside the nextion display. You can later read that variable from arduino.

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

      @@interlinkknight Thank you! I assume I can instead just have a regular button (or crop?) have it send the touch event and let the microcontroller manage the button state and push the correct picc for the crop area back to the display correct? I don't want to have to poll for changes.

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

      Yeah, that's even better. Let arduino keep the state of the button and you just change the picture with arduino

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

    Hi, I want to go into Arduino with nexrion display in my very first project, is it possible to connect this display with Arduino on much longer wires, ex 4-5 meters? Can I use for that shielded twisted pair wire? Will it work?

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

      I don't know, but I think it should work. Try it out and let me know

  • @adeekhan3463
    @adeekhan3463 6 ปีที่แล้ว

    Your work is appreciated. I am trying to control the speed of stepper motor through slide bar and its direction of revolution through buttons on Nextion TFT. Can you help please?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      You should start by controlling the stepper motor with arduino as you want. Ones you have all that working, try applying what you learned on my tutorial videos to control the stepper motor with the slider. If you try it and have a problem, let me know and might help you. But I can't do the job for you. I can only guide you in very specific problems that relate to the nextion display. Use my examples and make sure they work for you.

    • @adeekhan3463
      @adeekhan3463 6 ปีที่แล้ว

      Thanks for the Quick Response

    • @adeekhan3463
      @adeekhan3463 6 ปีที่แล้ว

      Than for your quick response man.. I am a noob to this... But my program in not workimg... Although it compiled successfully. But not working...

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

    I have a text box where i punch in text on display using the alphanumeric keypad... When i press OK on that keypad, i wish to receive that text to my arduino mega rather than using a separate button to transmit that text...
    Could you help me with that?

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

      I don't understand. Just make the OK button to send the text, like in my example

  • @elricho72
    @elricho72 6 ปีที่แล้ว

    I have problems when i change the page if in the page is the same variable even though i check the current page sometimes work fine sometimes don't. I put the same code in my application printh 65 01 00 01 FF FF FF // [65] [PAGE_NUMBER] [00] [01] [FF] [FF] [FF]
    changing de page 00 01 02 in every case and check de page in my arduino code, but don't always work. Could you make something else?
    Other thing is i have a dual button and in the screen change well, but arduino is like sometimes like lose the data, because not respond always, is normal that?

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

      I am not sure I understand. I would have to check the sketch and nextion project to better understand the problem. But all that you mention appears to me as a problem in communication from the display to arduino. In my tests I never seen that, in normal situations. I can provoque communication problems using software serial, causing errors messages from the display, etc. But in normal situations, I never seen that level of inconsistency.
      My example files work well for you, right?
      Send me an email with the files and more details about the problem. My email address is the same as my youtube channel name at gmail.com

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

    Hello Thanks for you Tutorial
    i have this error can you help Please:
    exit status 1
    'NexButton' does not name a type; did you mean 'Nextion'?
    Thanks in advance

  • @imextradeco.6689
    @imextradeco.6689 3 ปีที่แล้ว

    Is it possible to display the value of the pressed button in the text box placed on the second page by pressing the button (the value is 10) on the first page with only NEXTION TFT?

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

      Yeah. Make a global variable and store the value there. You can access the data on any page

    • @imextradeco.6689
      @imextradeco.6689 3 ปีที่แล้ว

      @@interlinkknight Thank you for the quick response. Do you know any instructive web page for Nextion TFT? I am very new to TFT and Arduino. I use Nextion Editor, but I do not know any commands, how to set up each compornents with the command. I just want to do press button, then the value is handled to the next page, then on the next page, the value stored to EEPROM by pressing the some button. I am sorry for my English, because English is my second language.

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

      ITEAD have websites with all the commands. I show a lot of the basic stuff on my tutorials. Just watch all of my videos about the nextion display and try all my examples. I think everything you need is already there

    • @imextradeco.6689
      @imextradeco.6689 3 ปีที่แล้ว

      @@interlinkknight Thank you for the advive.

  • @oO_toOomy_Oo
    @oO_toOomy_Oo 5 ปีที่แล้ว

    thank you so much for your tutorial they come with great help
    but unfortunately the current page method is not working with me,, I have around 22 text data been sending from arduino to nextion in one page .. so sometimes when i press exit button (to go to the previous page) it does not run the pushcallback method for that page , sometimes it does with no problem. i feel it is because when i send command in the middle of receiving one of the 22 data it does not response ,, what to do I spent three days trying to find solution for that

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

      So far I had no problems receiving data from the display while arduino sends data to the display. Apparently from my tests, there's no conflict.
      I had problems before receiving data from the display, but wasn't related to me sending data to the display at the same time. It was just a glitch in the way they made the nextion library. I am talking about the slider. If you remember, I mention on the video that I had to read the slider several times in a row to fix the problem. Maybe you can do something like that.
      You can send the touch event in the post-initialize of the pages, or in the button that changes the page. Test with that if there's a difference.
      Sadly, the nextion library is a mess. Basically that's the problem. But I'm sure you can figure out a way to overcome that.

    • @oO_toOomy_Oo
      @oO_toOomy_Oo 5 ปีที่แล้ว

      @@interlinkknight InterlinkKnight
      thank you for your reply
      Truly yeah their library is a mess
      I tried all that unfortunately nothing worked
      i noticed also it might happens with my other pages which some has only 4 sending data .. but when there is no sending data on another page everything works fine
      I will keep trying.. if have any suggestions please advice me

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

      Increase the serial baud rate to the maximum

  • @milyasn
    @milyasn 6 ปีที่แล้ว

    Is there a way to write to eeprom of the Arduino UNO from the Nextion display?

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

      Of course. If is a value that is on the display, 1st read the value so arduino can have that value. And after that just write the value to the Arduino's EEPROM. If you want a button to do all this, put all this code on a function of a button in arduino, like I show on the video. But instead of turning on the LED, read the value and write to the Arduino's EEPROM. Try it and let me know how it work for you.

    • @milyasn
      @milyasn 6 ปีที่แล้ว

      Thank you very much for your quick reply. i will try as you explained!!!

  • @christiannze7073
    @christiannze7073 5 ปีที่แล้ว

    Hey, I am using an Arduino Mega to power the LED lights, however there seems to be a lack of communication between the Ardunio and the Nextion screen?
    My RX and TX are the right way, I have set it to Serial2 in config.h beause im using 16 and 17
    The code successfully uploads but just doesnt seem to work.

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      First try my example from my 1st tutorial. Does it work?

    • @christiannze7073
      @christiannze7073 5 ปีที่แล้ว

      @@interlinkknight I'm trying to look at it now, but is there anyway we can talk in private, I really need help for a project that is due tomrrow morning, everything is working but the relationship with the touchscreen and the arduino

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      you can email me but i can't guaranty i will reply quick enough before your deadline.

  • @yapandasoftware
    @yapandasoftware 5 ปีที่แล้ว

    If a person wants to not use the RX, TX pins to input the values because the RX and TX are in use transmitting I/O then can we use another set of pins and create a serial alternate say on Pin 10 and 11? If so what is the proper syntax to set up the serial connections for these pins and translate the I/O from the Nextion Display to the RX. TX pins for wireless transport to a remote receiver interface?

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      In that case I would use an arduino mega that has 3 serial ports

    • @yapandasoftware
      @yapandasoftware 5 ปีที่แล้ว

      @@interlinkknight I would but I'm in production design phase using the Arduino Nano or I can use the Arduino Micro. I used the Mega during my test phase and it works fine. But the touch screens have to be placed in an enclosure and I have to design the 3D CAD files for the Arduino board with 1 relay output and 1 limit switch. It uses RS485 transmitters to transmit data from the Arduino RS232 converter to a remote Master controller which is written in C# interface with a database. There are as many as 120 touch screens in the system acting as slaves but they all have to coordinate their actions through the master controller. For this reason I need to either create a dual Serial I/O or if it's possible just allow the Arduino to listen to both the RS485 I/o and RS232 from Nextion at the same time and just use DTR to control the data flow. I didn't want it to get this complicated...

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      Wow. Well, all I know is that you can send data to the nextion display with software serial, but receiving data doesn't work reliably.

    • @yapandasoftware
      @yapandasoftware 5 ปีที่แล้ว

      @@interlinkknight Actually I learned you can simply connect TX of the screen to the RX of the Arduino and RX of the screen to the TX of the Arduino and connect the TX of the screen to the TX of the Transmitter and RX of the Screen to the RX of the transmitter and the transmitter will only listen to I/0 of the Arduino. So I CAD it in already and wrote the firmware using SMARTLINX. I hope I'm right. Just sent the Gerbers off to China for some protoboards.

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

    i tried to use your hmi files on a basic 3'5"but does not load the file from sd card? i should use necessarily an enanched model?

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

      You need to load that file on the nextion editor

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

      @@interlinkknight yes but first said that is an older version then i imported to the new version but when i try to loas via sd to the display it says that wasintended for a different display version, i have a basic 3,5 not an enanched

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

      In the nextion editor there's an option to choose your display

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

      @@interlinkknight thanks

  • @josejareda4690
    @josejareda4690 5 ปีที่แล้ว

    good day please could you help me with some questions I need to print the names of the buttons of my project and see the names on the serial port. If possible, use them only with the USB adapter to TTL adapter

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      You can read the text in the button with arduino, but you can't do it without arduino. I mean, the display is not going to send anything without a request from the microcontroller. You need an arduino for that.

    • @joseantoniojaredaarreola7082
      @joseantoniojaredaarreola7082 5 ปีที่แล้ว

      @@interlinkknight you would have an example of a code where you could see the text of the button on the serial port

    • @interlinkknight
      @interlinkknight  5 ปีที่แล้ว

      I can't. But all the information that you need is already on my tutorials.

    • @josejareda4690
      @josejareda4690 5 ปีที่แล้ว

      @@interlinkknightGood day. In the end, if I could do the task, what I needed was to place a name on each button and print that name and see it in the serial port just add a few lines of code on the screen and you're done.

  • @tamgaming9861
    @tamgaming9861 6 ปีที่แล้ว

    after seeing all the problems with nextion - do you know a easier to use alternativ for nextion?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I've never seen a better or easier option for arduino. This is the most complete and easier display you can have for arduino, that I know. I've use common displays that connects directly to arduino, but they are good only for simple stuff, like basic graphics and text

    • @tamgaming9861
      @tamgaming9861 6 ปีที่แล้ว

      Thanks for your answer. It will safe me a lot of time to search for something which is better :-)
      So, better to plan 3x what you want to realise with nextion than later have a change on the GUI or? :-)
      What do you think about to use MS Visual Studio to code for Nexition or Arduino?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      No idea about MS Visual Studio

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

    Hello, I am communicating a s71200 with a nextion screen through a CM1241 RS232 module and a max3232 to convert RS232 to ttl. I have already managed to receive in the plc by pressing buttons created on the screen and numbers as well, with which I have achieved the reception part. However, when trying to send from the s71200 plc to the screen so that it shows me a numerical value in a field, I cannot get it to send and it does nothing, the Tx led on the CM1241 RS232 only blinks, so something is sending but it is not what correct. I have looked for information about all this in the instruction set but I can't find where I think the problem is, which is in the character frame. Does the display need a frame of characters or bytes to know or start receiving? I am trying to send in hexadecimal.

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

      First I suggest trying to run my example files in my first tutorial using an Arduino nano or uno. Don't do anything else until you have that working