arduino talk by toon nelissen
DESCRIPTION
Talk from Toon Nelissen at TIII one-day conference. Visit www.appsaloon.be and www.arduino-jam.org to learn more about Toon.TRANSCRIPT
Arduino Developing some interactive interfaces fast & cheap
dinsdag 11 september 12
Toon Nelissen
co-owner of AppSaloon a Web-site/app development company
Maker
5 years of experience with the Arduino platform
Founder of the Arduino-jam
dinsdag 11 september 12
Arduino projects
some small projects
Bicycle POV wheel display
Flashing psychedelic goggles
Electrofried a shocking game
Capacitance touch sensor, a button without a knob
helped friend and people online to improve there code
dinsdag 11 september 12
Arduino projects
CM interactive stress game
wire loop game on time
if you touch the wire you get a time penalty
dinsdag 11 september 12
Arduino projects
Domotica controller with online interface
dinsdag 11 september 12
Arduino Jam
20 Arduino enthusiasts
one big brainstorm starting from 2 themes
forming +/- 8 teams
developing
documenting
this all within 48 hours
dinsdag 11 september 12
Do you want to know the magic of Arduino?
dinsdag 11 september 12
Arduino the basics
USB
14 I/O pins (20 on leonardo)
6 Analog input pins (12 on leonardo)
6 PWM out (7 on leonardo )
32 KB Flash memory 4 KB used by bootloader
dinsdag 11 september 12
Why the Arduino?Based on existing languages: Wiring, processing (C-syntax)
Bootloader easy to compile and upload a sketch
Easy to use software
Good documentation
Big Community
Open Source = improved through community
Cheap
dinsdag 11 september 12
Its easy to use!
5V
Accepts 7 to 12V of input
Overcurrent protection
Lots of shields
Lots of libraries
Wifi shield Motor shield
dinsdag 11 september 12
How to start?
Download Arduino IDE
Plug your Arduino in
Select your Arduino Board
Open a sketch
Hit run
dinsdag 11 september 12
It‘s really that easy!
dinsdag 11 september 12
What has a blinking light to do withInteractive interfaces ?
dinsdag 11 september 12
Arduino as a bridge
Reads out sensors
Collecting data
Communicate with devices
PCMacLinux
Sensors
Data
Internet
dinsdag 11 september 12
Arduino as stand-alone
Sensors
Data
Internet
Reads out sensors
Collecting data
Communicate with devices
Process data
Led
Lcd
character display
Internet
...
Motor
Servo
dinsdag 11 september 12
Lets get our hands dirty!
dinsdag 11 september 12
Arduino Sketch
global variable declaration
void setup()
void loop()
dinsdag 11 september 12
Digital In and Output (I/O)
pinMode(#, OUTPUT);pinMode(#, INPUT);
digitalWrite(#, HIGH);Set a pin state: HIGH or LOW
digitalRead(#);Read out a pin state: HIGH or LOW
dinsdag 11 september 12
Analog to digital
0 to 5V = resolution of 0 to 1023
analogRead(A#);
dinsdag 11 september 12
AnalogOut ?Lets use PWM
PWM or Pulse Width Modulation
analogWrite(#,value);Value: 0(0%) to 255 (100%)
Use :
dimming leds,
generate audio waves,
controlling servo and speed of motors
dinsdag 11 september 12
Communication
Serial connection
to computer, 7 segment displays
SPI
ethernet shield, SD-card
I2C
sensors, eeprom, slave arduino
dinsdag 11 september 12
Arduino Interupt magic
Do something when you where doing something else, controlled by a input
Hardware interrupts on pin 2 & 3
dinsdag 11 september 12
Arduino the Limitations
Program size is limited to 28KB
Limited amount of pins
16 MHz clockspeed
dinsdag 11 september 12
User cases
dinsdag 11 september 12
CM stressgame
60 leds
3 IO inputs
1 analog potentiometer
Sound out
dinsdag 11 september 12
Solutions
60 leds in a matrix with shift registers
2 interrupts to detect touch
1 analog read of potentiometer ( linear )
second arduino for sound
dinsdag 11 september 12
Electrofried shocking game
2 buttons
10.000 volt shock
dinsdag 11 september 12
OfficeDuino
ethernet connection
Power control
3 PWM signals
2 on/off states
Current sensor
temperature sensor
dinsdag 11 september 12
Arduino Jam: Nipkow disc
dinsdag 11 september 12
Arduino Jam: Reversed GeoCach
dinsdag 11 september 12
So prototyping some Interactive Interfaces with Arduino?
It’s cheap
Easy to learn
Prototyping can be done very fast
And it can fly
YES
dinsdag 11 september 12
Thanks for listening
dinsdag 11 september 12
www.arduino-jam.org
ARDUINO JAM21 - 23 sept 2012
@ timelab Ghent
dinsdag 11 september 12