Arduino Tutorial: C# to Arduino Communication. Send data and commands from Computer to an Arduino.


Dear friends welcome to another Arduino Tutorial! Today we are going to build a C# windows application to send data and commands to an Arduino. Let’s get started!

Hello guys, I am Nick and welcome to a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266 and other popular boards. Subscribe to the channel now if you don’t want to miss any future videos. In this video we are going learn how to build our own computer programs, in order to communicate with Arduino. I have built a simple project to demonstrate how easy it is to build your own Windows applications that can control an Arduino.

I have connected an LCD shield to an Arduino Mega, and I have also connected three LEDs to it. The application that I have developed connects to the Arduino using the Serial connection, and allow us to write some text to the LCD display and control the state of the LEDs. As you can see this is a very useful project if you need to send some data from your computer to an Arduino. Let’s see how to build this project.

The parts needed in order to build this project, are the following:


Arduino Mega:

LCD Shield:



Small Breadboard:


Power Bank:

Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!

The software that we are going to develop today, runs only on Windows, it won’t work on Linux or Mac. We are going to use Visual Studio 2017 community edition in order to develop the application. Visual Studio 2017 community edition is absolutely free. It is great development environment for Windows. With Visual Studio, you can literally build simple Windows Applications in minutes. First of all you have to download the installer, and install it on your machine. When prompted, select to install the .NET desktop development package and then press the install button. After the installation is complete you can launch the development environment.

Now you have two options, you can create a new project and build your own application from scratch using the C# programming language or you can download my project and modify it to achieve your desired results. Of course you want to just test the project and can just run the executable that you can find in the description of the video. If this is the first time you are using Visual Studio, please watch some tutorials on YouTube to help you getting started. Since Visual Studio is very popular you can find great tutorials online. I won’t show how I built this Windows Application in detail in this video but if you are interested I can prepare another very detailed tutorial on that. Are you interested in a detailed tutorial on how to build a Windows Application like this on Visual Studio? Please vote by clicking on the card here.


Quiz of Knowledge Android Game

You can download my latest Android Game which is called Quiz of Knowledge here:


Arduino Datalogger:
Arduino Weather Station Project:
Arduino Nokia 5110 LCD Display:
Arduino OLED display tutorial:
DIY Arduino:

——————– is a Youtube channel and website which is dedicated in developing high quality videos about DIY hardware and software projects. In this channel we develop projects with Arduino, Raspberry Pi, we build robots and simple electronic circuits. Check out our website as well for more information:


Never miss a video:



  1. exellent video tutorial! thanks a million for this. please need you to clear out just a concern i have… from c# project using; we can control serial com ports which is Arduino controler conected (wich has its own binary arduino code loaded on rom) right ?.. do you have a facebook page? .. btw. tks.

  2. A few years ago, I converted parts from modified movie projector into a computer "peripheral". It's driven by a stepper motor and takes frame by frame images with a USB microscope. The images can later be assembled into a movie. Here's an early version:

  3. If you didn't know, your tutorials are very helpfully, I now comfortable working with lcd frop nokia lcd to oled display just after watching your "menu on nokia display"; i believe you'll create c# tutorials.

    Greetings from Tanzania ??

  4. Ρε πατριωτη Έλληνας είσαι? Όργωσα τα αγγλικά tutorial και αφού έβγαλα άκρη έπεσα σε Έλληνα. My apologies to all the rest people reading the comments for using a foreign language. I just asked the publisher if he is Greek.

  5. Please make a vid for com port io triggerng relays with 2 pins from a com port with c and i mean actual serial port not uart or usb 🙂

  6. Hi :), do you have maybe tutorial where you show how send 'click button from arduino' to pc app and, will be good with bluetooth / wifi. For example I have small device with button and few leds and connected to this device some bluetooth/wifi adapter/arduino part and on the computer side in my application as I click search for wifi / bluetooth devices so that it can detect my device arduino and remembers it, and then when I click on the device, I would like it to send me a specific message, eg 'managed' to the application on the computer. I would like to use this solution in my project, or rather in a program, where there would be a pair of devices with 1-2 buttons, eg four devices, all of them I would like to connect to my application and then recognize which device was pressed. Sorry for bad english, I hope you understand what I mean :).

  7. Very good, i'm brazilian and your video go me be very help, very thank !
    Sorry my english is not very good !!!
    I go wait for many more videos!!!!

  8. Hi Nick – Great C# Arduino project! Could you do one using ESP32 or ESP8266 with a c# form connecting via WiFi or BLE? Thanks!

  9. password storage and hotkey autofill. It is useful for anonymous browsing(unless your computer has viruses that steal clear code passwords.


Please enter your comment!
Please enter your name here