Hello Andreas. No I did not use your libraries. I like to type in the examples from the video as you go. That way I can see what you are doing as you are explaining the code. I can add more comments to the code so I can remember what you did and why you did it. This helps me remember how to recreate the code for my projects. I am glad I found your tutorials as they are easy for me to understand and help me create my own projects. Thank you!!! John
@AndreasSpiess8 жыл бұрын
You are welcome. I just wanted to make sure, that you did not find big mistakes in my code ;-)
@tomazjancic90576 жыл бұрын
After watching someone else's nextion tutorial to build my project I ended up with a super long big mess of a code but this video cleared everything up and finally got my project to work as it should and it's giving me ideas to extend it even more. Viele dank, ganz gut tutorial.
@AndreasSpiess6 жыл бұрын
You are welcome!
@erikb37834 жыл бұрын
I just wanted to let you know how valuable this video has been in helping me to understand the Nextion display and the code for the project I am working on, keep up the great work!
@AndreasSpiess4 жыл бұрын
Thank you for your feedback!
@douglasthomson19893 жыл бұрын
Saw these last week, and they look really good. Thanks for the explanation.
@AndreasSpiess3 жыл бұрын
You are welcome!
@jon_raymond8 жыл бұрын
Another great video! Good to see that your subscriber base has grown as I forecast. Keep up the great work and I wish you safe travels.
@AndreasSpiess8 жыл бұрын
+Jon Raymond Yes, you were right and I am very impressed about the recent success of my channel. It is satisfactory to see, that the effort leads to some added value for other hobbyists.
@RoSi4You8 жыл бұрын
WOW. This is the best information so far I've found on Nextion displays. I need to get my head around this. All i need, is display some variables from arduino on the display's textfields...
@AndreasSpiess8 жыл бұрын
The best is if you start with the examples and then start to do small changes in the direction of your goal. Like that, you always see where you start to make an error...
@xennelul8 жыл бұрын
Just discovered your channel, your explanations are very clear, easy to follow and make a lot of sense, awesome!
@AndreasSpiess8 жыл бұрын
+xennelul Thanks for the compliment!
@Ed196017 жыл бұрын
How could I have overlooked this video. Good thing KZbin thought it was something I wanted/needed to see
@AndreasSpiess7 жыл бұрын
:-)
@MrC10667 жыл бұрын
Andreas, Great directions and easy to follow although I must admit to not having used the directions as yet. Thank you for taking the time to make this. Whoever puts dislikes must be joking, stupid or merely fumbling the buttons.
@AndreasSpiess7 жыл бұрын
Thank you for your nice words. Concerning thumbs down: I learned to live with it and hope, it does well to the guys which create them...
@omaryanas4359498 жыл бұрын
nice video, am currently working on an arduino project and am using the nextion 3.2", so this was very usefull, i also live in Dubai, and i like the picture u r using.
@AndreasSpiess8 жыл бұрын
+Anas Omary Glad to hear it was useful. I just had a project in Dubai, but I liked it.
@CharlieTechie6 жыл бұрын
Very useful. It is people like you that make learning so easy. Thank you for you time.
@AndreasSpiess6 жыл бұрын
You are welcome!
@NikolayAgopyan8 жыл бұрын
Thank you for this great tutorial! It was a big help for me to get the understanding how the display works.
@AndreasSpiess8 жыл бұрын
+Nikolay Agopyan You are welcome. This was the intention of the video. It took me also time to understand the concept, so, I thought, I can save some others their time.
@johnfrankforther81628 жыл бұрын
Hello Andreas. I just loaded up this project on my Mega and 5" Nextion display. Except for a few spelling errors this sketch would not compile unless I added the following libraries: #include #include #include Once I added those everything worked like you described. Can't wait to continue on to learn more about using the Nextion display. Thank you John
@AndreasSpiess8 жыл бұрын
This is quite strange. I just compiled the files of github and had no problems. Did you also install the libraris from my github? But anyway, I am glad it works.
@learnbox37836 жыл бұрын
In Video at 5:40 you said " You have to change the lines #define dbSerial Serial and #define nexSerial Serial2". How to change them or what do you mean?
@AndreasSpiess6 жыл бұрын
You have to watch the video about the nextion and the arduino, too
@learnbox37836 жыл бұрын
I deleted library and download again but it cannot work showing same error.
@TheFlybyman6 жыл бұрын
Hi Andreas. It is possible to use the dual state buttons, to turn on and off, for a "LED loop". I want to turn on some led behaviors on my neopixel, and that has to be in at loop, or it is static light on and off. I need blicking and rainbow behavior ? Thanks ;)
@AndreasSpiess6 жыл бұрын
The logic for the Neopixels or other lights is done on the MCU (e.g. Arduino), not on the nextion. So you can do whatever you want.
@Clip7heApex2 жыл бұрын
Do you have to debounce the button presses in the code like you would for a normal button?
@AndreasSpiess2 жыл бұрын
This should be done by the software on the board
@jeffanderskevinpalaciossos20275 жыл бұрын
Hi, nice video, but i need help. I`m trying to put limit the counter, example, n0.val
@AndreasSpiess5 жыл бұрын
I am a KZbinr and I have no time to consult.
@TheWdvtube8 жыл бұрын
@Andreas Spiess, the steps in the video "void buttonPlusPopCallback" you'll have to make that line for every button corect? en you;ll also have to make for every button the line's after "void setup(void)" i'm asking about this i have a 8relay board and for every relay an on and off switch.
@AndreasSpiess8 жыл бұрын
+William de visser Yes, you need all 4 steps (9:15 in the video) for every interactive object on your nextion display. Of course, if you always want to do a similar task, you can directly call a function from the buttonPlusPopCallback function. For your relais it could be someting like: void relayOnOff(bool status, int relayNumber){ digitalWrite(relayNumber,status); }
@TheWdvtube8 жыл бұрын
oke, thanks for you expline.
@adtwomey7 жыл бұрын
have an Error at 8min on your video. I also did get how (at 5mins in your video (#define Debug_serial enable) as it already says that. His my Error msg Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:\Users\Tombstone\Desktop\test\ButtionTest_1\ButtionTest_1.ino:19:21: fatal error: Nextion.h: No such file or directory #include "Nextion.h" ^ compilation terminated. 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.
@AndreasSpiess7 жыл бұрын
You have to have the Nextion library in the libraries folder. You should find it in my github. If you do not know how to install libraries, just google.
@aqibriaz52874 жыл бұрын
is there a way to have portrait and landscape mode is same project?
@AndreasSpiess4 жыл бұрын
I do not know.
@FusselCNC2 жыл бұрын
Hallo Andreas, gibts es bei der Progressbar ne möglichkeit die zu skalieren? Brauche nen max wert von 150 LG
@AndreasSpiess2 жыл бұрын
Weiss ich nicht mehr. Ist lange her :-(
@FusselCNC2 жыл бұрын
@@AndreasSpiess haha ok :) kenn ich. Hänge grad an ner Heizungssteuerung für mein Drucker und hab auch ewig nix mehr mit nextion gemacht.
@yapandasoftware5 жыл бұрын
Is it possible to use images for buttons or are you confined to button style within the hardware?
@AndreasSpiess5 жыл бұрын
I think this should be possible. You can upload pictures.
@yapandasoftware5 жыл бұрын
@@AndreasSpiess You are so correct. I watched other videos and went to their website. I'm putting in a bulk order of 25 to work with here at the lab. Thank you so much for your video. It was a life saver! (Money too!)
@joedempseysr.33766 жыл бұрын
Why did you activate the increment on release but the decrement on push? Could you have chosen either way? Dies the word "heaven" mean sky in Dutch? In English we would use the word sky.
@AndreasSpiess6 жыл бұрын
I do no more remember why I did it differently. An thank you for the hint about heaven.
@johnfrankforther81628 жыл бұрын
Andreas. I am trying to display the information of a DTH11 sensor onto the Nextion display. All of the demos I have looked at requires a button push to change text in a text box. I see how it works in this demo, but how do you do it without pressing a button???
@AndreasSpiess8 жыл бұрын
You should be able to just set the .text property in your sketch: long entry; if (millis() - entry>500){ memset(buffer, 0, sizeof(buffer)); // clear buffer itoa(number, buffer, 10); textNumber.setText(buffer); entry = millis();} If you place this in your loop, it should display it. Please make sure with an if statement, that this code is only called every 05. sec or so. Otherwise you can overload the communication to the ESP. Do not use delay(500) in the loop. Otherwise the reaction of your Nextion will be slow.
@Bobs1Models5 жыл бұрын
Hi Andreas I am having a problem with your tutorial i get the following error [1081:0,3,buttonMinus] buttonMinusPushCallback recvRetCommandFinished err [1081:0,3,buttonMinus] buttonMinusPushCallback recvRetCommandFinished err and no text update on screen. can you help please.
@AndreasSpiess5 жыл бұрын
Unfortunately I cannot do remote debugging. This is quite an old video and maybe things changed since then.
@yekutielbenheshel3547 жыл бұрын
Thanks for posting this excellent video! You are an outstanding teacher.
@AndreasSpiess7 жыл бұрын
Thanks!
@Human-bf7kz3 жыл бұрын
I don't understand . In the NexConfig.h Most tutorials comment out debugging serial . Why have you enabled it ?
@AndreasSpiess3 жыл бұрын
This is an old video and I am an old man. So I do no more remember the details :-(
@Human-bf7kz3 жыл бұрын
@@AndreasSpiess You are the Youngest Oldest man I've ever come across . Young at heart that's is . You're a nice guy with a good attitude trying to teach the youngins new tricks while updating yourself and learning and experimenting . I've came across many of your videos and you have many comments praising you . You have done a lot for your human brethren by spreading knowledge with your humble and peaceful attitude . May you live a happy and long peaceful life .
@AndreasSpiess3 жыл бұрын
Thank you for your very nice words!
@KieranShort7 жыл бұрын
how do you send info from the Arduino back to the display (eg in your fish tank application)? do you define incoming serial data variables in the Nextion display and link them to a display field/object? is that done in the Nextion software like everything else?
@AndreasSpiess7 жыл бұрын
Yes. look at the examples and you should see, how.
@dariocorona78087 жыл бұрын
Andreas über alles!!! Thank you and hope seeing soon your next video... thumb UP!
@AndreasSpiess7 жыл бұрын
:-)
@adtwomey7 жыл бұрын
I useing mega but my + and - key not chaging "textNumber" i don't know what I have don?
@adtwomey7 жыл бұрын
what I get in serial monitor .... recvRetCommandFinished err Thanks Aaron
@AndreasSpiess7 жыл бұрын
Please also watch the video #63 and also check the communication speed between the Nextion and your Mega
@julio_clavijo7 жыл бұрын
Hi. Sorry but I have the same problem "recvRetCommandFinished err" in my serial monitor... I have Mega and I can see the number changing in the serial monitor (115200) But in the TFT the texNumber is the same all the way... so I think there are two problems? Perhaps your code need do do something wiyh "texNumber" Thank's a lot!!
@1simone07 жыл бұрын
hello julio did you fix your problem? because for me it's the same
@julio_clavijo7 жыл бұрын
Hello No, I'm stuck. I have seen the video 63, I have changed communication speed 9600/115200, I have used the same gnd for tft power and mega power, I have reload the program in the mega and tft ...
@legohouses8 жыл бұрын
HiI am planing to make a counter tha can use both button on nextion and external push button. ex I push external button and effect to button on nextion too. I do not know how to send the command from arduino to nextion display. can you recomment meThank
@AndreasSpiess8 жыл бұрын
Your button on the Nextion seems to have two functions: One is to send a signal to the Arduino and two to display a status. Send the signal is easy, you can use the examples. And to display a result you could chagne the color of the button or its text. There is also a Two State button available, but it is not easy to be synchonized with the Microcontroller.
@legohouses8 жыл бұрын
Thank you for your kinds
@klompjeusa8 жыл бұрын
Hi Andreas, Thank you for taking the time to put this great video together. After following you to the detail, and trying you other example, I keep having an issue. the issue I have is the following that I see in serial monitor. [1704:0,3,buttonPlus] [1704:0,3,buttonPlus] buttonPlusPopCallback recvRetCommandFinished err [1692:0,4,buttonMinus] buttonMinusPushCallback recvRetCommandFinished err [1692:0,4,buttonMinus] And the counter does not add up or count down. Any idea? This is my first go around so a new bee here. Your help is greatly appreciated.
@klompjeusa8 жыл бұрын
Some additional in formation. I use the 7"
@AndreasSpiess8 жыл бұрын
Did you use exactly the files from Github?
@klompjeusa8 жыл бұрын
To what I know I did. I followed the links you provided. Really lost.
@AndreasSpiess8 жыл бұрын
1. You uploaded the file via SD card to the Display (e.g. ButtonTest#1.tft)? 2. The display shows Dubai and the buttons? 3. You set the parameters for serial connections and connected your display according video #63? 4. You uploaded the ButtonTest_1.ino to your Arduino? 5. You checked, that the Serial monitor shows results, when you run the sketch and push the buttons? I ask these questions, because I am also lost without physical access to your device... Somewhere in these steps is the error.
@klompjeusa8 жыл бұрын
Hi Andreas, Yes I did follow all the 5 steps you mention. Here is a capture what I see in serial monitor. [1704:0,3,buttonPlus] [1704:0,3,buttonPlus] buttonPlusPopCallback recvRetCommandFinished err [1692:0,4,buttonMinus] buttonMinusPushCallback recvRetCommandFinished err [1692:0,4,buttonMinus] So I see the communication from the screen when a button is pushed or released. and then followed by a message of "recvRetCommandFinished err" not sure where this comes from. I am using a arduino mega R3. and have the library installed in the following location: Users\Gerrald\My Documents\Arduino\Libraries\ With the folder name Nextion-Arduino. (Not sure what name it has to be? and/or if this has any effect. In the version file is says ver:0.9.0
@h0ly_crook5 жыл бұрын
the line char buffer[10] is producing an error "expected identifier before numeric constant" Please help!
@AndreasSpiess5 жыл бұрын
Unfortunately I cannot do remote debugging. This is a quite old video. So things might have changed since then.
@h0ly_crook5 жыл бұрын
Could you just a specific tutorial just to display time for the nextion basic display using ds3231 rtc
@AndreasSpiess5 жыл бұрын
I have no plans with the nextion display. Maybe you divide your project into two parts: 1. rtc and 2. display?
@josephfernandes66217 жыл бұрын
hi sir had a quick question? how to send a specific word or number or code when u touch button on the nextion display to the arduino . like if i had a few push buttons on the display and i wanted to use to control the leds connect to arduino please help. thanks
@AndreasSpiess7 жыл бұрын
You have also text fields available. And each button has a different name
@steveh24338 жыл бұрын
Hi, Please can you help me? I would like to do something similar to what you have done with your button sketch with the Tower. What I would like to happen, is to go to a screen and using plus and minus buttons select a number of steps for a stepper motor. Then exit that screen and go to another screen to activate the motor by pressing a button. The motor would move by the number of steps stored in the memory x 100. Could you explain how you would store the number of steps from the first screen so it could be used in the "activation screen" I hope you don't mind me asking Regards Steve
@AndreasSpiess8 жыл бұрын
You store all values in the microprocessor, just as in my example file
@trauatsgg38095 жыл бұрын
When loading the code (fishtank), to compile, it gets the 'NexText' does not name a type...Any ideas?
@trauatsgg38095 жыл бұрын
@Andy Pandy The Nextion include statement was already there. I also tried the text that you included. I still get the same error... 'Nextion' does not name a type. I tried on arduino 1.8.5, 1.8.8 and 1.8.9.
@trauatsgg38095 жыл бұрын
I think I found my problem. I was trying to compile for an Arduino UNO. when I changed it to Arduino Mega, it compiled. Thanks all.
@trauatsgg38095 жыл бұрын
@Andy Pandy Thanks very much for you help.
@HonzaJust7 жыл бұрын
Hi there. Need a little hint. What exactly do I need to change in config.h file? I get error while compiling my arduino sketch. It says "Serial2 was not declared" . Thanks!
@AndreasSpiess7 жыл бұрын
+Honza J please watch video #63
@HonzaJust7 жыл бұрын
Thanks a lot!
@jct46478 жыл бұрын
Thank you for another excellent tutorial +Andreas Spiess, and safe travels.
@AndreasSpiess8 жыл бұрын
+Johan van den berg I hope, too (after the plane crash today...)
@samuelf70078 жыл бұрын
hello am working with arduino mega and nextion 2.4 " , the program compiles the arduino same in the display , but there is no communication and monitor serial I get the error. recvRetCommandFinished err recvRetCommandFinished err setup done Please could you help !! ?
@AndreasSpiess8 жыл бұрын
I do not know which library and which sketch you use. So, it is hard to help.
@samuelf70078 жыл бұрын
I appreciate your response , using the library estou will link you share and is the example presentas.el problem and solve it , it was an error They begin the rx and tx connections were reversed. thanks and regards.
@bastelgarage-ch8 жыл бұрын
Have you found a solution? I have the same error.
@ronaldhofman17265 жыл бұрын
The nextion products are not very stable, designed a interface with itead studio and after uploading the new tft file , only white screen doesn't do anything anymore , thing was brandnew and broke after one time., on google a read more people are having the same problem.
@Kevin-yh8ol8 жыл бұрын
Hi! I'm planning on using this for a heads up display in a car, is the Nextion display bright enough during the day?
@AndreasSpiess8 жыл бұрын
I cannot imagine that this is LCD is bright enough. But I am not a specialist. I think, the different (cheap) LCDs I have do not differ very much in brightness.
@Kevin-yh8ol8 жыл бұрын
Andreas Spiess I see, but from your experience, do you think its easy or difficult to read the display in direct sunlight?
@angelvazquez72437 жыл бұрын
Dear teacher, I have a problem when i verify the code in arduino, this message appear " 'VBLOWPopCallback' was not declared in this scope " could you help me please?
@angelvazquez72437 жыл бұрын
Here it is void setup(void) { nexInit (); Serial.begin (115200); PBUP.attachPop(PBUPPopCallback); VBLOW.attachPop(VBLOWPopCallback); VBUP.attachPush(VBUPPushCallback); VBLOW.attachPush(VBLOWPushCallback); dbSerialPrintln("Setup done"); }
@AndreasSpiess7 жыл бұрын
I cannot do debugging here on this channel. But I am sure you will find it out. The error message says, that your code does not contain a line like that: void VBLOWPopCallback{ code }
@babyworld2436 жыл бұрын
THANK You for a such a wonderful guide..Actually I am facing a problem in swapping between the pages i am making a monitoring system and I have 6 different nextion page and I am using the command page1.show(); znd follow the all steps in your video but it shows error in serial print and doesn't move to the next page what should I do?
@AndreasSpiess6 жыл бұрын
I do not know. Do all the other commands work?
@UmarFarooq-yc5uu7 жыл бұрын
hi how can I send data from an an arduino to nextion without using nextion library for example send temp sensor data from arduino to nextion display thanks......
@AndreasSpiess7 жыл бұрын
Yes.Then, you have to know the "programming language" of the Nextion which is documented in the Wiki
@elettronica20006 жыл бұрын
Excellent tutorial, it would be nice to have subtitles for other videos too.
@AndreasSpiess6 жыл бұрын
Subtitles was a project I invited my subscribers to translate. But it was not very successful.
@firstlast3397 жыл бұрын
Hi, I have gone through all of your tutorials for the nextion butons. I consistentl get a recvRetCommandFinished err and the textnumber will not change from the default.
@AndreasSpiess7 жыл бұрын
Remote diagnostics is not easy. Many reasons are possible e.g. RX/TX reversed, wrong Serial speed, etc.
@magnus2648 жыл бұрын
Hi Andreas, i'm puzzling with serial connections. Can I make this example using Leonardo? but how to connect TX/RX? should I use serial1? getting lost...
@AndreasSpiess8 жыл бұрын
Please watch also video #63 where I explain this matters a little more. Maybe, it helps you. Otherwise come back.
@cristianpatriciopalma35928 жыл бұрын
Hello Andrea .tft Charge of the file to my sd memory fat32 formatted with a single file. But nextion nx3224t024 insertarlaa the screen, will not start. He says: Baud: 9600 SD Card Update .... Might you help me? Thank you
@AndreasSpiess8 жыл бұрын
I do not know the reason. After power cycle, my Nextion all start to update. Did the tft compile without errors in the editor?
@nikalfahb20726 жыл бұрын
Dear Sir I `m an old mechanic with also a Swiss accent. With the Arduino Mega and the Nextion display I can`t find the command to change the color for font and text field (pco , bco ). At a certain temperature the color should change.I always receive a text : class Nextex thas no member bco / pco With the if statement : if (signsensDS4 >80) field t40 should change to red(63488) but I have no clue how to do that. Where can I name bco and how does the command exactly should be ? if (signsensDS4 >0) // Water temp { itoa(signsensDS4, charsensDS4, 10); //wandelt Zahl (signed integer) in einen String der länge 10 um, signsens01 = Zahl, charsens01 = Zahl in Textformat t40.setText(charsensDS4); // Water temp } if (signsensDS4 < 0) // Water temp { t40.setText("Error4"); } Thanks a lot in advance and all the best for 2019 Niklaus
@AndreasSpiess6 жыл бұрын
Remote debugging is not easy and this is a quite old video. Did you check the "DualStateButton" ?
@nikalfahb20726 жыл бұрын
Andreas Spiess ß
@nikalfahb20726 жыл бұрын
Happy New Year Tanks for the quick answer. It looks like it is too much over my head. What about if I sent the complet sketch? Have a great day! Best regards Nik.
@AndreasSpiess6 жыл бұрын
I do not do consulting. I try to put my time into videos. I would have to do the same as you: Googling and trying. Here is an example file: github.com/itead/ITEADLIB_Arduino_Nextion/blob/master/examples/CompDualStateButton/CompDualStateButton_v0_32.ino
@adirokr988 жыл бұрын
great tutorials sir I request you to do a tutorial on calibration of mq gas sensors.so please if you can. your all tutorials are just awesome.
@AndreasSpiess8 жыл бұрын
+Aditya Mishra Unfortunately, I am not a chemist. The only thing I did with our son was, that when he drank a few beers, to measure his breath alcohol with a commercial set and then compaered it with the values read by the MQ sensor. Not really professional, but he loved it ;-) So, unfortunately, I cannot help you further with this tobic
@Neomight7 жыл бұрын
I need Some HELP please, Not work for me in Arduino uno. I don't know what's wrong . Im copy paste the code, Charge the code But when I press the buttons nothing happens. Please need your helpe. I use Nextion 3.2 nextion enhanced versions.
@AndreasSpiess7 жыл бұрын
Maybe you mixed TX and RX pins?
@Neomight7 жыл бұрын
I've done the example # 56 Smart low-cost touch screens for Arduino. It works fine, everything responds, the RX TX ports communicate they respond to the changes in the Slider, but when I do the example # 59 Nextion Show Tutorial # 2: Create your own arduino application does not Respond me, no variation is made on the Values when asking the buttons. I am using the library (ITEADLIB_Arduino_Nextion-master) made the changes to the document (NexConfig) to work in Arduino UNO. I really do not know what I'm doing wrong #define __NEXCONFIG_H__ /** * @addtogroup Configuration * @{ */ /** * Define DEBUG_SERIAL_ENABLE to enable debug serial. * Comment it to disable debug serial. */ //#define DEBUG_SERIAL_ENABLE /** * Define dbSerial for the output of debug messages. */ #define dbSerial Serial /** * Define nexSerial for communicate with Nextion touch panel. */ #define nexSerial Serial
@AndreasSpiess7 жыл бұрын
1. Did you use the library from my Github? There are different versions of hte library around. 2. Put in Serial.print statements in the code ut understand where the problem is
@Neomight7 жыл бұрын
Now it is okay, since it is working example # 59. It was a mistake in the speed at which I was initiating the serial port. Thank you very much for your support. For people like you that you can grow every day more, continue like this.
@AndreasSpiess7 жыл бұрын
:-)
@WesleyRTech7 жыл бұрын
When I plug everything in, I see "Setup Done" on the monitor. But when I press a button on the Nextion display, I don't see any messages on the monitor! What do I do??
@AndreasSpiess7 жыл бұрын
Did you follow all the steps of this video? Did you also check the next video in the Nextion playlist about the definition of the serial connection?
@WesleyRTech7 жыл бұрын
Oh my god! Thanks so much! I was scouring my code, looking for a problem, when suddenly I looked down and realized that I wired wrong! Always check your wires!!!!! Even if the display powers on, the wires can still be wrong. (as I just learned) I switched the Ground and TX wires! Thanks for your help and for the fast response time! You just earned a sub!
@AndreasSpiess7 жыл бұрын
Shit happens... Also to me sometimes.
@WesleyRTech7 жыл бұрын
Haha, yes! Sorry to bother you, but now I'm having another problem! One of my buttons on Page 1 is labeled "Call." When I press it, it is totally unresponsive in the Serial Monitor. "Send Component ID is checked" and I've double-checked everything in the code! Yet it remains unresponsive!
@AndreasSpiess7 жыл бұрын
+Wesley R Tech I would compare it with a working one (aspect for aspect). Try also to exchange parts from a working one. From here, I cannot help.
@setupbilateral20807 жыл бұрын
thanks a lot for this tutorial, mate. I am struggeling with some Sainsmart Touch screens and this way it looks much more comfortable. I'll buy one and check it. Hope the store you recomment is reliable. Best regards from germany
@AndreasSpiess7 жыл бұрын
At least I got what I ordered.... All my links are from suppliers I ordered and got the product.
@krzysztofopas85838 жыл бұрын
Hi Andreas, great tutorial. Could You show the arduino code line example how to use CROP the picture. I'de like this CROP to be ON or OFF depending from the state of my input bit, but I don't know how to hide or show the crop picture. For example: if(myInput>0){ show the crop picture code;} else{hide the crop picture code;} I only know how tu init the crop: NexCrop Crop1 = NexCrop(0, 7, "Crop1");
@AndreasSpiess8 жыл бұрын
For the moment I do not have the time to do that. There is a forum at itead.cc (itead.freshdesk.com/support/search?term=nextion) where you should get help.
@krzysztofopas85838 жыл бұрын
Ok, thank You, I've already found it
@stevenharvell23284 жыл бұрын
Thanks for the videos they are very informative.... I have a problem you may can help with. In a code on my Arduino there’s a section that say , nexPage page0 = page0 (0, 0, “ page0” ) and I keep getting an error message that says nexPage doesn’t name a type.... I’m learning to code and I take on projects bigger than what I can easily handle so I have to seek help... I got the code from someone else and I have asked them several time but haven’t gotten any answers after a week or two so I stopped.... any ideas?
@AndreasSpiess4 жыл бұрын
This is quite an old video. So I do not know the actual stage of the product. And I cannot do remote debugging :-(
@developerskg69808 жыл бұрын
Hi this tutorials are great, I have a problem, I use the Arduino Uno and the same 3.5 display, I uploaded the Nextion ButtonTest#1.HMI and ButtionTest_1 in Arduino from code examples, but when I press a button Plus or button Minus nothing changes. why?
@AndreasSpiess8 жыл бұрын
Remote diagnostics are always hard ;-). Did you watch my video #63?
@MeisterQ7 жыл бұрын
Hallo Andreas, hier auch Andreas. Ich hab mein Display jetzt anhand deines Videos zum laufen gebracht. Hab mir ein schönes Design ausgedacht und übertrage aktuell 10 Werte vom Arduino auf das Display im Sekundentakt. Das funktioniert soweit gut. Allerdings im Serial Monitor postet er 10x im Sekundentakt "recvRetCommandFinished ok". Wenn ich jetzt die Seite wechsle, kommt immer "recvRetCommandFinished err" und ich muss wirklich oft auf den back-button hämmern, um wieder auf der ersten Seite zu landen. Dann funktioniert aber alles wieder. Hast du ein Tipp für mich? Ich hab den Serial debug auskommentiert, und mal die Übertragung der Daten gestoppt. Die Seiten lassen sich ganz normal wechseln. Sobald ich aber wieder die 10 Werte übertragen lasse, spinnt alles wieder.
@AndreasSpiess7 жыл бұрын
Da ist Ferndiagnose schwierig. Da musst du wohl oder übel selbst suchen. Als Tip: Ich starte immer mit einem und wenn das sauber läuft, erhöhe ich die Komplexität bis es nicht mehr läuft. So finde ich auch schwierige Fehler. Nur wenn ich den Fehler genau nachstellen kann, ist eine Beseitigung dauerhaft...
@MeisterQ7 жыл бұрын
Ok, ich hab es soweit eingegrenzt. Sobald ich nur eine Variable sende, funktioniert das Wechseln der Seiten bereits nicht mehr, Ich hab die Sendefunktion direkt in den Loop eingefügt. Sehe ich das irgendwie falsch?
@AndreasSpiess7 жыл бұрын
+MeisterQ schick mir mal den Sketch mit Library
@MeisterQ7 жыл бұрын
Hast du irgendwo eine email adresse stehen?
@AndreasSpiess7 жыл бұрын
Ich bin auf Facebook und Twitter
@zenmanproject6 жыл бұрын
Have you tried uploading the Nextion files through the serial port of an esp8266 or esp32? I would love to be able to using an esp to download the nextion files from a webserver then upload them to the screen.
@AndreasSpiess6 жыл бұрын
I tried it once, but it was very slow. Then I never tried again.
@zenmanproject6 жыл бұрын
Fair enough. I remember the days of 28.8k modems! 9600 is even slower. haha So the files must be fairly large?
@PiBou3216 жыл бұрын
Hello, does somoene know if it's possible to directly convert a HMI made for nextion enhanced to a HMI made for a nextion device of the same size but not enhanced?
@AndreasSpiess6 жыл бұрын
I do not know that.
@jasonmare337 жыл бұрын
can you make tutorial for press button on release button off please? thanks
@jasonmare337 жыл бұрын
Ill watch again I think your doing it here.....
@AndreasSpiess7 жыл бұрын
:-)
@michaelmcnaughton15356 жыл бұрын
Greetings Andreas. I have an enhanced 4832K035 Display. When I compile your examples and save to a micro SD, trying to activate on the display, throws an error indicating "Model Does Not Match NX4832K03511R" . Is there a way to change the model number going into your examples?
@AndreasSpiess6 жыл бұрын
You can change the model in the editor
@julio_clavijo7 жыл бұрын
Hi can you tell me the number of the video... "There is also a video concerning the definitions of the Serial connections. Maybe you watch this if not done yet."? I have seen the number 73 Is there any more about the serial port? Thank's for you Swedish, / Swiss blond / bald... accent :D
@AndreasSpiess7 жыл бұрын
It is #63
@julio_clavijo7 жыл бұрын
Yes I saw it But I use a mega, I have tx / rx0 and tx / rx2 On the other hand if I connect the gnd togethe,r does not turn on tft !! Thanks
@TorIvanBoine6 жыл бұрын
ok. I've gotten a step further. I've uploaded it to my Nano, connected the RX/TX pins to it. But the only thing that happens when I press the +/- buttons on the display, is that the RX light on the Nano blinks. The display doesn't update. (shouldn't the TX light also blink on the Nano?) I have checked that the page and component ID is correct. suggestions? update: changed the baud rate to 9600. that got the tx to work. in serial monitor I get this now: [680:0,3,buttonPlus] buttonPlusPushCallback textNumber.txt="71"⸮⸮⸮recvRetCommandFinished err it counts up and down when I press on +/- on the screen. but no change on the display number.
@AndreasSpiess6 жыл бұрын
That is already a lot. Now you have to find the reason for the error message. I cannot help from a distance.
@SzDavidHUN6 жыл бұрын
Disconnect your arduino from the computer and and power it externally (from somewhere where is no data connection to usb). Maybe the USB-UART chip messes up the communication between the MCU and the HMI display.
@quatumconnect8237 жыл бұрын
Hello Andreas Spiess , I have Nextion 7" Display and I am Trying to Develop Graphics for RO Water Purification Plant.There are Pumps,Valves,Sensors-Level Switches,Transmitters Controlled by Arduino Mega .I have Graphical Object for Mentioned Object in PPT .I want to Change Colour of Valve Depending on State of Valve Operation by Passing Integer Value to Nextion Display (0-Off State,1-ON State and 3 Trip State) for Same I have 3 Different PNG. Accordingly Colour of Valve Should Change.Which Function of Nextion I can Use for my requirment is it Possible to Display ON_Png and Hide Off_Png as Per Valve State or is there any other Work-Around. I am Even Facing Issue Regarding Transparency of Object and Placement of Object when I add it in Nextion Editor they all get Accumulated at Top Right. I am not Getting Starting Point of How I Can Proceed. Your Help would be Utmost Appreciated
@AndreasSpiess7 жыл бұрын
1. I would start with a simple example like the one I used in my video and start to change minor things. 2. All objects are inserted in the top right. Then you can move them with the mouse to where you want them 3. Changing of colors can be done in the attributes of the object (e.g. the buttons). 4. Maybe you also visit: support.iteadstudio.com/support/discussions 5. Unfortunately, it will take some time to find out all the different things.
@vincenzocristiano68986 жыл бұрын
is it possible to use this dispaly on an esp32? Thank you for that amazing videos
@AndreasSpiess6 жыл бұрын
You can use it on all MCUs with a serial connection.
@learnbox37837 жыл бұрын
Dear Sir, When I add picture of PNG the error occur "error fontfile ver" Please let me know any hint fix it.
@AndreasSpiess7 жыл бұрын
I do not know this error. Maybe you try to find the issue with Google or in the Nextion forum.
@learnbox37837 жыл бұрын
Thanks
@learnbox37837 жыл бұрын
Problem solved.
@MrCaats8 жыл бұрын
Hi Andreas, nice videos you have here!! I have one doubt. Imagine you start your LCD, with that value 50, and with the button you decrease until 40. If you turn OFF the screen, this value (40) will be stored? if you turn ON again, the 40 will remain? Thank you
@AndreasSpiess8 жыл бұрын
The values are never stored in the display, always in your processor. The display only displays (or inputs, if you touch it)
@alexiskurotsuki49908 жыл бұрын
How i can define "DEBUG_SERIAL_ENABLE", "dbSerial Serial" and "nexSerial Serial2"?, because i have this problem : C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'bool recvRetNumber(uint32_t*, uint32_t)': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:55: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'uint16_t recvRetString(char*, uint16_t, uint32_t)': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:114: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'void sendCommand(const char*)': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:166: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:171: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'bool recvRetCommandFinished(uint32_t)': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:192: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'bool nexInit()': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:226: error: 'Serial2' was not declared in this scope C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp: In function 'void nexLoop(NexTouch**)': C:\Users\asus\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master\NexHardware.cpp:242: error: 'Serial2' was not declared in this scope. I`m a begginer and i can find the error.
@AndreasSpiess8 жыл бұрын
Watch my video #63. Maybe it helps
@alexiskurotsuki49908 жыл бұрын
Thank you very much, i found my problem with the help of your video.
@xeiron835 жыл бұрын
Hat jemand noch die Version 0.41 zur Hand? Die neue Version ist mit Simhub nicht mehr kompatibel weil die structur-Datei fehlt :-(
@brunokc1008 жыл бұрын
How do i display a number like 0,00. i have tryed but no luck
@AndreasSpiess8 жыл бұрын
did you try dtostrf(floatVar, minStringWidthIncDecimalPoint, numVarsAfterDecimal, charBuf); instead of itoa?
@yuritkachov37627 жыл бұрын
Hi Andreas! I have just uploaded Russian subtitles for this video and translated the Title and the Description to Russian. Please accept it! Thank you for your work.
@AndreasSpiess7 жыл бұрын
I think, they should now be accepted. Thanks for your work!
@yuritkachov37627 жыл бұрын
Yes it was accepted the next day I had it uploaded.
@ManuelCastillo-kq3xy5 жыл бұрын
do you share code nextion and ino, of acuarium demo? please?
@AndreasSpiess5 жыл бұрын
Maybe you read the comment of the video?
@ManuelCastillo-kq3xy5 жыл бұрын
Andreas Spiess I don’t read after send the comment.... jajaja. Thx!!!!
@brunokc1008 жыл бұрын
superb video.. Hope you make more of thes videos...
@AndreasSpiess8 жыл бұрын
+Bruno Christensen Thanks. The next is in the works....
@uthai25126 жыл бұрын
Dear Sir, this video is very helpful for me. but when I try and follow with your instruction I got some error about "NexHardware.cpp:242:12 note: in expansion of marco 'nexSeria' While (nexSerial.available() > 0). Please kindly help :)Br,
@AndreasSpiess6 жыл бұрын
Maybe you watch all my videos about Nextion displays
@uthai25126 жыл бұрын
I still try to watch all Nextion displays is could help ?
@federicoferrara1255 жыл бұрын
Ho provato e riprovato ,ma il N.50 rimane fermo.Compile ottima, debug ottimo ,id ottimi.Cosa devo fare ? Grazie
@AndreasSpiess5 жыл бұрын
Sfortunatamente non riesco a fare il debug remoto
@PTinvest3 жыл бұрын
can you zoom your recording video to see where you clicked
@AndreasSpiess3 жыл бұрын
This is an old video and I cannot change it :-(
@abrievisagie73558 жыл бұрын
GREAT video! Thanks. Where can I find the link to the files for the aquarium example?
@AndreasSpiess8 жыл бұрын
It is now uploaded on github. See link in comment.
@johnmoore42488 жыл бұрын
you make my nextion test easy. Company tutorial can't give any help. thanks alot. I am waiting for next tutorial about that display.
@AndreasSpiess8 жыл бұрын
I am glad to hear this. Thanks.
@jacquesadendorff11757 жыл бұрын
Can you do the couter without doing the code on the arduino?
@AndreasSpiess7 жыл бұрын
I do not use Nextion without a microprocessor.
@jacquesadendorff11757 жыл бұрын
Andreas Spiess thanx for your reply.
@bosss66668 жыл бұрын
Hi what version do you use? Is good standard? "S" = Standard, "E" = Enhanced
@AndreasSpiess8 жыл бұрын
+Bos Video Standard
@bosss66668 жыл бұрын
Ok thanks. I was today order 3.5 Standard from ALiexpres. :-)
@ArcanePath3608 жыл бұрын
I'm having nightmares getting started. Every time I try to compile I get this on all my pictures: Error:degrees.pic InputVal Invalid:Invalid Pic ID Can someone tell me why? I followed this practically to the letter! Thanks
@AndreasSpiess8 жыл бұрын
I assume that "degrees.pic" is the filename of the picture. I just tried, imported a png picture, assigned it to an object on a page and compiled withour problems. What kind of file format do you use? How is the picture presented in the lower left corner? Do you see it in the "picture" tab?
@ArcanePath3608 жыл бұрын
Hi Andreas, I figured it out.. my buttons didn't have a "pic 2" selected for the press, and some of my other pics I selected crop picture, but didn't select the picture afterwards. Thanks
@soapyogapranata43844 жыл бұрын
Hei.... dude this is not working, when i compile that program an error like this 'NextionText' does not name a type... WHAT THE HELL
@AndreasSpiess4 жыл бұрын
This is an old video. So it is well possible that the code does not work anymore.
@markharrington58267 жыл бұрын
Apsolutley brilliant loved your presentation Thankyou
@AndreasSpiess7 жыл бұрын
You are welcome!
@williammai10568 жыл бұрын
Hallo, ich habe 2 Fragen zum Display, die in den beiden Videos leider nicht angesprochen wurden. 1. Kann man das Display bzw. dessen Beleuchtung ausschalten, über den Microcontroller oder sogar über den Touchscreen. (Hintergrund ist, dass das Projekt mit dem Display auf meinem Nachttisch landen wird. Wenn das Display nicht wirklich dunkel ist, stört das beim Einschlafen) Falls ja, ist ein Aufwecken über den Touchscreen möglich? 2. Ist die Kommunikation mit dem Microcontroller auf 5V oder 3,3V Basis? Beim ESP8266 ist das ja nicht ganz uninteressant. Ansonsten muss ich ein dickes Lob ausrichten, dieser Kanal ist echt spitze und ich verfolge die Videos mit Spannung und freue mich über jedes Neue. Gruß aus Deutschland. ;)
@AndreasSpiess8 жыл бұрын
1. Du kannst das device bis auf 0 dimmen. Und wenn du einen Hotspot über das ganze display legst, kannst du es wieder "aufwecken" (in wirklichkeit einfach das dimmen ausschalten. Das Nextion bleibt allerdings voll eingeschaltet und braucht auch Strom 2. Es kann mit 5 Volt auch an der Seriellen Schnittstelle betrieben werden. Die Versorgungsspannung ist sowieso 5V
@AndreasSpiess8 жыл бұрын
Intern läuft es auf 3.3V
@rahulbasavaraj43632 жыл бұрын
Sir how to use any play Store app in it
@AndreasSpiess2 жыл бұрын
I do not think that is possible.
@AMerrahi8 жыл бұрын
Thank u for this good video.I use TJC8048T070-011R tft screen (it is usart not nextion screen).My question is :Does th nextion.h library adequate or i must use usart library? Thank u
@AndreasSpiess8 жыл бұрын
I just googled the product and it looks like it is a Nextion. If not, I know nothing about it and never would buy it. Without proper support (and this is still not the case with Nextion Extended version), the product will be more or less worthless for me.
@d3xterown8 жыл бұрын
How is this display outside in the sun?
@AndreasSpiess8 жыл бұрын
Since I am travelling I do not have access to the device. Probably anybody else knows?
@knaguy7 жыл бұрын
Thanks so much, you got me up and running very quickly
@AndreasSpiess7 жыл бұрын
+Kenny Good to know. Thanks!
@learnbox37836 жыл бұрын
Sir,I am using library you given but it cannot work. \
@learnbox37836 жыл бұрын
When compiling Long Error occur "Error compiling for board Arduino Nano." I am using your example files and your ITEADLIB_Arduino.........
Very interesting topic. Thank you for your videos! I am not a programmer and I find it difficult to understand. In my opinion it is very difficult. For example how to make a simple withdrawal of the variable displayed in the text. For several days I did not get. Where can I see and read the instructions on common activities? Sorry for my English))
@AndreasSpiess8 жыл бұрын
What do you mean with "withdrawal". What do you want to achieve? I have to say: To use these devices, you have to have some understanding of programming. I suggest, that you start with my examples of teh video. They should run. Please watch also video #63
@alien4ufo3646 жыл бұрын
Hi Sir, may you please make a tutorial about , how to make a simple keypad including numbers 0-9 and Clear and Enter buttons , and as we enter the correct code it leads us to a new page for controlling for example a LED and also we change the code.... please i've been looking for something like this in Internet but couldn't find it , you will be the first person making it, i'm using Arduino , i need this for my project. thanks
@AndreasSpiess6 жыл бұрын
You are welcome. I think it is not necessary: bfy.tw/KOOj
@alien4ufo3646 жыл бұрын
Thank you sir for quick reply but unfortunately there is no Arduino code for such thing. there were some samples of the keypads designed by Nextion Editor. i'm just noob at this and i even don't know how to code a button in order it prints a number in text box in nextion display and we can store that password in EEPROM by Arduino....i will appreciate if you can make something about it , cause i'm sure it can be a question for many people. Thanks
@TorIvanBoine6 жыл бұрын
change to what? 5:43
@AndreasSpiess6 жыл бұрын
I have another video which explains this.
@jackbartlett16676 жыл бұрын
He means this video in case you haven't found it: kzbin.info/www/bejne/jGqcfamvh7akqtE The KZbin algorithm is super bad, it doesn't even recommend me other videos of this nice gentleman just of other random click-bait guff
@vinco18 жыл бұрын
You should make a video about android application called Blynk. You can communicate through wifi with your Arduino or esp8266. You can add a lot of widgets, but the best is that you don't need program. Just upload a sketch to your board and done! (Of course 99% of people are programing anyway when doing a project)
@AndreasSpiess8 жыл бұрын
+Vincent Wiedermann Thank you for the hint. It is definitively on my list, but so far, I it did not yet make it to the top ;-)
@vinco18 жыл бұрын
I have big troubles when finding it on Google (Arduino Blynk just shows guides for beginners) so here is link : www.blynk.cc
@mariusuuu5 жыл бұрын
on my UNO is dbSerialPrintIn a error
@AndreasSpiess5 жыл бұрын
Unfortunately, I cannot do remote debugging
@behzadabf2 жыл бұрын
suppper...i realy need this... can you please make video about windows ce diy board.please. thanks
@AndreasSpiess2 жыл бұрын
I have no such plans.
@MrRicardosgeral6 жыл бұрын
Congratulations on your videos Could you do a tutorial using the nextion with a raspberry. There's few info on the use of it with RPI3 keep the good work Swiss guy
@AndreasSpiess6 жыл бұрын
I am not sure if this is a good idea as the RPI already has a graphical user interface. For the smaller devices the Nextion ios a good device, but maybe an overkill for the RPi.
@kenfer52387 жыл бұрын
error: macro names must be identifiers I'm using a Leonardo Arduino I have written the same code excepted the dbSerial that I have not write and it send me this error, help me please
@AndreasSpiess7 жыл бұрын
You have to be much more specific. Remote diagnosis is a complicated business. Maybe you google your error message?
@kenfer52387 жыл бұрын
I have post on the Itead forum Patrick Martin helped me thank you anyway. But thank you too for the tutorial it helps me a lot :)
@kenfer52387 жыл бұрын
I have a new problem now, yesterday the number increased/decreased when I pushed/released but now it doesnt work on the serial monitor I can see "recvRetCommandFinished err "
@AndreasSpiess7 жыл бұрын
The usual question is: What did you change since then (Nextion File/ Arduino file?)
@kenfer52387 жыл бұрын
Oh I found what was the problem, the last day I missclicked I have deleted the text component so I replaced it and I forget to rename It.... I'm sorry for the trouble! And thank you for your answers and this tutorial :)
@learnbox37836 жыл бұрын
Please let me know any solution for it.
@rimshanaz41786 жыл бұрын
you have to change the #define nexSerial Serial2 to #define nexSerial Serial remove 2 .. I do the same ..but i am working with arduino uno
@learnbox37836 жыл бұрын
Rimsha Naz Thank you. Yes I changed it but serial monitor do not show output but only few words with boxes.
@babyworld2436 жыл бұрын
change the baud rate might be baud rate issue.
@TheWdvtube8 жыл бұрын
i'm also learing alot from your video's, i'll have the 7" nextion with a arduino mega 2560 r3. building my arrduino aquarium controller.
@AndreasSpiess8 жыл бұрын
+William de visser Wow, 7". This is nearly the size of many aquariums ;-) Good luck with your project.
@TheWdvtube8 жыл бұрын
+Andreas Spiess 7inch nextion i mean,
@AndreasSpiess8 жыл бұрын
+William de visser It was just a joke. As you know, I have a 3.5 " display. So, I think, a 7" is quite a big one... And it is quite expensive, too.
@TheWdvtube8 жыл бұрын
+Andreas Spiess on ebay, www.ebay.com/itm/381453161840?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT