Arduino microcontroller is a very popular controller to make your prototype projects. today I am going to show you how to Arduino and visual studio communication and montiring devices using serial communication.

Serial Communication Arduino And Aisual Basic .

How to Arduino and visual basic serial communicating.

Some code example to clarify how to communicate Arduino and visual studio is


SerialPort1.PortName = comPORT

SerialPort1.BaudRate = 9600

SerialPort1.DataBits = 8

SerialPort1.Parity = Parity.None

SerialPort1.StopBits = StopBits.One

SerialPort1.Handshake = Handshake.None

SerialPort1.Encoding = System.Text.Encoding.Default 'very important!

SerialPort1.ReadTimeout = 100


connect_BTN.Text = "Dis-connect"

comPort_ComboBox.Enabled = False

Timer1.Enabled = True

Timer_LBL.Text = "Timer: ON".

How to data Transfer Arduino to visual basic and display data.

1.communication software to hardware.

If your Arduino processing data continuously within a loop in some time duration then visual basic get a data via a serial port is same as Arduino time and also itself your define time duration to read-write the data simultaneously. all data depends upon baud rate bits/second. if less data then use fewer bits transfer to port like 9600 b/s etc. Arduino and visual basic baud rates are the same to communicate with each other.

2. Numeric and Strings Data Transfer.

data is a different type like numeric data and string data. Both data are used for various types of used .so you can transfer both types of data using serial communication.

Download the code given below.