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

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025
  • НаукаНаука

Комментарии • 584

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

  • @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 8 лет назад

      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 8 лет назад

      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.

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

  • @photon2724
    @photon2724 3 года назад +2

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

  • @saintpine
    @saintpine 7 лет назад +2

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

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

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

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

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

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

  • @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"!

  • @curtisbarclay2292
    @curtisbarclay2292 7 лет назад

    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  7 лет назад

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

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

  • @reinharddamon6672
    @reinharddamon6672 6 лет назад

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

  • @bigendertroll
    @bigendertroll 5 лет назад +1

    Could you show us how to build a hdmi monitor with that sreen

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

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

  • @mindracing
    @mindracing 4 года назад

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

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

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

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

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

  • @ikramantaki
    @ikramantaki 3 года назад

    which NEXTION model is recommended for home automation??

    • @AndreasSpiess
      @AndreasSpiess  3 года назад

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

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

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

  • @nicolaibotnaru3605
    @nicolaibotnaru3605 8 лет назад

    On display its possible to show 4 or 5 analog signal on real time like an oscilloscope?

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

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

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

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

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

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

  • @mikl4U
    @mikl4U 8 лет назад

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

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

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

  • @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);
      }

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

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

  • @rainerkufferath4400
    @rainerkufferath4400 8 лет назад

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

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

  • @sdplusm3
    @sdplusm3 7 лет назад

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

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

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

  • @curtisbarclay2292
    @curtisbarclay2292 7 лет назад +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  7 лет назад +1

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

  • @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... :/

  • @coldrider3517
    @coldrider3517 4 года назад

    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 .

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

  • @TrasteIAm
    @TrasteIAm 8 лет назад

    3.5" version seems to be available again, on the link you provided.

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад

      Thanks for the hint. I took the comment out.

  • @alenninan5524
    @alenninan5524 4 года назад

    Hi is there a LCD screen with 0.4 *0.4 mtr area ?

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      I do not know. Maybe you google?

    • @rachelchow4512
      @rachelchow4512 3 года назад

      Will you look at the DWIN display? Kindly refer to my banner for detailed info.

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

  • @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 :-)

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

  • @Harrzack
    @Harrzack 6 лет назад

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

  • @daveyhi3154
    @daveyhi3154 7 лет назад

    Great tutorial! I found one thing very confusing that took a while to straighten out. You mention examples like the one you used from one library (ILEAD) but then immediately show the download page for a different library. You never show the page where to download the ILEAD library. If you miss that one phrase where you say they're different, it looks like you should go to the page that you showed to download the library and examples from there. That's a VERY different library and it drove me crazy trying to reconcile it.
    You can also control it via serial commands without any libraries similar to how you were describing. So in a brief few seconds you talk about 3 very similarly sounding ways to control it but that are very different in their implementation.

    • @AndreasSpiess
      @AndreasSpiess  7 лет назад

      Thanks for the feedback. It is sometimes not easy to design a video with the end-user in mind ;-)

    • @daveyhi3154
      @daveyhi3154 7 лет назад

      You did a great job! I mainly mention it so that others would not get confused like I did. The other videos were similar- they all used different techniques and don't make it clear. Once I realized that there are at least 3 different ways to program it, it made a lot more sense. :-)

  • @kevatut23
    @kevatut23 8 лет назад +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

  • @RobertoColi
    @RobertoColi 7 лет назад

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

  • @talibankc1111
    @talibankc1111 8 лет назад

    can you tell me, how to connect nextion 7 with arduino due, because due is 3,3 V and nextion need 5 V? tnx

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад +1

      Find a tutorial about "level shifting" between 5volt and 3.3volt. There are many possibilities. Do not connect it directly to the Due inputs because it might destroy your due board.

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

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

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

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

  • @itsadamoc
    @itsadamoc 8 лет назад +2

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

  • @PhG1961
    @PhG1961 2 месяца назад

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

    • @AndreasSpiess
      @AndreasSpiess  2 месяца назад +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 2 месяца назад

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

    • @AndreasSpiess
      @AndreasSpiess  2 месяца назад

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

    • @PhG1961
      @PhG1961 2 месяца назад

      @@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  2 месяца назад +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...

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

  • @grahamharris1985
    @grahamharris1985 3 года назад

    Is there an android app that can do something similar over wifi?

  • @punjabilog
    @punjabilog 4 года назад

    Hi Sir I want to save button value from nextion display to arduino variable can you please tell me is it possible.

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      You have to google. I do not know

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

  • @LILTRadio
    @LILTRadio 7 лет назад +1

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

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

  • @cloviswollinger2452
    @cloviswollinger2452 8 лет назад

    Very interesting, it will have to implement communication protocols, for example a modbus? Being the HMI máster?

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад

      +Clóvis Wollinger I do not understand your question. Can you explain a little more?

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

  • @stevemcgowan3017
    @stevemcgowan3017 4 года назад

    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 4 года назад

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

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      Maybe you watch all my Nextion videos?

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

  • @liofoxley
    @liofoxley 4 года назад

    Hi Andreas, The Nextion series was great. How about another series featuring something like STM32F769NI MCU with its display? That would involve the new stm32cubeide and stmcubemx. Could be cheaper than Nextion.

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      On this channel I will stick to the Arduino IDE. So somebody else has to do this series.

  • @AlanSloan
    @AlanSloan 7 лет назад

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

  • @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 лет назад

      :-)

  • @gbegerow
    @gbegerow 8 лет назад

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

  • @LUCKY007725
    @LUCKY007725 8 лет назад +1

    where to find this demo project

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад +2

      github.com/SensorsIot/Nextion-Tutorial

    • @LUCKY007725
      @LUCKY007725 8 лет назад

      Thank you so much for your valuable cooperation
      i got many things clear from these demo, especially "Fish Tank"
      now, i can made that controller dependent on DHT22
      once again thanks

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

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

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

  • @b9robot01
    @b9robot01 8 лет назад

    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  8 лет назад

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

    • @b9robot01
      @b9robot01 8 лет назад

      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  8 лет назад

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

    • @b9robot01
      @b9robot01 8 лет назад

      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 8 лет назад

      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);
      }

  • @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 ;-)

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

  • @liofoxley
    @liofoxley 4 года назад

    None of the examples work with the latest version (1.61.2) of the Editor.

    • @AndreasSpiess
      @AndreasSpiess  4 года назад

      Well possible if you look at the date of the video...

    • @liofoxley
      @liofoxley 4 года назад

      @@AndreasSpiess Thanks for the response. I have since found that you can use the long term support (LTS) version of the Editor to open the examples and it will convert the HMI files to a later format on save. This updated copy can then be opened with the latest (as of now 1.61.2) Editor. It just means you have to have both editors installed, and you might have to update file permissions depending on your Editor installation details. I hope that's useful.

  • @learnbox3783
    @learnbox3783 4 года назад

    Please let me know can I increase 4MB flash memory of Nextion 3.2" to 16MB or higher?
    Nextion 3.2" has Winbond 25Q32 it is 4MB flash if changed it from big size like Winbond 25Q256 it has 32MB Flash memory?

    • @AndreasSpiess
      @AndreasSpiess  4 года назад +1

      I do not think that the software on the display would support that change.

    • @learnbox3783
      @learnbox3783 4 года назад

      @@AndreasSpiess
      I will try it if it would run successful so good otherwise I will put old one.

    • @learnbox3783
      @learnbox3783 4 года назад

      @@AndreasSpiess
      I made a program it contains 11 pages but nextion 3.2 has rMB flash.
      Is there any method to reduce size of tft file

  • @nasirraza3000
    @nasirraza3000 7 лет назад +1

    sir can we convert computer in mirror i mean normal mirror and how make touch mirror ???

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

  • @williamthomas4912
    @williamthomas4912 4 года назад

    Can I make a laser distance meter with this ?

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

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

  • @Suukerjunk
    @Suukerjunk 8 лет назад

    has anyone had the same error as me with the editor when opening the nextion demo .hmi file ? i got this error :System.ArgumentOutOfRangeException , any info would be appreciated

  • @omersidiqui
    @omersidiqui 7 лет назад

    Very Nice Explanation !!! I want to know how can I use this as an HMI so that I can input parameters like Temperature etc in this HMI and control the burner or any hardware just as we do with the Siemens HMI !

    • @AndreasSpiess
      @AndreasSpiess  7 лет назад

      This device needs an additional microprocessor for the logic and control other devices. It is more a display than a controller

  • @jct4647
    @jct4647 8 лет назад +6

    Excellent & informative, thank you.

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад +1

      +Johan van den berg You are welcome!

  • @burningions
    @burningions 6 лет назад

    Can we replace the flash chip? the in built is 4MB , I had a 16MB chip same brand and spec . I think the display controller data is saved there , so if we can copy the raw Hex data and copy the same to the new chip, it should work. what say.
    ----------- for got to mention, I am a great fan of your work.------------- Thanks and appreciated .
    greetings from India.

  • @LUCKY007725
    @LUCKY007725 8 лет назад

    Sir,
    First of all thanks for sharing such a valuable guideline regarding this good touch screen
    I was searching this kind of LCD from many many months
    I want to use this LCD with one of my Temperature and Humidity controller with DHT22 sensor.
    Could you please guide me, how to communicate all these things with this LCD.
    thanks in advance

    • @AndreasSpiess
      @AndreasSpiess  8 лет назад

      You find many videos on the DHT222. Just search, please

  • @anumsheraz
    @anumsheraz 7 лет назад

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