Step 6: Run a Sketch

Arduino programs are called sketches. The Arduino programmer comes with a ton of example sketches preloaded. This is great because even if you have never programmed anything in your life, you can load one of these sketches and get the Arduino to do something.

To get the LED tied to digital pin 13 to blink on and off, let's load the blink example.

The blink example can be found here:

Files --> Examples --> Basics --> Blink

The blink example basically sets pin D13 as an output and then blinks the test LED on the Arduino board on and off every second.

Once the blink example is open, it can be installed onto the ATMEGA328 chip by pressing the upload button, which looks like an arrow pointing to the right.

Notice that the surface mount status LED connected to pin 13 on the Arduino will start to blink. You can change the rate of the blinking by changing the length of the delay and pressing the upload button again.
<p>Hi first time I research How to use Aduino (for basi)</p><p>this is very useful</p>
<p><a href="https://www.instructables.com/id/Arduino-Just-Clone-It-EasyCheapXolcano/">https://www.instructables.com/id/Arduino-Just-Clone...</a></p>
<p>Thanks a lot!</p><p>It really nice article about Arduino Info for beginners.</p>
<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>And more space than Uno ( 8x more space ) </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>https://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>
<p>my arduino does not seem to be connecting to the program i selected arduino uno and the program wont let me select a serial port NEED HELP PLEASE!!!</p>
<p>fantastic tutorial, Please keep inform us</p>

About This Instructable




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:Custom Print Kimono Mad Scientist Extension Cord DIY Life-Sized Cardboard Cutout 
Add instructable to: