#56 Inexpensive Intelligent Touch Displays for Arduino, ESP8266, and others: Nextion (Tutorial)

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

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

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

    Thanks Andreas I got to know about Nextion through this video around 15 months ago and in June 2018 we became Distributor for Nextion Displays in India all thanks to you :)

    • @AndreasSpiess
      @AndreasSpiess  6 ปีที่แล้ว +2

      Glad to read that! Thank you for your feedback.

  • @visionstills3700
    @visionstills3700 8 ปีที่แล้ว +11

    Excellent! Solves a lot of questions because of the lack of Nextion documentation.
    Subscribed.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Thanks!

    • @Truevideoz
      @Truevideoz 8 ปีที่แล้ว

      what about the cheaper touch modules in aliexpress and ebay? can we use same ide or it it without much support? ANy advantage since there is only one vendor and hence no competitve pricing

    • @visionstills3700
      @visionstills3700 8 ปีที่แล้ว

      The Nextion IDE only works with Nextion screens.
      The cheaper touch screens do not come with an easy to program IDE. They take tons of work compared to Nextion but if you are up for it then go for it.
      Other screens do not have the onboard goodies that allow for such easy programming. The MCU (microcontroller) has to carry all of that load when using cheaper screens. Nextion takes most of the GUI (graphical user interface) load off of the MCU.
      I'm not paid to endorse Nextion. I'm just a satisfied user that has built several complex GUIs with very little effort thanks to having a few of these screens. The few Nextion screens that I have are worked pretty hard and the non-Nextion, cheaper, screens just sit in a box at the back of a cabinet.
      Buy one, try it, then decide. You will come back and thank me.
      VisionStills.org

    • @b9robot01
      @b9robot01 7 ปีที่แล้ว

      Also here is the code I am attempting to use. It is named "CompSlider_v0_32.ino" #include /**
      * @example CompSlider.ino
      *
      * @par How to Use
      * This example shows that ,when the slider component on the Nextion screen is released,
      * the text value of text component will be changed every time.
      *
      * @author Wu Pengfei (email:)
      * @date 2015/8/11
      * @updated 2016/12/25 bring HMI up to v0.32 to avoid too old issues
      * @convert by Patrick Martin, no other changes made
      * @copyright
      * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd.

      * This program is free software; you can redistribute it and/or
      * modify it under the terms of the GNU General Public License as
      * published by the Free Software Foundation; either version 2 of
      * the License, or (at your option) any later version.
      */
      #include "Nextion.h"NexText t0 = NexText(0, 2, "t0");
      NexSlider h0 = NexSlider(0, 1, "h0");NexTouch *nex_listen_list[] =
      {
      &h0,
      NULL
      };void h0PopCallback(void *ptr)
      {
      uint32_t number = 0;
      char temp[10] = {0};
      dbSerialPrintln("h0PopCallback"); h0.getValue(&number);
      utoa(number, temp, 10);
      t0.setText(temp);
      }void setup(void)
      {
      nexInit();
      h0.attachPop(h0PopCallback);
      dbSerialPrintln("setup done");
      }void loop(void)
      {
      nexLoop(nex_listen_list);
      }

    • @b9robot01
      @b9robot01 7 ปีที่แล้ว

      Sorry please disregard this post. i placed it in wrong location, again sorry

  • @deangreenhough3479
    @deangreenhough3479 8 ปีที่แล้ว +13

    Another brilliant and informative video. You seem to have a knack for covering all the subjects that I am hoping to implement in future projects.
    I am eagerly awaiting video 2
    Thank you Andreas

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

      +Dean Greenhough The second video has to wait a few weeks since I have other projects in the works.

  • @NOTuNOTme
    @NOTuNOTme 8 ปีที่แล้ว +26

    I came up with two new projects before I had even finished watching your tutorial :)

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว +9

      +NOTuNOTme Good to hear. Possibilities and ideas are the base of our hobby.

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

    Wow, there's a lot more to the Nextion than I had imagined. I have been using OLED displays with I2C and they work really well but this is a real step change. Clearly its going to be more complex with the touch element and your video really makes it evident what is involved.
    Thanks for doing this video it's really helpful.
    Arthur

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

      Just discovered this comment...
      I am glad if my videos help.

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

      No problem, I'm not sure how you manage to reply to so many comments, it must be difficult with 10,000 subscribers. How will you cope when it's >1,000,000. Perhaps we could write a programme for that:-)

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว +2

      I take it as it comes. But you are right. the comment functionality here and also on Facebook is not good. It is easy to oversee something.
      I for sure will not write a program, because I like these new possibility to communicate around the world with people with similar interest. When I was young, we used short wave. Now the internet. And fortunately, this has more bandwidth and more stable connections...

  • @michaelganesan4578
    @michaelganesan4578 8 ปีที่แล้ว +2

    I am moving on from lcd display to a touch screen. Good job on the video. Keep the videos rolling rock on.

  • @protuningaustralia6795
    @protuningaustralia6795 7 ปีที่แล้ว

    Hi Andreas, firstly i would really like to say a huge thanks to yourself for so unselfishly sharing your brilliant creations with all of your knowledge and experience, for us to all learn from.
    I am a motor mechanic by trade and have been installing aftermarket engine management systems to race cars and boats etc for over 20 years..
    I have only really just discovered the world of Arduino etc recently after having to stop work due to having strokes.
    I have purchased quiet a lot of bits and pieces and a lot of LCD screen, TOUCH screens etc. I am looking at doing small automotive projects such as you have using both the CAN BUS protocols of the aftermarket ecu"s and of the OEM ECU's on completely standard vehicles using the OBD11 port.
    A lot of people in my city are very excited about having little gauges etc that either work with buttons or touch screen
    My main target gauge would be AFR (AIR FUEL RATIO) along with on the same screen displaying LAMBDA so that both forms of fuel air mixture display terminologies could be displayed, with the added extra of having LEFT and RIGHT banks if the engine is of V formation.
    I also wanted to add micro press buttons or touch screen icons to change what is displayed also,having options of Tacho, other gauges coolant temp etc.
    With the ability to have some form of GUI to create different dash layouts with icons and colour changes etc.
    All of this appears to be very achievable from the brilliant things you have done.
    I have one question, seeing most of you projects are Arduino based, is there a possibility to use the PC DUINO TOUCH SCREEN as a display.
    Removing the PC board and setting the display up to run on a MEGA or an Arduino DUE to achieve my goals or would this not work.
    Thanks for taking the time to read this and i do appolagise for the length of my rant, have difficulty
    getting my point across and typing at times remnants of my strokes.
    Thanks again for your time and your .support to all your followers including myself, we really appreciate it.
    Kind regards
    Dave Kriedeman

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

      I do not know these products. So, I cannot answer your question. In general, you have to find out three things:
      1. pin voltage (3.3 or 5 volt)
      2. Which development environment do you want to use (Arduino IDE or other)
      3. Do you get a library for your boards and for your environment
      One thing I learned: Stick as much as possible to well-known standards. Otherwise you are alone. And your HW list contains many non-standard components. So, the risk for a (expensive) failure in my opinion is big.
      Maybe you consider another possibility: Find standard parts for your project. It might also be interesting to include the Raspberry Pi into your search, if not done yet. It has more power than most of the (standard) Arduinos.
      PS: One of my South-African viewers (Laurence Munro) also tried something you want to do with a Nextion display. You should find his comments in the Nextion videos.

    • @protuningaustralia6795
      @protuningaustralia6795 7 ปีที่แล้ว

      Hi Andreas, thank you for taking the time to reply to my questions.
      Thanks again for your excellent videos.
      Regards
      Dave.

  • @saintpine
    @saintpine 7 ปีที่แล้ว +2

    Thank you, it's quicker to watch your tutorial rather than wasting time researching for the information.

  • @HitAndMissLab
    @HitAndMissLab 7 ปีที่แล้ว

    I love the guy with Swiss accent and his videos. He's almost as good as Dave.
    Each time I want to research a product he has a review and tutorial. Bravo!

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

    Thanks for this video, I'll now watch the others. I was just beginning to program a slow moving TFT for a vehicle dashboard (fuel, temp, oil pressure, voltage) using a PIC18F and SPI tft and it was becoming very large and complicated. Someone suggested Nextion and you got me started. I'll get a much nicer looking panel now I think.

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

      Good luck then. The code should become much simpler with a nextion.

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

    I usually work with Touch Screens where their shields occupy most of my MEGA's ports and always do all the coding.
    This can come pretty handy when designing the UI and I can program the rest. Cool stuff, thanks for the video!

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

      This is exactly the scenario for which Nextion was invented...

    • @SauROnmiKE
      @SauROnmiKE 7 ปีที่แล้ว

      Indeed. Thanks for the video, I'm going to buy one soon. Subscribed!

  • @TheRightPlanet
    @TheRightPlanet 8 ปีที่แล้ว

    Enjoy your vids, Andreas. I just recently obtained my General Class ham radio license (KD9GFY). I'm studying for my Extra Class license now. I've gotten bit by the electronics bug. Having been a programmer for many years, this Arduino stuff is right up my alley. By the way, _Sie sprechen perfektes Englisch. Kein Problem._

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

      Thanks for the compliment! In my young years I was also ham (HB9BLA). Perfect is a big word, but I think, at least, my English is understandable. And currently, it should improve a bit since I work quite a lot in Dubai.
      Enjoy your new hobby. It has many facets.

    • @TheRightPlanet
      @TheRightPlanet 8 ปีที่แล้ว

      Thanks, HB9BLA. Well, _Ihr Englisch ist besser als mein Deutsch_. KD9GFY. 73.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Unter Amateurfunkern verwenden wir in Deutsch das "Du". Ich dachte, du seist in Deutschland aufgewachsen, weil ich sehr wenige Amerikaner kenne, die eine Fremdsprache reden. Sehr gut! This is also not necessary because you can travel the world only with your mother tongue...

    • @TheRightPlanet
      @TheRightPlanet 8 ปีที่แล้ว

      Oh ja, "Du" im Amateurfunkern. Verstanden. Das ist gut zu wissen. Learning a foreign language actually helped me understand my "mother tongue" (i.e. English) better. BTW, Ich habe nicht so viele Gelegenheiten Deutsch zu sprechen. Es freut mich! Bis später.

  • @photon2724
    @photon2724 3 ปีที่แล้ว +2

    I love it when Arnold Schwarzenegger teaches me about electronics. It feels like, I'm in the terminator.

  • @yorickhunt3371
    @yorickhunt3371 8 ปีที่แล้ว

    Thanks for alerting me to the existence of these devices (I've already lost too much hair to hand-programme a passive display panel!), and for the no-nonsense feature & usage summary.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Thanks. I was also once at the same point you are. This was the cause for this video.

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

    The most informative Nextion tutorial I've seen. Well done.

  • @tobortine
    @tobortine 8 ปีที่แล้ว

    Excellent tutorial. I've recently received one of these boards but haven't yet started programming it, your tutorial is really useful. Thanks.

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

      +tobortine So, you should be able to "quick start"!

  • @Kevin-yh8ol
    @Kevin-yh8ol 8 ปีที่แล้ว +20

    But I like your accent
    Nice video btw :D

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

    You are really good in covering all necessary topics and your are very clear in explaining the display. TNX a lot!

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

      Thank you for you nice words!

  • @jct4647
    @jct4647 8 ปีที่แล้ว +6

    Excellent & informative, thank you.

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

      +Johan van den berg You are welcome!

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

    just find your videos and already love them! can not wait to learn so much from you!

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      Thanks and welcome to the channel!

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

    I think I timed starting my radio-building hobby at the PERFECT TIME! Open Source is the Future!

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

      You are right. It is like in paradise!

  • @felipeanaya5144
    @felipeanaya5144 7 ปีที่แล้ว

    I dont care your accent and to be honest i like it and more yet the clear and well done explanation, I learned a lot many thanks Andreas!

  • @murraymacdonald4959
    @murraymacdonald4959 8 ปีที่แล้ว

    Thanks for another amazing tutorial. You just saved me days of time. If you're ever in Vancouver, I'm buying the beer. You might consider setting up a donations link. Your tutorials are excellent.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Murray Macdonald Than you for your comment. For the moment I keep it as my hobby. But if I am ever in Vancouver I will go for the beer!

  • @sdplusm3
    @sdplusm3 7 ปีที่แล้ว

    This, again is a wonderful video from the guy with Swiss accent. Danke schön.

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

    Hi Andreas, kann man damit auch einen Humidity sensor serial abfragen? oder geht die serielle Kommunikation nur zu einem Mikrocontroller?

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

      Sie ist passiv und relativ dumm. Deshalb braucht es eine MCU. Auch, weil das Display nur eine serielle Schnittstelle hat

    • @cybergoofy23
      @cybergoofy23 8 ปีที่แล้ว

      danke dir Andreas. Hast du dir schon das größere Modell angesehen, die "Nextion Enhanced Models"? Wenn ich das richtig verstehe, kann ich damit externe sensoren seriel abfragen.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Nein. Habe ich noch nicht angesehen. Ich bin mir auch nicht sicher, ob das für mich Sinn macht. Laut Beschreibung haben die zusätzliche Dinge, die ich kaum brauche:
      1. Ein Uhr (RTC). Ich habe zwei Videos gemacht, damit ich diesen Chip nicht brauche (für ESP8266).
      2. Schreiben Auf SD Karte: Die Datenrate ist so klein, dass man höchstens einige Byte pro Sekunde übertragen kann. Da behalte ich die Daten lieber im Microcontroller. Die haben unterdessen auch etwas mehr Speicher.
      3. GPIO pins: Die könnten in dem Fall nützlich sein, wenn die am Microcontroller ausgehen...
      Ich glaube nicht, dass du dein Ziel damit erreichst, denn die Sensoren verwenden in der Regel ein eigenes Protokoll. Die Arduinos haben für die Dekodierung jeweils eine Library. Die existiert für diese Displays nicht.
      Diese Meinung basiert nur auf den Daten, die ich gesehen habe. Ich müsste sie sofort revidieren, wenn Du mehr weisst.

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

    Hallo Andreas, kann man das Programm für das Nextionboard auch via USB-Schnittstelle auf das Displayboard laden oder ist die einzige Möglichkeit dies mit einer SD-Karte zu erledigen?

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

      Ich glaube es gibt so was. Aber es lief sehr langsam als ich es mal versucht habe.

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

    Thank you for spreading information about this product. Though I wouldn't call it "inexpensive". A 7" Nextion display is around 80€ without Arduino or ESp8266, while a Raspberry Pi with a 7" touch screen display is around 100€, giving more opportunities and applications. The price of the Nextion display is small while comparing with other industrial displays, like Lascar Pilot Panel displays or Siemens HMI Displays, but here we got differences related to reliability, ruggedness, emc.

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

      Inexpensive is always defined with what you compare, you are right.

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

      Hi will you consider to look at the DWIN display?kindly send me an email or message referring to my banner contact info.

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

    Thanks Andreas. I fixed my problem, I was having a "PICNIC"! Problem In Chair Not In Computer. I'm curious though, how did you get the word "HOT!" to show up at 10:57. Mine doesn't do that, the numbers just increase. thanks.

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

      I do not remember. But I assume I make a check in the Arduino sketch

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

    Actually I want to scheduling in between the lights like if we are giving the timing like from 01:00:00 to 02:00:00. Its means in between this timing light should be turn ON
    and after that or before that should be OFF. The one which you sent there we are giving only time for how much time we want. But i want like for Monday to friday
    timing should be 9am to 3pm or on saturday sunday has to be off for all lights. We are using Arduino UNO to control all these things. I am new to this thing so I don't know how to start. Please help.
    And also i wanted to SET , CLEAR , Timing schedule format, How can i design this process?

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

      You have to program all your wishes on your Arduino. Maybe you watch also the other Nextion videos on this channels because with the UNO and the Nextion you have to know some tricks.

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

      @@AndreasSpiess I am new to this thing so I don't know how to start, thats why i am asking you here. Can i share my HMI file and GUI design?

  • @richardhoogeveen4113
    @richardhoogeveen4113 7 ปีที่แล้ว

    Thank you Andreas, you just gave me the push to go on working with this display, can't wait for its arrival :-)

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      I am also working on a new video with one of them.

  • @beauslim
    @beauslim 7 ปีที่แล้ว

    well, look at that. been watching a few of your vids this week and I was googling for info on these HMIs and here we are again. subscribed! "HMI" devices pretty much exactly like these have been around for a VERY long time for industrial applications. it is nice that they are finally cheap and small enough to build into portable projects!

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

    Can we use the ipad1 or ipad2 display for this? I have some old ipads that I want to re-purpose. 😄

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

      These displays have a built-in program. I do not know how you could do that with an iPad display.

  • @fuckbuddy23
    @fuckbuddy23 8 ปีที่แล้ว

    Man keep going with these videos! They are super informative and save me plenty of hours! Great great job!

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Andrea Buda Good to hear. This is the intention The next viedo about Nextion should be ready by this evening.

  • @mikl4U
    @mikl4U 7 ปีที่แล้ว

    Just fantastic. The way of showing the information, and so very easy to understand... that I can only thank you for this excelent tutorial

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      +Miguel Coronado You are welcome!

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

    Hi Andreas, I have a problem with my Nextion display, It doesn't communicate with arduino anymore, I figured that when I'm testing Nextion's RX & TX with multimeter, thi buzzer gives a voice which means that they are connected together.. How can I solve that ?
    Please I really need your help!

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว +2

      I cannot do remote diagnostics. So, you have to investigate yourself. Maybe you start with a very simple example where you are sure, that it should work.
      P.S. The two cables are not necessarily connected together if your Multimeter buzzes. If one cable has 5 volt and the other zero volt, your Multimeter buzzes, and the two cables are not connected. Measuring independently the voltage levels to ground is a better possibility (without Arduino) to see, if the two cables are really connected. And please be aware, that RX is an input. So, Its voltage is not properly defined and might change, if you connect your second lead of the Multimeter to 5V or to ground.

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

      OK, thanks first for your reply,
      to make you close to my problem, at first I used to work with nextion display without problems, everything was good.. I tried many of examples from the library I compiled the programs and transfered it to arduino mega, and I used to compile HMI files on nextion editor and transfered them to nextion display through SD Card. later I created my proper application, and it worked very well.. I read time from RTC and write it to display, as I used to read components on Nextion Ids to arduino to do several things, but now .. I can't read Ids on arduino as I can't write data to nextion even when I tried examples from the library.. so I'm sure the code works and i'm sure that there is no problem with HMI file. so the only thing I can think about is the hardware serial.
      I made measurements on nextion only without power supply and without arduino connections of course.
      I tired measurement on RX and ground I got some values which made me in doubt .. So I think that Serial RX & TX on Nextion is damaged (I'm not sure).. If that's right .. how can I do to solve this?

  • @brunokc100
    @brunokc100 8 ปีที่แล้ว

    Looking forward to the next video. Hope it's soon.
    can not wait

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

      Go to the end of this video. Maybe you find a surprise🙂

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Bruno Christensen dos not work on Iphone, works on PC

    • @brunokc100
      @brunokc100 8 ปีที่แล้ว

      +Andreas Spiess
      I've tried the link to next tutorial # 2 but it writes that the video is private.

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

      Sorry for that. It worked for me, so I assumed, that the trick works also for others. The video is scheduled to go live today, 18:00 MEZ. This is the slot I always release my videos. So, you have to wait a little...

    • @brunokc100
      @brunokc100 8 ปีที่แล้ว

      I must just see some of the many other videos you have until then: D

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

    I know about UTFT library under arduino, but before purchasing any TFT from random website how I can be sure that this TFT is going to work with UTFT library, could you please help me with that.
    I am looking for 4.3 inch, 5 inch and 7 inch TFTs with resistive or capacitive touch.

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

      This display is something completely different. It has a processor on board.

  • @emgab
    @emgab 8 ปีที่แล้ว

    Grüezi Andreas - another great video with very valuable information, as i'm also considering using the nextion displays in the future - great content and a nice swiss accent :) makes it really funny to watch.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +emgab Thanks for your nice comment!

  • @gbegerow
    @gbegerow 8 ปีที่แล้ว

    Thanks! Seems this panel is a much better fit for my project than my original choice.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      So, probably for the next project...

  • @hebrewhammer1000
    @hebrewhammer1000 8 ปีที่แล้ว

    Great tutorial! I am excited for the second tutorial.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Zane Atkins Thanks. The second video has to wait a few weeks since I have other projects in the works.

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

    Great tutorial and thank you! I have the 4.3 version and I"m getting "File version to low" on the SD card. Do you know what this means? Thanks in advance.

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

      Maybe you have to use a newer Nextion editor? But I do not know.

  • @AlanSloan
    @AlanSloan 7 ปีที่แล้ว

    Very useful video. Looks like a great resource for low-cost interactive projects with microcontrollers.

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

    It seems nextion have changed their web pages and the links to the editor no longer work, I have found you have yo download the LTS version for the smaller displays. No idea where the demo.hmi file exists though any help there would be good.

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

      This is an old video and I cannot update it.

  • @itsadamoc
    @itsadamoc 8 ปีที่แล้ว +2

    Wow I want one. Is that gui for editing the views available on a Mac as well?

  • @RobertoColi
    @RobertoColi 7 ปีที่แล้ว

    Very good video Andreas. It was just what I was looking for long time.
    I just ordered it on Amazon.

  • @Neomight
    @Neomight 8 ปีที่แล้ว

    Hello
    I would like your help, how can I use this slider to control the intentions or PWM of a led? I am new at this! I do all the procedure that is shown in the video but I do not know how to integrate the code that you provide to be able to control the intention of a led through the screen. Would you be so kind as to give me your help?

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      1. Watch my videos #59 and #63
      2. Start with one of my examples and stay with them till they work
      3. Look at the examples provided with the Nextion library. If you want to use a slider, use the slider example. Make it work and understand, how it works.
      4. Try to control your LED with a PWM signal without Nextion (if not already done)
      4. merge the two sketches.

    • @Neomight
      @Neomight 8 ปีที่แล้ว

      I will show the arduino sketch so that they better understand my question.
      I need to replace the variable (button) created by me in the arduino sketch, by the slider created in the nextion screen. When I move the slider or button on the screen the value of the variable (light) varies from 0 to 255 as the arduino PWM value.
      In the examples # 59 # 56 Nextion Display Tutorial you create a (Slider)
      When you move the value changes, I want to do that with arduino PWM output. Example # 56 works for me, it loads everything fine, but example # 59 does not give me an answer, I press the buttons and it does not change any value. I am using (Arduino UNO), the library (ITEADLIB_Arduino_Nextion-master) as previously said example # 56 I everything works fine but the arduino # 59 does not respond to commands on the screen.
      I'm going to extract the arduino code so they can better understand my question.
      I need to replace the variable (button) created by me in the arduino sketch, by the slider created in the nextion screen. When I move the slider or button on the screen the value of the variable (light) varies from 0 to 255 as the arduino PWM value.
      In the examples # 59 # 56 Nextion Display Tutorial you create a (Slider)
      When you move the value changes, I want to do that with arduino PWM output. Example # 56 works for me, it loads everything fine, but example # 59 does not give me an answer, I press the buttons and it does not change any value. I am using (Arduino UNO), the library (ITEADLIB_Arduino_Nextion-master) as previously said example # 56 I everything works fine but the arduino # 59 does not respond to commands on the screen.
      Arduino sketch
      Https://drive.google.com/drive/folders/0Bw_1q_JGws0Ycm1xamVTZmJwd1U?usp=sharing
      Int pin = 3;
      Int button = A0; // Replace the button with the Slider
      Int light;
      Void setup () {
      PinMode (pin, OUTPUT);
      }
      Void loop () {
      Light = analogRead (button) / 4;
      AnalogWrite (pin, light);
      }

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Please look at the code which works and try to understand it first. This is not easy stuff and it might take you quite some time to do that.
      First, you have to understand, how the values are transferred from the Nextion to the Arduino.
      In the slider example, you find the value of the slider here
      h0.getValue(&number);
      void h0PopCallback(void *ptr)
      {
      uint32_t number = 0;
      char temp[10] = {0};
      dbSerialPrintln("h0PopCallback");
      h0.getValue(&number);
      }

  • @rainerkufferath4400
    @rainerkufferath4400 8 ปีที่แล้ว

    Sehr hilfreich.
    Immer wieder gern.
    Zu empfehlen für alle Arduino und Co Fans.

  • @gte24v
    @gte24v 8 ปีที่แล้ว

    Hi Andreas, many thanks for the tutorial and all of the information - I had not heard of this display and can see it will make a simple job of providing a pretty UI for my projects. I have just received my display and wonder where the original HMI and TFT file is that came programmed on the display? I can see that you edited it to change the buttons on the gauges, but I can not find it. Could you point me in the right direction please? Thanks again, Ian.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Thanks your nice words. There is a second video with more details about programming the Nextion an there is the link to my files: github.com/SensorsIot/Nextion-Tutorial

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

    Hi Andreas. Interesting video and a crazy coincidence. I and an industrial designer with basic electronics knowledge. Today I was looking at my collection of beaglebone and arduino boards and wondering if I had a display I could use for one. I rummaged thru my collection and found a 7inch touchscreen with a controller attached. Humm, Only Rx1, Tx1, Vcc, Gnd and usb-P & N. So I look on the net to see what I would need to use it and could find very little. Anyway, now I see your vid and think maybe I am a little smarter. Still don't know what I need, but am closer. Thanks so much. Cheers, KJM

  • @matsat
    @matsat 8 ปีที่แล้ว

    Thanks for your most informative and eductional information Andreas!

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

    Great tutorial - will def be looking at this for upcoming Arduino projects. Thanks for the “discovery”!

  • @non7sens
    @non7sens 8 ปีที่แล้ว

    Love your videos. I cant stop watching them!

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Martin Ungur Thanks for the nice comment!

  • @amirshahbazi8909
    @amirshahbazi8909 7 ปีที่แล้ว

    Thanks a lot for the perfect intro! I just love the way you describe! well done!

  • @dallasnyc2887
    @dallasnyc2887 8 ปีที่แล้ว

    Thank you for sharing.
    When I first saw these, I assumed the SD card was for storing images while in use. Which would mean tons of images for a 16GB card.
    But am I right in saying you are limited to the 16MB flash in the device? Figuring roughly 400K for a full image, we are limited to something like 40 full images? and most likely less because room is need for the control programing?
    It does look like it uses smaller images, or sprites, and fonts, which I'm sure use alot less memory?
    Thanks

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Dallas NYC I did not test on how many pictures can be placed in the memory of the display because I do not plan to use it for this purpose. For the moment I will use it with only a few screens and therefore do not think I will come to a limit. So, I cannot answer your question.
      I also do not know if the bigger displays store bigger pictures because of higher resolution.

  • @MrDemmler
    @MrDemmler 7 ปีที่แล้ว

    Hi Andreas, well done - good tutorial.
    Can you tell me which PINS to used for RX/TX connections with this tutorial.
    I tried 0/1 and 14/15 and it did not worked for me.
    thx Alex

    • @MrDemmler
      @MrDemmler 7 ปีที่แล้ว

      I found it myself: Seroial 2 is Pin16 and PIN17 ...

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      +MrDemmler :-)

  • @anumsheraz
    @anumsheraz 7 ปีที่แล้ว

    As-usual, your videos are always useful and very informative. Keep up the good work.

  • @jix177
    @jix177 8 ปีที่แล้ว

    Great product, I've looked for something like this before but didn't find that, thanks for a very useful review!

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +jix177 I hope, they many people will discover this product and they have success with this idea.

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

    I have downloaded the Arduino code from your link but when i click verify it flags up an error about NexText saying it does not match a type...
    I have tried NextionText too and that says no matching function.
    Am i missing something here?

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

      This is an old video. It is well possible that something changed since then. Maybe you find newer examples.

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

    Is there any new thing? Or is Nextion still the best option for home automation? Now a days they are much more expensive than similar displays from other brands (without all nextion features)

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

      I do not know, I did not look into this topic for quite a while.

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

      @@AndreasSpiess Danke Schön!

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

    How do you connect the display to your pc for programming from the software ? do you have to use an Arduino as a serial port ?

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

      There is a second Nextion Video concerning the Serial connection

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

      Hi Andreas, when is it coming ?

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

      It is already there. Maybe you watch my Nextion playlist

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

      Sorry, bad eyes I thought it said a video coming, not concerning

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

    Swiss accent? I somehow hear Mr A. Schwarzenegger... ;-)
    I like the video. Now I will consider that display for my next project! Thanks!

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

      You are welcome. And thank you for comparing me with Arnold!

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

      Anytime... next step: move to California and get that governor job ;)

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      :-)

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

    Even older videos are still interesting and entertaining. Also for refreshing my internal memory, which has... corrupted data every now and then.

    • @AndreasSpiess
      @AndreasSpiess  หลายเดือนก่อน +1

      Indeed, this is a very old video. It remembers me that the channel becomes 10 years next summer. Maybe time to stop ;-)

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

      @@AndreasSpiess Time to stop... ?! The best has yet to come! Think of the disappointment of all your viewers ;-)

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

      @@PhG1961 We will see. I will be 68 next year...

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

      @@AndreasSpiess Indeed a very respectable age. Maybe consider of slowing down instead of stopping. Anyway... the next year is getting closer very rapidly. Next year, I plan to retire. I'll be 64 and hope to focus even more on my electronics hobby. The idea is to finish my workshop and maybe get my ham radio license. Haven't made any final decisions yet, I'm still enjoy my work so far. We'll see...

    • @AndreasSpiess
      @AndreasSpiess  28 วันที่ผ่านมา +1

      @@PhG1961 Early pension is an expensive decision. That is why you have to know what you buy with this money. It seems you have a few ideas, so it is probably a good investment. Time becomes more valuable in our age...

  • @b9robot01
    @b9robot01 7 ปีที่แล้ว

    Hello Andreas, I am very new to this Nextion thing but I love it and your videos. Thank you for making these. I have a question are we supposed to load an Arduino sketch also to get this example to work because my slider moves but there is no number changing? I heard no mention of loading a sketch but like I said I am new.Thank you

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      You need the Arduino sketch, because it controls the whole thing...

    • @b9robot01
      @b9robot01 7 ปีที่แล้ว

      Thank you for actually getting back to me and doing it so fast. I have tried to use the sketch that was included in the CompSlider folder but all I get is a lot of error messages. I have included the "Nextion.h" like the sketch says to but it just will not work. I am using an IC Station Mega 2560, Arduino IDE ver 1.6.13. Any guesses what I could be doing wrong? Thank you

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      Did you watch video #63? What error messages do you get?

    • @b9robot01
      @b9robot01 7 ปีที่แล้ว

      Hi Andreas, Sorry it took so long for me to reply but I am not used to people actually taking an interest and answering my questions. Yes I have watched all you videos but like I said I am new to this and I just don't understand a lot of what is going on yet. Here are the error codes I getArduino: 1.6.13 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"C:\Users\Jim\Documents\Arduino\libraries\NexConfig\NexHardware.cpp:18:25: error: conflicting declaration 'SoftwareSerial Serial2' SoftwareSerial nexSerial(10, 11); // RX, TX ^In file included from C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino/Arduino.h:232:0, from C:\Users\Jim\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion/NexHardware.h:17, from C:\Users\Jim\Documents\Arduino\libraries\NexConfig\NexHardware.cpp:15:C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino/HardwareSerial.h:151:25: note: previous declaration as 'HardwareSerial Serial2' extern HardwareSerial Serial2; ^Multiple libraries were found for "NexTouch.h"
      Used: C:\Users\Jim\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Multiple libraries were found for "SoftwareSerial.h"
      Used: C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\libraries\SoftwareSerial
      Not used: C:\Users\Jim\Documents\Arduino\libraries\SoftwareSerial
      Multiple libraries were found for "SD.h"
      Used: C:\Program Files (x86)\Arduino\libraries\SD
      Not used: C:\Users\Jim\Documents\Arduino\libraries\arduino_410198
      Multiple libraries were found for "Nextion.h"
      Used: C:\Users\Jim\Documents\Arduino\libraries\Nextion.h
      Not used: C:\Users\Jim\Documents\Arduino\libraries
      extion
      Not used: C:\Users\Jim\Documents\Arduino\libraries\arduino_425685
      Not used: C:\Users\Jim\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Multiple libraries were found for "NexConfig.h"
      Used: C:\Users\Jim\Documents\Arduino\libraries\NexConfig
      Not used: C:\Users\Jim\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion
      Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion
      exit status 1
      Error compiling for board Arduino/Genuino Mega or Mega 2560.This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.As you can see there is more errors than there is program. Thank you for your time.Jim

    • @b9robot01
      @b9robot01 7 ปีที่แล้ว

      Also here is the code I am attempting to use. It is named "CompSlider_v0_32.ino" #include /**
      * @example CompSlider.ino
      *
      * @par How to Use
      * This example shows that ,when the slider component on the Nextion screen is released,
      * the text value of text component will be changed every time.
      *
      * @author Wu Pengfei (email:)
      * @date 2015/8/11
      * @updated 2016/12/25 bring HMI up to v0.32 to avoid too old issues
      * @convert by Patrick Martin, no other changes made
      * @copyright
      * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd.

      * This program is free software; you can redistribute it and/or
      * modify it under the terms of the GNU General Public License as
      * published by the Free Software Foundation; either version 2 of
      * the License, or (at your option) any later version.
      */
      #include "Nextion.h"NexText t0 = NexText(0, 2, "t0");
      NexSlider h0 = NexSlider(0, 1, "h0");NexTouch *nex_listen_list[] =
      {
      &h0,
      NULL
      };void h0PopCallback(void *ptr)
      {
      uint32_t number = 0;
      char temp[10] = {0};
      dbSerialPrintln("h0PopCallback"); h0.getValue(&number);
      utoa(number, temp, 10);
      t0.setText(temp);
      }void setup(void)
      {
      nexInit();
      h0.attachPop(h0PopCallback);
      dbSerialPrintln("setup done");
      }void loop(void)
      {
      nexLoop(nex_listen_list);
      }

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

    Thanks for the great tutorial. I am having problems with the demo though. I used the demo file and did not edit it at all. I had to recompile the tft as my display would not load the one in the demo. When I run the sketch on the Arduino, it picks up my touches but only displays "err". I am not sure what the problem is. The display count does not update and I get
    "recvRetCommandFinished err
    recvRetCommandFinished err
    setup done
    [1569:0,1,h0]
    h0PopCallback
    recvRetNumber err
    recvRetCommandFinished err"
    Any help would be appreciated. Thanks

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

      Remote debugging is not easy. Maybe you find the error by inserting some print statements in the area of the error?

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

      Thanks. That would help if it didn't happen the first time h0PopCallback is called. I don't think it is my code as I have not changed anything. I assume the library has changed or its a problem with updating the HMI. I figured I would try here and see if anyone has run into the issue as well

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

      I found the solution for my problem. My display is larger than yours and I had to use another source for power. In order for the arduino to be able to send messages back to the display they must have a common ground. If you have this problem use a breadboard and run your external power to that. run your power lines from your Nextion to the breadboard then a single line from the GND on your arduino to the ground on the BB. It works fine after then.

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

      :-)

  • @northshorepx
    @northshorepx 8 ปีที่แล้ว

    Thank you for another fantastic video Andreas.

  • @Threelittlepigs1
    @Threelittlepigs1 8 ปีที่แล้ว

    Hi Andreas. Great channel. Is it possible to create objects or elements at runtime? I would like the Arduino to read data from the sd card and then use that info to generate dynamic content on the screen. For example, getting number of objects with their coordinates and then display it on the screen.

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

      No, I do not think so. You have to compile and upload the code to the Nextion and boot it.

    • @Threelittlepigs1
      @Threelittlepigs1 8 ปีที่แล้ว

      Thanks

  • @mrchopsycity
    @mrchopsycity 8 ปีที่แล้ว

    Hi Andreas... Do you have a video where you show how I can to use arduino to upload the Nextion editor file to the HMI display? or the code for the arduino in order to use it as a USB serial writer... Thanks

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      No. I always used a serial adapter.

  • @Georgehanes-GJH105775
    @Georgehanes-GJH105775 7 ปีที่แล้ว

    This is really a game changer in displays for arduino. Thanks for sharing. Looks like I just need to buy one hahaha

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      If you use one of the links in the description to buy one, you can support the channel...

  • @alestbest
    @alestbest 8 ปีที่แล้ว

    Sänk ju... he, das war mal ENDLICH jemand welcher ein vernünftiges Arduino-Tutorial macht. Da muss ich fast eines meiner seltenen Abos abonnieren. Hoffe schwer, dass in einem der nächsten Tutorials erklärt wird wie Arduino-Jungfrauen mit Hardware-Buttons das Display steuert. Danke

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Bitte gern geschehen. Allerdings have ich noch nie von Arduino-Jungfrauen gehört.

    • @alestbest
      @alestbest 8 ปีที่แล้ว

      Das sind die welche nicht schon einen Hintergrund in solchen Dingen haben. Ich habe nun schon seit einigen Tagen so ein Display zu Hause. Was mich wirklich verwundert hat ist, dass es keine Dezimalzahlen gibt. Auch die Dokumentation der Displays sind ziemlich bescheiden. Man kann nur hoffen, dass sich eine andere Firma der Sache annimmt und es dann vorwärts geht.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Aha. Die Dezimalzahlen kann man aus Buchstaben zusammensetzen (String(n). Dann kannst du sie als Text ausgeben. Dasselbe geht mit float. Einach googeln.

    • @alestbest
      @alestbest 8 ปีที่แล้ว

      ja schon aber dafür benötige ich ein arduino. Wichtig wäre auch ein Array im Nextion um Bezeichnungen oder Werte direkt einzugeben und z.b. von PAGE zu PAGE zu springen.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Du kannst das Nextion selbst programmieren. Dazu gibt es eine Dokumentation. Für mich macht das allerdings keinen Sinn. Deshalb habe ich es noch nie probiert.

  • @MrJootje
    @MrJootje 7 ปีที่แล้ว

    be aware that the shown demo is for the 3.2 inch model. Other models come with different demo's.

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      You are right. This applies also to the files made by you. You always have to first chose the size.

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

    Allo Andreas , Thank You so much for all your awesome , informative and entertaining video . Can this display show a camera feed ? say for a rearview camera , not a back up type camera , i mean a mirror view , like what we see when we look at our side or rearview mirror in our cars ? Cheers & be well .

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

      This display is not made for video.

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

    hi, nice video, I was wondering if you could make a video with 2 displays and a mega, using the itea studio library or a combination of library that can handle 3 or 4 nextion display.
    Thank you very much.

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

      I think this is very special and would not be interesting for most viewers.

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

      @@AndreasSpiess Ok

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

    Can these be programmed directly from Arduino, programmatically etc ? No sd card, no desktop app ?

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

      I tried once to "upload" a file to the device. But it was very slow. So I returned to the "normal way". Maybe something changed in the meantime

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

      @@AndreasSpiess Yeah I was thinking it would be since slow serial data is the point of these. It might have a small buffer on the stm32.

  • @nikolaskurnia7404
    @nikolaskurnia7404 8 ปีที่แล้ว

    will this screen also work from external display input to be used as a normal screen?

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      It can only be controlled by Serial and by its own command set

  • @renesolis2604
    @renesolis2604 7 ปีที่แล้ว

    Can't wait future videos of this display

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

      I still plan to do one with the extended version..

  • @markharrington5826
    @markharrington5826 7 ปีที่แล้ว

    Hi
    I wonder if you could pin point me to the example that is provided with the nextion display which is pre loaded on supply I see from your heading that this should be obtainable from github but on looking for the HMI file which should be in the " Arduino\libraries\ITEADLIB_Arduino_Nextion-master\ " The 480-320 example that you load is not present Could I request that you upload this example for me to drop box with a link so that before loading a new example I have a back up of this file as you illustrate in your presentation
    I also noticed in tutorial #2 that the nextion editor for some reason not always when inserting a background into the display that this doesn’t auto resize @ time and throws an error concerning paint method Is this something you are aware of and if so is there a patch for this I have managed to overcome this by resizing the picture background to the correct size first before inserting the picture Why this should be I do not know
    Perhaps you might know the answer to this I am using the most current up to date version and have checked for updates each time I load the nextion editor
    Thanking you

    • @AndreasSpiess
      @AndreasSpiess  7 ปีที่แล้ว

      1. The files are at the bottom of www.itead.cc/wiki/Nextion_HMI_Solution.
      2. Pictures in the Nextion editor do not resize. You have to create them in the right dimension.

    • @markharrington5826
      @markharrington5826 7 ปีที่แล้ว

      Thank you very much for your download information greatly appreciated With reference to point 1 I created file that was correct size but had this problem what I will do is desktop record events and post a link later for your viewing to see what you think

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

    This is the solution for my metronome project. Thanks!

  • @zaphodelektra960
    @zaphodelektra960 8 ปีที่แล้ว

    Very useful indeed! Thanks Andreas.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +Zaphod Elektra You're welcome!

  • @Abc-sl1nf
    @Abc-sl1nf ปีที่แล้ว

    Hi,
    Do you still recommend this or have you found something better?

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

      I did not find something better. But I did not search hard ;-)

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

    which NEXTION model is recommended for home automation??

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

      I have no recommendation. You have to decide on the size and on the money you can spend.

  • @MrLewis36
    @MrLewis36 8 ปีที่แล้ว

    This video was both useful and interesting! Thank you for posting it.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว +2

      At least somebody who watches till the end. Average is only about 30% Thank you!

    • @MrLewis36
      @MrLewis36 8 ปีที่แล้ว

      Andreas Spiess I have a lot to learn and your teach method is easy to follow. Thank you!

  • @shorrtyyiphone
    @shorrtyyiphone 7 ปีที่แล้ว

    Danke für diese Präsentation. Sehr ausführlich und genau erklärt mit praktischem Beispiel. Schon Abonniert

  • @k1mgy
    @k1mgy 8 ปีที่แล้ว

    Pretty damn nifty. Too bad the display board is larger than the LCD glass. Would be interested in this on a production-level quantity scale. Are there equivalent display controllers that the configuration software can support? Just ordered a few to test, but worried that China to US shipping will be troublesome.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +k1mgy Not that I know of. This was a project founded on Indiegogo and I think, it is still very innovative.
      I never had problems with the shipping of small LCDs from China. The biggest I got was 7".

    • @k1mgy
      @k1mgy 8 ปีที่แล้ว

      Andreas, thanks for making know this display.
      4 days to ship to the US. Not bad through DHL. I ordered both the 3224 and 4024 models. Fabulous display.
      Unfortunately the editor is being flagged by heuristic virus checking (Norton). Submitted file to Norton for their testing.
      If board could be reduced in size (same
      dimensions as LCD) we can fit into a plastic bezel with retainers.
      Connector might be better as 2.54mm headers.
      Maybe itead can produce model with these mods. I'll ask.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      I had no problems so far with the editor. Would be interested in the results from Norton...

    • @k1mgy
      @k1mgy 8 ปีที่แล้ว

      +Andreas Spiess
      Here's reply from Norton:
      In relation to submission [3944231].
      Upon further analysis and investigation we have verified your submission and, as such, the detection(s) for the following file(s) will be removed from our products:
      Filename: nextion-setup-v034.exe
      MD5: 6B58423C1585C0D8D9E91FE06C4D7AF7
      SHA256: A886F69016035209F1A07FC4BD79A3FE9B40F4F27C113F7C0E33D8D818DAD00C
      Result: Whitelisting for above file is taking effect from now on.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +k1mgy Thanks. So, it was "false alarm"...

  • @cesarcifuentes7767
    @cesarcifuentes7767 8 ปีที่แล้ว

    hi andreas, I bought a screen nextion NX4832T035 in aliexpress link, I saw your videos on how to configure it and I wonder if you can share the image library you see in the videos, thank you very much for your great contribution.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      I have no library, just google. Or do I miss something?

    • @cesarcifuentes7767
      @cesarcifuentes7767 8 ปีที่แล้ว

      hello, if it is a bit difficult for me to find things on google, I do not speak very good English, I use google translator to write here, also in the search in Spanish (Chile) all that comes out are direct pages nextion, if so kind as to send a link I would greatly appreciate it, thanks again for your contribution.

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

    Your tutorials have gotten me up to speed on the Nextion display pretty quickly.
    I started on the Uno and followed your directions to modify NexConfig.h for no dbSerial port. Worked great, but I still wanted to see debug statements. So, I bought an Arduino Mega on Amazon and restored NexConfig.h to the original file.
    #define DEBUG_SERIAL_ENABLE
    #define dbSerial Serial
    #define nexSerial Serial2
    The example sketches work fine except that I see nothing in the serial monitor. I also ran some tutorial sketches by InternetlinkKnight that sends data to the Nextion display without using the library, and both serial ports on my Mega work just fine.
    I set the serial monitor to 9600, but I couldn't find anywhere in the library files where the serial port is initialized.
    Any ideas why the library doesn't work with dbSerial.Println() for debugging statements?
    Thanks,
    steve

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

      I made a video about the setting of these parameters. It is on the playlist.

  • @LudemannEngineering
    @LudemannEngineering 8 ปีที่แล้ว +2

    I'm just starting with my Nextions, and wondering why the text sent by the simulation doesn't change as you move the slider. It seems like the Arduino should receive the slider position over the serial port as part of the text. Is the simulator not accurately showing what a slider will send, or am I missing something? By the way, check out my recent videos to see some Arduino technology that will be applied applied to race cars.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      1. I did not work too much with the Nextion simulator. Make sure, you tick the "touch press or touch release event. Otherwise, the Nextion will not send anything.
      2. Subscribed.
      3. I applied Arduino also to a Formula 3000 car simulator (episodes #49 and #50) ;-)

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

      I figured it out. In the Nextion Editor, in the Event box under Touch Move, you have to tell it to send the value by typing "print h0.val" (for the first slider) without the quotes. Also for dual-state buttons, you type "print bt0.val" (for the first dual-state button) in the Event box under Touch Release to get the new state of the button, off or on. There are some semi- useful pages for Arduino users on how to use the Nextion without the libraries here: support.iteadstudio.com/support/discussions/topics/1000065323
      As a hardware engineer I find the Nextion libraries difficult to use as the documentation is written by and for professional object-oriented software engineers. It took me half a day to figure out how to change the baud rate in Arduino code:
      Serial2.Print("bauds=115200");
      Serial2.write(0xff);
      Serial2.write(0xff);
      Serial2.write(0xff);
      Their documentation is like "Just change the system variable. Here's a list of system variables you can change."

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      That is the reason for my videos. I had the same frustration. BTW: There is also a video about the Serials and Nextion (#63)

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

    hi andres I'm looking to use nextion touch screen with arduino to show 12volt current in my solar system and batteries .so I need 2560 mega .I have uno now but that no good.anything else I need ?steve .nice videos

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

      So what arduink will work Andrea .how’s things over there

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

      Maybe you watch all my Nextion videos?

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

    I look forward to your future videos on this. I am currently trying to work on a project with the Nextion 2.4 inch and am having some problems with the Arduino coding part. I am wanting it to control relays for a project.

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

      +Kyle Leland Next video about Nextion is timed for Thursday

  • @billfield8300
    @billfield8300 8 ปีที่แล้ว

    Great Tutorial. (as always) Keep up the good work.

  • @XerotoLabs
    @XerotoLabs 8 ปีที่แล้ว

    great video . what a great demo and explanation . I had seen these before but never working with explanation . I assumed them just to be slow serial screen with slow SD card support and a bit of page memory .
    Looks like just the sort of think that would solve a few of my projects .

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +XerotoLabs When I saw it first, I also did not understand the concept fully. I think, at the beginning, they also had many problems with their software. Now, It seams at least usable. The editor still has version 0.34!

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

    This seems very cool. Do these displays have a controllable backlighting option? If not, do you happen to know of any displays that do that for the Arduino?

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

      You can control the backlight with a value in percent (by command)

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

      Awesome, thanks, I'll definitely check this out!

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

    Wow. I predict this - both the Nextion display and your tutorial bringing attention to it - is going to trigger a large number of creative projects in the maker community. Thanks!

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

      This video is 4 years old mate.

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

      @@knigfotlets9870 Hm. Where's that "delete post" button? I had no idea these existed.

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

      @BrightBlueJim: No problem! I think the fact that this video still gets a lot of views shows that you are right.

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

    I have a suggestion for a video or at least a code project, and it is a little self serving.. :-)
    I am trying to use the Nextion with the ESP32, I want to read temp from a sensor in one core and use the other core to update/control the Nextion.
    I am having trouble trying to split up the code between the cores and files as I am unsure what the Nextion needs in file VS what goes in to the main loops for it.
    Any help you can provide would be great, and to be honest you are my reason for attempting this. :-)
    Thanks,
    John

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

      Maybe you watch my video about ESP32 on Steroids.

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

      Which number is that, I didn't see any that said "ESP32 on Steroids". I did watch the one about cores and tasks.

  • @simondid
    @simondid 8 ปีที่แล้ว

    hey so i was wundring if you can make a video comparing the diffrent options for touch screens for arduino and raspberry pi with pro and cons gpio use processing power etc

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +simondid I am not very familiar with the raspby, but the questions to be answered should be similar. As you write, there are basically 3 deciding factors: Number if GPIO pins (parallel many pins, SPI 4 pins , I2C and Serial 2 pins), the availability of a library for your evnironment, and the effort to create the code (depends on your needs and on the library choosen). So, the differencies seem to be quite obvious to me and there is not a lot I could add to that. Processing power is only interesting for specific applications and there are some videos around. This topic cannot be presented in a general way.

    • @simondid
      @simondid 8 ปีที่แล้ว

      +Andreas Spiess hmm okay i been researching a bit and found that some screens have like chips that dos the rendering and some don't it's generaly alle a bit confusing if you shut make a project that was protabel with a screen on / off state and interactive interface with tocuh what kinda screen wut you go fore

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +simondid I cannot speak for Raspby. For smaller MCUs I would strongly consider the Nextion if your interface is more than just two or three buttons and a few numbers to be shown and if it has to look good. Otherwise you can use a normal touch LCD with SPI interface and the library which supports it. I do not recommend parallel interface because it uses most of your GPIOs and it is not easy to be connected. This is not true for the Raspby because there you get special parallel LCDs which are fully supported by the Linux software.
      On the small MCUs I used both methods, both work. On the raspby I use a parallel LCD connected directly to the GPIO pins

  • @purwanu
    @purwanu 8 ปีที่แล้ว

    I always and always like the way you explain.....keep it up!!

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

    thankyou .this will be great for running servos and motors and lights on my nephews power wheels cart....:)

  • @laurencemunro
    @laurencemunro 8 ปีที่แล้ว

    I can't get this library to work with my mega2560, even unstable gives me this error:
    C:\Users\lmunro\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexUpload.h:19:17: fatal error: SPI.h: No such file or directory - This is highly frustrating and the documentation on this display is very thin....
    PS After adding SPI.h, it requires, SD.h, SdFat.h, and I regain rpm dependency hell images from pre-yum days...

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      There are different libraries available. Did you use the one from my github?

    • @laurencemunro
      @laurencemunro 8 ปีที่แล้ว

      I tried the official one with the Mega to get the above errors. I then tried Ricardo Mena's library on an Uno successful :D So after fiddling for an hour or so, I have managed find my way around, much credit to your videos - thank you.
      However, how does one read the value a slider in the Arduino? I get the progress bar, but the slider should be able to write out the value over serial, but how?

    • @laurencemunro
      @laurencemunro 8 ปีที่แล้ว

      I got it...
      int valueh0 = myNextion.getComponentValue("h0");
      I am getting into this display now!!

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      Great. It took me also a while. That is why I made these videos...

    • @laurencemunro
      @laurencemunro 8 ปีที่แล้ว

      So now I managed to build a very nice rev counter, thanks to a photo. Are you putting something like this on your brother's race car? You should! :D Many thanks once again, this display will help me a lot in future.
      PS I would need to get it working with my Mega at some point... :/

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

    I could not locate the file you have on the display when you start the video, is it available?

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

      Maybe on the page of itead, but I am not sure.

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

    Hello sir ,
    Thanks for connecting here.
    I am working as a freelancing project. For that i am working on Nextion display to control external light through nextion GUI.
    Here i am mentioning my problem quries regarding my project.
    Note- 1. I am using Nextion enhanced series, Arduino Uno board.
    2. Connection schematic i am attaching here.
    1. How to turn On/Off external light through timer countdown function. i.e i wanted to turn ON light for 1 hour & after 1 hour light should be OFF, so for that how can i design my GUI button and code for system. The timer coutdown should be HH-MM-SS.
    I did one demo to turn on/off led through timer countdown but i am getting some issues regarding timer. Means i am not able to set hours-minutes-secound format in GUI. For that i am attaching my GUI Picture.
    Could you guide me to make proper timer countodown function to turn on/off light?
    Can you please make one video on timer countdown function to turn on/off light (external)?
    2. How to interface PIR motion sensor with nextion display?

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

      Unfortunately, I have not time for consulting. I think, most of your problems have to be solved by a microcontroller, not the Nextion display

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

      @@AndreasSpiess can you please tell me how to save data in Nextion eeprom

  • @RFC3514
    @RFC3514 8 ปีที่แล้ว

    So the card reader on the Nextion display is used only to transfer the .TFT file? Seems like a bit of a waste; it would be nice if it could also work as a card reader (accessible by the microcontroller). I wonder why they used a card reader instead of a USB port.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +RFC3514 The serial connection to the microcontroller is only 9600. This is not enough for SD content transmission.
      There is a possibility to transfer the content via Serial to the device. I did not use this feature in this episode, because the way with the SD card was ok for me. Maybe I will use it in the next episode about Nextion.

    • @RFC3514
      @RFC3514 8 ปีที่แล้ว

      Andreas Spiess Well, it would be slow, but it could still be useful to have access to the card.
      Is there at least some way to have multiple .TFT files on the card, and use a command from the microcontroller to select which file should be loaded?
      It seems some potential is wasted, if the only purpose of the card slot is to load a single file.

    • @AndreasSpiess
      @AndreasSpiess  8 ปีที่แล้ว

      +RFC3514 As said in the video. Only one file is allowed. You can remove the SD card. It is only for loading.