Nextion+Arduino Tutorial #1 Beginner's Guide

preview_player
Показать описание
I show a few examples of what you can do with a Nextion display and Arduino, and how to do it. For this 1st tutorial I will only send data from Arduino to the display.

Note: On the video I said "microseconds", but it's actually milliseconds.

Recommended Tools:

Note: As an Amazon Associate I earn from qualifying purchases.

Quick Start Guide:

Nextion Instruction Set:

FAQ:
Why I am not using any library?
The official library is too complicated. Sending data without the library it’s actually easier and straight forward.

Why I am not showing how to send data from the nextion display to arduino?
For that, I would have to use the nextion library, and actually it's easier to send data to the display without the library. The tutorial for sending data from the display to arduino is on my 2nd video of this series.

Why I didn’t connect the blue cable to the Arduino board?
For two reasons: 1st on this tutorial we are not transmitting anything from the Nextion display to the Arduino board so TX on the display can remain disconnected. 2nd the Arduino Nano (and Arduino Uno) only have one serial port that we also use to send the sketch. If you connect the TX blue cable of the display to Arduino RX it’s going to create a conflict and the uploading of the sketch it's going to fail.

What model is your display?
It's the 3.5" enhanced version NX4832K035.

Рекомендации по теме
Комментарии
Автор

This video got me started with the Nextion Display. It also inspired me to create about 30 videos on youtube to help others. Thanks a ton for your inspiration.

CheapControls
Автор

Just want to say thanks so much for teaching me so much about how to do this. I have fully learned how to programme an amazing looking touch GUI in the space of 12 hours. I couldn't do this yesterday .. Keep doing these amazing video posts !

duncansjhamilton
Автор

I like that you supply working example code and not only explain it well in the video, but the code is commented really good. I'm no programmer, so this makes it much easier for me. Thank you very much!

MegaScott
Автор

Muito bom!! Fiz muitos testes para entender como funciona o display usando apenas um Arduino nano e o IDE da Nextion que simula o display no notebook.
Treinei 100% dos comandos que precisei usar na minha aplicação com o PIC usando o Arduino Nano e depois fiz as bibliotecas em C para PIC compilador CCS e funcionou tudo.. Parabéns pelo Tutorial.

leorodrigues
Автор

One of the best examples on youtube for the Nextion display. Great Job!

bkhalterman
Автор

Thank you for the concise clear explanation of how to simply send text to the nextion display. Kudos!

torcuillt
Автор

Fantastic !!!. I have had a Nextion display for a while and have not been able to understand how to connect it with an Arduino this video is fantastic, great work and very well explained, music or no music great Keep up the good work for newb's like me

andrewpepper
Автор

thanks for a great project site, already thinking of ideas to enhance my simulators, F1, and Flight

jerrysedlacek
Автор

Easiest tutorial ever ! Can't wait for the second tutorial

jeromedormoy
Автор

This helps much when making a menu with pictures and touch buttons and stuff. Doing all in the video by code only would take days.

dtiydr
Автор

Thanks for the tutorial..
You guys can use this following code to reduce total line.
in loop section;
sendNoticeToNextion("t4.txt", "Hello from arduino..");

after the loop section;
void sendNoticeToNextion(String file, String text) // string file must be the object name from nextion display.
{
String command =
Serial.print(command);
endCommand();
}
void endCommand() // we called this part of code from other void
{
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
}

suloman
Автор

won!This is first time I have seen our Chinese HMI screen module on the YouTube!

higeek_
Автор

Awesome video! Just what I was looking for. Thank you for your time.

wartek
Автор

Brother, thank you for all the efforts you're putting in these videos they are very informative and well explained, i really appreciate it especially for students (19yo Btw)👌

lexander
Автор

many thanks for the clearly explanation. Keep up the good work

sangtaoviet
Автор

Amazing you can play guitar and program your Nextion at the same time!

barbienado
Автор

excellent tutorial, hoping to see more on sending and receiving data... thanks

tonyhodgson
Автор

Thanks for sharing ! I discover both your channel, and the nextion display. Subscribed and wondering where I have been, since it looks like this display has been covered numerous time on channel I already follow. Thanks again !

ghismo
Автор

Thanks for your tutorial! It is best tutorial about Nextion!

ANS
Автор

Hi
in Timer Event i wrote this code
if (n0.val > 99)
{
n0.pco = 63488
}
else
{
n0.pco = 0
}
if ( z0.val! = va0.val)
{
z0.val = va0.val
}
But after compiling it says
Error: :if (n0.val > 99)( Double click to jump to code)
Error: SYNTAX ERROR: Extra "{":{( Double click to jump to code)
May you tell me what can be the problem?
Thank you.

alienufo