Intro to Arduino

 by randofo
Featured
1A.jpg
An Arduino is an open-source microcontroller development board. In plain English, you can use the Arduino to read sensors and control things like motors and lights. This allows you to upload programs to this board which can then interact with things in the real world. With this, you can make devices which respond and react to the world at large.

For instance, you can read a humidity sensor connected to a potted plant and turn on an automatic watering system if it gets too dry. Or, you can make a stand-alone chat server which is plugged into your internet router. Or, you can have it tweet every time your cat passes through a pet door. Or, you can have it start a pot of coffee when your alarm goes off in the morning.

Basically, if there is something that is in any way controlled by electricity, the Arduino can interface with it in some manner. And even if it is not controlled by electricity, you can probably still use things which are (like motors and electromagnets), to interface with it.

The possibilities of the Arduino are almost limitless. As such, there is no way that one single tutorial can cover everything you might ever need to know. That said, I've done my best to give a basic overview of the fundamental skills and knowledge that you need to get your Arduino up and running. If nothing more, this should function as a springboard into further experimentation and learning.
 
Remove these adsRemove these ads by Signing Up

Step 1: Different types of Arduinos

1F.jpg
1A.jpg
1B.jpg
1C.jpg
1D.jpg
1E.jpg
There are a number of different types of Arduinos to choose from. This is a brief overview of some of the more common types of Arduino boards you may encounter. For a full listing of currently support Arduino boards, check out the Arduino hardware page.

Arduino Uno

The most common version of Arduino is the Arduino Uno. This board is what most people are talking about when they refer to an Arduino. In the next step, there is a more complete rundown of its features.

Arduino NG, Diecimila, and the Duemilanove (Legacy Versions)

Legacy versions of the Arduino Uno product line consist of the NG, Diecimila, and the Duemilanove. The important thing to note about legacy boards is that they lack particular feature of the Arduino Uno. Some key differences:
  • The Diecimila and NG use an ATMEGA168 chips (as opposed to the more powerful ATMEGA328),
  • Both the Diecimila and NG have a jumper next to the USB port and require manual selection of either USB or battery power.
  • The Arduino NG requires that you hold the rest button on the board for a few seconds prior to uploading a program.

Arduino Mega 2560

The Mega is the second most commonly encountered version of the Arduino family. The Arduino Mega is like the Arduino Uno's beefier older brother. It boasts 256 KB of memory (8 times more than the Uno). It also had 54 input and output pins, 16 of which are analog pins, and 14 of which can do PWM. However, all of the added functionality comes at the cost of a slightly larger circuit board. It may make your project more powerful, but it will also make your project larger. Check out the official Arduino Mega 2560 page for more details.

Arduino Mega ADK

This specialized version of the Arduino is basically an Arduino Mega that has been specifically designed for interfacing with Android smartphones.

Arduino LilyPad

The LilyPad was designed for wearable and e-textile applications. It is intended to be sewn to fabric and connected to other sewable components using conductive thread. This board requires the use of a special FTDI-USB TTL serial programming cable. For more information, the Arduino LilyPad page is a decent starting point.
1-40 of 48Next »
naldobatumbakal says: Mar 31, 2013. 6:30 AM
Liked Arduino and I would like to study them.
I have a project that needs to contrlol relays to switch on/of 12volts.
Can Arduino capable of doing multi-switching (9 or 12 volts) around 6 to 10 switches?
I don't often open my account, would it be better to give me a reply on my mail?
at ronald_av@yahoo.com....Thank you very much.
teknohawk says: Mar 30, 2013. 2:24 PM
The Uno R3 is most likely the "best" Arduino to use. It is probably the newest, cheapest and smartest to use for protoboarding (or what ever you need it to do). It has a Atmel328 and is quit common, mostly used by beginners to Arduino, all the way to Advanced electrical hobbyists. But really, most Arduino's can use a sketch meant for " only one type of Arduino"
HBang says: Dec 30, 2012. 1:52 PM
I'm trying to make a robot arm to grab things and place it in different places. Which Arduino should I buy? As a beginner, I am having some trouble in figuring out which Arduino to use... Thank you!:)
charmquark says: Dec 30, 2012. 5:02 AM
Excellent guide to get up and going with arduino! Thanks a lot!
rustygray says: Oct 20, 2012. 9:53 AM
I bought a new Uno board, and it plugs in and lights up, but the serial port command is greyed out.

I did select the Uno as my board. I reset it, I unplugged and replugged.

I still cannot get the serial port to allow me to make a choice.

Suggestions?
Psychic Master in reply to rustygrayDec 4, 2012. 4:23 AM
you might need to manually update the drivers, thats what i had to do with my mega 2560
randofo (author) in reply to rustygrayOct 20, 2012. 8:13 PM
...exchange it for a new one?
rustygray in reply to randofoDec 4, 2012. 11:11 AM
i obtained a 2nd one and same issue. I have windows 7, and downloaded the latest software. i will check for an update.
elfarandulero says: Oct 7, 2012. 4:08 PM
First I have to be clear,what is Arduino I see that name all over the Internet?
randofo (author) in reply to elfaranduleroOct 8, 2012. 10:00 AM
From the first paragraph of my explanation of what an Arduino is:

An Arduino is an open-source microcontroller development board. In plain English, you can use the Arduino to read sensors and control things like motors and lights. This allows you to upload programs to this board which can then interact with things in the real world. With this, you can make devices which respond and react to the world at large.
elfarandulero in reply to randofoOct 8, 2012. 12:35 PM
Since I don't know anything about microcontroller; I like Electronics I keep using the regular PCB for my projects;let the wizard one work with Arduino; I don't need Arduino at this point
elfarandulero says: Oct 7, 2012. 4:12 PM
Some people think of the entire Arduino board as a microcontroller, but this is inaccurate. The Arduino board actually is a specially designed circuit board for programming and prototyping with Atmel microcontroller.. Then why not use a regular PCB board? I don't know a hell about microcontroller; I don't even know what is that and what is the use for microcontroller????/
randofo (author) in reply to elfaranduleroOct 8, 2012. 10:03 AM
Because a PCB board is a fiberglass board with copper on it. It does not do anything.

A microcontroller is a computer chip, which is like a mini computer that controls things.

You attach microcontrollers (and other components) to PCB boards.
ride on toy dude says: Jul 9, 2012. 4:24 PM
Hey Randofo!! I had a few questions about beginning in arduino.
-What would be the best starter project for arduino?
-Do you recommend any particular books or ibles on this subject?
-Does a computer have to have USB 2.0 ports to operate an arduino?
(Mine only has USB 1.0 ports.)
if anybody has any other advice, please leave a comment below.
randofo (author) in reply to ride on toy dudeJul 9, 2012. 4:53 PM
I think USB 1.0 should be fine.

I recommend this one ;-)

...but you should try searching the site for some of the Arduino guides and eBooks. Those are pretty good. Also, arduino.cc has a ton of useful information. It just takes a little digging through.

What do you ultimately want to make with an Arduino? Once I have a sense of that, I can probably recommend some intro projects that might help you.
ride on toy dude in reply to randofoJul 10, 2012. 6:06 AM
Also, is an led cube a beginner, intermediate, or advanced project?
randofo (author) in reply to ride on toy dudeJul 10, 2012. 10:36 AM
An led cube is probably a beginner to intermediate project. I would start small with a 3 x 3 x 3 LED cube. It may not seem like much, but that is 27 LEDs to solder together, which will take a bit of work.
ride on toy dude in reply to randofoJul 20, 2012. 1:44 PM
I have the cube soldered together!! However I still need the resistors, transistors, and perfboard. Good luck at Red Bull Creation!!!
The people who won last year had a human sized hamster wheel that printed dot matrix words. People in the crowd were told to text it and it would print the texts.
It was awesome! :):):):):)!!
randofo (author) in reply to ride on toy dudeJul 23, 2012. 4:47 PM
Good luck with the cube. We did our best on the challenge. Now it is up to the internet to vote for us. I guess we will see how it goes.
ride on toy dude in reply to randofoJul 24, 2012. 11:29 AM
I finished it!! it works really well! Never fear with the voting. you've got everybody on Instructables supporting you guys!!
randofo (author) in reply to ride on toy dudeJul 25, 2012. 11:30 AM
Awesome! Nice job on your first Arduino project. You should share it with a Photo Instructable.
ride on toy dude in reply to randofoJul 25, 2012. 12:17 PM
I am going to try to rebuild it with a hackduino so I can keep the Arduino I have know. I try to post it then. How would I build an infrared rc system with Arduino?
I had a n idea for a door that had a key fob so that I could remotely unlock the door to my room. Or build a system that would open up my closet doors when I pushed a button. : )
randofo (author) in reply to ride on toy dudeJul 25, 2012. 9:14 PM
This might get you started with the IR part of things: http://www.instructables.com/id/Clone-a-Remote-with-Arduino/

There are bunch of projects on Instructables for electronic door locks. You should search the site for those.
ride on toy dude in reply to randofoJul 9, 2012. 6:18 PM
I want to tart out with something like a small led cube. I also found a really interesting arduino starter kit online. here's a linkhttp://www.amazon.com/Arduino-Uno-Starter---Solderless-Breadboard/dp/B0051QHPJM/ref=sr_1_2?ie=UTF8&qid=1341878297&sr=8-2&keywords=arduino
Harshaeinstein says: Jul 9, 2012. 8:26 AM
thank you very much....
i am not able to understand why there is a 16Mhz crystal(SPK 16.000) on arduino(uno) board.
please help me out..
thank you....
randofo (author) in reply to HarshaeinsteinJul 9, 2012. 4:54 PM
It is on there to provide a stable clock for the microcontroller.
ms10 says: Apr 24, 2012. 8:24 PM
awesome instructable thanks it helped me a lot

my arduino works lights up the green light but when i upload code into it at the minute it says

"arvdude :verification error,first mismatch at byte 0x00000xc != 0x62

arvdude : verification error ; content mismatch"

i new to arduino and i just bought it 2 days ago

do you have some idea on what's going on
waterlubber in reply to ms10Jun 19, 2012. 3:06 PM
Oh no...sometimes, you just retry. If that doesn't work, do this:
V
V
V
V
randofo (author) in reply to ms10Apr 24, 2012. 9:29 PM
Double check the configuration you setup in step 5. I am not certain why you are getting that error, but it seems like the board or the serial port is not selected properly.
ms10 in reply to randofoApr 27, 2012. 2:29 PM
thanks
Orngrimm says: May 26, 2012. 10:58 PM
Cool 'ible! Nice ans painless. Will forward it to some folks who want to gain foot with Arduino.

BTW: Didnt you forgot one popular Arduino?
The Arduino Nano http://arduino.cc/en/Main/ArduinoBoardNano
I often use it (Or a cheaper chinese replica) for the movement of the finished project off to the cheaper and final resting place...
jimvandamme says: Apr 28, 2012. 5:31 AM
Typo: First page, under "Arduino NG, Diecimila, and the Duemilanove" paragraph, you meant ATMEGA328, not '368
linda555 says: Apr 27, 2012. 3:12 PM
This comes at the perfect time for me. Very clear and understandable. This is beyond a doubt the clearest, most inclusive explanation of how to get the Arduino up and running.
You have been posting a lot of very helpful Instructables.
Thanks for this one and the many others.
Kryptonite says: Apr 22, 2012. 4:14 AM
Step 12, the last two images appear to be the same, is this correct?
jjmcgaffey in reply to KryptoniteApr 24, 2012. 11:11 PM
The change is in the Setup section, not at the bottom like all the others. Sneaky!
MerlinTheGreat in reply to KryptoniteApr 22, 2012. 8:06 AM
Actually they are textboxes, not images. And the content is different.
Just scroll down with the scrollbar on the right of the textbox to see the rest of the content.
Xyver says: Apr 24, 2012. 10:52 PM
Excellent overview. I'll be refering back to this page a lot
joek14 says: Apr 24, 2012. 6:46 PM
Awesome thanks for the nice overview
Sequimania says: Apr 23, 2012. 8:28 PM
Thank you so much. This comes at the perfect time for me. Very clear and understandable. Well Done!
whenindoubtuseahammer! says: Apr 23, 2012. 5:35 AM
Thanks, very nice,simple explanation.
1-40 of 48Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!