For anyone wondering how to make your Nextion library work with SoftwareSerial 1. In your libraries folder, find the Nextion library. 2. Find the file called NexConfig.h and right click on it and click edit. 3. Find line 37 that says #define nexSerial Serial2 4. Delete or comment out that line and replace it with the following: #include extern SoftwareSerial HMISerial; #define nexSerial HMISerial
Is there any way where I could make that like speed controller where if I slide my finger up on the screen the speed of my ae: car goes up. Or something like that.
Dude this is completely awesome!!!! I’m in the “process” of trying to make a door lock for my family so they can go in and out and me and my wife not have to worry about the house being or not being locked. We have 6 kids and it’s hard to keep track of wether or not they locked the doors etc..... but you have opened my eyes in another way.... my hats off to you dude... I’m going to spread the word for ya
I need the intelligent version of Nextion’s touchscreens since they have the Capacitive touch displays, but they only have big sizes and I need s small size. Also I love to work with Nextion’s program: Nextion Editor. Anyone has some solutions or alternative ideas?
what is this error NumberPadUSBNextion:12:1: error: 'NexButton' does not name a type because it gives error in this line NexButton b9 = NexButton(0, 10, "b9"); // 9
Hi! Love your videos, and I am using this one as a guide for a final project for my Capstone course, but I keep getting an error: 'NexButton' does not name a type. Can you provide any advice or feedback on how to resolve this? Also, I have the user using the "Text Select" option which then populates to a button on another screen. Will the display be able to transfer that data to the Arduino to store and utilize as an integer for the hours and minutes of a timer? Thanks for your help and your great content!
If you set the buttons up to toggle, would you be able to program this so the button you push shows the condition of the button, i.e. if 1 is toggled on, it would keep 1 backlit until pressed again?
Bom dia amigo! Amigo estou criando um simulador de injeção eletrônica automotiva, e estou precisando de um programa específico, vc cria programas dessa área? Se tiver um contato posso te explicar melhor. Obrigado!
This is exactly what I need for my project build! If I needed to hire you to create me a custom design how should I contact you for details? Great video btw!
I have a question. Can i convert the numbers i send with the keypad into values? I need to send numbers to the arduino with the nextion keypad and save them into an int value. Is that possible or i would have to modify the entire thing?
Check out this picture of an interface I’m working on drive.google.com/file/d/10Ko_N3Rlvj644ZHcNwVhAl0VPEzF8L-t/view?usp=drivesdk I’m not too familiar with a elgato stream deck but I think what I made may be similar. Basically my device has a collection of “apps” that have keyboard presses associated with them. For example, the unlock button types my computer password and automatically hits the enter button. I would press that when I’m on the lock screen of my computer and it would automatically unlock my computer. The shortcuts button goes to a page with a list of internet shortcuts like TH-cam, google, amazon, etc. Tapping one force opens the internet browser and automatically goes to that website. And finally my favorite the mischief button. It has a list of different computer attacks. One of them opens up the command prompt, changes the text color to green, and types “you’ve been hacked”. Another presses alt+F4 which closes the window. So basically it’s a collection of keyboard shortcuts and keyboard presses on a single touch screen interface. Is that kind of like what you were talking about?
It’s pretty poor on the Nextion. Check out my other video th-cam.com/video/3kkCxFf6fRw/w-d-xo.html At 6:42 in that video I show the Nextion at different angles and it gets washed out as you look at it the long way. Tilting it on the short side seems to be ok though
The HMI file is the file to open project on your computer. To make the .tft file, click the compile button. Or newer versions of the Nextion Editor have a better way. You can do file, TFT file output, and then choose where to save it. It’s even got a button to open the folder it saves it to
Hi there. Very well put together tutorial. I am however, having a problem when compiling the sketch. Im getting a error that reads - NumberPadUSBNextion:14:1: error: 'NexButton' does not name a type NexButton nine = NexButton(0, 3, "b0"); Wondering if you know what this means and how to fix it. From what Im reading elsewhere is that the Nextion library is not loading up somehow.
I seem to remember getting that error at one point although I don’t remember why. I would make sure your Nextion library is properly installed under Documents>Arduino>libraries. Make sure the Nextion library has all the stuff in it in the main folder. Usually when you download a zip file, it has a folder within a folder which can mess up the compiler. Always close all sketches after changing any libraries
Yes but the code would be different. Since the Arduino Pro Micro has the 32u4 chip, it can use Arduino’s built in keyboard library. But the Mega has a different chip so it can’t use the built in library. However people have made keyboards with Unos and Megas. hackaday.com/2012/06/29/turning-an-arduino-into-a-usb-keyboard/
With small RAM on those Nextion TFT screens how can I know if the PNG images for a multi page product will work ? Let’s say I want to have 5 pages with 2 images per page (one for the pressed keys and another one unpressed keys). can I Load 10 different PNG images to Nextion TFT with just 2k of RAM?
I'd imagine the Nextion Editor knows how much RAM each screen has and wouldn't let you add too much data. When you click the compile or debug button it'll probably give you an error. However, I'm using the Enhanced screens and I've definitely had more than 5 pages each with more than 2 images per page and never had an issue
@@korbano yeah, that’s a good suggestion. I’ll try to upload the images in Nextion Editor. I hope it fully reflects actual hardware. mine is a basic model but I’ll give it a try.
@@korbano I’ve just found an interesting information regarding my model (NX4827T043-011R). It says 2kb RAM and 16mb Flash memory. There is a note saying 2kb is just for variables. Flash memory is used for Fonts and Images. Well. Not that big but better than the 2kb RAM. Logic in this statement is kind of weird but is good to know I have more room.
Not directly. You would have to manually scale the background picture and all the buttons down to fit your screen if you want to use my files. But this project isn’t super difficult to make from scratch. I wish the Nextion editor automatically scaled projects to fit different screens, but unfortunately they don’t do that
@@korbano I'm sorry But I have another question Can I use the basic type of nextion screen and how could the computer recognise that arduino as a keyboard
@@mustafa97radhwan yes, you can use the basic version. If you use an Arduino that has the 32u4 chip, the computer will automatically recognize it as a keyboard, just like any other USB device
bwahaha!!! 5-6 dollars on aliexpress and you can buy an actual numeric keypad for your laptop! that's what, four times cheaper than just the nextion display?? oh, jesus...
A touch screen can display anything and do any combination of keystrokes. You could make a single button type an entire essay if you wanted to. You can also control the mouse, relays for smart home automation, or any number of things a regular keypad can’t do.
For anyone wondering how to make your Nextion library work with SoftwareSerial
1. In your libraries folder, find the Nextion library.
2. Find the file called NexConfig.h and right click on it and click edit.
3. Find line 37 that says #define nexSerial Serial2
4. Delete or comment out that line and replace it with the following:
#include
extern SoftwareSerial HMISerial;
#define nexSerial HMISerial
Is there any way where I could make that like speed controller where if I slide my finger up on the screen the speed of my ae: car goes up. Or something like that.
Please Can You Tell Me Why i Am Getting An Error Saying "Nextion.h: No such file or directory
" ?
@@boffffff have you installed the nextion library correctly?
@@korbano now i have but now i get this 'NexButton' does not name a type; did you mean 'Nextion'?
@@boffffff forum.arduino.cc/index.php?topic=616143.0
See if that forum helps. I think there’s 2 different Nextion libraries
Dude this is completely awesome!!!! I’m in the “process” of trying to make a door lock for my family so they can go in and out and me and my wife not have to worry about the house being or not being locked. We have 6 kids and it’s hard to keep track of wether or not they locked the doors etc..... but you have opened my eyes in another way.... my hats off to you dude... I’m going to spread the word for ya
Glad you liked the design and good luck on your project!
Great vid! So clear and easy to understand without the waffle
thanks for the professional description
Thank you for the good example.
Please, how can I change the 8.9 communication pins, for 0.1 or 2.3? or other digital. Thank you
Hi very nice tutorial. Can you put multiple TFT image files on the system so you can programmatically switch between overlays?
No, you’d have to make it all in a single project and just put different overlays on separate pages
Perfect project! Thank you ! you are amazing!
Fantastic idea.
But how hard would it be to use a Rpi RP2040 based board instead of an Arduino?
Could this be made to control a cursor like a mouse? Like can it operate like a trackpad?
I need the intelligent version of Nextion’s touchscreens since they have the Capacitive touch displays, but they only have big sizes and I need s small size. Also I love to work with Nextion’s program: Nextion Editor. Anyone has some solutions or alternative ideas?
what is this error
NumberPadUSBNextion:12:1: error: 'NexButton' does not name a type
because it gives error in this line
NexButton b9 = NexButton(0, 10, "b9"); // 9
Hi! Love your videos, and I am using this one as a guide for a final project for my Capstone course, but I keep getting an error: 'NexButton' does not name a type. Can you provide any advice or feedback on how to resolve this? Also, I have the user using the "Text Select" option which then populates to a button on another screen. Will the display be able to transfer that data to the Arduino to store and utilize as an integer for the hours and minutes of a timer? Thanks for your help and your great content!
what is this error
NumberPadUSBNextion:12:1: error: 'NexButton' does not name a type
Awesome..... Logically it can be used to create custom deck too
If you set the buttons up to toggle, would you be able to program this so the button you push shows the condition of the button, i.e. if 1 is toggled on, it would keep 1 backlit until pressed again?
Pleas contact me by my homepage information if you still need it .
hi ..nice project....but rx and tx led they are always on
Bom dia amigo! Amigo estou criando um simulador de injeção eletrônica automotiva, e estou precisando de um programa específico, vc cria programas dessa área?
Se tiver um contato posso te explicar melhor. Obrigado!
This is exactly what I need for my project build! If I needed to hire you to create me a custom design how should I contact you for details? Great video btw!
How do I get the HM I file converted and put on a microSD card
I have a question. Can i convert the numbers i send with the keypad into values? I need to send numbers to the arduino with the nextion keypad and save them into an int value. Is that possible or i would have to modify the entire thing?
Pleas contact me by my homepage information if you still need it .
could you do this to make one of those 'elgato stream deck' things ? I would be very interested
Check out this picture of an interface I’m working on drive.google.com/file/d/10Ko_N3Rlvj644ZHcNwVhAl0VPEzF8L-t/view?usp=drivesdk
I’m not too familiar with a elgato stream deck but I think what I made may be similar. Basically my device has a collection of “apps” that have keyboard presses associated with them. For example, the unlock button types my computer password and automatically hits the enter button. I would press that when I’m on the lock screen of my computer and it would automatically unlock my computer. The shortcuts button goes to a page with a list of internet shortcuts like TH-cam, google, amazon, etc. Tapping one force opens the internet browser and automatically goes to that website. And finally my favorite the mischief button. It has a list of different computer attacks. One of them opens up the command prompt, changes the text color to green, and types “you’ve been hacked”. Another presses alt+F4 which closes the window.
So basically it’s a collection of keyboard shortcuts and keyboard presses on a single touch screen interface. Is that kind of like what you were talking about?
Hello! Does it resistive or capacitive touch screen on these Nextion?
How is the viewing angle on the screen? TFT's tend to be horrible.
It’s pretty poor on the Nextion. Check out my other video th-cam.com/video/3kkCxFf6fRw/w-d-xo.html
At 6:42 in that video I show the Nextion at different angles and it gets washed out as you look at it the long way. Tilting it on the short side seems to be ok though
Files arent saving as .tft, theyre saving as HMI and the screen wont recognize them. WHat do I do?
The HMI file is the file to open project on your computer. To make the .tft file, click the compile button. Or newer versions of the Nextion Editor have a better way. You can do file, TFT file output, and then choose where to save it. It’s even got a button to open the folder it saves it to
Great job! Can i know what arduino board do you use?
he is using an arduino pro micro but the leonardo works
Very nice brother 🥰
Hi there. Very well put together tutorial. I am however, having a problem when compiling the sketch. Im getting a error that reads - NumberPadUSBNextion:14:1: error: 'NexButton' does not name a type NexButton nine = NexButton(0, 3, "b0");
Wondering if you know what this means and how to fix it. From what Im reading elsewhere is that the Nextion library is not loading up somehow.
I seem to remember getting that error at one point although I don’t remember why. I would make sure your Nextion library is properly installed under Documents>Arduino>libraries. Make sure the Nextion library has all the stuff in it in the main folder. Usually when you download a zip file, it has a folder within a folder which can mess up the compiler. Always close all sketches after changing any libraries
@@korbano Thanks man. Yeah I think my library folder is pretty screwed up. I'll try cleaning it up. Thanks for the quick response.
Jaysun Spinks absolutely. Thanks for watching and subscribing!
@@korbano No worries brother. It was a worthy SUB. Just so you know your info helped and everything is working fine now. Cheers.
Thank you for this video
Cool Project :)
which software you use for GUI things for your touch screen?
I use the Nextion editor
Could i use Arduino Uno or Mega for this project ?
Yes but the code would be different. Since the Arduino Pro Micro has the 32u4 chip, it can use Arduino’s built in keyboard library. But the Mega has a different chip so it can’t use the built in library. However people have made keyboards with Unos and Megas.
hackaday.com/2012/06/29/turning-an-arduino-into-a-usb-keyboard/
With small RAM on those Nextion TFT screens how can I know if the PNG images for a multi page product will work ? Let’s say I want to have 5 pages with 2 images per page (one for the pressed keys and another one unpressed keys). can I Load 10 different PNG images to Nextion TFT with just 2k of RAM?
I'd imagine the Nextion Editor knows how much RAM each screen has and wouldn't let you add too much data. When you click the compile or debug button it'll probably give you an error. However, I'm using the Enhanced screens and I've definitely had more than 5 pages each with more than 2 images per page and never had an issue
@@korbano yeah, that’s a good suggestion. I’ll try to upload the images in Nextion Editor. I hope it fully reflects actual hardware. mine is a basic model but I’ll give it a try.
@@korbano I’ve just found an interesting information regarding my model (NX4827T043-011R). It says 2kb RAM and 16mb Flash memory. There is a note saying 2kb is just for variables. Flash memory is used for Fonts and Images. Well. Not that big but better than the 2kb RAM. Logic in this statement is kind of weird but is good to know I have more room.
Can i buy one from you?
Can you make a keyboard from it
Yes
because it gives error in this line
NexButton b9 = NexButton(0, 10, "b9"); // 9
Can I use nextion screen 3.2 with this project ????
Not directly. You would have to manually scale the background picture and all the buttons down to fit your screen if you want to use my files. But this project isn’t super difficult to make from scratch. I wish the Nextion editor automatically scaled projects to fit different screens, but unfortunately they don’t do that
@@korbano indeed I can create my own tft file but I asked about arduino code file
mustafa radhwan the Arduino code will work with any size Nextion Screen
@@korbano
I'm sorry
But I have another question
Can I use the basic type of nextion screen and how could the computer recognise that arduino as a keyboard
@@mustafa97radhwan yes, you can use the basic version. If you use an Arduino that has the 32u4 chip, the computer will automatically recognize it as a keyboard, just like any other USB device
can u please help me?! where can i finde Keyboard.h library?!
Nafe Alasfar it’s part of the Arduino IDE so it’s already installed
i have installed it already but i become always this warning whem i compile that i dont have it
Nafe Alasfar did you include it properly in your code?
@@korbano yes i have used the same code that u used
Nafe Alasfar which arduino board are you using?
I know you see me standing here
Naice
bwahaha!!! 5-6 dollars on aliexpress and you can buy an actual numeric keypad for your laptop! that's what, four times cheaper than just the nextion display?? oh, jesus...
A touch screen can display anything and do any combination of keystrokes. You could make a single button type an entire essay if you wanted to. You can also control the mouse, relays for smart home automation, or any number of things a regular keypad can’t do.