Introduction | How To: Windows, Mac OS X, Linux; Arduino Mini, Arduino BT | Troubleshooting | Board | Environment
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:
If you're using a USB Arduino (like the Arduino NG or the Arduino Mini), you need a standard USB cable (A plug to B plug): the kind you would connect to a USB printer, for example. If you're a serial Arduino board, you'll need a serial cable.
To program the Arduino board you need the Arduino environment.
Download Arduino: Arduino 0007 for Windows
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/FTDI USB Drivers
directory of the Arduino distribution. In the next step ("Connect the board"), you will point Window's Add New Hardware wizard to these drivers.
The latest version of the drivers can be found on the FTDI website.
Note: specific instructions are available for connecting the Arduino Mini.
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.
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.
The first sketch you will upload to the Arduino board blinks an LED, so you need to make sure you have one connected to the board. Normally, you need both an LED and a resistor. The original Arduino NG, however, has them built-in for use with pin 13. The Arduino NG Rev. C and pre-NG Arduino boards do not have the LED, but they do have the resistor; you'll need to connect the positive (longer) leg of the LED to pin 13 and the negative (shorter) leg to ground (marked "GND"). (Also note that the LED itself will typically be flat on the side with the negative leg.) On any other pin, you'll need to use a resistor with the LED.
Open the Arduino folder and double-click the Arduino application.
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 COM1
or COM2
for a serial Arduino board, or COM3
, COM4
, or COM5
for a USB board. To find out, open the Windows Device Mananger (in the Hardware tab of System control panel). Look for a "USB Serial Port" in the Ports section; that's the Arduino board.
You'll need to specify your microcontroller. Look at the main chip on your Arduino board. It should say either ATmega8 or ATmega168. If the latter, you'll need to select ATmega168 from the Tools > Microcontroller menu.
Push the reset button on the board then immediately click the Upload button in the environment (don't wait for the board to "come back to life" before pressing the upload button). Wait a few seconds. If successful, the message "Done uploading." will appear in the status bar.
A few seconds after the upload finishes, you should see the amber (yellow) LED on the board start to blink. If it does, congratulations! You've gotten Arduino up-and-running.
If you have problems, please see the troubleshooting suggestions.