Arduino 5 Minute Tutorials: Lesson 1 - Software

Lessons Menu:

Lesson 1 Hardware:

  1. Computer / Laptop or Netbook
  2. Arduino Microcontroller
  3. USB to Serial Adapter (if your microcontroller does not have a USB port)
  4. Appropriate USB cable (Arduino boards draw power from the USB port - no batteries yet)

The popularity of Arduino is steadily increasing and it is fast becoming the microcontroller of choice for students, hobbyists and smaller companies. Many different electronics PCB manufacturing companies are jumping on the bandwagon and producing their own variations of the boards, as well as “shields” (additional circuits that fit directly on top of many Arduino boards to increase their functionality) and accessories. The Arduino website offers free resources and tutorials as well as a language reference to help you understand the code and syntax. In order to get started, you will at the very minimum need an Arduino board. Note that all the Arduino (and most of the clone boards) can use the Arduino software. If you are unsure what hardware to get, the Arduino USB is currently the most popular model, and these 5 minute tutorials are based around it.

Downloading / Installing Arduino Software

  1. Go to www.arduino.cc to download the latest version of the Arduino software (Direct link: http://arduino.cc/en/Main/Software and select your operating system; in this case we are using Windows)
  2. Save the ZIP file to your desktop (you can move or delete it later)
  3. It is convenient to create a new folder called “Arduino” under “Program Files”. To do this, go to “My computer” -> “C:” (or the drive where the operating system is installed) -> “Program Files”, then left click once on “program Files” folder, then select “New”->”Folder” from the main Explorer menu.
  4. Extract the entire ZIP folder to this new “Arduino” folder
  5. To run the Arduino software, open Windows Explorer by pressing the windows key (usually between the Ctrl and Alt keys on your keyboard) and the ‘E’ character at the same time (there are other ways to access explorer as well).
  6. Go to “My computer” -> “C:” (or the drive where the operating system is installed) -> “Program Files” -> “Arduino” In this folder you will see an executable file (blue colored icon named "Arduino"), you can left click (once) and then right click and select “send to” -> Desktop (create shortcut) to have Arduino more easily accessible.
  7. Double click the icon on the desktop to start the software.

The Arduino Software Interface

The Arduino interface is pretty “bare-bones”. When you load the software, the first screen you will see is a white window (shown below) with several different shades of blue and blue-green as border. Arduino projects are called “sketches” and when you start a new sketch, several additional files are also created.

"Newest: Arduino Interface (as of Q1 2012)

The main headings are “File” “Edit” “Sketch” “Tools” “Help” and several shortcut icons beneath “Verify”, “Upload”, “New”, “Open”, “Save”, and at the far right, the “Serial Monitor”. Note that all these icons are also available from the main menus.

"Older" Arduino Interface

The main headings are “File” “Edit” “Sketch” “Tools” “Help” and several shortcut icons beneath “Verify”, “Stop”, “New”, “Open”, “Save”, “Upload” and “Serial Monitor”. Note that all these icons are also available from the main menus.

Arduino 5 Minute Tutorials

To connect to your board,
  1. Launch the Arduino software by double-clicking the Arduino icon
  2. Plug one end of the USB into the Arduino and the other end into your computer.
  3. Your computer should detect the new device and tell you if it has installed correctly. At this time, two things can happen; if you have an older board using an FTDI chip (ex. Duemilanove based), Windows should detect it and you're good to go to the next step. If you have a board which uses an ATMega chip to convert USB to serial (for example the UNO), you will need to install the drivers manually.
  4. Take a look at your board's main processor chip (usually found between the pin headers) to see which you have. It will likely be the ATMega168, ATMega328, or a more powerful ATMEga640. ATMega1280 etc
  5. In the software, select “Tools” -> “Board” -> You will get a list of possible boards. If you have a different board, select it from the drop-down list; if you have purchased a compatible board, that manufacturer should indicate which board to choose.
  6. In the software, select “Tools” -> “Serial Port” -> COM # (note that if you have several COM ports, you will need to go to Device Manager to see which COM port is assigned to your board.
You're now ready to start coding!

 


This is a companion discussion topic for the original entry at https://community.robotshop.com/tutorials/show/arduino-5-minute-tutorials-lesson-1-software

thank u so much…

1 Like

It is very useful to me
thankyou very much

1 Like

thank you . it is very usefully for me new on this arduino. i like to learn for personnel satisfaction. by being up to date thank you.
i just buy UNO R3 Rev3 Development Board ATmega328P ATMEGA16U2 AVR w/USB for Arduino. from ebay. and i will continue learning

1 Like

aprox 45 years electronics teck 2way radio retired i like to build electronic gadgets

1 Like

can you say me how to clear the memory of the arduino uno R3 ATMEGA328P-PU

@reetu Tech specs for the Uno R3 right here: https://www.arduino.cc/en/Main/ArduinoBoardUno

it was very useful to me. Thank you for giving me such a useful information.

1 Like

great tutorial…

1 Like

sir, can interface solenoid valve and load cell using single arduino board at a time??
please answer for this question as soon as possible.because i am doing a project related to this board.

@nishanthini You might use a DC relay between the solenoid and the microcontroller.

sir suggest single arduino board simultaneously used for serial communication as well as controlling load cell and solenoid valve???

@nishanthini You might try a normal Arduino and a shield:



The solenoids would ideally be connected to relays, so perhaps a relay shield as well?

Can I use aurdino microcontroller for 6 doc pick and place robot can I use roboc with it

@sri The RobotC programming language is not really compatible with Arduino. If you choose Arduino hardware, you will likely need to use the Arduino IDE or something Arduino compatible.

Thank you very much

i want to build humanoid robot but i have no technical skills, what should i do to successed my life

@ashish You can start with a humanoid kit to get experience, or a general purpose mobile robot or robot arm.

If I were using a OSX (Mac), is there a tutorial with that verizon?

@Frank The operating system (MAC vs Windows vs Linux) does not really change how to learn about or use Arduino; the differences are very minor.