Back to Step by Step Course by Robojax

Lesson 05: Introduction to Serial Monitor

Lesson 05: Introduction to Serial Monitor

Please select other codes for this lecture from the links below.

This is lecture 00 of Arduino Step by Step course


 /*
 *
 *  Reading user input, Print received data from Serial Monitor
 * Arduino code demonstrating Serial Monitor 
 * S01-05-2

 * Serial Monitor -2 
  * Video instruction for this code: https://youtu.be/WyWRGoACWFs
* This code is part of Ardunio Course 
with over 100 lectures Free On  YouTube Watch it here http://robojax.com/L/?id=338
Get the code for the course: http://robojax.com/L/?id=339
 

 * written by Ahmad Shamshiri for Robojax
 * http://robojax.com
 * Written on Feb 17, 2019 
 */
void setup() {
        Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps
}

void loop() {

        // send data only when you receive data:
        if (Serial.available() > 0) {
                Serial.println(  Serial.read()   );
        }
}

   

The least I expect from you is to give the video a thumbs up and subscribe to my channel. I appreciate it. I have spent hundreds of hours making these lectures and writing code. You don't lose anything by subscribing to my channel. Your subscription is a stamp of approval for my videos, helping more people find them and, in turn, helping me. Thank you!

If you found this tutorial helpful, please support me so I can continue creating content like this. support me via PayPal

**** AFFILIATE PROGRAM **** We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

Right Side
footer