#92 Nextion Display - pop up keyboard with the Arduino - no nextion.h library tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 มี.ค. 2020
  • This video explains how to send input data from the Nextion pop-up keyboard and then send it to the Arduino without using the Nextion.h library. I go over how to use buttons on the display to initiate the transfer to the Arduino. Then I go over how to have it transfer when the keypad is closed automatically.
    If you enjoy the content considering donating a cup of coffee at ko-fi.com/cheapcontrols
    You can sort and find videos better on at www.cheapcontrols.com
    I have started a group on Facebook to make it easier to interact with user-requested videos. Consider looking it up. pg/cheapcont...

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

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

    Thank you, advanced tutorial for me and i enjoyed learning new things.

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

      I also like to learn new things I am glad my video helped.

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

      @@CheapControls Thanks again. I can not send data to arduino from nextion. I read temperature from a sensor, print it on nextion. User can set a temperature value from nextion, when temperature value reaches the sensor value, heater stops. I was asking myself "how can i send user set value from nextion to arduino and compare it with the sensor value?" The answer to my question is your video, after 3 weeks of suffering and watching ypur video again. Now i understand :) Thank you, all the best.

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

    Hi
    Thanks for some great videos on using Nextion displays without a library, which I have been very pleased with.
    Thank you
    with best regards
    Tommy

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

      You are Welcome, Thank you for the kind words.

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

    Good Day Cheap Controls!
    I am amazed on your tutorials regarding nextion display without library so I tried your sample hmi and arduino codes. unluckily when i try to open the hmi file of this tutorial it says the resource file is damaged... please help I really want to learn ...Thank you!

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

      Did you try to download again? I will check on my end and if needed I will upload a new file. Thank you for watching

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

      I downloaded the file and it is working. I am using editor version 1.60.2

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

    I am trying to convert the string sent to the Arduino into an int. Any suggestions? For example, I want to change a predefined integer that I am using for a delay to the value that you have correlated with one of the numbers. Like if temp value sent is 86, I want to change the int value in Arduino to 86

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      a string "86" is converted with toInt() example int x = someString.toInt(); That might not be exact the syntax but it should be close.

    • @corywiegert1057
      @corywiegert1057 ปีที่แล้ว

      use the atoi function... it's designed to convert a char array to an int. here is a snippet of code from 1 of my working applications
      memset(buffer, '\0', sizeof(buffer));
      tHolder.getText(buffer, sizeof(buffer)); // reading the value from the Nextion variable set when the value is selected
      preSetNum = atoi(buffer);
      if (preSetNum > 0)

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

    Is there any ways to show sensor values from arduino in one textbox while in the other textbox we can show numeric keypad? Because it is always refresh the page if arduino send the data and the numeric keypad is also refreshed ? Thanks

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

      Are you saying that the Nextion page is refreshed when you send data from the Arduino? Or only when you hit enter on the Numeric keypad. You could make the text box global then it should hold during a page refresh. You can also write information to eeprom and read it back in on page load. I hope this helps and thanks for watching.

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

    Can post a quick schematic of how everything is hooked up such that the debug window for the Nextion display interacts with the Arduino serial monitor in real time (starting around 9:10)? If this is covered in a previous video, just a quick link will be more than enough help. Thanks in advance.

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

      check this video out, If it does not answer your question I will try draw something up. th-cam.com/video/Zh1kHsidlWE/w-d-xo.html I thought about putting full schematics in these but I have not had that many requests. I am currently doing a major upgrade to the cheap controls website that should make it easier to located information. Former art student? I am a tech guy that would love to be a former tech guy and current art student. Unfortunately I am not very artistic.

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

      That was very helpful, thank you. I was trying to troubleshoot why my Nextion wasn't talking to my Uno. I was able to use Terra Term to confirm that my Nextion was sending the expected commands. And I was able to use the Nextion debugger to confirm that the Uno was giving the expected responses. However, what's being weird is when I take my PC out of the mix entirely and plug the Nextion directly into the Uno. I made sure the Tx and Rx pins were hooked up correctly; made sure the grounds were connected. But, I'm still getting nothing. I haven't quite chased it down, but it may be that female header pins on the Uno are a little wonky. When I push the jumpers in, they don't feel terribly solid. I'll poke around some more tonight, but I'm definitely further along than I was last night.
      Thank you for your help!

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

      @@CheapControls Ok, *now* it's working. I used some different jumper wires. Thanks again!
      Also, how do you not have, like, a bajillion subscribers? Your videos are FANTASTIC and very helpful. I've been messing with these displays for years now and your videos are head and shoulders above the others here on youtube.

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

      I really appreciate the kind words. I am amazed at the number of views I currently have. When I started this is was more to document the videos for my own reference.

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

    Very nice!!
    how to send numerical value to arduino? its possible?
    Does nextion only send text to arduino? (strings)
    if i send a string can i convert to numbers on arduino?
    tks

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

      If you send "123" you can use toInt on the Arduino to convert it to an Integer. You can send numbers from the nextion. I know I have a video on it but I can't remember which one. I will see if I can find one and if so I will post it in an another reply to this comment.

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

      @@CheapControls Tks !! I'll look for it too. You have many videos !!

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

      Check out this one and see if it helps. th-cam.com/video/Fr34EQnlJwY/w-d-xo.html About a year ago I put up a video on using the Nextion with the Arduino but without the Nextion Library. I have made some changes in how I do this, so I have been thinking of remaking the video in a short series. As I plan this out I will make sure I have a video in the series on the difference between values and strings. Thank you for watching.

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

    how to lock the keyboard parameter setting , such that we can enter a number between max99 and min 10?

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

      When you exit the keypad the page you are on is refreshed. You can have the number field checked on load and if the field is greater than 99 set it too 99 and if it is less than 10 you can set it to 10. I have a few videos coming out but they are taking me a long time to setup. I will try to a short video on this while I am working on some longer ones.

  • @vp.8181
    @vp.8181 ปีที่แล้ว +1

    How do I read string commands from nextion. I am not able to read commands like temp*** ,the 3 star may have number from 0-100 so i want to read the first 4 letter and substring remaining 3. What's the ending character from nextion . I am reading char by char and appending until /n is received but this doesn't work . Also tried 0xFF but that also didn't work. Any suggestions

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

      Are you using the library. I do not make videos that use the library. Have you watched this video th-cam.com/video/b9j7fX45qDo/w-d-xo.html

    • @vp.8181
      @vp.8181 ปีที่แล้ว

      @@CheapControls no sir I don't use library i have been following your videos. Programmer the whole display but got issue there. So what is the termination charater? Like i use while (serial available)
      Char c = read one byte if that byte is
      than end command. But don't know why that is not working.
      Ok sir sure i will go though this video
      Thankyou for your help and you have done a really amazing work by creating these super simple tutorials.

    • @CheapControls
      @CheapControls  ปีที่แล้ว

      I use a ? as an ending delimiter. The Nextion does not add a
      . If you use the "prints" command it will only send what you tell it too.

    • @vp.8181
      @vp.8181 ปีที่แล้ว

      @@CheapControls ok sir got you. Will try something similar. Thankyou.

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

    Thanks for the videos. They are of a practical use. But I think the link to the files for this video go to the wrong project. DOH!

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

      Thanks I will look into it. I posted this last night. It takes me a bit to get everything up on the website. It should be tonight. Reply if you want me to comment here when I have them up.

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

      @@CheapControls
      Yes, please. Thanks.

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

      @@search4truth616 I thought I had replied but I can't find it. The link is up and should be working. The downloads should be there.

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

      @@CheapControls
      Would you indulge me one question? Can a simple fraction multiplication or division equation be performed on a Nextion?
      For instance, 12*.05 . I'm trying to compute wattage. That is 12 volts times 50 miliamps. Or dividing 1 by an integer? I'm trying to calculate Mhos (conductivity) from Ohms (resistance).
      Thanks, S4T.

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

      @@search4truth616 The Nextion only works with integers. No floating-point. The simple answer is no. But you can do something like 15 * 5 = 75 then display it as a string and add a decimal point to the front. You just have to remember as you work through the math that it 100 times the actual value. If you are familiar with modulus then you can do some manipulation. Check this video out and see if it helps. th-cam.com/video/qYIvy9RbSOc/w-d-xo.html If not I could look into creating a video to go over how to fake floating-point on a Nextion.

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

    sir how you make pop up keypads on your screen
    please sir help me

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

      That is a very involved question. You will have to submit a request at www.cheapcontrols.com for help.

  • @Elias-ict
    @Elias-ict 3 หลายเดือนก่อน +1

    Very Well ❤🤍💚

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

      Thanks for watching and taking the time to comment

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

    how to send text using qwerty? thanks

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

      Can you explain your project a little bit more. I am not sure if you mean directly or have the qwerty pop up keyboard tied to a text box and after you are don typing send the data or do you want to send the data while typing?

  • @user-lo1ec5fn3o
    @user-lo1ec5fn3o 10 หลายเดือนก่อน

    how to automatically clear the display of the keypad without using the delete button every time i input a new value

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

      Watch this video at about the 9 minute mark th-cam.com/video/XSSVtR4-ceU/w-d-xo.html

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

    very good but how to put a point

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

      If you mean decimal point. Nextion does not understand floating point numbers. Thanks for watching.

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

    Code like please Sri

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

    Hi! Nice video as always ... But ... where can I find the files? I tried to enlarge the page and copy ...
    If you want you can send them to vincadts@gmail.com!
    Thanks Vincenzo !!!

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

      Found!!!! It did not send me to the correct site page !!!

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

      I will look into the link. Thanks for pointing it out and happy to see someone using the files.

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

      @@VincenzoMavica Thank you for point the link issue out. I believe I have it corrected.

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

    it doesn't work for me... when i send the text it never goes to the conditions if(data_ecran.substring(0,9) == "catalogue") and if(data_ecran.substring(0,5) == "serie") heres my code : void loop()
    {
    if (Serial.available())
    {
    delay(30);
    while(Serial.available())
    {
    data_ecran += char(Serial.read());
    }
    digitalWrite(valve_air,LOW);
    }
    if(data_ecran.substring(0,9) == "catalogue") // appui sur le bouton envoi
    {
    digitalWrite(valve_occl_distal,LOW);
    // numero_catalogue = String(data_ecran.substring(4));
    send_String_txt(String(data_ecran.substring(9)), "tresult1.txt=\"");
    }
    if(data_ecran.substring(0,5) == "serie") // appui sur le bouton envoi
    {
    digitalWrite(valve_occl_proxy,LOW);
    // numero_serie = String(data_ecran.substring(4));
    send_String_txt(String(data_ecran.substring(5)), "tresult2.txt=\"");
    }
    digitalWrite(valve_air,HIGH);

    }

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

      I would add a line to print out the data_ecran value so you can make sure you are receiving the correct string. I am about 3 hours from leaving the country for a week. If you go to www.cheapcontrols.com and submit a comment I will help you when I get back.