Your SlideShare is downloading. ×
0
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Arduino Basics
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Arduino Basics

1,346

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 - …

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,346
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
51
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  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. TOPICS Introduction Introduction in Programming Basic Electronics Getting Started The Arduino Board ExercisesImage via http://vasastudio.com/
  3. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe 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. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  7. VOLTAGE & CURRENTVoltage: speed of Current: amountthe electrons of electrons> potential difference > resistance of the circuit
  8. CIRCUITbutton light (LED) resistor + - battery
  9. CIRCUITcurrent direction + - battery
  10. FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery
  11. FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery NOW: Put some “intelligence” in between
  12. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  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. SOFTWAREarduino.cc fritzing.org
  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. 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. DIGITAL PORTS“input” “output” On/Off On/Off
  18. ANALOG PORTS ‣ Value range instead of state ‣ Input 0 -1023 ‣ Output 0 -255 (analog output shared with digital out)
  19. ANALOG PORTS 0 1023 255 0
  20. ANALOG INvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  21. ANALOG OUT‣ There is no real variable voltage output‣ Analog signal is generated by waveform with constant voltage and constant frequency
  22. ANALOG OUTvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  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. 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. 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. ANALOG OUTvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  27. ANALOG RANGE ADAPTION 1023 255 0 0
  28. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  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. 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. 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. 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. 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. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  35. GETTING STARTED WITH BLINKING LED‣ Gather in groups‣ Get a Fritzing Kit‣ Start Arduino software‣ Follow me…
  36. TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
  37. ANALOG OUTWITH FADING http://www.youtube.com/watch?v=Y2cLxmNnpOE
  38. ANALOG IN WITH SERVO AND POT http://www.youtube.com/watch?v=SS6cntJ_LqQ
  39. ANALOG IN WITH SERVO AND LDR http://www.youtube.com/watch?v=m9J3mDYy0Sg
  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. 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

×