loading

Step 7: Serial monitor

The serial monitor allows your computer to connect serially with the Arduino. This is important because it takes data that your Arduino is receiving from sensors and other devices and displays it in real-time on your computer. Having this ability is invaluable to debug your code and understand what number values the chip is actually receiving.

For instance, connect center sweep (middle pin) of a potentiometer to A0, and the outer pins, respectively, to 5v and ground. Next upload the sketch shown below:

File --> Examples --> 1.Basics --> AnalogReadSerial

Click the button to engage the serial monitor which looks like a magnifying glass.  You can now see the numbers being read by the analog pin in the serial monitor. When you turn the knob the numbers will increase and decrease. 

The numbers will be between the range of 0 and 1023. The reason for this is that the analog pin is converting a voltage between 0 and 5V to a discreet number.

Advertisement

<p>awesome, Thanks</p>
<p>Thanks, very useful and informative. </p><p>I have however one reservation about many Arduino projects. Isn't it wasteful of resources to use an Arduino for instance just for watering a plant? </p>
Thanks, this is very useful
<p>Thanks for this Instructable. </p>
<p>Thanks for this Instructable. </p>
<p>Thanks for this Instructable. </p>
Learned how to use arduino. <br><br>now thevtime for make a arduino yourself
<p>I'm just getting started with Arduino and this Intro helped a lot. You made it simple and easy to understand. Thanks for writing it.</p>
<p>Hi, Your article was the mos comprehensive and easy to understand. </p><p>Can i have your permision to make video tutorial based on your article ? Please let me know</p><p>thnks</p>
<p>This article was the most comprehensive and easy-to-understand one I ever read, thanks!!</p>
<p>how can i code arduino uno for my project automatic alarm system connected to lcd 16x2 and rtc ds1302 controlled by arduino uno bluetooth?</p>
<p>I am new to arduino say me step to glow led and run motor </p><p>i have arduino uno R3 and arduino Mega 2560</p><p>also say simple project using LED, LDR, </p>
<p>Browse for a number of projects. You can do wonders with Arduino... Try them with interest. Definitely you will learn a lot.</p>
<p>Hi,</p><p>If you're looking for a tool to help you create the circuit schematics or code snippets, check this one:</p><p><a href="http://www.circuito.io/" rel="nofollow">www.circuito.io</a></p><p>It's free and fast</p>
<p>This is the best guide for beginners that I have come across. It will be a big help when I start creating my project. A former coworker bought me an Arduino UNO about 5 years ago and it was just sitting here collecting dust, I finally came up with a project to utilize it. I will be creating a ham radio repeater controller, which shouldn't be too hard to do for the basic controller but could get complex as I add more features to it.<br></p><p>I'll be doing this project in two stages.</p><p><br>First Stage Goals:</p><p>■ When the receiver squelch is triggered the arduino needs to trigger the transmitter to start transmitting (COR will go high or low, I need to check the radios to see if it goes high or low, when the radio receives a signal)<br>■ Route receive audio to transmitter <br>■ Every 10 minutes inject morse code audio into the transmit audio to satisfy FCC requirements<br><br>Second Stage Goals:<br>■ Add a couple second hang timer onto the end of each transmission (This will keep the transmitter keyed up for a couple seconds after the squelch signal is pulled low or high after it stops receiving a signal)<br>■ Add a courtesy tone at the end of each transmission<br>■ Add a time out timer (I might be able to do this on the radio but I prefer to try and do it on the Arduino)<br>■ Add DTMF decode functions to shut down the repeater (not sure if this will be doable)<br><br>For radios I will be using my set of Yaesu FT-7800r dual band radios, these radios have a 6 pin mini din connector on the back that will give me access to all the lines I will need.</p>
<p>Great info, thanks.</p>
<p>/port is not recognized by my laptop??</p><p>can i know what will be the reason??</p>
It might be because you don't have the right drivers for your laptop:)
<p>Thank you,found helpful............</p>
<p>how much small dc motors can I control with the arduino uno r3 I want the numper of motors that I can control with pwm and without pwm with on and off and direction</p>
THANK YOU! Really interesting and usefull.
<p>slt je suis terminale et mon projet un suiveur photovoltaique bi axiele mon probleme et le programme arduino pour 1 moteur pas &agrave; pas unipolaire tourne 9 h ( 7h &agrave; 16h) et puis retoure &agrave; l'etat initiale est attendre 14 h (16h &agrave; 7h ) et merciiiiii bcp </p>
<p>LOL: Step 12: You can think of this kind of like understanding grammar and punctuation. You can write an entire book without proper grammar and punctuation, but no one will be abler* to understand it, even if it is in English.</p><p>Great tutorial! Learned a lot.</p>
<p>I am considering building a collection of instructables on beginning Arduino.</p><p>Do I have your permission to include this instructable?</p>
Hi, I'm running Windows and I can't select the port for arduino uno. What could be wrong?
is arduino uno better than arduino mega
can I use arduino mega like arduino uno
<p>YES <br>ONLY DIFFERENCE IS THAT MEGA HAS MORE INPUT OUTPUT PINS</p>
<p>And more space than Uno ( 8x more space ) </p>
<p>GREAT INTRO FOR ARDUINO</p>
<p>Thanks! This is a great place to get started in the amazing world of Arduino. Bookmarked.</p>
Good. Guys you may visit this site to get more tutorials for free. http://electro.nitishdash.com
<p>great! like it</p>
sir. this arduino uno can transmit or send information to another computer?
So awesome
so helpful:-)
sir can me make a arduino at home????
<p>yes its possible...it will cost you around $8,here is the link </p><p>http://www.instructables.com/id/How-to-make-an-Arduino-from-scratch/?ALLSTEPS</p>
simply awesome
I bought a new Uno board, and it plugs in and lights up, but the serial port command is greyed out. <br> <br>I did select the Uno as my board. I reset it, I unplugged and replugged. <br> <br>I still cannot get the serial port to allow me to make a choice. <br> <br>Suggestions?
<p>The same thing happened to me, I had to reinstall the drivers. This helped</p><p>http://forum.arduino.cc/index.php?topic=104698.0</p>
...exchange it for a new one?
i obtained a 2nd one and same issue. I have windows 7, and downloaded the latest software. i will check for an update.
you might need to manually update the drivers, thats what i had to do with my mega 2560
<p>Exactly what I was looking for. Thanks.</p>

About This Instructable

670,504views

2,527favorites

License:

Bio: My name is Randy and I founded the Instructables Design Studio. I'm also the author of the books 'Simple Bots,' and '62 Projects to ... More »
More by randofo:Guitar Pedals Beginner Electronics Projects DIY Candles 
Add instructable to: