Anda di halaman 1dari 3

Physical Computing

Prof. Fabian Winkler


Spring 2008

Arduino Workshop – Getting Started

Arduino
see: http://www.arduino.cc

Arduino is an open-source physical computing platform based on a simple i/o board,


and a development environment for writing Arduino software. Arduino can be used to
develop interactive objects, taking inputs from a variety of switches or sensors, and
controlling a variety of lights, motors, and other outputs. Arduino projects can be
stand-alone, or they can communicate with software running on your computer (e.g.
Flash, Processing, MaxMSP). The open-source IDE can be downloaded for free.

• Arduino is an open source project, owned by nobody and supported by many.

• The Team is composed of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca
Martino, David Mellis and Nicholas Zambetti

• Yaniv Steiner and Giorgio Olivero have been supporting the project and are
working at using it with the Instant Soup platform.

• The Arduino platform includes the avr-gcc tool chain, uisp, and the Procyon
AVR-LIB by Pascal Stang.

• The Arduino language syntax is based on Wiring by Hernando Barragan

Why using Arduino?

• It is flexible, offers a variety of digital and analog inputs, SPI and serial interface
and digital and PWM outputs
• It is easy to use, connects to computer via USB and communicates using standard
serial protocol, runs in standalone mode and as interface connected to
PC/Macintosh computers
• It is inexpensive, around $30 per board and comes with free authoring software
• It is an open-source project, software/hardware is extremely accessible and very
flexible to be customized and extended
• Arduino is backed up by a growing online community, lots of source code is
already available and we can share and post our examples for others to use, too!

Winkler, Arduino workshop – getting started, p.1


Introduction to the Arduino Board
(see: http://www.arduino.cc/en/Guide/Board)

Looking at the board from the top down, this is an outline of what you will see (parts of
the board you might interact with in the course of normal use are highlighted):

Starting clockwise from the top center:

• Analog Reference pin (orange)


• Digital Ground (light green)
• Digital Pins 2-13 (green)
• Digital Pins 0-1/Serial In/Out - TX/RX (dark green) - These pins cannot be used
for digital i/o (digitalRead and digitalWrite) if you are also using serial
communication (e.g. Serial.begin).
• Reset Button - S1 (dark blue)
• In-circuit Serial Programmer (blue-green)
• Analog In Pins 0-5 (light blue)
• Power and Ground Pins (power: orange, grounds: light orange)
• External Power Supply In (9-12VDC) - X1 (pink)
• Toggles External Power and USB Power (place jumper on two pins closest to
desired supply) - SV1 (purple)
• USB (used for uploading sketches to the board and for serial communication
between the board and the computer; can be used to power the board) (yellow)

Winkler, Arduino workshop – getting started, p.2


Hello World!

This section discusses how you get ready to work with the Arduino, install the Arduino
software and upload simple programs to your board.

For detailed descriptions please go to:


http://www.arduino.cc/en/Guide/HomePage

1. Download the Arduino software (current version 0010) - http://www.arduino.cc/

2. Install the USB drivers

3. Connect your Arduino board

4. Set the right Microcontroller (MCU) and serial port in the Arduino software

5. Write your program and upload it to the Arduino board

Winkler, Arduino workshop – getting started, p.3

Anda mungkin juga menyukai