The document discusses using Arduino for developing interactive interfaces quickly and inexpensively. It describes the speaker's experience with Arduino projects, including stress games, domotics controllers, and an Arduino jam event. Arduino allows for fast prototyping of interactive projects through its inexpensive, easy to use hardware and software platform that has input/output pins and libraries to interface with sensors, displays and more.
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Arduino talk by Toon Nelissen
1. Arduino
Developing some interactive interfaces fast & cheap
dinsdag 11 september 12
2. 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
3. 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
4. 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
5. Arduino projects
Domotica controller with online
interface
dinsdag 11 september 12
6. 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
7. Do you want to know the magic of
Arduino?
dinsdag 11 september 12
8. 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
9. 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
10. Its easy to use!
5V Wifi shield Motor shield
Accepts 7 to 12V of input
Overcurrent protection
Lots of shields
Lots of libraries
dinsdag 11 september 12
11. How to start?
Download Arduino IDE
Plug your Arduino in
Select your Arduino Board
Open a sketch
Hit run
dinsdag 11 september 12
13. What has a blinking light to do with
Interactive interfaces ?
dinsdag 11 september 12
14. Arduino as a bridge
Sensors Reads out sensors
Collecting data
PC
Communicate with
Data Mac
devices
Linux
Internet
dinsdag 11 september 12
15. Servo
Arduino as stand-alone Motor
Reads out sensors Led
Sensors
Collecting data
Communicate with Lcd
Data devices
Process data character display
Internet Internet
...
dinsdag 11 september 12
16. Lets get our hands dirty!
dinsdag 11 september 12
17. Arduino Sketch
global variable declaration
void setup()
void loop()
dinsdag 11 september 12
18. 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
19. Analog to digital
0 to 5V = resolution of 0 to 1023
analogRead(A#);
dinsdag 11 september 12
20. 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
21. Communication
Serial connection
to computer, 7 segment displays
SPI
ethernet shield, SD-card
I2C
sensors, eeprom, slave arduino
dinsdag 11 september 12
22. 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
23. Arduino the Limitations
Program size is limited to 28KB
Limited amount of pins
16 MHz clockspeed
dinsdag 11 september 12
25. CM stressgame
60 leds
3 IO inputs
1 analog potentiometer
Sound out
dinsdag 11 september 12
26. 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
31. So prototyping some Interactive Interfaces with Arduino?
YES
It’s cheap
Easy to learn
Prototyping can be done very fast
And it can fly
dinsdag 11 september 12