Arduino GUI Part 1 Communications

  Рет қаралды 165,622

Byte Me

Byte Me

Күн бұрын

Пікірлер: 108
@thehoneybadger9262
@thehoneybadger9262 7 ай бұрын
Very well done tutorial. If I could make one suggestion, it is to teach new programmers to always put the constant first in an expression that compares a variable to a constant, e.g. ' if ('A' == d1)'. This is a good practice to get into, because if you were to mistakenly type 'if (d1 = 'A')' instead of 'if(d1 == 'A')', the code would compile, you would assign the value 'A' to d1, and it would always evaluate to TRUE. By putting the constant first, if you mistakenly type '=' instead of '==', you will get a compile error. Sometimes bugs like this are easily introduced and easily overlooked.
@mugur4104
@mugur4104 10 ай бұрын
Best teacher i have seen in a very long time.
@omidsaadikhany1694
@omidsaadikhany1694 2 жыл бұрын
I've so much problems with Arduino serial communication and your explanation was really help full for me , thanks man .
@Overclocked2300
@Overclocked2300 Жыл бұрын
Just want to say thanks for this! Im not using an arduino but Im using a PIC micro. It works the same way once you get serial coms all set up :) but it works! Im going to watch your next video and then figure out how to read serial data.
@Debraj1978
@Debraj1978 2 ай бұрын
Best video series. Using it in 2024.
@ashkananali8571
@ashkananali8571 Ай бұрын
Is the code working normally?
@mandlamngadi7850
@mandlamngadi7850 4 ай бұрын
Thanks a lot for this video , you just solved my sleepless night problems.
@RoyTroid
@RoyTroid 5 ай бұрын
you deserve a donation for this good piece of work thanks a lot
@BodyByGaming
@BodyByGaming Жыл бұрын
how would you implement a drop down that lets you select the serial port, instead of hard coding it into the properties?
@ChipsMicrochips
@ChipsMicrochips Жыл бұрын
I don't want to "byte you" (😂) but what a damn great video!! You made communicating between the Arduino and a C# GUI as simple as can be! AWESOME content and I liked and subscribed. Keep rocking the house!! 🙂
@alvaromirab
@alvaromirab 2 жыл бұрын
What should be add to send data to the PC application. Let's say to get the reading of a temperature sensor
@jumbo999614
@jumbo999614 6 ай бұрын
How to constantly check if COM port is connected/disconnected? Maybe like every 5 seconds. Also, I publish VS project to single file (self-contain) so I can copy the executable program and run it in different pc. But the file size is too large (~140 mb). How to reduce it to small size? If I leave serial port monitor in Arduino IDE open, WPF form can't connect to COM port. It says "COM port is not accessible. That's normal right?
@lotharmayring6063
@lotharmayring6063 8 ай бұрын
why dont you use the ardurino IDE extension in visual studio and python to make GUI-Application
@darshansalian2967
@darshansalian2967 3 жыл бұрын
Explanation was awesome but can you also teach how to integrate scan port and baud rate buttons
@AkorJohnOmaaka
@AkorJohnOmaaka 9 ай бұрын
you explanation is sweet and straight, keep it up
@robertmf
@robertmf 2 жыл бұрын
I thought I was listening to physicist Dr. Michio Kaku... 😊 Thanks for the tutorial...
@attilalenart865
@attilalenart865 9 ай бұрын
Thank you sharing this tutorial. This is exactly what I was looking for and helped me a lot. :)
@khizerfromfaisalabad4894
@khizerfromfaisalabad4894 Ай бұрын
will the same process work for esp32??
@shortexposureastrophotogra4988
@shortexposureastrophotogra4988 3 жыл бұрын
Great video series! I just programmed my first gui button.
@playingitvr4550
@playingitvr4550 2 жыл бұрын
would you be able to let us know how to install the ardunio tools in visual studio? and i also got this error when i have installed it "ASCIIEncodingSealed Doesnt exist in type ASCIIEncoding"
@mattnsac
@mattnsac 2 жыл бұрын
Is there a way to actually program with a GUI like this? Sending serial is one thing, Im wondering if this can be made to permanently change values in the base program?
@emmanuelpil
@emmanuelpil 5 жыл бұрын
Very clear explanations. Thank you.
@nikhilgupta7569
@nikhilgupta7569 Жыл бұрын
Hi! I have tried it and my code is also exactly same as in video and can't find any error but still I am not able to switch in the led....I just have different board (which Shouldn't matter).
@thestansatan4337
@thestansatan4337 9 ай бұрын
the problem is writing the code yourself because if you want to add buttons in this you should not write the code yourself you should double tap on the element like button on the form design and then write the code inside that button block in the code. i dont know why but there is a reference in the code you can notice the difference when you write the function yourself and whe you double tap on the element to make the function
@trumpmccalister456
@trumpmccalister456 7 ай бұрын
My problem lied when i clicked the turn off button and nothing happened its just got the message in the coding stater 'the port 'COM5' does not exist.'
@jherico2534
@jherico2534 Жыл бұрын
My "String" Function is not Hihlihted or change to color blue, On my ARDUINO IDE... Why is that?
@SonchaiNukaeo-d7e
@SonchaiNukaeo-d7e 8 ай бұрын
if i use in this case. i can't serial.print "xxxx" ?
@jaderfbsousa
@jaderfbsousa 3 жыл бұрын
Thank you very much for this tutorial. The way you explain it is very clear and easy to understand.
@nasirbennett3635
@nasirbennett3635 3 жыл бұрын
You all prolly dont care at all but does someone know of a tool to log back into an instagram account?? I was stupid lost my login password. I appreciate any tips you can give me.
@caidenkenneth6857
@caidenkenneth6857 3 жыл бұрын
@Nasir Bennett Instablaster :)
@nasirbennett3635
@nasirbennett3635 3 жыл бұрын
@Caiden Kenneth Thanks for your reply. I found the site through google and Im in the hacking process now. Looks like it's gonna take a while so I will reply here later with my results.
@nasirbennett3635
@nasirbennett3635 3 жыл бұрын
@Caiden Kenneth It did the trick and I now got access to my account again. I am so happy:D Thank you so much you saved my ass :D
@caidenkenneth6857
@caidenkenneth6857 3 жыл бұрын
@Nasir Bennett Happy to help =)
@mohamedadam3085
@mohamedadam3085 2 жыл бұрын
Hi, I keep getting this error ......................."System.UnauthorizedAccessException: 'Access to the port 'COM4' is denied."
@bob-ny6kn
@bob-ny6kn 2 жыл бұрын
You need to add accesses to your project.
@mohamedadam3085
@mohamedadam3085 2 жыл бұрын
Actually I found the issue, I had Arduino serial port open so the serial port was busy fixed by turning off the serial port of Arduino and sometimes I had to close Arduino all together
@martin98
@martin98 2 жыл бұрын
@@mohamedadam3085 Hey, can you tell me how you turned off the serial port of the Arduino? I have the same issue you had and putting in an 'Serial.end();' command in the Arduino code didn't fix the problem.
@mohamedadam3085
@mohamedadam3085 2 жыл бұрын
@@martin98 Hi, you can close arduino ide or turn of serial monitor in the arduino ide, when you use the GUI.
@martin98
@martin98 2 жыл бұрын
@@mohamedadam3085 Thank you, that fixed the problem :)
@ghostaka7405
@ghostaka7405 2 жыл бұрын
My first GUI ,ty for video
@SamP_64
@SamP_64 2 жыл бұрын
How long should it take for the led to turn on after the button click? Im trying to make it instant but it takes about 1.5 seconds
@EnGenX2112
@EnGenX2112 Жыл бұрын
Yeah, I've got the same issue. I'm very appreciative of learning this, but that lag is a problematic issue. If you learn any ways to improve or resolve it, I'd really appreciate it if you could come back to this comment reply and point me in the right direction. Best wishes for your success.
@Tony770jr
@Tony770jr 2 жыл бұрын
Is the visual studio a free download?
@cookiekhai465
@cookiekhai465 2 жыл бұрын
hello and good day, I have been following this tutorial and it seem I cannot turn on the led on and off, but when I click on the GUI the the RX led blinked once but the led on pin13 did not light up. am I missed some of the steps?
@byteme8708
@byteme8708 2 жыл бұрын
You probably did not type the code in exactly as shown in the video. Carefully compare your code with the video's to see what is different.
@cookiekhai465
@cookiekhai465 2 жыл бұрын
@@byteme8708 thank you for the reply, its my mistake for messing up the serial part. I had fixed it and it totally worked. Many thanks
@SonchaiNukaeo-d7e
@SonchaiNukaeo-d7e 8 ай бұрын
you can show example by sofewareserial?
@EnGenX2112
@EnGenX2112 Жыл бұрын
This was an outstanding tutorial and I appreciate it very much. May I ask if you have any suggestions for how to reduce the lag between the moment I click the GUI buttons and the response time for each of those steps on the board. Could it be helped by a particular compiling method, or will it never go faster due to the serial com's 9600 baud rate? ... or any other ideas would be really helpful as I need to set some equipment up in a lab for work. Thank you very very much for this tutorial, even if you don't have any ideas on that.
@byteme8708
@byteme8708 Жыл бұрын
You could try to compile the program as a stand alone .exe program that does not run within Visual Studio. I'm not sure that you can do it with the Community Edition, but there may be other ways it can be done. Good luck.
@MrFKD
@MrFKD 12 күн бұрын
Very beneficial thanks a lot bro
@Myssa002
@Myssa002 3 жыл бұрын
have you ever made a GUI for a PIR motion sensor ?
@deryorsh
@deryorsh 2 жыл бұрын
U saved my life xD Thank you!
@Zerhaki
@Zerhaki 9 ай бұрын
That is the video I have been looking for. I need to make a GUI. Temperature, speed, weight etc are been reading from a robots sensor. Robot is sending the data via esp32. How can I read the data and use on GUI like you? It is almost same that you did on serie but there should be wireless communication.
@thestansatan4337
@thestansatan4337 9 ай бұрын
this is for wired communication
@rul1175
@rul1175 Жыл бұрын
Why did you declare the "char dl;" ??
@Neopan210
@Neopan210 Жыл бұрын
Thanks so much, I can see how to adapt this to an Excel user form to start, stop and collect data.
@jamesssydney
@jamesssydney 8 ай бұрын
Amazing video, just what I was after
@yazztark
@yazztark 3 жыл бұрын
I'm new, why'd you use 9600 as the serial#?
@byteme8708
@byteme8708 3 жыл бұрын
9600 Baud is the serial communications rate of transfer of data between the Arduino and the PC.
@ismaelachekar3941
@ismaelachekar3941 3 жыл бұрын
thank you for this very helpful video. when I want to add a second yes no button and connect it to another pin on the arduino. Should I call the data char d2? how can the arduino know the difference between d1 and d2?
@smarttv1868
@smarttv1868 2 жыл бұрын
U can do like when we press second "ON" button, instead of sending "A", visual studio will send any other character like "B" and in Arduino code, if we get "B", turn the second led on. Simple u don't need to add d2
@estelagomez137
@estelagomez137 3 жыл бұрын
I can't find the SerialPort tool in the current version. How could I proceed?
@byteme8708
@byteme8708 3 жыл бұрын
Estela, follow this link: developercommunity.visualstudio.com/t/serialport-missing-from-toolbox/1278827
@estelagomez137
@estelagomez137 3 жыл бұрын
@@byteme8708 Thank you for your fast and helpful reply.
@fireomen87
@fireomen87 Жыл бұрын
Great video! Really helpful, thank you!
@averagehooligan620
@averagehooligan620 2 жыл бұрын
My new favorite video. Thanks
@subhashsingh8553
@subhashsingh8553 Жыл бұрын
You have explained very honestly
@jonasdefrancisco6217
@jonasdefrancisco6217 2 жыл бұрын
Button click to actual LED turning on has SUPER LAG. It takes about 1sec to actually change state after pressing the button. Picked much faster baud rate, but no change. Without question the slow feedback is an issue with Visual Studio, not the mcu. How to solve this?
@byteme8708
@byteme8708 2 жыл бұрын
When I created the program, I did not experience any lag. You may want to verify that you did all of the communications setup correctly by comparing it with the program in the video.
@SamP_64
@SamP_64 2 жыл бұрын
I’m having this problem also. Did you manage to fix it?
@fardiansajo9000
@fardiansajo9000 3 жыл бұрын
Good work, this is what i am looking for
@newtechnical715
@newtechnical715 3 жыл бұрын
Sir how to save potential meter reading in PC ?
@manofmesopotamia7602
@manofmesopotamia7602 2 жыл бұрын
That was so informative 😊
@mikoajyzwa92
@mikoajyzwa92 Жыл бұрын
What if I have no "Serial port" option?
@byteme8708
@byteme8708 Жыл бұрын
Try this link: stackoverflow.com/questions/67202747/why-is-the-serial-port-component-missing-from-my-visual-studio-toolbox
@rul1175
@rul1175 Жыл бұрын
Amazing info. Thank you!
@claudenonya7278
@claudenonya7278 Жыл бұрын
Hello, i have a request for a video series , How to control A stepper motor (nema 17 with easy controller) with an Arduino C# GUI with joystick.
@martindostalek7596
@martindostalek7596 4 жыл бұрын
Very nice sample. Thank you...
@perinoveriza1658
@perinoveriza1658 4 жыл бұрын
Teaching from heart , thanks madem
@wanglikin8719
@wanglikin8719 2 жыл бұрын
how to make a g code controller with visual basic 6
@marcsanchez7893
@marcsanchez7893 3 ай бұрын
Nice project. Posting/providing the code would have been nice😶
@kifahzaidan4505
@kifahzaidan4505 2 жыл бұрын
Hi, Thanks a lot, its really greate effort and great knowledge. i need to do a project for a preset position linear actuator with a DC motor abd a stepper motor, with Arduino Mega or UNO but i am not able to write the code and the scheme, can you please help. Regards
@davidlanda4093
@davidlanda4093 9 ай бұрын
YOU ARE AWESOME !!!!!!!!!!!!!!!!!
@hugocorreaoficial
@hugocorreaoficial 2 жыл бұрын
Muito obrigado. Vídeo maravilhoso
@kelizhongmauricristaldo3453
@kelizhongmauricristaldo3453 Жыл бұрын
SerialPort doesn't exist on my toolbox. Can someone help me?
@alistairmurray626
@alistairmurray626 Жыл бұрын
i have the same problem, let me know if you figure it out, i'll let you know likewise!
@alistairmurray626
@alistairmurray626 Жыл бұрын
i found the solution, when you create a new project, make sure you select "Windows Form App (.framework)", NOT "Windows Form App"
@simplyishan06
@simplyishan06 3 жыл бұрын
U made the pin 13 output... What if I wish to change it to a input dynamically
@kevinroth8380
@kevinroth8380 Ай бұрын
Very good.
@geoffwade8144
@geoffwade8144 4 жыл бұрын
Good job, thank you.
@sam35696
@sam35696 Жыл бұрын
Many thanks to you .
@gerardoherreragonzalez8192
@gerardoherreragonzalez8192 2 жыл бұрын
finally found thanks to the author
@brandisbrown8011
@brandisbrown8011 2 жыл бұрын
Thank you, sir.
@matijamandarelo4829
@matijamandarelo4829 4 жыл бұрын
Very helpful.
@maulanawahyudi7127
@maulanawahyudi7127 4 жыл бұрын
thankyou madem :)) love youu !
@jasonmare33
@jasonmare33 2 жыл бұрын
best out there!
@kez5729
@kez5729 2 жыл бұрын
goated video
@paulwyleciol3459
@paulwyleciol3459 2 жыл бұрын
thank you!!!
@J_Creative
@J_Creative Жыл бұрын
great
@maziarbesanj1613
@maziarbesanj1613 3 жыл бұрын
thank you.
@ahmadhussainwebshare1001
@ahmadhussainwebshare1001 3 жыл бұрын
This is the wonderful vedio, Thx lot . Pls tell me what model of Arduino board we need to test this tutorial.
@lotharmayring6063
@lotharmayring6063 8 ай бұрын
it works not...... if system gives a COM Port to the ardurino no other program or GUI can use the same port because the port cannot be shared between different programs. COM does not dont like when 2 persons are talking to him at the same time, like me
@enty-3035
@enty-3035 5 ай бұрын
Just close the arduino ide majbe
@amedbouchareb4218
@amedbouchareb4218 Жыл бұрын
BONJOUR ET THANKS
Arduino GUI Part 2   Servo Motor
17:58
Byte Me
Рет қаралды 43 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Serial Communication with Arduino - The details!
16:51
Programming Electronics Academy
Рет қаралды 68 М.
Python GUI for Arduino Control
12:52
Anas Kuzechie
Рет қаралды 41 М.
Design Arduino GUI with Processing 4  -  Beginner's Guide | PART-1
53:19
ELECTRONICS TREE
Рет қаралды 1,4 М.
Minimalist Microcontroller: Building a Bare-Bones Dev Board
9:15
Control Arduino Using GUI (Arduino + Processing)
13:45
Hardik Rathod
Рет қаралды 134 М.