0Pricing
Arduino & IoT Academy · Lesson

Read Commands You Type

Use Serial input to trigger actions from your keyboard.

Talk Back to Your Board

Serial works both ways. You can type into the Monitor and your board will read it, letting you send commands from your keyboard. ⌨️

Is Anything Waiting?

First check if data has arrived with Serial.available(). It returns how many bytes are sitting in the buffer, ready to read.

if (Serial.available() > 0) {
}

All lessons in this course

  1. Serial.begin and Baud Rate
  2. Serial.print vs println
  3. Watch Sensor Values Live
  4. Read Commands You Type
← Back to Arduino & IoT Academy