Loading... Please wait...

Getting Started with Arduino

Getting Started with Arduino

This text is based on the Getting Started text from the official Arduino site under a Creative Commons Attribution-ShareAlike 3.0 License.

Getting Started with Arduino on Windows

Download the Arduino environment

Get the latest version from the download page (http://arduino.cc/en/Main/Software).

When the download finishes, unzip the downloaded file. Make sure to preserve the folder structure. Double-click the folder to open it. There should be a few files and sub-folders inside.

Connect the board

The Arduino Uno automatically draws power from either the USB connection to the computer or an external power supply. If you're using an Arduino Diecimila, you'll need to make sure that the board is configured to draw power from the USB connection. The power source is selected with a jumper, a small piece of plastic that fits onto two of the three pins between the USB and power jacks. Check that it's on the two pins closest to the USB port.

Connect the Arduino board to your computer using the USB cable. The green power LED (labeled PWR) should light.

Install the drivers

Installing drivers for the Arduino Uno with Windows8, Windows7, Vista, or XP:

  • Plug in your board and wait for Windows to begin its driver installation process. After a few moments, the process will fail, despite its best efforts
  • Click on the Start Menu, and open up the Control Panel.
  • While in the Control Panel, navigate to System and Security. Next, click on System. Once the System window is up, open the Device Manager.
  • Look under Ports (COM & LPT). You should see an open port named "Arduino UNO (COMxx)"
  • Right click on the "Arduino UNO (COMxx)" port and choose the "Update Driver Software" option.
  • Next, choose the "Browse my computer for Driver software" option.
  • Finally, navigate to and select the driver file named "arduino.inf", located in the "Drivers" folder of the Arduino Software download (not the "FTDI USB Drivers" sub-directory). If you are using an old version of the IDE (1.0.3 or older), choose the Uno's driver file named "Arduino UNO.inf"
  • Windows will finish up the driver installation from there.

When you connect the board, Windows should initiate the driver installation process (if you haven't used the computer with an Arduino board before).

On Windows 8, 7 or Vista, the driver should be automatically downloaded and installed. You can check that the drivers have been installed by opening the Windows Device Manager (in the Hardware tab of System control panel). Look for a "USB Serial Port" in the Ports section; that's the Arduino board.

Launch the Arduino application

Double-click the Arduino application. (Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page (http://arduino.cc/en/Guide/Environment#languages) for details.)

Getting Started with Arduino on Mac

 

Download the Arduino environment

Get the latest version from the download page (http://arduino.cc/en/Main/Software). When the download is finished, double click the .zip file. This will expand the Arduino application.

Install the Software

Copy the Arduino application into the Applications folder (or elsewhere on your computer). No drivers are required to be installed.

Connect the board

The Arduino Uno automatically draws power from either the USB connection to the computer or an external power supply. Connect the Arduino board to your computer using the USB cable. The green power LED (labeled PWR) should go on.

A dialog box will appear telling you that a new network interface has been detected. Click "Network Preferences...", and when it opens, simply click "Apply". The Uno or Mega 2560 will show up as "Not Configured", but it's working properly. Quit System Preferences.

Launch the Arduino application

Double-click the Arduino application. Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page for details (http://arduino.cc/en/Guide/Environment#languages)

 

Getting Started with Arduino on Linux

 

Getting Started on Linux depends on your particular distribution. Details can be found here (http://playground.arduino.cc/Learning/Linux).

Your First Arduino Sketch

Open the blink example

Open the LED blink example sketch: File > Examples > 1.Basics > Blink.

 

 

 

Select your board

You'll need to select the entry in the Tools > Board menu that corresponds to your Arduino.

Selecting an Arduino Uno



Select your serial port

Select the serial device of the Arduino board from the Tools > Serial Port menu.

Select the serial device of the Arduino board from the Tools | Serial Port menu. On Windows this is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you can disconnect your Arduino board and re-open the menu; the entry that disappears should be the Arduino board. Reconnect the board and select that serial port.

On the Mac, this should be something with /dev/tty.usbmodem (for the Uno).

Upload the program

Now, simply click the "Upload" button in the environment. Wait a few seconds - you should see the RX and TX LEDs on the board flashing. If the upload is successful, the message "Done uploading." will appear in the status bar.

A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board start to blink. Congratulations! You've got Arduino up-and-running.

If you have problems, please see the troubleshooting suggestions http://arduino.cc/en/Guide/Troubleshooting).

 

What's News

newsletter

Copyright 2017 oddWires. All Rights Reserved.
 Sitemap | oddWires