Introduction To Uart: and Radio Frequency Communication
Introduction To Uart: and Radio Frequency Communication
WHAT IS UART?
Stands for Universal Asynchronous Receiver Transmitter.
One of the serial communication available in Arduino, computer, .
A protocol which do not have external clock line like SCK in SPI
protocol or SCL in I2C protocol, hence the name asynchronous.
TYPICAL CONNECTION
Device 1 can be an Arduino while Device 2 can be RF, Bluetooth, GPS or others.
Pin 0 and 1 are used by the computer when uploading program and
when Serial Monitor is used. When hardware UART pins are used for
communication, it cannot be used for typical digital input output
operation.
void loop() {
Serial.println(Hello, Roboteam!); // Prints a message in Serial Monitor
}
The program above makes the Arduino to transmit the message via RX pin,
so we can also read the message if we tap into the pin.