#170

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 214

  • @deangreenhough3479
    @deangreenhough3479 7 років тому

    Happy Sunday Morning Andreas 😂🤣😂
    You won’t believe it, I watch all your previous videos on this yesterday!
    Thinking hmmmm time for an advanced display in my next project. Cool Mr Spiess.
    As always thank you kind sir🙏

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      Good to know that the stuff I present is used somewhere!

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

    Wow, I'm going have to watch this video several times to absorb it all. Very good presentation!

  • @kenleisten8036
    @kenleisten8036 7 років тому +3

    Andreas, thank you so much for your well done tutorials and the time you invest in sharing your knowledge with us. You are awesome!

    • @AndreasSpiess
      @AndreasSpiess  7 років тому +1

      You are welcome. I like to do these videos...

  • @klassichd10
    @klassichd10 7 років тому +3

    Thanks for showing an additional example using the HW-serial2 @ ESP32.
    Nextion displays have many fans and you are helping them a lot.
    But for me, Nextion Displays are too expensive. For my home automation it is cheaper, simpler and more powerful to use a cheap (or retired) notepad / tablet together with the ioBroker Framework.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I think, using old tablets is a good thing. But I did not see IOS or Android support of ioBroker

    • @klassichd10
      @klassichd10 7 років тому +1

      The ioBroker itself runs on my Orange Pi Plus 2e (Raspi 3, Rock64, Nuc, etc. also possible). The tablets are used for visualization (control also possible). And this can be done using a browser or the Android ioBroker.vis app as clients. Vis is the Name of the visualization Adapter of ioBroker, running on the ioBroker server.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      Thanks.

  • @Chriva
    @Chriva 7 років тому

    I've just recently started with ESP32 too but opted for a barebone experience with gcc and their SDK in Linux. Granted I use Eclipse as an editor but other than that I have to do everything by hand. Even tho I don't use Arduino I still learn a lot about these devices by watching your videos. Thank you :)

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I stick to the Arduino IDE because most of my viewers use it. Eclipse is not easy to start with...

  • @JungleJake1664
    @JungleJake1664 7 років тому

    Well Done Andreas and as usual top quality stuff, excellent.

  • @Giblet535
    @Giblet535 7 років тому

    The Nextion Editor is no Qt Designer. Mr. Eng and the other Trolls knew what they were doing. The Editor is, I believe, the weakest aspect of an otherwise excellent product. Still, this is so much easier than designing GUIs over SPI bus. Thank you, sir!

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      You are welcome! For me, the missing docu was the biggest obstacle. Many things seem to be possible, but somehow hidden...

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

    Superb tutorial!!!
    Thank you for putting all the thought, planning, and effort into your video.
    Your excellent organization turned a complicated subject into a simple one that was easy to follow.
    Great balance of details: enough to be used as a resource without too much to bog down.
    Maybe you should make a video on "Teaching using Videos - My Swiss Method"?
    Looking forward to watching all your other videos...

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

      Welcome to the channel! Unfortunately it is much harder to create short videos than long ones ;-)

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

    Thanks Andreas - trying to find where to config the GPIO's was driving me mad! I put them in a timer and that was causing some issues. Keep up the good work.

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

    a wonderful video and this product is a lot cheaper than HMIs which are $500+up one feature that is almost a project must would be a way to mount the HMI on an enclosure surface such as: Acrylic Case for Nextion Enhanced 4.3" 5" 7" Display HMI TFT LCD Touch Screen "Bezel" price about $7 to cover the edges of the touch-screen 😎 thank you good job

  • @joeybushagour2612
    @joeybushagour2612 7 років тому +1

    Great as always!

  • @devorrahtester5439
    @devorrahtester5439 7 років тому +1

    you are too much , Andreas. Thank you:) This was awesome.

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

    I just picked up one of these displays today. I'm planning on using it with an ESP32 and just kinda hoped it would work. I'll be referencing your video to get the display working with the ESP32, but ultimately, my goal will be to use it in conjunction with with Squareline studio/ LVGL with a single rotary encoder as an HID for use as a CNC pendant. I'm up for the challenge. Hopefully these are the bits I need to make this project a success.

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

      Maybe you find a newer library. This is a quite old video.

  • @CraigHollabaugh
    @CraigHollabaugh 7 років тому

    Thanks. I agree about the nextion support. I found the support frustrating. Displays are nice, highly functional, easy to program and interface. No proportional fonts though, only monospaced.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I did not discover the thing with the proportional fonts. Thanks for the tip.

    • @CraigHollabaugh
      @CraigHollabaugh 7 років тому

      I first noticed this with fractional numbers. The decimal point bits are left justified, making it tight to the one's digit with a lot of space and loose to the 1/10 digit. Which, at this point in time, is ugly. Proportional fonts have been around in computers since the 70s, why Nextion didn't implement these is based on 'limited space' in the microprocessor. U8Glib handles all this gracefully, but they wrote their own font handlers. They should re-render their monospaced fonts center justified at least, but they probably won't do that either. Font generators for the nextion exist but tweaking each char is a lot of clicking. I spent a fair amount of time on this, if you check the forum you'll see my proportional font hack and can download it. It involves punching each letter directly on the display bitmap and calculates x widths from ttf fonts. Anyway, thanks again for the videos, they're great.

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

    Let me say first that you are one of my favorite youtubers and I enjoy your videos very much. I ordered one of the nextion displays three months ago. I ordered the 4.3 inch. It was not cheap. Since two months ago, nextion has not replied to my many emails. So I think my money is gone. I am not blaming you but this company has horrible customer service. You should take down this video.

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

      Sorry about that. I order at Aliexpress or Bangood (with insurance) where I can start ad dispute if I do not get my goods.

  • @michaelzweers1807
    @michaelzweers1807 7 років тому +6

    I just buy old android phones from a site like craigslist. Replace the battery with a dc-dc converter if needed. Some Velcro or strong magnets in the battery compartment for easy installation.
    The you can just make your own Qt QML apps. if you need a large screen an old tablet (slow) is good enough. (prob. even better for the environment).

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      For sure this is the better solution for the environment!

    • @CarltonDodd
      @CarltonDodd 7 років тому

      I went the same direction. For wall control panels, I bought three Amazon 7" Fire tablets on sale for ~$30 each. This gives me wifi, a touch screen, a speaker, a microphone, and a camera, CHEAP! I'm going to use ImperiHome, and a full-screen browser. I still have all the other features, in case I ever have need for them.

    • @Giblet535
      @Giblet535 7 років тому +1

      It's also inexpensive to get older Android tablets. Many of these, like the Nexus 7, are easily rooted and feature USB OTG. Display, high performance computing, and direct management of multi-tebibyte disk drives. But where's the fun in that??? :o)

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

      Could some share any links to how they change the battery place and how you use it with arduino? Thanks

  • @PhG1961
    @PhG1961 7 років тому

    Amazing and as usual very good. Excellent video on a wonderfull product. Btw, your PayPal message is quite original. Guess what, if you come to Belgium I'll buy you a beer. We have some of the best beers in the world. But of course you already knew that.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I do not know how Paypal looks from your side... Thanks for your offer!

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

    Hi Andreas thank you for taking the time to make these tutorials, Even a 70 year old nextion noob like me can understand them. I am so new to nextion I am still waiting for my 3.5" nextion enhanced to arrive so for now I use the editor and check the results with the debugger . I was told the official Itead library was not so good but in your tutorials you said you had changed it a little . Could you please give me a link to where I can download your arduino nextion library please and please keep making the great tutorials

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

      This is an old video and for sure, many things changed since then (and my 63-year-old memory is also no more the best). All my links are in the description. If not, there was a reason for not sharing them;-)

  • @jumadhaheri
    @jumadhaheri 7 років тому

    Thanks for the video. Really learning source and fun ideas

  • @avejst
    @avejst 7 років тому

    Interesting, thanks for sharing your experiencs 👍😀

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

    nice, thank you for your Videos. Regards from Germany

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

    Thank you for providing a Nextion Library that works with the ESP32.
    If I do install your library instead of the official ITEAD library, would it still work for the Arduino Mega or Uno?

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

      I do not remember. So you have to try...

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

      will you consider our touch screen display? then contact me

  • @johanholmberg1561
    @johanholmberg1561 7 років тому

    Interesting video as always. How is the "viewing angle" on the enhanced model, is it the same as the standard model? I like the Nextion displays, but i think that the viewing angle leaves much to desire.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I do not own displays of the same size in normal and enhanced. But I think, they use the same panels.

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

    Andreas, your videos are so helpful! Thank you for making them so easy to understand and follow. I spent too much time trying to connect serial2 on the esp32 with the nextion library without success.
    Could you briefly comment on what changes you made to the official nextion library? I changed the initialization function to accept a value which dictates what baud rate to connect with. This way you can specify from the sketch instead of modifying the library. Ideally, I'd like to incorporate your changes with mine.
    Do you know of a way that can speed up communication?, even more than increasing the baud rate? 115200 is quick for weather stations or home automation, but not enough for real-time display since serial communication code is blocking. I realize the second core could be used on the esp32, but what about Arduinos? Is there a way to use SPI communication instead? That way we can get 4Mbps which is much faster.
    Regards,
    Simon

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

      I made a video concerning using other serials with the Nextion. Maybe you find the needed info there. Concerning speed-up I do not know.

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

      Espero que la respuesta a sus preguntas no sea tarde. Intenté sin éxito seguir este video, pero tampoco funcionó. Finalmente, después de una tarde de dar vueltas y vueltas aquí está la solución:
      copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion, esto lo sacará de la biblioteca ESPNexUpload.cpp, QUÉ FUE, se debe comentar (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      Copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion
      # si se define ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Predeterminado 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Predeterminado 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial (NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin (a) nexSerial.begin (a)
      #endif

      #elif definido ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Predeterminado 16
      #define NEXT_TX 17 // Pin de Nextion TX | Predeterminado 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin (a) nexSerial.begin (a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      Creo que debería guardar una copia del archivo original para que pueda funcionar correctamente con una tabla o mega arduino.
      Espero ser de ayuda

  • @aliaghil1
    @aliaghil1 7 років тому

    Thanks to the Guy with the Swiss accent 👍😉

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      You are welcome!

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

      I hope the answer to your questions is not late. I tried unsuccessfully to follow this video but how it did not work either. Finally after an afternoon of going around and around here is the solution:
      copy the NEXT in NexUpload.cpp in the library of Nextion, this take it from the library ESPNexUpload.cpp, WHAT WAS, should be commented (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      copy the NEXT in NexUpload.cpp in the library of Nextion
      #if defined ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Default 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Default 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial(NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin(a) nexSerial.begin(a)
      #endif

      #elif defined ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Default 16
      #define NEXT_TX 17 // Nextion TX pin | Default 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin(a) nexSerial.begin(a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      I would believe that you should keep a copy of the original file so that it can work properly with a one or mega arduino board.
      I hope to be helpful , Mi ingles no es muy bueno.

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

    I have that EasyNextion library that works great!

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

    Excellent video as usual . i do have one query can i connect the Tx,Rx of Nextion regular ( 2.8) version display with the Rx,Tx of nodemcu directly without using a level shifter .i am planning to provide an external 5v supply to nextion.

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

      The pins of the Nextions are 3.3V if I remember right, even if you connect the board to 5V

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

      You mean to say that for the power in it requires 5 V , but the serial communication happens at 3.3V, i have the specs here; www.itead.cc/wiki/NX3224T028, this does say that the optimum voltage is around 3V. Also are you planning to have a video made of nodemcu connected to nextion . The display integrates easily with the arduino uno board , but am having a tough time getting it to communicate with nodemcu.

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

      Wishing you Merry Christmas and awaiting lot more informative video's from you

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

      Merry Christmas to you, too!

  • @ranieldenicen.marpuri6544
    @ranieldenicen.marpuri6544 5 років тому

    this video is an old one. but i still understood alot of things from this. may i ask, is the ESP32 board compatible with the nextion 7" TFT display ? cant seem to find alot of youtubers showcasing this compatibility yet.

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

      It should be compatible. The Nextion only requires a Serial connection.

  • @madrian_hello
    @madrian_hello 7 років тому +11

    If sunday then swissday!!! 👍😀

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      :-))

    • @1st_ProCactus
      @1st_ProCactus 7 років тому

      aha, I guessed that was going on. I saw some Swedish flags around where I live in Australia today.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I did not know they have Swedish people in Austria ;-)

    • @1st_ProCactus
      @1st_ProCactus 7 років тому +1

      Who Austria ? :P
      AUSTRALIA

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      Who Swedish. I am Swiss! ;-)

  • @awesometom8598
    @awesometom8598 7 років тому

    I have a couple of the displays at home but have yet to play with them. Love the MQTT cross over.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I thought it was a good way to show the functionality of the display.

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

    Brilliant !

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

    Another great video! Is there any reason I couldn't connect whatever I wanted to the I/O pins meant for the expansion board?

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

      I do not understand your question :-(

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

      @@AndreasSpiess Sorry, I'll try again. If I don't buy the Nextion expansion board with the switches, does anything prevent me from connecting something I build in its place?

    • @AndreasSpiess
      @AndreasSpiess  3 роки тому +1

      I do not think so. If you provide the same voltage levels to the connector.

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

    Good,
    I have a weird situation, I have the software running for Arduino with my nextion, but if I connect a Wemos / Lolin, the wemos is not able to write or read anything from the Nextion. could you help me, why can it be?

  • @nicolach4762
    @nicolach4762 7 років тому

    Thank you Andreas

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

    Hi Andreas,
    I can't get the time to display.
    Here is what I am seeing on the serial monitor.
    I'm using an ESP32 and a 2.4" Nextion display.
    [1073492688:0,1,b0]
    b0PopCallback
    ptr = 1073492688
    recvRetNumber :536873131
    recvRetNumber :0
    recvRetNumber :0
    recvRetNumber :134273857
    recvRetNumber :134273857
    recvRetNumber :553648128
    recvRetNumber :2164260864
    Y131/00/00 ⸮7:⸮7:⸮8 0
    recvRetCommandFinished err
    0
    Thanks,
    Keith

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

      I cannot do a remote analysis. Maybe you start with a simple example and extend it till it works.

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

    Where in this setup is the ESP8266? I assume it is to another serial port just not shown in the camera view? I have an UNO that I am looking to do a similar project with, but it appears to use the Nextion and the ESP8266 at the same time will require two hardware serial ports, therefore a mega.

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

      Never mind....I see you are using the ESP8266 in and of itself and flashing your sketch to it.

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

      I made a video about the different boards and how to deal with "Serial"

  • @dutchmetalmaniac
    @dutchmetalmaniac 7 років тому

    great stuff. thanks

  • @imextradeco.6689
    @imextradeco.6689 4 роки тому +1

    If I connect RX of Nextion TFT to TX (GPIO-1) of ESP32, and also connect TX to RX (GPIO-3) of ESP32, serial communication does not work. It works with UNO3. The ESP32 WiFi chip release version is v1.0.1. Does anyone know what is causing it? If there is an example sketch, could anyone please send a link?

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

      Search for ow to initialize Serial on the ESP32. You can use all pins, but have to tell the sketch which one you want.

    • @imextradeco.6689
      @imextradeco.6689 4 роки тому

      @@AndreasSpiess I am grateful to you for the advice. I will do my best. There are not many engineers or hobbyists here in Japan who provide information about ESP32 or Nextion TFT in Japanese. UA-cam is a good teacher for me. What I want to do is simple, but I'm confused by the fact that many people have different information.

  • @GRBtutorials
    @GRBtutorials 7 років тому

    Nextions are easy to use but they're also very expensive, 10-20 € more, which is already a lot for low-cost projects like mine.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      You are right. But they seem to have quite a lot of fans...

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

    My IDE reports nearly a dozen Invalid libraries after I cloned your Git to my libraries directory.
    Edit: ok, it was the Nextion-Enhanced folder causing the problem. I copied all it's files to the similar named folder in your examples directory and deleted the duplicate. I'll blame it on Git for not dropping the files in my folder correctly. :)

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

      Maybe my structure is not right. I do not remember.

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

    Do both models NX3224K028 and NX3224T028 have a 3.3V logic level or 5v? Thanks, cheers

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

      According the datasheet the first uses 3.3V logic levels. I did not check the second.

  • @TMS5100
    @TMS5100 7 років тому

    esp32 is still the wild west. missing library support is frustrating and keeps driving me back to other architectures. maybe in a few years things will improve.

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

    Andreas,
    I need your help. I tested this solution using a Nextion NX3224T024_011 display with ESPDUINO (which uses ESP32), but without success.
    The following error message appears on the monitor of the Arduino IDE: recvRetCommandFinished err.
    Is this related to the fact that it is a different display? Or is it due to the fact that you are using ESPDUINO based on ESP32 instead of directly using ESP32?
    Do you have any idea how I can solve this? I have tested many libraries and researched many other solutions, but all have failed.

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

      Unfortunately I cannot do remote debugging :-( Did you watch all my Nextion videos, especially the one about Serial connection?

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

      @@AndreasSpiess I saw the #152 and #63 videos. I did as you said but the message "recvRetCommandFinished err " still appears. Could you send me the libraries version of HardwareSerial.h and cpp, an SoftwareSerial.h and cpp that you used in these examples?

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

    Hi Andreas, I don't have an enhanced Nextion but a modest basic T 3.2 and I couldn't experience this tutorial.
    For days I'm fighting with ESP32 and my Nextion but nothing to do. I tried to copy a few lines of code from your examples but nothing. How can I do that? I watched other videos of yours too but I couldn't do anything. The original Itead sample files on ESP32 don't work.
    Thanks
    Richard

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

      Unfortunately, I cannot do remote debugging. Maybe you find another project with the same devices. Also maybe you start with the simplest possible sketch.

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

      @@AndreasSpiess I tried a simple one like in your video number 59, CompText.ino and same GUI but with ESP32 it doesn't work. For this example with ESP32 I have not modified the file NexConfig.h as for Arduino because it should not be done and I left it original, but it does not work yet.
      How can I do that?
      Thank you
      chip

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

    Hello. I am using Arduino and trying to get HX711 scale readings into a Nextion display. It is so hard to find ANY help that I really feel like giving up on all of this stuff. Nextion has ZERO support. ALL the examples have ZERO comments in them. I don't have ANY friends that are into this and I am so tired of TRYING to find answers. Where the hell do I go??? : ( Also, Why does Nextion not support floats? Kind of sucks....

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

      Maybe you divide your problem into several parts and solve one after the other. Then you also will find help, I am sure.

  • @madlan
    @madlan 7 років тому

    Do you have any notes on the changes made to the library for ESP32 compatibility?

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      No, I did not take notes. But it was mainly around printing. And I added the new example

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

    recently I started my project according to this video, but it didn´t work because the source of ESP32 core was updated, the problem was basically due to some double called in different folders, Temp /Arduino..., so, this video works for HardwareSerial.cpp and .h that Andreas Spiess shows in the video.

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

      Hey, Joshua! Did you find how make it work? Im starting a project with Nextion HMI and ESP32. Hope you see this

  • @tenminutetokyo2643
    @tenminutetokyo2643 7 років тому

    Thanks dood!

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

    Thanks.. I'll do that. Thx

  • @isidoromaich7226
    @isidoromaich7226 7 років тому +1

    No estoy seguro que en estos días la tecnología impresione a la gente, por ejemplo todos los que vienen a mi casa se quedan muy asombrados con la barbacoa y piscina que hice al fondo de la casa y no le dan mayor importancia a mi datacenter o automatismos..

    • @AndreasSpiess
      @AndreasSpiess  7 років тому +1

      Good point. Probably depends on you friends...

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

    Subscribed 🙂🙂

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому +1

      Welcome aboard the channel!

    • @shijumax1
      @shijumax1 2 роки тому +1

      @@AndreasSpiess there are many channels showing instrument made with help of Nextion and Android say for example wire striper and cutter but 2hen I seek help to them like how to make it , they are very rude in replying " we are not interested in sharing the knowledge" so I decided to learn ,,☺️ will watch all your video will make efforts for trail and run . Will ask doubts ,☺️

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

    Have you heard about Proculus display?

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

      No. It seems they are not sold on AliExpress

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

      @@AndreasSpiess I guess you are right.. I just found it on Alibaba: proculustech.en.alibaba.com/

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

      @@mmakybh will you consider our touch screen display? then contact me

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

    Bom dia, gostaria de uma ajuda.
    Sou brasileiro, de joão pessoa pb...
    Estou precisando de um touchscreen
    (eDIP240-7)
    Na verdade apenas a tela touch rompeu a trilha, mas, se ñ encontrar apenas a tela gostaria de uma ajuda para conseguir o modulo completo.

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

      Maybe you find the exact type of the LCD on its PCB.

  • @josedourado3747
    @josedourado3747 7 років тому +2

    I love automation but when I think about the simplicity and energy efficiency of a mechanical switch.......

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

    I'm trying to get a NodeMCU ESP32 to talk to an Enhanced display via UART2 (16 & 17). So far, I get debug messages on the USB serial monitor right up to the point I call "sensors.begin()" to initialize the DallasTemperature.h library. After that point I just get squares and ASCII characters in the debug window and nothing changes on the Nextion. I've verified all my code is working without the Nextion command/code structures by sending all the would-be Nextion commands to Serial instead of Serial1. I've found it difficult to use the library commands (I do include Nextion.h) and typically just use Serial1.print commands to send changes to the display:
    Serial1.print("topSet.txt="); // display variable to update.
    Serial1.print("\""); // Since we are sending text, double quotes before and after the actual text.
    Serial1.print(Tempstr); // string variable, i.e. 73.5 F
    Serial1.print("\""); // Since we are sending text, double quotes before and after the actual text.
    Serial1.print(0xFF);
    Serial1.print(0xFF);
    Serial1.print(0xFF);
    In the Nextion debug window, when I type topSet.txt="73.5 F" and click Enter, it updates the virtual display.
    I'm using the Nextion library of course to receive commands/updates from the display. It will be wonderful when the documentation and libraries become more user-friendly. Thanks for your time.

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

      Does the Dallas sensor work? It seems to be an interaction between the two

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

      Andreas Spiess I think it's a problem between Serial & Serial1 or 2. I have another board talking to a basic display and get garbage in the IDE debug window, but Serial1 (gpio16, 17) to the nextion is working fine.
      While I was typing this, I changed the debug to 115200 to match the Nextion and now I'm getting my debug Serial.print() code AND the commands from the Nextion in the IDE debug window. It's as if either the .cpp, .h, or the esp32 itself is not isolating the 2 uarts. Any ideas?

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

      Espero que la respuesta a sus preguntas no sea tarde. Intenté sin éxito seguir este video, pero tampoco funcionó. Finalmente, después de una tarde de dar vueltas y vueltas aquí está la solución:
      copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion, esto lo sacará de la biblioteca ESPNexUpload.cpp, QUÉ FUE, se debe comentar (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      Copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion
      # si se define ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Predeterminado 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Predeterminado 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial (NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin (a) nexSerial.begin (a)
      #endif

      #elif definido ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Predeterminado 16
      #define NEXT_TX 17 // Pin de Nextion TX | Predeterminado 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin (a) nexSerial.begin (a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      Creo que debería guardar una copia del archivo original para que pueda funcionar correctamente con una tabla o mega arduino.
      Espero ser de ayuda

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

    Is it possible for you to do a nextion display sending a button data (1 or 2 or etc.) to a mcu using circuitpython?

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

      I assume you can also use Circuitpython. Maybe you find a project to learn from?

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

      @@AndreasSpiess Yes, I tried to use uart.write but I was unsuccessful.

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

    It will be nice if you increase fonts size while explaining?

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

      This is an old video...

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

      @@AndreasSpiess
      But make sure rest all other n NEW videos should depict large fonts su users can understand more details and follow screen reading clearly

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

    Hi Andreas, I am using the Keyboard.ino example, and I have made the modifications to HardwareSerial.h file, but I keep getting an error (recvRetCommandFinished err). what boggles my mind is that when I communicate with nextion display without the nextion library as per the following example, it works just fine!!!!
    HardwareSerial Serial2(2);
    void setup() {
    Serial2.begin(9600);
    Serial.begin(9600);
    }
    void loop() {
    delay(2000);
    Serial2.print("irMode.val=1");
    endNextionCommand();
    }
    void endNextionCommand()
    {
    Serial2.write(0xff);
    Serial2.write(0xff);
    Serial2.write(0xff);
    }
    But when I use the library, I get the error mentioned above, and I have been trying for the past two days with no luck, pleeeeeeeease help, PS my nextion HMI code is very simple, just a variable named irMode, thats it!!!
    Now you may ask, if this example works fine then why don't you use it, and my answer is: I need to get values from Nextion to ESP32 and I could not fine a clear way of doing this without a library, so please help my friend.

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

      I think I tried to answer this somewhere else.

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

      Hi Andreas, Yes I asked the same question on Patreon, and am glad to report that I was able to work it out on my own after I was frustrated with Nextion's technical support. basically I defined a timer in Nextion editor and I made the timer push all the values I needed through serial every 5 seconds, and the rest was just to read and process the serial in arduino.

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

      Espero que la respuesta a sus preguntas no sea tarde. Intenté sin éxito seguir este video, pero tampoco funcionó. Finalmente, después de una tarde de dar vueltas y vueltas aquí está la solución:
      copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion, esto lo sacará de la biblioteca ESPNexUpload.cpp, QUÉ FUE, se debe comentar (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      Copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion
      # si se define ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Predeterminado 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Predeterminado 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial (NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin (a) nexSerial.begin (a)
      #endif

      #elif definido ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Predeterminado 16
      #define NEXT_TX 17 // Pin de Nextion TX | Predeterminado 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin (a) nexSerial.begin (a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      Creo que debería guardar una copia del archivo original para que pueda funcionar correctamente con una tabla o mega arduino.
      Espero ser de ayuda

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

    Is there a way to increase the sensitivity on these screens? I have to press really hard to make the buttons react. Thanks.

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

      They use resistive technology which is not as sensitive as the capacitive used in Smartphones.

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

      I figured out also if you require both down press and up press the sensitivity isn't as good as if you just require one and not the other. Thank you!

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

    Hi Andreas, After watching this video, I tried to use serial 2 of esp32 using arduino but not successful. Can you refer any link where I can get to know more about that.

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

      There is a video on this channel explaining Serial on ESP32

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

      @@AndreasSpiess I followed that video but that didn't work for me. Can you guess what can be the problem.

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

      i am also looking for same solution

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

      Unfortunately remote debugging is nearly impossible for such cases.

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

      I hope the answer to your questions is not late. I tried unsuccessfully to follow this video but how it did not work either. Finally after an afternoon of going around and around here is the solution:
      copy the NEXT in NexUpload.cpp in the library of Nextion, this take it from the library ESPNexUpload.cpp, WHAT WAS, should be commented (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      copy the NEXT in NexUpload.cpp in the library of Nextion
      #if defined ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Default 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Default 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial(NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin(a) nexSerial.begin(a)
      #endif

      #elif defined ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Default 16
      #define NEXT_TX 17 // Nextion TX pin | Default 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin(a) nexSerial.begin(a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      I would believe that you should keep a copy of the original file so that it can work properly with a one or mega arduino board.
      I hope to be helpful

  • @ardxb123
    @ardxb123 7 років тому

    How do you compare Nexgen with FT81x series of graphics controller?

    • @kingearwig
      @kingearwig 7 років тому

      Abdul Rauf Jangda I don't know much about the FT81x but the Nextion is a human/machine interface device. It's not really for serious graphics.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I do not know which controllers they use. I just like the concept to separate the display logic from the code. It makes writing sketches faster.

  • @jamescullins2709
    @jamescullins2709 7 років тому

    Can you make it work with rotatory encoder with sw to change variable values and select menu pages?

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I think it should be possible. But under the control of the MCU. I do not think the display itself can manage these fast changes of pins of a rotary encoder.

    • @jamescullins2709
      @jamescullins2709 7 років тому

      So it is better to have the encoder code on the SMT32F103 board.

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

    i dont find the iteadlib_arduino_nextion on your Github.... where is it?

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

      This is an old video. You probably have to search for newer software.

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

    Trying to get Nextion Editor 0.59 to install on Windows 10 but I keep getting an error window that says "WriteEXEini Error! Load RunMan Star". Anyone know what could be causing this? Did a search for the error but no information.

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

      Maybe you go to their forum? I just installed it without any problems. Maybe you check your security software?

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

    Used cased ESP32 What do I need to modify in NexConfig.h ? help me please I cannot use Nextion enhanced with ESP32 I just want to control LED with touch

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

      Maybe you watch my other nextion videos

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

      Which video Can you recommend me please

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

      Espero que la respuesta a sus preguntas no sea tarde. Intenté sin éxito seguir este video, pero tampoco funcionó. Finalmente, después de una tarde de dar vueltas y vueltas aquí está la solución:
      copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion, esto lo sacará de la biblioteca ESPNexUpload.cpp, QUÉ FUE, se debe comentar (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      Copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion
      # si se define ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Predeterminado 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Predeterminado 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial (NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin (a) nexSerial.begin (a)
      #endif

      #elif definido ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Predeterminado 16
      #define NEXT_TX 17 // Pin de Nextion TX | Predeterminado 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin (a) nexSerial.begin (a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      Creo que debería guardar una copia del archivo original para que pueda funcionar correctamente con una tabla o mega arduino.
      Espero ser de ayuda

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

    Genau das bruchi, ser nice! ha mer erst es esp32 board mit batterie holder psellt und scho länger es nextion bereits programmiert für de isatz als homecontroller aber ha nöd gwüsst wie. jetzt chönt me per blynk und bluetooth (hani mit iphone nonig anebracht) per phone stüre über de homecontroller!? cha mer au sensordate zrug schicke a de homecontroller mit mqtt?
    Gruess
    Tim

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

      Man kann MQTT in beide Richtungen verwenden.

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

      Espero que la respuesta a sus preguntas no sea tarde. Intenté sin éxito seguir este video, pero tampoco funcionó. Finalmente, después de una tarde de dar vueltas y vueltas aquí está la solución:
      copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion, esto lo sacará de la biblioteca ESPNexUpload.cpp, QUÉ FUE, se debe comentar (// # include
      // # define USE_SOFTWARE_SERIAL
      // # ifdef USE_SOFTWARE_SERIAL
      // SoftwareSerial dbSerial (3, 2); / * RX: D3, TX: D2 * /
      // # define DEBUG_SERIAL_ENABLE
      // # endif)
      Copie el SIGUIENTE en NexUpload.cpp en la biblioteca de Nextion
      # si se define ESP8266
      #include

      #ifndef NEXT_RX
      #define NEXT_RX 14 // Nextion RX pin | Predeterminado 14 / D5
      #define NEXT_TX 12 // Nextion TX pin | Predeterminado 12 / D6
      #endif
      #ifndef nexSerial
      SoftwareSerial softSerial (NEXT_RX, NEXT_TX);
      #define nexSerial softSerial
      #define nexSerialBegin (a) nexSerial.begin (a)
      #endif

      #elif definido ESP32

      #ifndef NEXT_RX
      #define NEXT_RX 16 // Nextion RX pin | Predeterminado 16
      #define NEXT_TX 17 // Pin de Nextion TX | Predeterminado 17
      #endif
      #ifndef nexSerial
      #define nexSerial Serial2
      #define nexSerialBegin (a) nexSerial.begin (a, SERIAL_8N1, NEXT_RX, NEXT_TX)
      #endif

      #endif
      Creo que debería guardar una copia del archivo original para que pueda funcionar correctamente con una tabla o mega arduino.
      Espero ser de ayuda

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

    I love you sir. One day I will come to kiss your hands

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

      Glad you like the content of the channel

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

      @@AndreasSpiess you are making best content. Your videos are very easy and brief for learners like us.

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

    Great video, unfortunately i can't upload the code , if i comment the , it can be uploaded.
    Need help pls , thanks

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

      I share my knowledge on UA-cam and unfortunately cannot do consulting :-(

  • @ManuelCastillo-kq3xy
    @ManuelCastillo-kq3xy 5 років тому

    Hi, what capacity is the maximum usable at the sdcard?

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

      I do not know. But it does not matter.

  • @CutterSlade001
    @CutterSlade001 7 років тому

    What's wrong with your printer? Maybe we can help.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I also do not know. It sometimes stops moving in the middle of printing.

  • @spikeydapikey1483
    @spikeydapikey1483 7 років тому

    Input, output, shake it all aboutput :p

  • @68riouw
    @68riouw 4 роки тому

    Hi Andreas
    Very usefull video thank you. My project works from the Pi toward the Nextion.
    Can you help me tell the screen to got to page1 or page 2 with a serial port.write() command?
    Port is setup import serial, port = serial.Serial("/dev/ttyS0",baudrate = 9600,timeout=1)
    Thank you much in advance.
    David

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

      This is a old video and I do no more know the details. Maybe Google knows?

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

    In this way, can I use it with Nextion basic

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

      I do not understand your question

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

      I mean Nextion the basic version like NX3224T024_011 but you can make video tutorial to use Nextion Enhanced with ESP32 send information such as opening the LED with the touch please

  • @tedder42
    @tedder42 7 років тому

    $100USD if you can do a vid on AWS IoT and ESP32 MQTT.

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      Not because of the money, but AWS is on my list. ESP32 MQTT is already done in one of my last videos.

    • @tedder42
      @tedder42 7 років тому

      yep, watched the MQTT vids. ESP32 means we should have TLS1.2, but AWS IOT MQTT is more difficult because it requires x509 authentication. I've been banging my head against it.

    • @tedder42
      @tedder42 7 років тому

      aaaand they released "Amazon MQ" today, which uses Apache MQ, which talks MQTT. That should be much easier to connect than AWS IOT, and also gets rid of the overhead ("device shadow", etc).

    • @AndreasSpiess
      @AndreasSpiess  7 років тому

      I will have a look at it. Thanks.

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

    This is too far out of date no longer relevant. Library zip file wont install. No espressiff folder in a hardware folder. No idea what PubSub (standard) is. Might have been good info once but no good any more.

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

      Unfortunately I cannot support all my 350 videos :-(

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

      Realize that that is why I posted this message to help others. Cheers

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

    Hi Andreas, Thanks for your Nextion videos, they have really helped me start my project. Were you able to find ways/code to use the expansion board buttons as inputs? I am working on a motorcycle VCU ( ua-cam.com/video/ixrIBekt090/v-deo.html ) and am trying to figure out how to read the button presses. Do you know if there is a way to get a "Touch Press event/Touch Release Event" for the GPIO's? Cheers!

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

      I think you should get information from their homepage. I never tried.

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

      @@AndreasSpiess Thanks, I was having trouble decoding the Nextion instructions, but I came across another video that helped me understand. I thought I would post the solution here so you and others have access to it. Hopefully, this helps someone looking for the same information.
      You have to configure the GPIO expansion board button in the 'pre-initialize event' area of the page you want to use it. This will link it to a button, element or hotspot on the page so you can use the 'touch press event' and 'touch release event' of the onscreen element by pressing or releasing the linked expansion board button.
      A code example is: cfgpio 4,1,m0 This means: (cgfpio=configure gpio port)(4=expansion button 104)(1=attach to screen element)(m0 = hotspot id "m0").
      Now I can use the button 104 on the expansion board to activate the hotspot m0 on the page. You can link any expansion button to any onscreen element. cfgpio 2,1,n3 will link button 102 to Number field n3 on the page. You have to configure the buttons on each page, but this means you can use the buttons for different functions on different pages.
      If you are configuring an output for the beeper or led, you seem to be able to do that on the page 0 'pre-initialize event' ( cfgpio 7,2,0 ) = (port 7 beeper)(2=binary output 1 or 0)(0=do not link to a component) and call it using pio7=1 or pio7=0 from any page.
      Thanks again for your great videos!

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

    You haven't mastered anything. This is the basics to the nextion screen. The screen text is over exaggerated.

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

      ???

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

      @@AndreasSpiess The title in the thumbnail. It says mastering the screen. It's a bit click baitey. Don't get me wrong, it is a great intermediate tutorial, but it doesn't come close to mastery. As an engineer these concepts are extremely important to me. That M3, while a bit out dated, it's a nice little processor. It is far more capable than the Chinese could make it on this screen. Mastery topics would explore that chip, take it over, and make the screen run semi decently.

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

    Just a heads up for Nextion display users.
    DUMP THE LIBRARIES! LOL
    Yes, you DO NOT need their horrible, bloated libraries to use the Nextion displays!
    I was working on a project and besides finding their syntaxes awkward, I found that the code and their libraries just sucked up LOTS of memory in the Arduino. I reached 75% of memory used with a small sketch and of course, ran into the known bugs and instability that the Arduino boards have when that much memory is used.
    I searched and searched for "tiny" libraries, but non were found.
    Then, just by good luck, I found a channel on UA-cam that actually shows you how to use the Nextion displays... FULLY...
    WITHOUT LIBRARIES!
    At first, I thought that this was impossible to be able to do all that I wanted to do. Surely, I must NEED the libraries.....
    but... NOPE, I did not. I was able to write all my code and still has lots of memory left over for feature additions.
    I highly recommend searching youtube for:
    "Using Nextion without libraries" _(without the quotes)_
    and you should find CC's tutorials. Look for the "E" in a lime green circle.
    There are a lot of videos showing how to do everything with the Nextion display, without libraries... EVERYTHING.
    As an aside, one other nice thing that I discovered too, is that my code seems to run much faster now too, since it's not lagged by access library calls. Things are so "snappy" now too.
    I just thought that I'm mention this, since this method could really be used with any kind of controller board that supports serial.
    P.S. I also use a baud rate of 115200 without any issue.
    Hope this helps.

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

      Thank you for the info. Very interesting!