Thank you for your video, it has opened the door for me with the nextion display. My project is a multi screen EFIS for my Light Sports Aircraft (2 seater). The plan is two 3.5 inch displays and a 7 inch. The micro computer/s are ESP32. Will keep you updated as the system progresses. thanks again
@interlinkknight
4 жыл бұрын
Your project sounds awesome. Yes, please keep me inform about your project. My email is on my channel page
@checiui5736
2 жыл бұрын
Salut Ivan, dacă ești disponibil și dispus as vrea să-ți adresez niște întrebări despre cum as putea face un ecran EFIS prin intermediul arduino și nextion, mi se pare foarte interesant și m-ar ajuta foarte mult dacă ai vedea acest mesaj, mulțumesc anticipat!!
@beamertech1
4 жыл бұрын
I’m remaking the check control display in my 1985 BMW 635CSi to look modern and impressive. I have a lot to do and am currently brainstorming workflow charting all of the processes before designing my screens in CorelDraw. I’ve made a few but it’s super challenging. I’ll be referring to your videos as I complete the build. Keep your videos coming. They’re a HUGE HELP and I’m very grateful.
@passelig
4 жыл бұрын
REALLY well made video! I love the effort you have put into making it "to the point" and focusing on the difficult parts
@lanfrancosimoncelli3980
5 жыл бұрын
Finally someone who puts the sketch to help and not just a movie to show that it is cool Thank you
@omribarkan170
5 жыл бұрын
Hi, Can you share the sketch ?
@lanfrancosimoncelli3980
5 жыл бұрын
@@omribarkan170 Hi Omri, My project is opensource, you can find all information in this forum: www.psktrentunisti.it/psk/forum/7-autocostruzione/959-sostituzione-controller-yaesu-con-display-nextion.html?limitstart=0 The new video is here: kzitem.info/news/bejne/q4yQtZ-da4hzlaw
@experimentboyTV
5 жыл бұрын
Thanks for the great video! However I'm having issues with a Teensy 3.6 and a Nextion 3.5". In one way I can send text info from the teensy to the display and change the text inside a button, but nothing happens whenever I press buttons I created... I've tried everything :(
@experimentboyTV
5 жыл бұрын
Found the issue, Serials 1 to 3 wouldn't work, I had to use Serial4 and set it in NexConfig.h too
@nguyennguyenoffical
3 жыл бұрын
@@experimentboyTV I have a problem with the button is not responding, I use nextion screen 3.2, can you help me?
@aialik29
4 жыл бұрын
You are so right about not using the Nextion library to send to the display. I had everything coded correctly using the library but the Nextion was not responding reliably. So I changed to sending data to Nextion using the plain simple print/write statements like you say to use. When I do that everything works right. Thanks.
@interlinkknight
4 жыл бұрын
I'm glad i could help
@emil.mammadov
4 жыл бұрын
Man you saved my day with that Send Component ID thing. I appreciate you
@interlinkknight
4 жыл бұрын
:)
@MyViewsOfCornwall
5 жыл бұрын
Many thanks, excellent presentation and commented coding. I hadn't figured out there is a PushCallback as I'd based my work on the CompButton example (uses just Pop) so I'd spent a couple of hours wondering why buttons only invoked the Arduino routine on release... So wish KZitem had suggest your channel sooner before several others. Thank you again.
@interlinkknight
5 жыл бұрын
That's great. I love helping. If you have a question about my examples let me know.
@wonkastudio-johnny
6 жыл бұрын
you are best so far in explaining the nextion displays.thank you for all your hard work and R&D. please make more videos !!
@interlinkknight
6 жыл бұрын
My pleasure. So far the only video about the nextion display that I plan to make is comparing the basic version vs the enhanced. I can't think of any other thing to make a video about that I didn't talk about already. Do you have any other idea about more videos about the nextion display? I am working on other new videos, but they are not about the nextion display.
@eligijuspranskunas3509
5 жыл бұрын
your code inside with explanations is very good and clear, thanks a lot!
@schneebrett903
3 жыл бұрын
Thanks for the tutorial. It was very helpful. I just needed to figure out why it didn't work. So I ended up downloading a few files with bug fixes by Ray Livingston (NexConfig.h, NexHardware.cpp and Nexhardware.h). But the main culprit in my case was probably the fact that I had Arduino Nano connected to the USB while using the RX0 and TX1 pins for serial communication. After disconnecting the USB and resetting the Arduino it suddenly worked! Before that I always had a get.value error (or time-out after using Livingston's bug fixed files). Now I can use a dual-state button for motor on/off and a slider to regulate RPMs through a motor driver with PWM. Project: I am designing a touch screen MMI for a cosmetic machine.
@rachelchow4512
3 жыл бұрын
so will you consider to look at touch screen display?
@leeharrington6438
6 жыл бұрын
This has been a big big help - so many thanks for this!!
@interlinkknight
6 жыл бұрын
I am glad. If you have any problem, let me know.
@alien4ufo364
6 жыл бұрын
Hi i'm wondering if this sketch run on your arduino cause when i upload the whole code it messages... C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\HardwareSerial.cpp:203:1: internal compiler error: Segmentation fault } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status compilation terminated. c:/program files/windowsapps/arduinollc.arduinoide_1.8.15.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.
@betoarango1772
6 жыл бұрын
This clears up so many questions. Thank you very much for this video as well as the sample sketch.
@interlinkknight
6 жыл бұрын
Enjoy.
@becky3505
6 жыл бұрын
Hiya, Thank you for taking the time to post the videos. I have a large RC project that include touch screen to control multiple distances on a single stepper.
@interlinkknight
6 жыл бұрын
Sounds nice. Do you have a video showing your project?
@TheOleHermit
2 жыл бұрын
Thank you for doing this Nextion tutorial series. I plan to use the Intelligence model as 2 dimensional 'slider' to control X & Y gains of a laser controller. IOW, sliding from bottom left to upper right increases both X & Y. Sliding in a circle changes the symmetry of quadrature waveform pairs or the overall image. Of course, a dot will be required to indicate the current position, as well. I've never seen any similar HIDs on any other controllers, but it is much needed in laser controllers to combine two x & y sliders (requiring 2 hands) into a single touch pad (requiring only one finger). There are never enough hands for a single laserist to keep up with a 4 piece band nor orchestra in real time.
@interlinkknight
2 жыл бұрын
That sounds really cool. If you can, post a link of a video showing that project. I would love to see that
@TheOleHermit
2 жыл бұрын
@@interlinkknight Yeah, me too. Lots of R&D ahead, but that's part of the challenge, isn't it? Just hit snag with my Teensy's audio DACs being capacitor coupled, so they filter out DC offests, like beam positions and DC color control. 🤔 This project could take months to complete, assuming that everything works like it's supposed to. Shoot for the stars and wear a parachute, right?😎
@interlinkknight
2 жыл бұрын
Totally! Good luck
@sirthomas2591
4 жыл бұрын
You were sent from coding heaven. Thanks a million. Now I have a chance. Thats a lot of work you've saved me.
@matzs.5168
6 жыл бұрын
Thanks for your Nextion tutorials!! Great Work!
@REXONCROSS
5 жыл бұрын
Thanks a lot for your help mate. This is the perfect tutorial for all my questions.
@CleancutCampers
5 жыл бұрын
Thank you so much for this. I've been searching so hard for the information in this video. Keep up the good work.
@korbano
5 жыл бұрын
I have a textbox on the Nextion and I need to get the value of the textbox as a String on the Arduino. It looks like the code for this video uses: memset(buffer, 0, sizeof(buffer)); t0.getText(buffer, sizeof(buffer)); But when I do Serial.println(buffer); it prints out [1296:1,14,b11] recvRetString[0,] How do I get it to print the value of the textbox?
@interlinkknight
5 жыл бұрын
I already show how to do what you asked in minute 8:50
@korbano
5 жыл бұрын
@@interlinkknight that shows how to get the text to the arduino and then back onto the nextion, but I was looking for how to get that text into an integer on the nextion. The following worked: String inString = buffer; number = inString.toInt();
@interlinkknight
5 жыл бұрын
Oh. Good to know.
@ohmedarick1
4 жыл бұрын
Thank you for your time and effort. Great video!!! Help me understand better the nextion library.
@deeptibaviskar6456
3 жыл бұрын
Thank you for the excellent learning video. Helped me a lot.
@interlinkknight
3 жыл бұрын
I'm glad
@rishisoni1782
Жыл бұрын
This was very helpful. Thank you.
@frettedheart
2 жыл бұрын
Absolutely perfect! Thank you very much for sharing the details of your code.
@interlinkknight
2 жыл бұрын
I'm glad I could help
@marcelomacedo1022
2 жыл бұрын
Congratulations on the excellent tutorial.
@sebastianm7894
5 жыл бұрын
Thank you my friend! You form Beginners to Amateurs.
@NikolayAgopyan
6 жыл бұрын
Thank you for the great tutorial, answered LOTS of questions!
@interlinkknight
6 жыл бұрын
I am glad it helped. Cheers.
@glynnmason8205
6 жыл бұрын
I like this display it makes displaying different things easy good video you have done
@javierviana96
2 жыл бұрын
Dude I've looking for a good detailed video for ages get a like and a subscribe, you're my savior
@interlinkknight
2 жыл бұрын
I'm glad I could help :)
@imabozoMeng
11 ай бұрын
Fantastic video, man! Thank you 👌
@AndreAnaPena
6 жыл бұрын
Just what I was looking for! Thanks so much!!!
@interlinkknight
6 жыл бұрын
You're welcome
@claybeard1
6 жыл бұрын
very clear explanation, great detail in the arduino file, many thanks for this upload!
@interlinkknight
6 жыл бұрын
:)
@werdy64
6 жыл бұрын
Hi. In case any problem with Nextion.h library you can send and receive data from any platform of Arduino to Nextion desply. String incStr; //temporary receiving string void setup() { Serial.begin(9600); } void loop() { //continuously listening, receiving, combining and writing to incStr if (Serial.available()) { char inc; inc = Serial.read(); incStr += inc; if (inc == 0x0A) {// in case "CR" applying to AnalyseString(incStr) AnalyseString(incStr); incStr = "";//at the loop end temporary incString to be empty } } } void AnalyseString(String incStr) { if (incStr.indexOf("xxxx") >= 0) {//event provided the lcd has sent "xxxx" //do something for event xxxx } if (incStr.indexOf("yyyy") >= 0) {//event provided the lcd has sent "yyyy" //do something for event yyyy } } /* In the lcd Nextion to be code for event "xxxx" print "xxxx" printh 0d 0a for event "yyyy" print "yyyy" printh 0d 0a 0a - means "CR" or carriage return */ /* If you wanna to send something to lcd pls use the followed construction for text ... SendData("t0.txt", "+1")//"t0.txt" and "+1" for example only ... void SendData(String dev, String data)//where dev - is object name of Nextion lcd; data - text to be send to this object { Serial.print(dev); Serial.print("="); Serial.print("\"");//in order to send to text field of the Nextion lcd double quota is obligatory before and after text to be sent Serial.print(data); Serial.print("\""); Serial.write(0xff);//obligatory triple 0xff at the and of this construction for Nextion lcd Serial.write(0xff); Serial.write(0xff); } */ /* if you wanna send number to the number field of the Nextion lcd double quota DOES'N be used and "String data" to changed -> int or something else */
@omribarkan170
5 жыл бұрын
Hi, First, I want to thank you for your very nice and clear example. It taught me a lot of things. And second, I have a few quetions: 1. In your example, you've changed the value in page 2, box "n0" between 0 and 1, by pushing butten "c0" (number3) but I didn't see where do you change the value of "number3". 2. How can I use softwareSerial in this example ("SoftwareSerial HMISerial(10, 11);" ? 3. If I want to play with this example, and follow the values, how can I do this, or in different words, how can I debug the sketch? 4. Where can I find the command list for Nextion, like " c0.getValue(&number3)", "Serial.print(number3)".......etc. Thanks, Omri
@interlinkknight
5 жыл бұрын
I am glad you like the video. To answer your questions: 1. In page2 object n0 is showing the page number between 1 and 3. That's sent by arduino. 2. I don't recommend using software serial with the nextion library. It doesn't work well. The only way the software serial works with the nextion display is if you want to only send data to the display, and you can do it normally as you would with any other serial device. 3. I don't understand the question. 4. I don't understand the question.
@MrJordinhand
5 жыл бұрын
Thanks for the video, great help!!!!
@MRgamer-gg6in
2 ай бұрын
Thanks Really Helped
@robertsatoer4668
5 жыл бұрын
seriously great vids to get me started. hope I will debug all the typo's before i get sick of it ;)
@charlesfernands
3 жыл бұрын
thank you very very very much bro!!!! your video saved me!
@interlinkknight
3 жыл бұрын
I'm glad. You're welcome
@sakphasukroop4035
9 ай бұрын
Thank you
@jarno4054
6 жыл бұрын
Very nice video, very good explaned and the instructions are very clear, thanks!
@interlinkknight
6 жыл бұрын
:)
@muralisubramaniam5622
4 жыл бұрын
LIke Thomas said.. you were sent by coding heaven. I do have some problems though when I interface with STM32 nucleo. Working on it...:)
@SuperADI2
6 жыл бұрын
You are very good in explaining and presentation I like it, Great job :)
@interlinkknight
6 жыл бұрын
Thank you. I really apreciated.
@gr7480
6 жыл бұрын
Thanks from Spain, good tutorial, very complet.
@captainspongeboy
6 жыл бұрын
You are a superhero! Thank you
@Electromaniaworld
6 жыл бұрын
sorry for non tech question, what software do you use for pc screen capture, i liked it when it zooms IN when you click at certain place on screen.
@interlinkknight
6 жыл бұрын
I use nvidia shadowplay that it's included on GeForce Experience but the zoom is not made by the screen capture. I zoom manually using my video editor (Sony Vegas) much after I record/capture everything.
@mrk2028
Жыл бұрын
Thank for your video. I think there is a problem with "nexLoop(nex_listen_list); // Check for any touch event". popmenus does not work or never. ..
@RoMecha_lb
3 жыл бұрын
hello again , i have one more question , if i want to read multiple texts from the nextion display, i cannot read more than one text , i tried multiple things like create a new character "char buzzer2" for example , it only gives me on arduino monitor one text(buzzer or buzzer1) only, do you have any suggestion that can help me sir Thank you
@idoumlatifa8520
5 жыл бұрын
hi thanks for your video it's really helpfull. I didn't anderstand why we have to use 0xff to show messages in nextion. Thanks again for the video and for help
@interlinkknight
5 жыл бұрын
I am glad you like it. Those 3 lines of "0xff" basically tells the display that is the end of the command. That's why you need it.
@jeromedormoy3932
7 жыл бұрын
Thank you ! That was very helpful !
@patrickvalk
5 жыл бұрын
Amazing sound improvement !!
@interlinkknight
5 жыл бұрын
Thanks. Yeah, I got a new mic.
@patrickvalk
5 жыл бұрын
@@interlinkknight really liked your videos, but with the new mic it's just so much better :)
@andrewpepper1
6 жыл бұрын
Thanks Thanks Thanks !!! Fantastic clear simple step by step explanation again Thanks
@interlinkknight
6 жыл бұрын
I am glad you find it useful. Cheers
@alien4ufo364
6 жыл бұрын
some sources write the library like this #include "nextion.h" instead of or NexDSButton bt0 = NexDSButton(0, 2, "bt0"); what is DS?
@interlinkknight
6 жыл бұрын
DS = Double State. It's one type of button in nextion when you press is ON and when you press again is OFF. The "nextion.h" vs doesn't matter. I can only help you if you stay focus on my examples. If you get information for any other source, I have no idea what you are doing so no way I can help you. And if you need to write and write a lot, better send me an email.
@alien4ufo364
6 жыл бұрын
Yes Please i'll appreciate if you give me your Email address...
@superisaac3303
2 жыл бұрын
so when i plug in the nextion to my computer, and launch into the game, the nextion doesnt receive and data from the game, any clues why this has happened?
@bobpaydar
3 жыл бұрын
thanks for very good tutorial 👍🏻🌹
@rachelchow4512
3 жыл бұрын
Hi bob will you consider to use some other brand touchscreen display?
@althuelectronics5158
4 жыл бұрын
After editing and looking to upload, on the Adino board but not upload error. Please helping sir
@naveenshetty2891
6 жыл бұрын
hi, finally i was able to make it work, instead of putting in the arduino code, i put it under nextion pre-initialization section ( bauds= 115200).
@interlinkknight
6 жыл бұрын
Some how the display was not receiving the baud change command. Now that you successful change the default baud rate of the display, you can now remove that code out of the pre-initialization.
@naveenshetty2891
6 жыл бұрын
Thanks Buddy , will do that
@interlinkknight
6 жыл бұрын
What compiler you where using when you had this problem? I know you solve it bu I really want to know what cause the problem.
@naveenshetty2891
6 жыл бұрын
HI, U mean arduino version? it was 1.8
@interlinkknight
6 жыл бұрын
Ok, thanks.
@anh6790
5 жыл бұрын
Great! Thanks for sharing to the world @@!
@renatocanhaify
5 жыл бұрын
Thanks for your work. I have a question: is it possible to make an xy plot with online data from arduinto. Let me explain: I am buiding an potensiostat, a devide which imposes a triangular potential ramp perturbation o an electrochemical system (batery for example) and record the current flowing between electrodes. I need to plot current in y axis and potential on x axis. Thank you.
@interlinkknight
5 жыл бұрын
The nextion display does support wave form that is similar to a xy plot. Is it enough? There's no native way to have a xy plot, but I imagine it could be done with some tricks and hard work. You know, maybe creating a matrix of square images and control each one as pixels. But not easy. If all you need is a simple xy plot, a conventional display would be better because you can control the pixels more directly and that way you have more freedom. The nexiton display is more for complex stuff that can't be done by arduino directly.
@drawingboard82
6 жыл бұрын
Thanks very much, you are a godsend. I like the display but there is so little useful information on how to use it. I am using mine as a display for an electric outboard motor for a small boat.
@interlinkknight
6 жыл бұрын
I am glad I could help. If you have a video or pictures of your project, leave the links here.
@thenderick7434
2 жыл бұрын
I tried to use your same program of arduino and nextion on my display and i can receive information but i cant send information to arduino, do you have any idea of what is this happening?
@unauthorisedname
2 жыл бұрын
It has been a while since you posted the video, I not sure if someone else have already commented something about the soft serial problem or if you have solved it, but, just to share the information, the problem probably was the baudrate, I was never able to make it go faster than 57600 using those atmega328 boards running at 16MHz.
@interlinkknight
2 жыл бұрын
I didn't know. Good tip. If you try it with the nextion display and it works, let me know
@althuelectronics5158
4 жыл бұрын
Hi sir. This is where the edited event first should be saved
@sanches2
2 жыл бұрын
Thank you!
@drakkorvladimir4012
5 жыл бұрын
Awesome! Thank You.
@mrk2028
Жыл бұрын
I could not simulate in proteus and nextion and virtual comm and ardunio... nextion sends data but ardunio can not send any dat to nexiton. Ithink pop push sub programs ca not be triggered by nexLoop (....) etc.
@jamescullins2709
6 жыл бұрын
very interesting video, I have learned a lot form it.
@interlinkknight
6 жыл бұрын
:D
@TheFlybyman
5 жыл бұрын
Will you make more videos about this ? Ill like to control some neopixel, and make pattons and color, when push bottons. And i can get it to work :)
@interlinkknight
5 жыл бұрын
I feel that I already showed everything relevant to show about the nextion display.
@TheFlybyman
5 жыл бұрын
WHY ? Nextion_Tutorial1_c:65:5: error: 'bt2' was not declared in this scope + 'NexDSButton' does not name a type
@interlinkknight
5 жыл бұрын
you are using the wrong library
@TheFlybyman
5 жыл бұрын
@@interlinkknight Thanks ! :) GOOD WORK!
@wenzhuoyili4781
5 жыл бұрын
@@interlinkknight I have the same problem, but I checked my library is correct apparently? pls help.
@interlinkknight
5 жыл бұрын
Watch my troubleshooting video
@THECAPTAIN-ev7bj
4 жыл бұрын
Best tutorial
@elricho72
6 жыл бұрын
Thanks for yours videos !!!
@interlinkknight
6 жыл бұрын
It makes me happy to help. So, my pleasure.
@atngo5599
6 жыл бұрын
I bought a HMI China. I couldn't use CallBack function in Nextion library. Dosen't it support for this HMI display? Thank for your attention!
@interlinkknight
6 жыл бұрын
I am not sure what kind of display you bought but this tutorial is for the nextion display only.
@simplyishan06
3 жыл бұрын
I have a text box where i punch in text on display using the alphanumeric keypad... When i press OK on that keypad, i wish to receive that text to my arduino mega rather than using a separate button to transmit that text... Could you help me with that?
@interlinkknight
3 жыл бұрын
I don't understand. Just make the OK button to send the text, like in my example
@paddy3290
Жыл бұрын
I am very stuck as to why my values are not displaying on my display, it is like the functions are not being called, any ideas?
@interlinkknight
Жыл бұрын
Watch the troubleshooting video
@naveenshetty2891
6 жыл бұрын
Instead of putting the code bauds=115200 in arduino code , can i have it set as a pre-initialization in nextion
@atmk
6 жыл бұрын
super helpful, Thank you
@twin331000
5 жыл бұрын
Hi I tred your example, but i got an error on : nexLoop(nex_listen_list); exit status 1 expected constructor, destructor, or type conversion before '(' token can you tell whats wrong
@interlinkknight
5 жыл бұрын
I never seen that error. Watch my troubleshooting video.
@turbo2ltr
4 жыл бұрын
I want to make a quad state button. I put the code in to rotate through the 4 different images. Is there a way to send back the PICC of an button? Knowing that it was pressed doesn't do me any good if I don't know what image it's currently showing.
@interlinkknight
4 жыл бұрын
You can't know directly, but you could do it storing the state of the button in a variable inside the nextion display. You can later read that variable from arduino.
@turbo2ltr
4 жыл бұрын
@@interlinkknight Thank you! I assume I can instead just have a regular button (or crop?) have it send the touch event and let the microcontroller manage the button state and push the correct picc for the crop area back to the display correct? I don't want to have to poll for changes.
@interlinkknight
4 жыл бұрын
Yeah, that's even better. Let arduino keep the state of the button and you just change the picture with arduino
@varunsam9947
4 жыл бұрын
I'm using a capacitive water level sensor.. once the water is empty the sensor detects and it should display "fill water" is this possible? Can you give me a clue? Please
@interlinkknight
4 жыл бұрын
Yes, it's possible. Use my example files as a guide
@menxxx1
2 жыл бұрын
thank you! Very intelligible. I'm trying to make a speedometer. But I ran into a Gauge problem. How to make it move from 315 to 230 in a circle from the interruption with Arduino.
@interlinkknight
2 жыл бұрын
I don't understand the question
@mucasa
4 жыл бұрын
Dear, Can you help me again? I have "Number BOX" with Number Keypad in the Nextion. I need to get the value to a "int" in arduino... Do you know ? Tks a lot.
@interlinkknight
4 жыл бұрын
I showed on this video how to do that
@roonyyoouness7115
3 жыл бұрын
Hello , can you help me please , i face a problem on my arduino code "error compiling for board arduino" I need your help quickly please if you can🥰🥰🙏🙏
@interlinkknight
3 жыл бұрын
I hope you realize that what you have is such generic error that it could be cause by a million things. Just try to start from the beginning, and replicate exactly what I have.
@roonyyoouness7115
3 жыл бұрын
@@interlinkknight what i did is exactly same as your tutorial , but my project on my arduino uno , i have installed multiple library and each time it gives me an error ,can you please send me here what is the suitable library should i put it and i will refollow the video from the beginning till the end .
@interlinkknight
3 жыл бұрын
I put all the links in the description long ago
@RoMecha_lb
3 жыл бұрын
Hello , How are you today 😀, i have one question and i hope you will help me , when i compile the code , it gives me an error (NexButton' does not name a type; did you mean 'Nextion') do you have any suggestion to solve this issues?😢 I will be very grateful to you if you help me ✋ thank you .
@interlinkknight
3 жыл бұрын
Watch my troubleshooting video
@eduardoantunes7374
4 жыл бұрын
Hello, I have one, and as I can se it's use serial comunication, did tou declare de pins for the comunication on Arduino ? I didn't see this on your code.
@interlinkknight
4 жыл бұрын
In arduino uno and nano there's only one serial port. Nothing to declare there
@przemek_kw
2 жыл бұрын
Hi, I want to go into Arduino with nexrion display in my very first project, is it possible to connect this display with Arduino on much longer wires, ex 4-5 meters? Can I use for that shielded twisted pair wire? Will it work?
@interlinkknight
2 жыл бұрын
I don't know, but I think it should work. Try it out and let me know
@cedricbron7472
5 жыл бұрын
Thanks a lot...amazing job...
@McuPro
4 жыл бұрын
Thank you very much.
@electricbit
5 жыл бұрын
thanks for helping me to understand, how nextion can communicate with arduino,
@interlinkknight
5 жыл бұрын
I'm glad
@manuelrodriguezlatorre8978
Жыл бұрын
Hello, I am communicating a s71200 with a nextion screen through a CM1241 RS232 module and a max3232 to convert RS232 to ttl. I have already managed to receive in the plc by pressing buttons created on the screen and numbers as well, with which I have achieved the reception part. However, when trying to send from the s71200 plc to the screen so that it shows me a numerical value in a field, I cannot get it to send and it does nothing, the Tx led on the CM1241 RS232 only blinks, so something is sending but it is not what correct. I have looked for information about all this in the instruction set but I can't find where I think the problem is, which is in the character frame. Does the display need a frame of characters or bytes to know or start receiving? I am trying to send in hexadecimal.
@interlinkknight
Жыл бұрын
First I suggest trying to run my example files in my first tutorial using an Arduino nano or uno. Don't do anything else until you have that working
@user-xm5gy8tp9y
4 жыл бұрын
Thank you for good example. But i have a problem. I wonder why i coudn't use getText or getValue function. My nextion library is ITEADLIB_Arduino_Nextion-0.7.0. I changed library version but it didn't work. If you know how to get it work, could you tell me what i have to do?
@interlinkknight
4 жыл бұрын
You tried my example, right? Are saying that my example works except the text?
@naveenshetty2891
6 жыл бұрын
A brilliant video session . There seems to be an issue with the Nextion library, whilst compiling( for UNO / Nodemcu) , it needs the following additional library ( SPI.H , SD.h , SoftwareSerial.h) as part of the sketch . The NexConfig.h file has been changed from "#define nexSerial Serial1" to "#define nexSerial Serial" for the UNO as suggested by your sketch
@interlinkknight
6 жыл бұрын
I never got an error. What make you say that the nextion library uses other libraries?
@naveenshetty2891
6 жыл бұрын
Well i downloaded the latest lib from github , on compilation it throws the error for want of the above additional library, i searched in the internet and look like there is a header NexUpload which is part of the library but is not required , i removed it and the compilation went fine without error. m now trying to get the code loaded ....
@interlinkknight
6 жыл бұрын
I still don't know how I never got that problem. I didn't have to modify the library, except the configuration file to set the "nexSerial".
@naveenshetty2891
6 жыл бұрын
well i was able to successfully test the scenario and blink the led. Special thanks to your tutorial which made it look so easy . Have one query , if during the process of communication if i accidentally switch of the nextion display . Switching it on again does not retain the button state . For advanced nextion boards we can use the wepo and repo function . But since i have a 2.8" standard display was thinking whether there is any way . i tried send serial message after the led is switched on / off with the button state . but it does not have any effect on the display . Think i need to write a pre-initialization code on the nextion to get the button state from the arduino board.
@interlinkknight
6 жыл бұрын
I am glad. To answer you, the display doesn't retain the button state. You could do that only with the enhanced version that has EEPROM. You could try using the EEPROM of arduino and send the button state to the display. It should work.
@yazani19
2 жыл бұрын
Hello Thanks for you Tutorial i have this error can you help Please: exit status 1 'NexButton' does not name a type; did you mean 'Nextion'? Thanks in advance
@interlinkknight
2 жыл бұрын
It means you have the wrong library
@jarosawmarek887
3 жыл бұрын
Is there a way to not to use buttons next/back but slide pages with a finger ??
@interlinkknight
3 жыл бұрын
I guess you could use a slider and write the code to change page with that, but honestly I prefer buttons for that since it uses resistive touch screen. There are models that are capacitive touch screen that might work better with that. Either way, it would not animate the pages like you think (side to side). It would load each page instantly without animation.
@eligijuspranskunas3509
4 жыл бұрын
Hi, great tutorial, but I'm stuck on my project, How to send variable from Nextion to arduino bigger than 255? for ex.: variable1.val=450 i need to get that number in to my arduino sketch (int var1) variable.
@interlinkknight
4 жыл бұрын
I don't know
@stevekimanthi9582
6 жыл бұрын
Hi, is it possible to change the state of a dual state button on the display with an external dual state button connected to the arduino? I want to control a light with both buttons so when i physically press the button connected to the arduino the button on the nextion should go to the same state as the physical button.
@interlinkknight
6 жыл бұрын
Of course you can. Just send the value to the button like anything else. Example: bt0.val=1 to press or bt0.val=0 to release. Obviously send also the 3 finishing lines as always. See my examples.
@wonkastudio-johnny
6 жыл бұрын
also would like to know, can you only write to the page that is currently displaying? if you write data to a non displayed page , will data be retained ?
@interlinkknight
6 жыл бұрын
The only object that it can receive data without being on the current page is the global variable, at least that I can think of. All the rest have to be on the current page. But why do you care about sending data to objects in other pages? What is the thing that you are trying to do?
@julio_clavijo
7 жыл бұрын
thank you very much!! Yes, better without music ... :) Sorry: The arduino code ?? maybe Github? Finally a good explanation! Thanks again!
@interlinkknight
7 жыл бұрын
The arduino sketch (code) it's already on the description, below the nextion project file.
@julio_clavijo
7 жыл бұрын
ops! thank's sorry...
@perksflo
2 жыл бұрын
Val numbers are sent easily although having some issues with send texts. Arduino Isn't letting me double quote to let me send txt over to the display? Any Advice?
@interlinkknight
2 жыл бұрын
Watch the troubleshooting video
@Dvance
2 жыл бұрын
@@interlinkknight Where can we find that?
@andpanca2759
4 жыл бұрын
why can't I run the getText function? even though other functions can be executed, do you have a solution?
@rachelchow4512
3 жыл бұрын
will you consider to look at other brand touchscreen display?
@razvandinica7705
6 жыл бұрын
Thanks for the great videos. Very clear to understand how to comunicate with Nextion displays. I still have an issue with getting data from the display. Not receiving the value with the get command. I am using software serial on Arduino Pro Mini " SoftwareSerial HMISerial(2,3) ". The receiving variable remains zero ( or the value what is given on the initialization ). Any ideea why this is happening ?
@interlinkknight
6 жыл бұрын
I tested software serial with the nextion display too and I got problems receiving data too. Solution: don't use software serial, unless is to only send data to the display.
@naveenshetty2891
6 жыл бұрын
HI, I tried in three different ways, am not sure where i am going wrong, every try i switch off the both devices First Try( It communicates - Led turns on) Serial.begin(9600); delay(500); //Serial.print("baud=115200"); Serial.write(0xff);Serial.write(0xff);Serial.write(0xff); //Serial.end(); //Serial.begin(115200); Second Try Serial.begin(9600); delay(500); Serial.print("bauds=115200"); Serial.write(0xff);Serial.write(0xff);Serial.write(0xff); Serial.end(); Serial.begin(115200); switch the power off and then conneted , led does not turn on Third try Serial.begin(9600); delay(500); Serial.print("baud=115200"); Serial.write(0xff);Serial.write(0xff);Serial.write(0xff); Serial.end(); Serial.begin(115200); switch the power off and then conneted , led does not turn on
Пікірлер: 606