MAKING THINGS TALK                                  An introduction to the basics of making with Arduino |  HAW x MASE |  ...
TOPICS                                     Introduction          Introduction in Programming                              ...
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
WHAT ARE WE DOING           Hardware      Getting closer to electronic circuits             Software     Writing simple so...
THE ONE IN FRONT   Jörn Sandner   Master Microelectronic Systems   Study at the FH Heide   plus one semester at the HAW Ha...
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
VOLTAGE & CURRENTVoltage: speed of        Current: amountthe electrons            of electrons> potential difference   > r...
CIRCUITbutton              light (LED)         resistor         +     -         battery
CIRCUITcurrent direction    +      -    battery
FUNCTIONAL VIEW“input”                                     “output”          button              light (LED)              ...
FUNCTIONAL VIEW“input”                                             “output”                button              light (LED)...
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
THE ARDUINO BOARD         Serial to USB Converter   Digital In & Out Pins           USB Port                              ...
SOFTWAREarduino.cc         fritzing.org
DIGITAL OUT / DIGITAL IN            ‣ Two States              ‣ ON / HIGH / 1              ‣ OFF / LOW / 0            ‣ Po...
DIGITAL OUT / DIGITAL IN  voltage                            HIGH     5V+      4      3      2      1                     ...
DIGITAL PORTS“input”                   “output” On/Off                    On/Off
ANALOG PORTS      ‣ Value range instead        of state        ‣ Input 0 -1023        ‣ Output 0 -255 (analog output      ...
ANALOG PORTS         0   1023             255              0
ANALOG INvoltage   5V+    4    3    2    1 GND          0   1   2   3   4   5   6   7   8   9   10   time
ANALOG OUT‣ There is no real variable voltage output‣ Analog signal is generated by waveform with  constant voltage and co...
ANALOG OUTvoltage   5V+    4    3    2    1 GND          0   1   2   3   4   5   6   7   8   9   10   time
ANALOG OUT                                                       Always same                                              ...
ANALOG OUT                                                        Always same                                             ...
ANALOG OUTvoltage              50%       75%   25%           100%   5V+    4    3    2    1 GND          0     1   2     3...
ANALOG OUTvoltage   5V+    4    3    2    1 GND          0   1   2   3   4   5   6   7   8   9   10   time
ANALOG RANGE ADAPTION    1023               255                0     0
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
PROGRAMMING      Basic setup (bare minimum)void setup(){     // running one time     // do basic setup of the Arduino Boar...
PROGRAMMING       Blink/*void setup(){     // Pin 13 connected   pinMode(13, OUTPUT);}void loop(){     digitalWrite(13, HI...
SOME STRUCTURES‣ Your Arduino is busy when busy ‣ One task at time‣ The program code is executed sequentially –  step by s...
SOME PROGRAMMING      BASICS‣ Save and recall values ‣ int myValue = 54;‣ Call functions ‣ digitalWrite(myValue, HIGH); ‣ ...
SOME FUNCTIONS‣ pinMode()‣ digitalWrite()‣ digitalRead()‣ analogReference()‣ analogRead()‣ analogWrite() – PWM‣ outValue =...
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
GETTING STARTED WITH BLINKING LED‣ Gather in groups‣ Get a Fritzing Kit‣ Start Arduino software‣ Follow me…
TOPICS  Introduction          Introduction in ProgrammingBasic Electronics             Getting StartedThe Arduino Board   ...
ANALOG OUTWITH FADING http://www.youtube.com/watch?v=Y2cLxmNnpOE
ANALOG IN WITH SERVO      AND POT     http://www.youtube.com/watch?v=SS6cntJ_LqQ
ANALOG IN WITH SERVO      AND LDR     http://www.youtube.com/watch?v=m9J3mDYy0Sg
PANDORA’S BOX20 cm                 Lady Ada Sensors                 http://www.ladyada.net/learn/sensors/                 ...
THE END OF THE BEGINNING                 Jörn Sandner |  Prof. Franziska Hübler |  Jeremy Tai Abbett Truth Dare Double Dar...
Arduino Basics
Upcoming SlideShare
Loading in...5
×

Arduino Basics

1,378

Published on

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.

Published in: Education, Technology, Business
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,378
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
52
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

Arduino Basics

  1. 1. MAKING THINGS TALK An introduction to the basics of making with Arduino |  HAW x MASE |  Hamburg, Germany |  16.04.2012flickr user hildeengwenverbouwen Jörn Sandner |  Prof. Franziska Hübler |  Jeremy Tai Abbett
  2. 2. TOPICS Introduction Introduction in Programming Basic Electronics Getting Started The Arduino Board ExercisesImage via http://vasastudio.com/
  3. 3. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  4. 4. WHAT ARE WE DOING Hardware Getting closer to electronic circuits Software Writing simple software for hardware
  5. 5. THE ONE IN FRONT Jörn Sandner Master Microelectronic Systems Study at the FH Heide plus one semester at the HAW Hamburg
  6. 6. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  7. 7. VOLTAGE & CURRENTVoltage: speed of Current: amountthe electrons of electrons> potential difference > resistance of the circuit
  8. 8. CIRCUITbutton light (LED) resistor + - battery
  9. 9. CIRCUITcurrent direction + - battery
  10. 10. FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery
  11. 11. FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery NOW: Put some “intelligence” in between
  12. 12. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  13. 13. THE ARDUINO BOARD Serial to USB Converter Digital In & Out Pins USB Port Power LED MicrocontrollerPower Supply Connection Power Pins Analog Input Pins
  14. 14. SOFTWAREarduino.cc fritzing.org
  15. 15. 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
  16. 16. 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
  17. 17. DIGITAL PORTS“input” “output” On/Off On/Off
  18. 18. ANALOG PORTS ‣ Value range instead of state ‣ Input 0 -1023 ‣ Output 0 -255 (analog output shared with digital out)
  19. 19. ANALOG PORTS 0 1023 255 0
  20. 20. ANALOG INvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  21. 21. ANALOG OUT‣ There is no real variable voltage output‣ Analog signal is generated by waveform with constant voltage and constant frequency
  22. 22. ANALOG OUTvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  23. 23. ANALOG OUT Always same periodvoltage Always 5V 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  24. 24. ANALOG OUT Always same periodvoltage 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
  25. 25. ANALOG OUTvoltage 50% 75% 25% 100% 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  26. 26. ANALOG OUTvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  27. 27. ANALOG RANGE ADAPTION 1023 255 0 0
  28. 28. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  29. 29. PROGRAMMING Basic setup (bare minimum)void setup(){ // running one time // do basic setup of the Arduino Board}void loop(){ // running for ever // your code}
  30. 30. 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}
  31. 31. 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
  32. 32. 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++) { // }
  33. 33. SOME FUNCTIONS‣ pinMode()‣ digitalWrite()‣ digitalRead()‣ analogReference()‣ analogRead()‣ analogWrite() – PWM‣ outValue = map (inValue, 0, 1023, 0, 255); // remember range conversion See http://arduino.cc/en/Reference/HomePage
  34. 34. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  35. 35. GETTING STARTED WITH BLINKING LED‣ Gather in groups‣ Get a Fritzing Kit‣ Start Arduino software‣ Follow me…
  36. 36. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  37. 37. ANALOG OUTWITH FADING http://www.youtube.com/watch?v=Y2cLxmNnpOE
  38. 38. ANALOG IN WITH SERVO AND POT http://www.youtube.com/watch?v=SS6cntJ_LqQ
  39. 39. ANALOG IN WITH SERVO AND LDR http://www.youtube.com/watch?v=m9J3mDYy0Sg
  40. 40. PANDORA’S BOX20 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
  41. 41. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×