Arduino C# Serial Communication Connected to Multiple Sensors
ฝัง
- เผยแพร่เมื่อ 15 ส.ค. 2020
- In this video, I will show you step by step how to create both the Arduino and C# code to handle multiple sensors. The Arduino connected to 3 potentiometers. Then the analog data build into a single data package and send it to the C# program. C# program parses the data and put it into each textbox. Surely you can use the other kind of sensors. The point is about the method to handle multiple sensors data.
Download All Arduino C# Serial Communication Code Through Link Below
www.caturcreativeproject.com/2...
Arduino C# Serial Communication Video List :
Arduino C# Serial Communication The Basic of Two Way-Communication
• Arduino C# Serial Comm...
Arduino C# Serial Communication Control One LEDs
• Arduino C# Serial Comm...
Arduino C# Serial Communication Control 8 LEDs
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected and Control 2 Arduino
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected to Multiple Sensors
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected to Multiple Sensors, Send Value Up to 100000
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected to Multiple Sensors, Send Float, Combine of Float and Int
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected to Multiple Sensors, Connected Up to 10 Sensors
• Arduino C# Serial Comm...
Arduino C# Serial Communication Connected to Multiple Sensors, Combine char, String, float, and int
• Arduino C# Serial Comm...
Arduino C# Serial Communication Control a Servo
• Arduino C# Serial Comm...
Arduino C# Serial Communication Control Multiple Servo, Up to 6 Servo
• Arduino C# Serial Comm... - วิทยาศาสตร์และเทคโนโลยี
I keep getting the error: 'length cannot be less then 0' it keeps popping up until my computer crashes... Is there a solution to this problem?
This is insane.... you literally touch all the topics i neeeeeeeeed. Please do more of these. It gets better and better!!!
Please comment what you think about next tutorial :)
how to clear "length cannot be less than zero", because if visual studio connect with proteus this word will keep coming out
How to add a data filter. I am getting the message "length cannot be less than 0".
10/10 Best Tutorial. Tried a few and this seems to work great!
Thanks sir. :)
I have bno055 sensor from Bosch. I need to develop an android app to read and write the sensor values. Can I use the same way as you did in the video for this?
Muito bom!!! E exatamente oque eu necessitava aprender! Muito obrigado! Thanks! Thanks!
fico feliz em saber disso :)
I love you dude (nohomo).
This is what I need for my graduation project.
Glad to hear that ^_^
What you need other tutorial?
Your project is fabolous! I like it!
Can i ask you an question?
Can we do both LED lighting and data reading from the potentiometer on the same form?
Thank you so much
LIKED COMMENTED AND SUBED
So useful, thanks !
You are welcome sir
This video made it possible to design hot tub controller! Thank you!
You are welcome sir :)
this video was really educational
Glad it was helpful! :)
Hello this was a great video! I want to do something similar but for a strain sensor, but instead of being a green bar, be more like a color scale type of graph, my background is mechanical so I only know very basics of coding do you think there is a way to do so?
The easiest way is to pile up the progress bar with different colors.
Help create a CAN sniffer application in c# FORM: how to read packets using Arduino and mcp2515, how to parse them and put them in a DataGridView
mantab gan. tengkyu..
Oke sama2
Thank you!!!
You are welcome ^_^
very informative video thanks
Thanks :)
You are the best 😍😍😍😍
Thanks sir :)
@@caturpebriandani8422 Sir, i have another question : how cann I flash Arduino from c# without arduino IDE ? Thanks
cann y help me please ?
@@laughwithme5848 th-cam.com/video/iKqLbbyPydI/w-d-xo.html
Awesome! Thanks
Thanks :)
@@caturpebriandani8422 your video has helped me a lot. Im trying to build program which is using serial com ports for reading NMEA protocol data from gyrocompas. I'm talking about true heading and relative also rate of turn. Afterwards data which have been collected is described on simple characteristic. Any possible to help me out a bit? Regards from Netherlands and a happy new year!!
I have a question. I try to get digitalread but I cant see value in my GUI. What is my problem? can you help me?
Can you make a video tutorial of the same Arduino exercise using the "Chart" component in C#?
¿Puedes hacer un vídeo tutorial el mismo ejercicio de Arduino usando en C# el componente "Chart"?
Good tuto but bro the sound effect kills me XD
LOL😁
Great content! Turned audio off though.
So useful, thank you, i have some issue, is any way to get sensor data from arduino uno and send character command to serial port in same time?
you mean c# get sensor data from arduino, also at the same time c# send a command to the arduino, is this what you mean sir?
Yes, that's what I mean.
Hello. Your tutorial works great. I want to use this method to create a multichannel voltmeter with arduino.How to modify the code to receive "float" numbers from arduino? Thank you.
Actually both programs in this video work for float.
in the Arduino, you can modify the code to be like this
Serial.print((String) datafloat1 + "A" + datafloat2 + "B" + datafloat3 + "C" + "
");
while in C# you only need to remove the code for the vertical progress bar, cause in my code it is for int16.
verticalProgressBar_sensor1.Value = Convert.ToInt16(dataSensor1); //Remove this one, also for vertical progress bar sensor 2 and 3.
so in this case you only show the data into the textbox.
@@caturpebriandani8422 , thank you for your response.
You are welcome
Can I ask you a question? Why did you use Sbyte for indexOfA? Can we use int instead?
Sure you can use int. But since the value of indexOfA is small, so I use Sbyte, so I can save the memory.
Hi can you make a tutorial on how to create a GUI program that receives data(Like the force that is applied to the sensor) from a Load Cell Calibration Kit using Microsoft visual studio? I desperately need help on finishing my thesis project
Actually, I need the devices to test the program,. Since I don't have it, so I cannot help you. But you can try to use my software to read the data from the sensor. You can try to download the C# program.
@@caturpebriandani8422 Alright sir I appreciate your reply, I'll try your program too, thank you sir
@@lemeplaymuzic3128 You are welcome sir. Hope my program can help you
can you create interface in c# using the arduino with the turbidity sensor Pleaase thank you. Your Videos are so great!!!!
can you send me the link of turbidity sensor type
👏👏👏👏👍
Can you please share a c# video for reading and writing the sensor values of gyroscope and accelerometer through an android app connected through usb to a sensor?
Iam not really clear about the system you mean.
Is the sensor connected to android through usb port?
@@caturpebriandani8422 yes
@@caturpebriandani8422 We are using a tablet with usb port and the sensor is connected with usb cable. I used quasar with vuejs for making the android application. But I am not familiar with making the app with c#
Why we need index of B-A C-A part?
Is there any solution on how can I do index if I cant manipulate the data on putting A,B,C? I can only put , in each data.
Thank you, i find a solution by spliting it and make it array.
files for download will not open in RAR
can you do a video where you communicate both ways between C# & arduino? send commands to arduino from application, receive data back from arduino?
I already created the video. check this video
th-cam.com/video/o0AKEjtY4-4/w-d-xo.html
I need help from you
It measures the heat inside the computer so the Ned fan works Can we Arduino? Send and help me work a separate fan
Thanks for your requested 😃
please hlp me tutorial video upload please
@@chathishkadilshan2056 Your video request is in process. Please feel free for the video :)
@@chathishkadilshan2056 Below is the tutorial video link, enjoy this :)
th-cam.com/video/5TbfB9Mxlkk/w-d-xo.html
Doesn't work with 64bit laptop?
Kindly help me out... It shows error on serial port.GetPortNames();
Iam using 64 bit latop and there is no problem.
Hey.. Can i ask?
How to can get data more than 1023 in c# or how to change code from visual studio without using Sbyte?
Send your arduino data in string not as the value. if you have a data 1023 then convert it to string "1023". In my code, C# will receive the data one by one. First it will receive '1' character, then '0', next '2', and the last '3'.
@@caturpebriandani8422I tried to use your code, but I used the sensor button to add data continuously but when Arduino sent data to 1024 and in Visual Studio C # on the road it said value of '1024' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum', can you help me?
@@adityacs5465 comment the program line textbox.text and verticalprogressbar.value. Then show your data in console. if there is no error, then the problem is the textbox or vertical progressbar.value. Set your vertical progressbar Max and Min to 0-2000.
@@caturpebriandani8422 oh .. from the vertical progress bar, not from the sByte ?
if the Sbyte is the value range until how much?
@@caturpebriandani8422 vertical progress bar, only up to 100 and the problem that I had when I received the data to 1024 meant that from sByte, right?
This program is awesome but, I can't make it run, it just keep reading the same values.
I debugged and I found that this function is repeated over and over in an infinite loop :
private void ProcessData(object sender, EventArgs e)
What could be wrong? the code is line by line same as yours and arduino runs ok .
Send me your code i will check it
@@caturpebriandani8422 I put the code in your page or is there a better way to contact you ? Thanks
@@marioc5277 I suggest you to download my code, try it and modify as you want.
Hoooo Dude I love you so much...... I have been trying to fix this problem for days and since I discover you video which is awesome, I can see that you make changes to the video and also add the project in your page which is great, now your code runs perfect but also mine ..... and it seems that all the magic happens when you add in Arduino just a simple delay(100) ..... OMG that's it ..... just a simple delay....... I put the whole internet up side down searching for an answer..... I'm very new at C# so this put me in the right direction, Thanks Man ...... I gonna take a beer and some sleep tonight ..... Thx..
Glad to hear that bro 😃
Is this a wireless communication?Thanks
No, it sends the data through usb cable
@@caturpebriandani8422 thank. How to use HC-01 Arduino C# bluetooth Communication Connected to pressure sensors(FSR406).I have found a lot of videos and projects, but no one use this ways.
@@chiyouyu6469 Here is my suggestion.
So you have 2 side, the sensor system and the the minitoring system. On the sensor side,
using the arduino to read the data from the sensor, and then arduino send the data using the bluetooth.
On the monitoring side, the arduino connect to the bluetooth, so the data receive through the BT, the the arduino send the data to PC via USB cable.
Please allow the viewer to time to read before removing text.
Thanks for your advise :)
You can pause the video for a while when the text come. Or slow the video, set the playback speed to less than 1.
I tried to use vertical progress bar on my project. I followed this video step by step but i got a problem. When i try to place vertical progress bar it does not place right where i placed. Do you guys have an idea about it ? pls tell me.
prnt.sc/xbk0pg
string[ ] portLists = SerialPort.GetPortNames();
Error CS0103 The name 'SerialPort' does not exist in the current context.
Please suggest
Have you add serialport form tool box to current project?
On my video it is 16:06
@@caturpebriandani8422 the same error happens to me
Show boy@
The turorial is great and all, but whats with the earrape keyboard sounds?
Khaby lame said, just mute it :)
string [ ] portlists = SerialPort.GetPortNames( );
CS0103 : The Name 'SerialPort' does not exist in the current contest
1. Add serial port to your GUI
2. Add using System.IO.Ports in your code