Introduction

USART (Universal Serial Asynchronous Receiver Transmitter) is a serial communication protocol used to transmit/receive data serially at a specific baud rate.

Several devices such as GPS, GSM, RFID, sensors, etc need to communicate with the microcontroller for transmitting or receiving information. To communicate with the microcontroller, several communication protocols are used such as RS232, SPI, I2C, CAN etc. Basically, a protocol is a set of rules agreed by both, the sender and the receiver, on –

  • How the data is packed?
  • How many bits constitute a character?
  • When the data begins and ends?

With the help of USART, we can send / receive data to a computer or other devices. USART is also used in interfacing microcontroller with various modules like Wi-Fi (ESP8266), Bluetooth, GPS, GSM, etc.

Let us start with the USART based serial communication.

Asynchronous Communication: Asynchronous operation means that a process operates independently of other processes.Asynchronous communication means each character (data byte) is placed in between the start and stop bits. The start bit is always 0 (low) and the stop bit is always 1 (high).

Protected Area

This content is password-protected. Please verify with a password to unlock the content.

Control LED ON-OFF from PC via Arduino

Let’s build small application in which we will control led by sending serial command from PC.

Sketch for controlling LED from PC

Protected Area

This content is password-protected. Please verify with a password to unlock the content.

End Of Post