AJ-Explains-It-All
Published © GPL3+

Serial Communication with an Arduino Uno

In this project I will give you an introduction to UART.

BeginnerFull instructions provided30 minutes18,408
Serial Communication with an Arduino Uno

Things used in this project

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

UART

Arduino
char value; //initialize variable’value’.
void setup()
{
Serial.begin(9600); //start serial comm with computer at baud rate 9600 baud.
}
void loop()
{
while(Serial.available == 0); // wait for serial data
value=Serial.read(); //read the serial data(ASCII value)
Serial.println(value); //print the value back to the monitor(computer)
} //end

Credits

AJ-Explains-It-All

AJ-Explains-It-All

12 projects • 10 followers
Experienced embedded firmware and software developer. I have a great affinity towards ARM cortex based MCU's.

Comments