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...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 105

  • @rubenvanveldhoven5240
    @rubenvanveldhoven5240 ปีที่แล้ว +3

    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?

  • @konturgestalter
    @konturgestalter 3 ปีที่แล้ว +3

    This is insane.... you literally touch all the topics i neeeeeeeeed. Please do more of these. It gets better and better!!!

  • @fahriustman4089
    @fahriustman4089 2 ปีที่แล้ว +3

    how to clear "length cannot be less than zero", because if visual studio connect with proteus this word will keep coming out

  • @piyushprabhakumar2904
    @piyushprabhakumar2904 2 ปีที่แล้ว +3

    How to add a data filter. I am getting the message "length cannot be less than 0".

  • @mappingmatt2672
    @mappingmatt2672 3 ปีที่แล้ว +1

    10/10 Best Tutorial. Tried a few and this seems to work great!

  • @sje7969
    @sje7969 3 ปีที่แล้ว

    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?

  • @josijuniortavares4652
    @josijuniortavares4652 2 ปีที่แล้ว +1

    Muito bom!!! E exatamente oque eu necessitava aprender! Muito obrigado! Thanks! Thanks!

  • @DRako-nr4rj
    @DRako-nr4rj 3 ปีที่แล้ว

    I love you dude (nohomo).
    This is what I need for my graduation project.

  • @zeyn252
    @zeyn252 ปีที่แล้ว

    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?

  • @hawaslianas
    @hawaslianas 2 ปีที่แล้ว

    Thank you so much
    LIKED COMMENTED AND SUBED

  • @marcoml4399
    @marcoml4399 3 ปีที่แล้ว

    So useful, thanks !

  • @jasonmare33
    @jasonmare33 2 ปีที่แล้ว

    This video made it possible to design hot tub controller! Thank you!

  • @abdulhamid_miji
    @abdulhamid_miji 3 ปีที่แล้ว

    this video was really educational

  • @aaronrodriguez8401
    @aaronrodriguez8401 2 ปีที่แล้ว

    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?

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว

      The easiest way is to pile up the progress bar with different colors.

  • @user-vo5zn8ju1s
    @user-vo5zn8ju1s 10 หลายเดือนก่อน

    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

  • @MrAlienagasta
    @MrAlienagasta 2 ปีที่แล้ว

    mantab gan. tengkyu..

  • @serges3757
    @serges3757 3 ปีที่แล้ว

    Thank you!!!

  • @IndiaRefix
    @IndiaRefix ปีที่แล้ว

    very informative video thanks

  • @laughwithme5848
    @laughwithme5848 3 ปีที่แล้ว

    You are the best 😍😍😍😍

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว +1

      Thanks sir :)

    • @laughwithme5848
      @laughwithme5848 3 ปีที่แล้ว

      @@caturpebriandani8422 Sir, i have another question : how cann I flash Arduino from c# without arduino IDE ? Thanks

    • @laughwithme5848
      @laughwithme5848 3 ปีที่แล้ว

      cann y help me please ?

    • @abdulhamid_miji
      @abdulhamid_miji 3 ปีที่แล้ว +1

      @@laughwithme5848 th-cam.com/video/iKqLbbyPydI/w-d-xo.html

  • @maximas258
    @maximas258 2 ปีที่แล้ว

    Awesome! Thanks

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว +1

      Thanks :)

    • @maximas258
      @maximas258 2 ปีที่แล้ว

      @@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!!

  • @ahmethakanyldrm9332
    @ahmethakanyldrm9332 ปีที่แล้ว

    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?

  • @Metaconta
    @Metaconta ปีที่แล้ว

    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"?

  • @felanamanitraandrianasolon5018
    @felanamanitraandrianasolon5018 2 หลายเดือนก่อน +1

    Good tuto but bro the sound effect kills me XD

  • @jayhealey928
    @jayhealey928 2 ปีที่แล้ว

    Great content! Turned audio off though.

  • @peymanmirzaei6966
    @peymanmirzaei6966 3 ปีที่แล้ว

    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?

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      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?

    • @peymanmirzaei6966
      @peymanmirzaei6966 3 ปีที่แล้ว

      Yes, that's what I mean.

  • @82levy5
    @82levy5 3 ปีที่แล้ว

    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.

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      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.

    • @82levy5
      @82levy5 3 ปีที่แล้ว

      @@caturpebriandani8422 , thank you for your response.

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      You are welcome

  • @cuberbad2200
    @cuberbad2200 2 ปีที่แล้ว

    Can I ask you a question? Why did you use Sbyte for indexOfA? Can we use int instead?

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว +1

      Sure you can use int. But since the value of indexOfA is small, so I use Sbyte, so I can save the memory.

  • @lemeplaymuzic3128
    @lemeplaymuzic3128 2 ปีที่แล้ว

    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

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว

      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.

    • @lemeplaymuzic3128
      @lemeplaymuzic3128 2 ปีที่แล้ว

      @@caturpebriandani8422 Alright sir I appreciate your reply, I'll try your program too, thank you sir

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว +1

      @@lemeplaymuzic3128 You are welcome sir. Hope my program can help you

  • @allenpaulramos183
    @allenpaulramos183 2 ปีที่แล้ว

    can you create interface in c# using the arduino with the turbidity sensor Pleaase thank you. Your Videos are so great!!!!

  • @Avionics1958
    @Avionics1958 ปีที่แล้ว

    👏👏👏👏👍

  • @sje7969
    @sje7969 3 ปีที่แล้ว

    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?

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      Iam not really clear about the system you mean.
      Is the sensor connected to android through usb port?

    • @sje7969
      @sje7969 3 ปีที่แล้ว

      @@caturpebriandani8422 yes

    • @sje7969
      @sje7969 3 ปีที่แล้ว

      @@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#

  • @imramesh8694
    @imramesh8694 2 ปีที่แล้ว +1

    Why we need index of B-A C-A part?

  • @jayemersoncruz5369
    @jayemersoncruz5369 3 ปีที่แล้ว

    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.

    • @jayemersoncruz5369
      @jayemersoncruz5369 3 ปีที่แล้ว

      Thank you, i find a solution by spliting it and make it array.

  • @dalestewart7309
    @dalestewart7309 3 ปีที่แล้ว

    files for download will not open in RAR

  • @FrankPapadakis
    @FrankPapadakis 3 ปีที่แล้ว

    can you do a video where you communicate both ways between C# & arduino? send commands to arduino from application, receive data back from arduino?

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว +2

      I already created the video. check this video
      th-cam.com/video/o0AKEjtY4-4/w-d-xo.html

  • @chathishkadilshan2056
    @chathishkadilshan2056 3 ปีที่แล้ว

    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

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      Thanks for your requested 😃

    • @chathishkadilshan2056
      @chathishkadilshan2056 3 ปีที่แล้ว

      please hlp me tutorial video upload please

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      @@chathishkadilshan2056 Your video request is in process. Please feel free for the video :)

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      @@chathishkadilshan2056 Below is the tutorial video link, enjoy this :)
      th-cam.com/video/5TbfB9Mxlkk/w-d-xo.html

  • @balajid9024
    @balajid9024 3 ปีที่แล้ว

    Doesn't work with 64bit laptop?
    Kindly help me out... It shows error on serial port.GetPortNames();

  • @adityacs5465
    @adityacs5465 3 ปีที่แล้ว +1

    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?

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      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'.

    • @adityacs5465
      @adityacs5465 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?

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      @@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.

    • @adityacs5465
      @adityacs5465 3 ปีที่แล้ว

      @@caturpebriandani8422 oh .. from the vertical progress bar, not from the sByte ?
      if the Sbyte is the value range until how much?

    • @adityacs5465
      @adityacs5465 3 ปีที่แล้ว

      @@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?

  • @marioc5277
    @marioc5277 3 ปีที่แล้ว

    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 .

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      Send me your code i will check it

    • @marioc5277
      @marioc5277 3 ปีที่แล้ว

      @@caturpebriandani8422 I put the code in your page or is there a better way to contact you ? Thanks

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      @@marioc5277 I suggest you to download my code, try it and modify as you want.

    • @marioc5277
      @marioc5277 3 ปีที่แล้ว

      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..

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว

      Glad to hear that bro 😃

  • @chiyouyu6469
    @chiyouyu6469 2 ปีที่แล้ว

    Is this a wireless communication?Thanks

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว +1

      No, it sends the data through usb cable

    • @chiyouyu6469
      @chiyouyu6469 2 ปีที่แล้ว

      @@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.

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว

      @@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.

  • @jayhealey928
    @jayhealey928 3 ปีที่แล้ว +1

    Please allow the viewer to time to read before removing text.

    • @caturpebriandani8422
      @caturpebriandani8422  3 ปีที่แล้ว +1

      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.

  • @cbueemssp5727
    @cbueemssp5727 3 ปีที่แล้ว

    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

  • @jitendrachaudhari7222
    @jitendrachaudhari7222 2 ปีที่แล้ว

    string[ ] portLists = SerialPort.GetPortNames();
    Error CS0103 The name 'SerialPort' does not exist in the current context.
    Please suggest

    • @caturpebriandani8422
      @caturpebriandani8422  2 ปีที่แล้ว

      Have you add serialport form tool box to current project?
      On my video it is 16:06

    • @osmargalindoruiz779
      @osmargalindoruiz779 2 ปีที่แล้ว

      @@caturpebriandani8422 the same error happens to me

  • @leonardocoutinhoazevedo1064
    @leonardocoutinhoazevedo1064 ปีที่แล้ว +1

    Show boy@

  • @tetazorka3697
    @tetazorka3697 2 ปีที่แล้ว

    The turorial is great and all, but whats with the earrape keyboard sounds?

  • @masudlab
    @masudlab ปีที่แล้ว

    string [ ] portlists = SerialPort.GetPortNames( );
    CS0103 : The Name 'SerialPort' does not exist in the current contest

    • @caturpebriandani8422
      @caturpebriandani8422  ปีที่แล้ว

      1. Add serial port to your GUI
      2. Add using System.IO.Ports in your code