137 Sending values and text #nextion to #arduino #tutorial

preview_player
Показать описание


Here are some affiliate links to products that help me make videos. This video also discusses the union.

For those that want something special

#nextion
#arduino
#display
#tutorials
Рекомендации по теме
Комментарии
Автор

Best video on YouTube about nextion great job . The send b01 requires a few hits to input new value. If using one serial port only

freytube
Автор

Many thanks for great job you guys are doing. Your videos has help me a lot.
And the most good things of your videos are point of not use Library, so can I understand how it works.

MichelMartins-hsvs
Автор

Thank you! As i commented in other video, this really helps! Many thanks for you effort and taking the time to explain at normal pace!

avrphreak
Автор

Hi!

Much needed, many thanks, you are too good with NEXTION as usual.

abhijitrashinkar
Автор

Thanks alot for this video. It was very helpful. I also found it easier to use serial2 and prints communication than the Nextion librarie.

ruben
Автор

Your excellent videos are what made me confident that I should be able to set up a Nextion tft with Esp32 demos d1 board.
I have had no problem in placing buttons and getting them to interact as required. However I seem to be a bit stumped in getting anything to go from the Esp32 to the Nextion or vice versa. I have set up the code with 2 serial ports and so far have no errors compiling. I definitely do not have a hardware problem as I have duplicates of everything. I can compile the respective codes and download to both the Nextion and the Esp32. In going through your code in this #137 video, I have a problem with.... prints "val".0. which throws up an error code... Invalid number of arguments. If I enter prints n0.val.0 I I get 2 errors....Invalid number of arguments. I have tried going to your site and downloading and copy of your code to try but the link is not working.
In you tutorial 59 you said that you couldn't get prints working. Have I missed something somwhere?
Finally I have a wretched error message says invalid variables page. Actually I dont have one as I deleted it! so have no way of getting error free code.
Can you help please. John

john
Автор

So when I do this, all it serial prints is ☐ and every time I hit send, it just prints another one.

vincentledbetter
Автор

for additional numbers to sent& receive I created two more unions , do I need to re name Val in nextion?
prints "Val", 0
prints n3.val, 0

to for example

prints "Val1", 0
prints n4.val, 0

etc
Regards

freytube
Автор

I am still learning I have an uno R3 and a nextion 2.4 discovery... but before I get too far I figure to ask my goal. I have a powered spoiler (via linear actuator ) for a vehicle and I had a cool idea to be able to see its position . Actuator has no feedback control so I cant use like a knob and use it to set positions like a dial.. So my idea was to make a cool custom gauge and "animation". I think im going to use a waterproof ultra sonic sensor to ping from the roof to the rear of the spoiler... Now I havent even looked if this is capable but will I be able to set images ( say like 50 images) to different MM values of the rangefinder? The DPDT momentary switch I will just keep separate but the nextion / arduino will tell me its position, lift or drag and degrees ( will be plugged in manually to the animation roughly )

DS-momd
Автор

could you do a video with Arduino portenta machine control and Nextion? using a RS485 to TTL convertor Thanks! Also where can i download the code you write as a reference?

JLopez-qwyd
Автор

First, thank you for creating this video.

Question: How do we approace the Send Value and receive if the sent vales are of different lengths?

In your example we know that each field is 3-characters in length (123, 456, 789).

What if we send 123 but next time it is 42 and then 12345..? How do we decode at the arduino side to ensure we get the correct characters and not mix fields 1 & 2 for example..?

Also, what if there is a decimal involved..?? 123.4

Thank you for your time

Hermit_of_the_Holler
Автор

thank you, but i am strugle to sending text(string) can u explain it to me?

cicicicil
Автор

Any idea why the endChar errors out with - non known conversion for argument 1 from 'String' to 'const char*', exit status 1, no matching function for call to

jwiedmayer
Автор

Quick question: When your declare in the Send Value botton:
Prints "val".0
Prints n0.val.0
Prints n1.val.0
Prints n2.val.0
What is that .0 at the end of each prints stand for? The number of the page?

Thank you before hand if this works, the Official library is a mess and the getValue function doesn't works, It's a shame they haven't update a new version since 2016

javierviana
Автор

Hello, I'm trying to understand your example, not obvious in English ... can your example be applied to a contact form?

dronie
Автор

It's hard to see the comma after val thank God for the nextion reference

DD-jjtc
Автор

bro, i want to make code for command led from nextion with 2 led
if value in n0 >= 10 and n1 >=20 both led 1 and 2 will be on
if n0 >= 10 and n1 < 20 led 1 will on and another one off
if n0<10 and n1 =>20 led 1 will off and another led will on
and if n0<10 and n1<20 both led will off


thank you

marthinvirgo
Автор

thank you very much for your tutorial
i have problem that the screen keep sending the error message i have no idea why
i have creat new nextion file with the same problem
can you explain why it happend
thank you

thecalipercnc
Автор

Hi, i am spending a lot of time trying to solve what I would have thought would be an easy thing to do. I have a string or text value in nextion. Lets say its "12.4". I want to change the graphic if that value changes to "12.6". I have tried to convert to a number and multiply by 10 to get 126 or 124 but no luck. It seems to drop the ".6" or ".4". I must be trying to do something that there is a better way to solve. Any ideas? got a video on this? btw, i am trying to solve this using the script in nextion. perhaps I should be trying to use the esp32 to send the decimal or number to nextion and acting on the incoming information.

jimbooth
Автор

Can you please make a video of the Nextion display with Arduino Mega, Uno or Nano
and a BME280 sensor without Nextion.h?
Output the three values (temperature, air pressure, humidity) from the BME280
in three X.float components on the Nextion.
thanks

Ron
join shbcf.ru