Chapter 6 (Serial Monitor Output Viewing)
The Serial Monitor Feature was released in V1.0.4
There are 2 main ways to use the Serial Monitor feature in arduino-cli
:
arduino-cli monitor
(Default)- SSH clients like puTTY
For now , aci
uses the monitor
keyword to open a Serial communication between the board and the computer.
The Serial Monitor
The Serial Monitor in Arduino uses Serial communication (UART protocol) to establish a communication between the board and the programming computer or any other device like sensors.
To use the Serial Monitor feature in aci
, make sure you have done the following :
The sketch used for the Hello World program is given below :
void setup(){
Serial.begin(9600);
}
void loop() {
Serial.println(9600);
delay(1000);
}
Once these are done, in the homepage , navigate to the Serial Monitor Option using the arrow keys and press Enter.
Now an Input dialog box appears that prompts you to enter the Baud Rate you used in your program (9600, 15200 etc.). Enter the correct baud rate you used and press Enter.
The Serial Monitor is now open for business. To exit the serial monitor, press CTRL + C 2 times. The second time, you will be prompted for confimation to return to the homepage. Choose what you want and press Enter.
Check out the below recording to see the Serial Monitor in action.