Nextion Display LED On Off with Dual State Button & Image

  Рет қаралды 42,353

Saravanan AL

Saravanan AL

Күн бұрын

Пікірлер: 51
@ahmadhumadi3153
@ahmadhumadi3153 2 жыл бұрын
Thank you for your efforts, we'll explained and demonstrated, greatly appreciated 🙏
@joescopo8933
@joescopo8933 Жыл бұрын
Great video! I can now use a duel state button on my project. Thank you!
@bugkuska
@bugkuska 2 жыл бұрын
do you have example use more than 1 button?
@donaldwright2426
@donaldwright2426 4 жыл бұрын
I'm using your example code to stop and start a pulse motor that the Arduino MEGA runs. Your code is simple as Panali mentionned. Eventually it will be a 3phases PMSM... Just learning right now!
@chain3519
@chain3519 3 жыл бұрын
Let me go ahead and leave a like for this straightforward tutorial
@kamilzdunczyk2245
@kamilzdunczyk2245 4 жыл бұрын
nice example but what should I do if I want to have similar such buttons??
@badusha_ali_
@badusha_ali_ Жыл бұрын
sir nextion or dwin is better display
@rockrock4478
@rockrock4478 Жыл бұрын
How to add one or two more buttons to a sketch, please?
@adnanyounus6192
@adnanyounus6192 2 жыл бұрын
Hello Sir, Hope you are doing well. Please let me know is it possible to proceed same project with Raspberry Pi Pico ? If yes please make a toturial on it. Thanks
@Counterpoint69
@Counterpoint69 Жыл бұрын
😮Hello. Your code works well for one dual state switch. However it won’t work for multiple dual state switches on one page or dual state switches on several pages. I’ve tried the following code on an Arduino 2560 but it doesn’t turn on the built-in LED on the Arduino board (pin 13). I'm using a dual state button with this. Any help would be appreciated. #include "Nextion.h" int ledPin = 13; NexDSButton bt0 = NexDSButton(2, 9, "bt0"); uint32_t dual_state=0; void setup(void){ nexInit(); pinMode(ledPin, OUTPUT); } void loop(void){ bt0.getValue(&dual_state); delay(200); if(dual_state==1) { digitalWrite(ledPin, HIGH); } else if(dual_state==0) { digitalWrite(ledPin, LOW); } }
@BucuranIoan
@BucuranIoan 10 ай бұрын
i have on situation.... i using two page. in the 2 page i use the dual state button. if i change the state of the button from OFF to ON and back to the page 1, when i back again to the page 2, the button state is not keep the state, button state is off. why?
@carlossedanosanchez2132
@carlossedanosanchez2132 15 күн бұрын
Tienes que cambiar el vscope de local a global en la configuración de ese botón en nextion
@Microsree28134
@Microsree28134 4 жыл бұрын
Sir, Please make a video on Nextion display sleep and wake mode
@mouseminer2978
@mouseminer2978 4 жыл бұрын
Very nice. What if I have two switches. How Arduino is going to distinguish, which is on and which is off.
@rachelchow4512
@rachelchow4512 3 жыл бұрын
Hi will you consider to look at the DWIN display?kindly send me an email or message referring to my banner contact info.
@Microsree28134
@Microsree28134 4 жыл бұрын
Whu did yo put ") " in else if statement..?
@imextradeco.6689
@imextradeco.6689 4 жыл бұрын
Thank you for the easy-to-understand Tutorial. I have something to ask you. Could you give me any good ideas? My goal is to display the Arduino EEPROM stored values in a box (x0.val) on a particular page. I'm stumbling right now, I don't know how to get the page ID currently displayed on the TFT screen. Could you please teach me?
@itsme.6863
@itsme.6863 3 жыл бұрын
I learned something, so I clicked thumps-up. Thanks.
@pravado81
@pravado81 4 жыл бұрын
The coding that is used in the editor. What language is it?
@federicoferrara125
@federicoferrara125 4 жыл бұрын
Good evening, excellent project but this error appears to me: print bt0.val if bt0.val == 1 { t0.txt = "LED ON"} else if (bt0.val == 0) { t0.txt = "LED OFF"} SYNTAX ERROR :EXTRA "{{( appears. Can you tell me what to do thanks
@federicoferrara125
@federicoferrara125 4 жыл бұрын
Signor Savaranan,gentilmente puo' rispondere alla mia domanda?.Grazie
@pablosaizortuno4740
@pablosaizortuno4740 4 жыл бұрын
It is possible to do it without the screen? I mean, just from the debug mode simulation, connecting the computer to the Arduino
@chain3519
@chain3519 3 жыл бұрын
Probably not helpful to you now, but in the debug panel there's an option in the bottom left corner called User MCU input. This brings up a COM port selector tool. From there I'm sure you could hook in an arduino or even just simulate an arduino using PUTTY
@STMONDEO1
@STMONDEO1 4 жыл бұрын
Pete. Hi Saravanan. i am new to this Arduino Program. Trying to run your code but keep getting error message ( EXPECTED INITIALIZER BEFORE NUMERIC CONSTANT )
@kamilzdunczyk2245
@kamilzdunczyk2245 4 жыл бұрын
let me know if it works #define SWITCH_ON 1 #define SWITCH_OFF 0 const int led = 12; byte received_data[4]; int switch_pos; void setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.println("ready"); pinMode(led,OUTPUT); digitalWrite(led, LOW); } void loop() { // put your main code here, to run repeatedly: int i; while (Serial.available() > 0) { switch_control(); } } void switch_control() { int size = Serial.readBytesUntil(' ', received_data, 4); // First Byte has the switch position data switch_pos = received_data[0]; Serial.print("SWITCH:"); if (switch_pos == SWITCH_ON) { Serial.println("ON"); digitalWrite(led, HIGH); } else if (switch_pos == SWITCH_OFF) { Serial.println("OFF"); digitalWrite(led, LOW); } }
@Rebel-from-Hell
@Rebel-from-Hell Жыл бұрын
Did you ever figure this out Pete?
@muhammadazka1868
@muhammadazka1868 3 жыл бұрын
hello sir , i love your videos. but can you make a program similar to this but using software serial instead of rx tx in the arduino?? that would be more helpfull thanks :)
@electronic7979
@electronic7979 4 жыл бұрын
Nice project. Very good
@MrDelta830
@MrDelta830 3 жыл бұрын
Morning sir AL, with Nexion software it's possible to dowload a project from display to computer for make some modifications ? Example text, color, ecc. Thanks
@rachelchow4512
@rachelchow4512 3 жыл бұрын
Hi will you consider to look at the DWIN display?kindly send me an email or message referring to my banner contact info.
@palanik1960
@palanik1960 4 жыл бұрын
Excellent and simple. Good product demo.Can you please extend the project for practical application like home device control or as security application.
@donaldwright2426
@donaldwright2426 4 жыл бұрын
I use it to show the RPM, frequency of a pulse motor. Also instaured a dual button to start and stop the pulse motor. The pulse motor was in part 3D printed and salvage a relay coil that I modified to adapt as a stator coil to my 3D pulse motor. Regards.
@NRL_04
@NRL_04 4 жыл бұрын
I used it to make a "dark mode" switch for my wather station project. The limits are in your imagination.
@Tecnotronics223
@Tecnotronics223 3 жыл бұрын
Very very nice.... Regards to you 👍
@STMONDEO1
@STMONDEO1 4 жыл бұрын
Hi can not get to UPLOAD to my Arduino UNO. Can anybody help with this project. Thanks
@kamilzdunczyk2245
@kamilzdunczyk2245 4 жыл бұрын
you have the answer in the post below. let me know if it works
@АнатолийМ-ь9к
@АнатолийМ-ь9к Жыл бұрын
А у нас выключатели включаются в верх а в низ выключаются.
@forkus2000
@forkus2000 4 жыл бұрын
But this is a very bad solution , because you never send the id of the button to the microproccessor , whath happens if you have two buttons ? how can you detect from wich button send the command? do the same with 3 buttons ... and you see what i talking about....Thanks
@jokkiossaka3306
@jokkiossaka3306 4 жыл бұрын
No problem, every button have other ID...
@kritsadaonkhong3148
@kritsadaonkhong3148 4 жыл бұрын
Hello, I ran into this problem. I don't know how to fix the problem.
@kritsadaonkhong3148
@kritsadaonkhong3148 4 жыл бұрын
@@jokkiossaka3306 help me
@rachelchow4512
@rachelchow4512 3 жыл бұрын
@@kritsadaonkhong3148 Hi will you consider to look at the DWIN display?kindly send me an email or message referring to my banner contact info.
@pch4287
@pch4287 3 жыл бұрын
Very helpfull video.Thank you
@elizetebezerra3391
@elizetebezerra3391 Жыл бұрын
Comprei um celular,já faz 1mês e não chegou,e me cobraram também 77 90não sei de que
@surenderkumar-yi1ig
@surenderkumar-yi1ig 2 жыл бұрын
Very useful video thank you sir
@michaelnessim
@michaelnessim 3 жыл бұрын
link is down
@chandrapurnama6777
@chandrapurnama6777 2 жыл бұрын
i nned link driver ch340
@advancedperformance9721
@advancedperformance9721 3 жыл бұрын
Thanks alot sir
@daryl7237
@daryl7237 2 жыл бұрын
Hi there! i really like all your Nextion display video thank you ! it really help on some of my project, is there any way that i can message u when i face any coding problem? email
NEXTION HMI DISPLAY WITH ARDUINO -Getting Started with LED ON/OFF
22:13
Huge Nextion Touchscreen Display Examples | Video | Gauges | RTC
19:40
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
3D Printed Knitted Santa Clause
0:15
MIND 2 MAKE
Рет қаралды 4,7 М.
Nextion Brightness Slider - No Arduino Required
10:44
Budget Tool Reviews
Рет қаралды 19 М.
Can I Make QR Code Damascus?
19:23
Alec Steele
Рет қаралды 160 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,3 МЛН