The basics of understanding electronics and physical interaction with Arduino presented and taught by Jörn Sandner, Prof. Franziska Hübler and Jeremy Abbett for the University of Applied Arts - Hamburg and Miami Ad School Europe.
1. MAKING THINGS TALK
An introduction to the basics of making with Arduino | HAW x MASE | Hamburg, Germany | 16.04.2012
flickr user hildeengwenverbouwen
Jörn Sandner | Prof. Franziska Hübler | Jeremy Tai Abbett
2. TOPICS
Introduction Introduction in Programming
Basic Electronics Getting Started
The Arduino Board Exercises
Image via http://vasastudio.com/
3. TOPICS
Introduction Introduction in Programming
Basic Electronics Getting Started
The Arduino Board Exercises
4. WHAT ARE WE DOING
Hardware
Getting closer to electronic circuits
Software
Writing simple software for hardware
5. THE ONE IN FRONT
Jörn Sandner
Master Microelectronic Systems
Study at the FH Heide
plus one semester at the HAW Hamburg
6.
7. TOPICS
Introduction Introduction in Programming
Basic Electronics Getting Started
The Arduino Board Exercises
8. VOLTAGE & CURRENT
Voltage: speed of Current: amount
the electrons of electrons
> potential difference > resistance of the circuit
12. FUNCTIONAL VIEW
“input” “output”
button light (LED)
resistor
+ -
battery
NOW: Put some “intelligence” in between
13. TOPICS
Introduction Introduction in Programming
Basic Electronics Getting Started
The Arduino Board Exercises
14. THE ARDUINO BOARD
Serial to USB Converter Digital In & Out Pins
USB Port
Power LED
Microcontroller
Power Supply Connection
Power Pins Analog Input Pins
16. DIGITAL OUT / DIGITAL IN
‣ Two States
‣ ON / HIGH / 1
‣ OFF / LOW / 0
‣ Port mode (in/out)
controlled by software
‣ 12 Ports available
‣ some with special functions
17. DIGITAL OUT / DIGITAL IN
voltage
HIGH
5V+
4
3
2
1 LOW
GND
0 1 2 3 4 5 6 7 8 9 10 time
24. ANALOG OUT
Always same
period
voltage
Always 5V
5V+
4
3
2
1
GND
0 1 2 3 4 5 6 7 8 9 10 time
25. ANALOG OUT
Always same
period
voltage
Always 5V
5V+
4
Getting different values
by moving the middle
3 line within the period
2
1
GND
0 1 2 3 4 5 6 7 8 9 10 time
26. ANALOG OUT
voltage
50% 75% 25% 100%
5V+
4
3
2
1
GND
0 1 2 3 4 5 6 7 8 9 10 time
29. TOPICS
Introduction Introduction in Programming
Basic Electronics Getting Started
The Arduino Board Exercises
30. PROGRAMMING
Basic setup (bare minimum)
void setup()
{
// running one time
// do basic setup of the Arduino Board
}
void loop()
{
// running for ever
// your code
}
31. PROGRAMMING
Blink
/*void setup()
{
// Pin 13 connected
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
32. SOME STRUCTURES
‣ Your Arduino is busy when busy
‣ One task at time
‣ The program code is executed sequentially –
step by step
‣ A command has to wait until it‘s previous has executed
33. SOME PROGRAMMING
BASICS
‣ Save and recall values
‣ int myValue = 54;
‣ Call functions
‣ digitalWrite(myValue, HIGH);
‣ myValue = analogRead(0);
‣ Conditional execution
‣ if (myValue == 54) { // } else { // }
‣ Repeat commands
‣ for(int i = 0; i<10; i++) { // }
39. ANALOG IN WITH SERVO
AND POT
http://www.youtube.com/watch?v=SS6cntJ_LqQ
40. ANALOG IN WITH SERVO
AND LDR
http://www.youtube.com/watch?v=m9J3mDYy0Sg
41. PANDORA’S BOX
20 cm
Lady Ada Sensors
http://www.ladyada.net/learn/sensors/
Interfacing With Hardware
http://arduino.cc/playground/Main/InterfacingWithHardware
Index of Arudino Knowledge
http://www.freeduino.org/
20 cm
42. THE END OF THE BEGINNING
Jörn Sandner | Prof. Franziska Hübler | Jeremy Tai Abbett
Truth Dare Double Dare | www.truthdaredoubledare.com | hello@truthdaredoubledare.com