Skip to content

xanthium-enterprises/Serial-Programming-CSharp

Repository files navigation

Programming the Serial Port using C# (CSharp) on .NET PlatForm


  • The code uses the SerialPort class from System.IO.Ports namespace for communicating with external serial devices
  • C# Code opens up a Serial port on Windows PC for communicating with an Arduino or Microcontroller board (MSP430 Launchpad/ATmega328P).
  • C# Code transmits and receives data between PC and Arduino Micro Controller
  • The code also shows how to control the RTS and DTR pins of the serial Port

Online Tutorial


Hardware Circuit

Details about Repo

  • Code can be compiled using

    • Microsoft Visual Studio Community
  • Code will work with traditional serial ports as well USB Serial Converters.


ScreenShot of the Program

Devices used