Using the Arduino IDE for testing and debugging
There are several methods of testing the modules of your robot program. If you write a piece of code that can make an LED blink with variable frequency, you can create the desired frequency with a potentiometer and use an LED to see if the blinker code is reacting correctly to the input signal. However, the Arduino IDE provides us with two additional powerful tools for testing and debugging: the Serial Monitor and the Serial Plotter. Although we have used them in previous chapters already, let us take a deeper dive into both and learn how we can use them as very effective tools in our development process.
Using the Serial Monitor as input
The Arduino IDE’s Serial Monitor is a character-based interface to send and receive data to and from a connected Arduino via its Serial interface. So far, we have only used it to receive and display data to show the output of the program that runs on your Arduino. But it can also be used...