Easy Electronics Tutorial 6 – Visual C# Serial Port + UART Module


In this tutorial make a simple Serial Port program using Visual C#
Type of module I’ll be using:


If you CBF making this program ill link mine for you. But we may make changes in the future so it’ll pay to still get Visual C# express.



  1. I am used to C and not C# and wonder if the rxString is thread safe automatically or if it would need some kind of mutex. Great video!

  2. Its nice, thank you but i cannot closing when i open it with exe file, how to provide this?Also its not closing debug when press to red x button on right top corner.Can i do it with assiciating stop debug and red x button on the right top corner?

  3. I have a WinForms app in VS2015. Serial comms work fine with all arduino flavors except for leonardo/pro micro. I know those bootloaders/boards have a virtual com port and I am using 'while(!Serial.Available) in my sketch. It seems the board is not receiving nor sending any data. Any advice? The same sketch and WinForm app works perfect with any other arduino board.

  4. At 6:30:"…and maybe a smiley face cause that shit gets me excited…" Best line in a youtube video ever…lol.

  5. Hello,
    Can someone help me to send 4 floats and 2 integers(8bit) from the serial com port becasue from my understanding it only sends strings.
    Thanks 🙂

  6. Ah! Yes, but not as you did. I entered the code manually. I did it your way and it works. I realize my mistake now. Thanks for your help!

  7. I am finding the method used for receiving data is not responding:

    private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)

    (that one)

    I am able to code around it with a timer but I really want the above-mentioned method to handle it. Any idea as to why this is not working? I would paste the rest of the code but there's not enough space for it. I'll appreciate any help you can give me.


Please enter your comment!
Please enter your name here