What you will make:
In this lesson, we will be learning about Serial Communication in Arduino. The term serial means “one after the other”. In serial communication, data is transferred one bit at a time. You may not be familiar with the term serial, but you were always doing it whenever you are uploading code to Arduino. When you upload the code, it is first compiled into binary data (ones and zeroes). After that it is transferred from your computer through the USB cable into the Arduino board, one bit at a time.
What you will need:
For this project you will need:
- Arduino UNO
- Connect the components as shown in schematic.
- Upload the code.
After uploading is done, go to Tools > Serial Monitor and you can see Hello World! being printed in a never ending loop.
At the line 3, we are using Serial.begin() function to set the data transfer rate in bits per second (known as baud). After uploading the code, notice the LED blinking with one second intervals near the USB connection on your Arduino board. There are two such LEDs, marked as TX and RX. When data is being passed back and forth, these LEDs start to blink, with TX blinking when data is being transmitted (in our case the message”Hello World!”) and RX when it is being received. Next time when you upload some sketch, in other words transferring data to Arduino, do observe the RX LED.