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()   );
        }
}