Arduino
description
Transcript of Arduino
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 1 Haring, Naderer, Zachhuber
Arduino
Open Source Project (HW u. SW) Analog und digital I/Os USB-Interface for communication with
the PC Programming in C++ with Wiring
Framework Java-IDE Big community
Lots of SW libraries Lots of HW components
Autonomous usage via battery possible Distribution
Mainly used among architects and media artists
12 distribution partners in Europa Lots of Nachbauvarianten
http://www.arduino.cc
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 2 Haring, Naderer, Zachhuber
Arduino DuemilanoveMicrocontroller ATmega168
Operating Voltage 5V
Input Voltage 7-12V
Input Voltage (limits)
6-20V
Digital I/O Pins 14
Analog Input Pins 6
DC Current per I/O Pin
40 mA
Flash Memory 16 KB
SRAM 1 KB
EEPROM 512 bytes
Clock Speed 16 MHz
Newest USB-Board of Arduino $35 at Sparkfun Hardware-Design available for
free Atmel ATmega168 USB to Serial Converter Quarz-Oscillator Multi-Pin Connector Power supply USB or
Battery/Power Adapter PWM: 3, 5, 6, 9, 10, and 11.
Provide 8-bit PWM output with the analogWrite() function
Arduino NG No built-in LED connected
to digital pin 13 Atmel ATmega168 or ATmega8
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 3 Haring, Naderer, Zachhuber
Atmel ATmega168
RISC Processor Power: 3,5µW – 45mW (bei 5V und 16
MHz) Harvard Architecture Memory
16KB Flash (Program + Data) 1KB SRAM (Data) 512Bytes EEPROM
16MHz Clock Frequency 23 GPIO Pins 6 PWM Outputs 6 Analog Inputs(10 Bit ADC-Converter) 2x 8-Bit Timer 1x 16-Bit Timer Bus Interfaces
USART SPI (Master) I2C (Master/Slave)
Watchdog Timer
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 4 Haring, Naderer, Zachhuber
Duemilanove Accessories
TouchShield XBee Shield Stepper Motor Control
Ethernet Shield GPS Shield Sensoren / Aktuatoren
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 5 Haring, Naderer, Zachhuber
Sampe Project Ardrumo
MIDI drums Self construction $53 Piezo-Elements for pressure
sensitive sensors
Arduino-Board A/D-Convertion of signals Data transfer via USB Only 14 lines of code!
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 6 Haring, Naderer, Zachhuber
Arduino LilyPad – Main Board
Wearable E-Textile Technology developed by Leah Buechley [http://web.media.mit.edu/~leah/index.html]
Designed in cooperation with Spark Fun Electronics Sewing on and washing of clothes possible ATmega168V with Arduino Bootloader Lots of accessories available(Input, Output, Power, Sensor
und Actuator-Boards)
Dimensios: 50mm outer diameter Thickness 0,8 mm
Microcontroller ATmega168V
Operating Voltage 2.7-5.5 V
Input Voltage 2.7-5.5 V
Digital I/O Pins14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin
40 mA
Flash Memory16 KB (of which 2 KB used by bootloader)
SRAM 1 KB
EEPROM 512 bytes
Clock Speed 8 MHz
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 7 Haring, Naderer, Zachhuber
Arduino LilyPad – Zubehör
LilyPad Accelerometer 20 mm Ø, $24.95
LilyPad Bright White LED 6 x 11 mm, $ 1.95
LilyPad Button Board8 x 16 mm, $ 1.50
LilyPad Buzzer20 mm Ø, $ 7.95
LilyPad Tri-Color LED20 mm Ø, $7.95
LilyPad Vibe Board20 mm Ø, $14.95
LilyPad USB Link 0.9x1.25", $14.95
LilyPad Temperature Sensor20 mm Ø, $ 4.95
LilyPad Power Supply AAA battery (1.2 – 5V)
56 x 26 mm, $14.95
LilyPad LiPower Supply Lithium Polymer battery (5V)
20 mm Ø, $14.95
Conductive Thread 117/17 2ply, 234/34 4ply, $19.95
LilyPad Light Sensor 20 mm Ø, $7.95
LilyPad Extensions:Bluetooth (siehe Abb.)Data-Logging
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 8 Haring, Naderer, Zachhuber
Leah Buechley – Turn Lights for Bikers
Buttons on the sleeve cuffs
Lights LEDs
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 9 Haring, Naderer, Zachhuber
Arduino – Programmierung
Java IDE „Processing“ MIT-Project
Programming in C++ GNU Compiler
Simple Projects Wiring Bibliothek abstracts Hardware
User has to implement setup and loop Setup is called once Loop is called cyclic
Only one file with source code per project (Sketch)
One control flow No Interrupts
Many additional libraries from community ~ 30 on www.arduino.cc Stepper Motor Control Soft-UART LCD Etc.
„Printf“-Debugging Bootloader allows Flash-Programming
via USB
Unconventional User Interface // 26.01.2009 // Mood Based Navigation Sheo // 10 Haring, Naderer, Zachhuber
Prototyp – 2 shoes
Components: 4 green LEDs
(front, right, back, left) 4 resistors (150 Ω) Connector pins for every
LED and GND (5V) Arduino digital pins 4 - 7 USB cable to PC/PDA