Hello friends, I hope you all are fine and having fun with your lives. In today's tutorial, I am going to show you How to use Arduino Serial Monitor. It's not gonna be a very big post but its really very essential if you wanna learn Arduino coding. Because Arduino Serial Monitor is a great debugging tool and it helps a lot in Arduino Projects. In the previous post we have seen How to use digitalRead in Arduino and if you recall that tutorial then you must remember that in it we have used some Serial printing. So that's what we are gonna cover in today's tutorial.
Before going into the details, I must suggest you to first read these two posts because in those tutorials I have shown the serial communication which is essential for Serial Monitor Working. So, you guys must first read them and then continue this tutorial. IF you have any questions then ask in the comments.
Now, open your Serial Monitor and type something in it and it will be printed on your Serial Monitor as shown in below figure:
So, I have printed my name and then Send it and it is printed on the Serial Monitor.
Now, you know both ways of How to use Arduino Serial Monitor, now let me tell you where you can use it.
Serial Monitor as a Debugging Tool
Serial Monitor is a great debugging tool.
You can place checks in your code like you wanna see how many lines are working.
So, if your code is of like 500 lines then you can place check in between like after 100 lines to see if its working or not.
Similarly, if you are dealing with some GPS module then you can receive its data via the Software Serial and then can print it on the Serial Monitor to see that you are getting the data correctly.
For having a look at Serial Data Receive you should check Send SMS using Sim900 and Arduino because in that post I have sent data over Serial Port and received data and then printed it on Serial Monitor.
Here's an awesome video in which one of our team members has shown how to use Arduino Serial Monitor:
So, that's all about the Arduino Serial Monitor and I hope you guys have enjoyed it. I am gonna share more Arduino basic tutorials soon. Take care !!! :)
I am Syed Zain Nasir, the founder of The Engineering Projects (TEP). I am a
programmer since 2009 before that I just search things, make small projects and now I am sharing my
knowledge through this platform. I also work as a freelancer and did many projects related to
programming and electrical circuitry. My Google Profile+Follow