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.
IN 2025 we used the R4 (minima) but in 2026 we are back to R3 Uno-s! In the video I say select UNO (or you see in the tools menu that I have selected UNO) — this applies in 2026 again — but always make sure you select the board you are using (there are so many) !!! If you have an R4 Minima in tangible (2025 only) — or you have the R3 Uno (all other years, including 2026) — you should select yours board when the time comes. .
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