Guide.Howto History

Hide minor edits - Show changes to output

November 04, 2006, at 01:14 PM by David A. Mellis - adding new hardware wizard screenshots
Changed lines 57-58 from:
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. On Windows, the Add New Hardware wizard will open; tell it you want to specify the location to search for drivers and point to the folder containing the USB drivers you unzipped in the previous step.
to:
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.
Added lines 63-80:
On Windows, the Add New Hardware wizard will open. Tell it not to connect to Windows update and click next.

Attach:wizard1-step1.png

Then select "Install from a list or specified location (Advanced)" and click next.

Attach:wizard1-step2.png

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.

Attach:wizard1-step3.png

The wizard will search for the driver and then tell you that a "USB Serial Converter" was found. Click finish.

Attach:wizard1-step4.png

The new hardware wizard will appear again. Go through the same steps. This time, a "USB Serial Port" will be found.
November 04, 2006, at 01:06 PM by David A. Mellis -
Added lines 45-46:
Attach:windows-extract-drivers.png
November 04, 2006, at 12:23 PM by David A. Mellis - adding group to relative links
Changed line 18 from:
* '''buy a ready made board'''. See how you can [[buy]] a board or just the PCB.
to:
* '''buy a ready made board'''. See how you can [[Main/Buy| buy]] a board or just the PCB.
Changed line 21 from:
* '''build your own board'''. If you want you can build your own PCB just by downloading the CAD files from the [[Hardware]] page. Extract the .brd file and send it to a PCB manufacturer. Be aware that manufacturing a single pcb will be very expensive. It's better to get together with other people and make 20 or 30 at a time. Since you get the full CAD files you can make your own customised version of Arduino. if you make modifications or fix bugs please send us your changes!
to:
* '''build your own board'''. If you want you can build your own PCB just by downloading the CAD files from the [[Main/Hardware]] page. Extract the .brd file and send it to a PCB manufacturer. Be aware that manufacturing a single pcb will be very expensive. It's better to get together with other people and make 20 or 30 at a time. Since you get the full CAD files you can make your own customised version of Arduino. if you make modifications or fix bugs please send us your changes!
Changed lines 23-25 from:
** '''assemble the board'''. We put together a step by step [[BuildSerial | guide]] on how to build an arduino board. ''Newbies: never soldered before? afraid of trashing thousands of boards before getting one properly soldered? fear not :) learn to master the art of [[http://www.potemkin.org/cms/Pid/Soldering | soldering]].''
** '''program the bootloader'''. In order for the development environment to be able to program the chip, this has to be programmed with a piece of code called ''bootloader''. See the [[bootloader]] page on how to program it on your chip.
to:
** '''assemble the board'''. We put together a step by step [[Main/BuildSerial | guide]] on how to build an arduino board. ''Newbies: never soldered before? afraid of trashing thousands of boards before getting one properly soldered? fear not :) learn to master the art of [[http://www.potemkin.org/cms/Pid/Soldering | soldering]].''
** '''program the bootloader'''. In order for the development environment to be able to program the chip, this has to be programmed with a piece of code called ''bootloader''. See the [[Main/bootloader]] page on how to program it on your chip.
Changed lines 30-33 from:
From the [[Software | software page]].

''Linux note'': For help getting the Arduino IDE running on Debian, please see the [[FAQ]] ("How can I run the Arduino IDE under Linux?").
to:
From the [[Main/Software | software page]].

''Linux note'': For help getting the Arduino IDE running on Debian, please see the [[Main/FAQ#linux]] ("How can I run the Arduino IDE under Linux?").
Changed lines 81-82 from:
If the Arduino board doesn't show up in the Tools | Serial Port menu, or you get an error while uploading, please see the [[FAQ]] for troubleshooting suggestions.
to:
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 | troubleshooting suggestions]].
Changed line 88 from:
* Learn about the parts of the [[Tutorial/ArduinoBoard | Arduino board]]
to:
* Learn about the parts of the [[Board | Arduino board]]
Changed lines 91-92 from:
* The Arduino programming language is compatible with the [[http://www.wiring.org.co | Wiring]] language allowing porting applications from the Wiring board to Arduino. Please note the [[ComparisonProcessing | differences between the Wiring and Processing languages]].
* If you're having problems, check the [[FAQ]].
to:
* The Arduino programming language is compatible with the [[http://www.wiring.org.co | Wiring]] language allowing porting applications from the Wiring board to Arduino. Please note the [[Main/ComparisonProcessing | differences between the Wiring and Processing languages]].
* If you're having problems, check the [[Main/FAQ]].
October 22, 2006, at 07:20 PM by David A. Mellis -
Added lines 1-95:
!!Arduino Howto

These are the steps you need to follow in order to be up and running:

# Get an Arduino board
# Download the Arduino environment
# Install the USB drivers
# Connect the board
# Upload a program

!!!1 | Get an Arduino board
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.

Attach:ArduinoNG.jpg

There are a few ways to get an Arduino board:

* '''buy a ready made board'''. See how you can [[buy]] a board or just the PCB.
** [[http://pcb-europe.net/catalog/index.php?cPath=29 | European distributor]]
** [[http://www.sparkfun.com/commerce/product_info.php?products_id=666 | US distributor]]
* '''build your own board'''. If you want you can build your own PCB just by downloading the CAD files from the [[Hardware]] page. Extract the .brd file and send it to a PCB manufacturer. Be aware that manufacturing a single pcb will be very expensive. It's better to get together with other people and make 20 or 30 at a time. Since you get the full CAD files you can make your own customised version of Arduino. if you make modifications or fix bugs please send us your changes!
** '''purchase parts'''. purchase the parts from any electronics store. The Serial version in particular has been designed to use the most basic parts that can be found anywhere in the world. The USB version on the other hand requires some advanced soldering skills because of the FTDI chip that is an smd part. Here is a [[PartsSerial | list]] of parts for the serial board.
** '''assemble the board'''. We put together a step by step [[BuildSerial | guide]] on how to build an arduino board. ''Newbies: never soldered before? afraid of trashing thousands of boards before getting one properly soldered? fear not :) learn to master the art of [[http://www.potemkin.org/cms/Pid/Soldering | soldering]].''
** '''program the bootloader'''. In order for the development environment to be able to program the chip, this has to be programmed with a piece of code called ''bootloader''. See the [[bootloader]] page on how to program it on your chip.

!!!2 | Download the Arduino environment
To program the Arduino board you need the Arduino environment.

'''Download Arduino''':
From the [[Software | software page]].

''Linux note'': For help getting the Arduino IDE running on Debian, please see the [[FAQ]] ("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.

Attach:MacSetupCommand.png

For more information, see the [[Environment | guide to the Arduino environment]].

!!!3 | Install the USB drivers
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 @@FTDIUSBSerialDriver.pkg@@.

Attach:USBDriversMac.png

The latest version of the drivers can be found on the [[http://www.ftdichip.com/Drivers/VCP.htm | FTDI website]].

!!!4 | Connect the board

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. On Windows, the Add New Hardware wizard will open; tell it you want to specify the location to search for drivers and point to the folder containing the USB drivers you unzipped in the previous step.

The power LED should go on.

Attach:PluggedIn.jpg

!!!5 | Upload a program

Open the LED blink example sketch: File > Sketchbook > Examples > led_blink.

Attach:LedBlinkExample.png

Here's what the code for the LED blink example looks like.

Attach:ArduinoEnvironment.png

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. 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).

Attach:SerialPortSelection.png

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.

Attach:ResetBoard.jpg

Attach:UploadToBoard.png

If the Arduino board doesn't show up in the Tools | Serial Port menu, or you get an error while uploading, please see the [[FAQ]] for troubleshooting suggestions.

A few seconds after the upload finishes, you should see the amber (yellow) LED on the board start to blink.

!!!Learn More

* Read about the [[Environment | Arduino Environment]]
* Learn about the parts of the [[Tutorial/ArduinoBoard | Arduino board]]
* See the [[Tutorial/HomePage | tutorials]] for some example programs. (There are also some examples available in the @@examples@@ directory inside the arduino directory.)
* Look up specific Arduino functions and syntax in the [[Reference/HomePage | reference]]
* The Arduino programming language is compatible with the [[http://www.wiring.org.co | Wiring]] language allowing porting applications from the Wiring board to Arduino. Please note the [[ComparisonProcessing | differences between the Wiring and Processing languages]].
* If you're having problems, check the [[FAQ]].
* If you don't find a solution there, try posting in the [[http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl | forums]].

Share