

Click the Upload button to load the program to the Arduino.Connect your evive to your computer using a USB cable.How to Run the Sketchįollow the steps below to run the sketch: Save your sketch by going to the File tab and then clicking on Save. Now, modify the code by initialising serial monitor and writing print statement inside setup() function. The statement to write on Serial Monitor is: Here 9600 is the baud rate at which you are communicating over USB with your device. To write in the serial monitor, you must first initialise serial monitor, you can do it with the help of the following statement: You can use it for debugging (finding errors in) Arduino programs when writing new programs. Serial communication is very useful for controlling electronic components or devices that are connected to (interfaced with) the Arduino board from the computer.
