This Code Block introduces the Arduino Serial object. Basic use and syntax are introduced.
Comparing Arduino 1.x and 2.x
As of 2024 we will use Arduino IDE 2.x in our introductory class. This version is a fork of the VSCode environment, so if you have experience there you will see some similarities (and a few differences).
This means that moving forward, older videos use a different interface than the one we are using in class (including the serial introduction below). Some things are in different places. At first you may find the translation between versions a bit overwhelming – but it should be quick to overcome.
To help in this transition, I have made a video which highlights the difference between V1.x and V2.x for board selection, port selection, serial monitor access and functioning, and serial plotter access. You may want to watch it now or later as you move through this introduction.
As mentioned in the video — this is a bit chicken and egg — seeing the comparison before you know the tasks. You may decided to come back to this video at various times through out the course.
CODE: Using the Serial Object
This brief introduction includes starting up serial, the difference between print and println, the difference between literals and variables, an overview of the serial monitor and serial plotter. The video ends with a brief discussion of BAUD rate.
Going Further – Serial Plotter Fix
At this point you should have the basics sorted, if you are using Arduino 2.x you should also update your serial plotter width .. learn how to that in A quick Arduino Plotter Fix