Introduction:

This is a simple PC interface program.When arduino is connected to PC, it creates a COM port that is serial port with a particular number. This number is the same on which is used to download the code. We’ll try to initialize communication with 9600 bits per second speed and send some data to the PC
and receive some data from PC .We’ll send back the received data from PC to PC again for test!!

Components Required:

  • 1 x Arduino Board with USB Cable

Code: