These are the steps you need to follow in order to be up and running:
The Arduino i/o board is a simple circuit featuring the ATmega8 processor from Atmel. The board is composed of a printed circuit board (PCB) and electronic parts.
There are a few ways to get an Arduino board:
To program the Arduino board you need the Arduino environment.
Download Arduino: From the software page.
Linux note: For help getting the Arduino IDE running on Debian, please see the FAQ#linux ("How can I run the Arduino IDE under Linux?").
Mac OS X note: After downloading the IDE, run the
macosx_setup.command. It corrects permission on a few files for use with the serial port and will prompt you for your password. You may need to reboot after running this script.
For more information, see the guide to the Arduino environment.
If you are using a USB Arduino, you will need to install the drivers for the FTDI chip on the board. These can be found in the
drivers directory of the Arduino distribution.
On Windows, you will need to unzip
FTDI USB Drivers.zip. Then, when you plug in the Arduino board, point the Windows Add Hardware wizard to the
FTDI USB Drivers directory.
On the Mac, mount the
FTDIUSBSerialDriver_v2_1_6.dmg (on PPC machines) or the
FTDIUSBSerialDriver_v2_2_6_Intel.dmg (on Intel machines) disk image and run the included
The latest version of the drivers can be found on the FTDI website.
If you're using a serial board, power the board with an external power supply (6 to 25 volts DC, with the core of the connector positive). Connect the board to a serial port on your computer.
On the USB boards, the power source is selected by the jumper between the USB and power plugs. To power the board from the USB port (good for controlling low power devices like LEDs), place the jumper on the two pins closest to the USB plug. To power the board from an external power supply (needed for motors and other high current devices), place the jumper on the two pins closest to the power plug. Either way, connect the board to a USB port on your computer.
The power LED should go on.
On Windows, the Add New Hardware wizard will open. Tell it not to connect to Windows update and click next.
Then select "Install from a list or specified location (Advanced)" and click next.
Make sure that "Search for the best driver in these locations is checked"; uncheck "Search removable media"; check "Include this location in the search" and browse to the location you unzipped the USB drivers to in the previous step. Click next.
The wizard will search for the driver and then tell you that a "USB Serial Converter" was found. Click finish.
The new hardware wizard will appear again. Go through the same steps. This time, a "USB Serial Port" will be found.
Open the LED blink example sketch: File > Sketchbook > Examples > led_blink.
Here's what the code for the LED blink example looks like.
Select the serial device of the Arduino board from the Tools | Serial Port menu. On Windows, this should be
COM2 for a serial Arduino board, or
COM5 for a USB board. On the Mac, this should be something like
/dev/cu.usbserial-1B1 for a USB board, or something like
/dev/cu.USA19QW1b1P1.1 if using a Keyspan adapter with a serial board (other USB-to-serial adapters use different names).
Push the reset button on the board then click the Upload button in the IDE. Wait a few seconds. If successful, the message "Done uploading." will appear in the status bar.
If the Arduino board doesn't show up in the Tools | Serial Port menu, or you get an error while uploading, please see the troubleshooting suggestions.
A few seconds after the upload finishes, you should see the amber (yellow) LED on the board start to blink.
examplesdirectory inside the arduino directory.)
The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.