You are on page 1of 58

Open Hardware based on the Arduino Platform for the design of control electronics, robotics, interactive spaces, etc.

Erasmus Teaching staff visit May 2012 Karabk niversitesi Turkey


Prof. Jos Manuel Ruiz Gutirrez -----Art School "Antonio Lpez" Tomelloso (Ciudad Real) SPAIN

Prof. Jos Manuel Ruiz May 2012

Introducction

Physical Computing is a new research field in which


our world of everyday objects and places becomes infused and augmented with information processing and exchange. The advocates of this notion demonstrate that physical objects have a sensory richness of meaning that screen-based elements do not.

When we see, hear and feel real-world objects we are enabled to train both cognitive and perceptual skills in combination. Such objects can help us create interfaces that are easier and more fun to use.

Prof. Jos Manuel Ruiz May 2012

Introducction
Components of a Physical Computing System
controllers
high-level (Basic Stamp, Phidgets) low-level (PIC) middle level (Arduino) wireless sensors platforms (mostly low level), Smart-it, Mote Middle-level wireless sensor platform: SPOT

sensors actuators communication to other controller or PC


wireless communication

programming environment on PC

Prof. Jos Manuel Ruiz May 2012

Introducction

Open Source Hardware (OSHW) is a


term for tangible artifacts -- machines, devices, or other physical things -- whose design has been released to the public in such a way that anyone can make, modify, distribute, and use those things.
http://www.oshwa.org/

Prof. Jos Manuel Ruiz May 2012

Introducction
The new paradigm of "OpenHardware" solves the problems of prototype development and provides the community of researchers and students a powerful tool. Economical Powerful Supported by the Internet community through

Prof. Jos Manuel Ruiz May 2012

Arduino
Arduino is an Open Hardware Platform for developing applications in the field of Computational Physics applied to many different areas

Prof. Jos Manuel Ruiz May 2012

What is Arduino?

Prof. Jos Manuel Ruiz May 2012

What is Arduino?

Prof. Jos Manuel Ruiz May 2012

What is Arduino?

Prof. Jos Manuel Ruiz May 2012

What is Arduino? Arduino and Physical computing:


Ubiquitous computing Physical interfaces ... electronics materials for artists materials

A Hardware

+ A Software

+ A Community

Prof. Jos Manuel Ruiz May 2012

What is Arduino?
Arduino is a open-source platform prototyping hardware and software easy to use. It is designed for artists, designers, electronics hobbyists, and anyone interested in creating interactive objects and environments.
Type of Arduino Board

Arduino serial port Obsolte

Arduino USB
Prof. Jos Manuel Ruiz May 2012

What is Arduino?
Can be used by artists and designers
Easy for the creation of prototype Reusability of the components

Open: Freedom to inspect and modify


Large community of users: wiki, forums, tutorials and examples available

Prof. Jos Manuel Ruiz May 2012

Features of Arduino
Arduino Terminology
Sketch - a program that is written to run on Using an Arduino Arduino IDE software "Pin" - an input or output connected to a component. Example: output to a LED, a switch, etc..

"Digital" - value either HIGH (HIGH) or LOW (LOW). (on / off, one / zero). For example the change of state of a switch
"Analog" - ranges of values, usually 0-255. for example, brightness of a LED, motor speed, etc.

Prof. Jos Manuel Ruiz May 2012

What adds to the Computational Physics Arduino?

The Computational Physics use prototype electronic, making actuators and sensors microcontrollers for designers and artists. The idea is to design interactive objects that can communicate with humans using sensors and actuators controlled by behavioral models and algorithms implemented in software that resides on the card allowing autonomous operation s In addition to the interaction with the PC.
Massimo Banzi, Tinker.it & Arduino Co-Founder

Prof. Jos Manuel Ruiz May 2012

Introduction to Arduino
Arduino UNO
Arduino is a microcontroller board that connects sensors and actuators via its inputs and outputs, analog and digital. The microcontolador is programmed using a language of Arduino (based on Wiring) using an integrated development environment (IDE) based on Processing.
Prof. Jos Manuel Ruiz May 2012

Introduction to Arduino
Features

Arduino UNO

Microcontroller ATmega328 Operating Voltage5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328) SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz Prof. Jos Manuel Ruiz May 2012

Introduction to Arduino
Arduino projects can be developed autonomous (stand-lone) or can communicate with any software through the serial port on-line (eg Flash, Processing, MaxMSP ...). Arduino boards can be assembled by hand or purchased assembled. The software can be downloaded free from the web. The schematic (CAD files) are available under open-source license, so that you can modify if necessary.

Arduino UNO

Prof. Jos Manuel Ruiz May 2012

Types Arduino board


There are many variants of Arduino each geared to a specific applications, but they all share the same hardware architecture and the same communication protocol and programming IDE

Ethernet Arduino

Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Arduino Pro Mini 328 - 5V/16MHz

This is the miniaturized version of Arduino Mini made by Sparkfun and is 100% compatible with Arduino Duemilanove.

Prof. Jos Manuel Ruiz May 2012

Types Arduino board Arduino MEGA ADK

This board is based on the Arduino MEGA 2560 but modified to allow use with the Android Open Accessory Development Kit (ADK) for Google because it has built-in USB Host port.
Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Arduino Mega 2560

Features:
Microcontroller ATmega2560 Supply voltage: 5V Input Voltage: 7-12V Input limit: 6-20V Digital pins: 54 (14 with PWM) Analog inputs: 16 Maximum current per pin: 40 mA Maximum current for 3.3V Pin: 50 mA Flash memory: 256 KB SRAM: 8 KB EEPROM: 4 KB Clock speed: 16 MHz

The New Arduino Mega 2560 (rev 3) comes with more memory for the program, more RAM and more pins. 100% compatible with the version of UNO or Duemilanove.

Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Arduclema (made in Spain)
http://www.ray-ie.com/index.htm

28,00 EUR
INCLUDES NEW CONNECTIONS TO SCREW TERMINALS MORE ROBUST. PULL-UP RESISTENCAS OF COMMUNICATIONS I2C. ACTIVATED BY JUMPERS. SMALL (58x72 mm).
Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Arduino BT (Bluetooth)

99.00

This board is the Bluetooth version of the Arduino Diecimila USB.

http://www.bricogeek.com/
Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Reducing the size of Arduino has its greatest exponents in these designs

Arduino Nano

Arduino mini

29.00 http://www.bricogeek.com/
Prof. Jos Manuel Ruiz May 2012

Types Arduino board


Arduino XBee Shield
http://www.bricogeek.com/

39.00 Board for Arduino Diecimila USB pincorporating an XBee wireless module from MaxStream. Use a modified protocol of ZigBee and allows for wireless communications. This board fits perfectly into the Arduino Diecimila USB and feeds on it.
Prof. Jos Manuel Ruiz May 2012

Lilypad

Types Arduino board


The miniaturized version of Arduino: It can be deployed in dresses. Small devices etc. .. $19.95

Dimetro 5 cm.

http://www.sparkfun.com/commerce/categories.php

Programming Lilypad
Prof. Jos Manuel Ruiz May 2012

Introduction to Arduino

Overview of the Arduino Decimila


Prof. Jos Manuel Ruiz May 2012

Arduino: Power supply


Arduino has two basic forms of energy supply

Through the USB port

Through external power supply (5 to 15V)

Battery
Prof. Jos Manuel Ruiz May 2012

Arduino: Inputs Opuputs


Here we see the arrangement of input and output Arduino UNO
Outputs analog (PWM) Six (6)

Inputs/Ouputs Digital Pins 14 (up to 20)

6 Inputs analog six (6)


Prof. Jos Manuel Ruiz May 2012

Digital input sensors


Types of hardware elements connectable to the digital inputs of Arduino UNO

Switch

movement

Reed Switch

button

Prof. Jos Manuel Ruiz May 2012

Analog input sensors

Types of hardware elements can be connected to the analog inputs of Arduino UNO

temperature

Breathalyzer

microphone

Piezo

compass

Ultrasonic Distance

Resistive force sensor

Joystick

Humidity

Prof. Jos Manuel Ruiz May 2012

Ouput Actuators

Types of hardware elements can be connected to the Arduino digital output ONE
Relay

Stepper motor

servomotor

solenoid

Array Leds
LED Tricolor RGB Display

Two color 8x8 LED Matrix

Prof. Jos Manuel Ruiz May 2012

Arduino Kits

Here are a few kits marketed for training Arduino Open Hardware Platform

Arduino Lab Kit 117,88

72,50
Prof. Jos Manuel Ruiz May 2012

Arduino Shields
To assemble applications with the Arduino platform provides a wide range of shields that facilitate prototyping work

Arduino Relay Shield For connecting high power loads

Arduino Shield Kit Plug and Play Modules


Prof. Jos Manuel Ruiz May 2012

Arduino Shields

Arduino Shield Motor 2A DFRobot

Arduino Shield Module Board DFRobot For assembly of electronic components wired

To power small motor

Prof. Jos Manuel Ruiz May 2012

Arduino: Comunication
USB Port (FTDI)
For programming In PC applications

Serial Port: RX/TX


serial communication with other elements

ICSP
For firmware programming

Prof. Jos Manuel Ruiz May 2012

Arduino: Proccesor Arduino has ...


Clock a 16/20 Mhz Reset button

Microcontroler Atmega 8/168


Prof. Jos Manuel Ruiz May 2012

Arduino-PC Connection
There are two ways of connecting Arduino to PC ...
Type I
RS232 Serial Cable

Type II
Cable USB Port

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
The steps for connecting Arduino to the computer are: 1. Download the Arduino software and unzip the file that contains 2. Connect the Arduino 3. Installing the Driver 4. Restart the computer 5. Start the Arduino program 6. Verify that the Arduino IDE software recognizes the card

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
1. Download the Arduino software and unzip the file that contains

It will create a folder structure

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
2. Connect the Arduino
Connecting Arduino to PC will activate the power indicator. Flashing the communication light indicator
Flashing LED test card Activate the Power LED

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
3. Driver Installation for USB port
The first time you connect Arduino computer detects the connection and activate a plug and play process by which we select the USB driver.

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
SOFTWARE
INSTALLATION PROGRAMMING ENVIRONMENT Once downloaded, to begin working with the development environment Windows, it is only necessary to decompress the file contents compressed into a folder on your PC. Once unpacked it is only necessary to run the file "Arduino.EXE". (Arduino folder of the program should be in Program Files to work properly)

Prof. Jos Manuel Ruiz May 2012

Installing Arduino
CONFIGURATION OF COMMUNICATIONS The first thing to do is set up communications between the Arduino and PC. To do this we open the "Tools" menu options "Serial Port" and "Serial Monitor Baud Rate".

In the first of the two options we will select the serial port it is connected to our plate. On Windows, the port will be COM1 or COM2 for serial board, COM3, COM4 ... for the USB card (or number plate connected by a USB-serial adapter). If using a USB-serial adapter name can vary.
Prof. Jos Manuel Ruiz May 2012

The "intelligence Arduino" is expressed by programming language

Prof. Jos Manuel Ruiz May 2012

IDE Arduino
This is the Arduino Programming Environment ...

IDE Integrated Development Environment


The execution process of an program (sketch) consists of three steps: Write the code on the card Compile Download it
To program the board is necessary to download the Arduino website (http://www.arduino.cc/) development environment (IDE).

Prof. Jos Manuel Ruiz May 2012

IDE Arduino
File New, save, load, Examples Edit Cut, Paste, Search Sketch Verify, compile, Libraries, .. Tools Port configuration, type of card ..

The main options are IDE ....

Writing Area the sketch

Area Monitoring serial Port

Prof. Jos Manuel Ruiz May 2012

IDE Arduino
Main action buttons
VERIFY

UPLOAD NEW SKETCH OPEN SKETCH SAVE SKETCH

Prof. Jos Manuel Ruiz May 2012

IDE Arduino Loading a program from the Arduino IDE to Card through the serial communication port

Prof. Jos Manuel Ruiz May 2012

Process for executing an application

IDE Arduino

Prof. Jos Manuel Ruiz May 2012

Arduino distributors in Turkey

http://www.robitshop.com/

http://www.robomore.com/main/

http://www.roboweb.net/

Prof. Jos Manuel Ruiz May 2012

Realization of prototypes

For prototyping using a breadboard in which electronic components are inserted and the cables leading to the I/O of the Arduino. This method is very fast and comfortable
Prof. Jos Manuel Ruiz May 2012

Realization of prototypes
For the realization of prototypes we can help.

Frizing is a very useful design environment that helps


us creating prototypes at every stage: Mounting on the breadboard. Realization of the wiring diagram Embodiment of the card

Prof. Jos Manuel Ruiz May 2012

Software for the creation of prototypes

Component Library http://fritzing.org/

Prof. Jos Manuel Ruiz May 2012

Fritzing

Phases for the elaboration of a prototype

First
We developed the prototype with the help of the Breadboard and components library

Second
We get the Wiring Diagram

Prof. Jos Manuel Ruiz May 2012

Fritzing

Phases for the elaboration of a prototype

Third
So elaborate Automatic / Manual card components of our prototype

Prof. Jos Manuel Ruiz May 2012

Fritzing

Elaboration on Fritzing

Elaboration of the real prototype


Prof. Jos Manuel Ruiz May 2012

THANKS !!!
j.m.r.gutierrez@gmail.com

http://josemanuelruizgutierrez.blogspot.com.es/
Prof. Jos Manuel Ruiz May 2012

You might also like