• Like
  • Save
Arduino Basics
Upcoming SlideShare
Loading in...5
×
 

Arduino Basics

on

  • 1,324 views

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.

Statistics

Views

Total Views
1,324
Views on SlideShare
1,091
Embed Views
233

Actions

Likes
4
Downloads
22
Comments
0

2 Embeds 233

http://truthdaredoubledare.com 230
http://www.linkedin.com 3

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Arduino Basics Arduino Basics Presentation Transcript

    • 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
    • TOPICS Introduction Introduction in Programming Basic Electronics Getting Started The Arduino Board ExercisesImage via http://vasastudio.com/
    • TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
    • WHAT ARE WE DOING Hardware Getting closer to electronic circuits Software Writing simple software for hardware
    • THE ONE IN FRONT Jörn Sandner Master Microelectronic Systems Study at the FH Heide plus one semester at the HAW Hamburg
    • TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
    • VOLTAGE & CURRENTVoltage: speed of Current: amountthe electrons of electrons> potential difference > resistance of the circuit
    • CIRCUITbutton light (LED) resistor + - battery
    • CIRCUITcurrent direction + - battery
    • FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery
    • FUNCTIONAL VIEW“input” “output” button light (LED) resistor + - battery NOW: Put some “intelligence” in between
    • TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
    • THE ARDUINO BOARD Serial to USB Converter Digital In & Out Pins USB Port Power LED MicrocontrollerPower Supply Connection Power Pins Analog Input Pins
    • SOFTWAREarduino.cc fritzing.org
    • 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
    • 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
    • DIGITAL PORTS“input” “output” On/Off On/Off
    • ANALOG PORTS ‣ Value range instead of state ‣ Input 0 -1023 ‣ Output 0 -255 (analog output shared with digital out)
    • 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 constant frequency
    • ANALOG OUTvoltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
    • 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
    • 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
    • ANALOG OUTvoltage 50% 75% 25% 100% 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
    • 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 Exercises
    • PROGRAMMING Basic setup (bare minimum)void setup(){ // running one time // do basic setup of the Arduino Board}void loop(){ // running for ever // your code}
    • 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}
    • 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
    • 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++) { // }
    • 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
    • TOPICS Introduction Introduction in ProgrammingBasic Electronics Getting StartedThe Arduino Board Exercises
    • 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 Exercises
    • 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/ Interfacing With Hardware http://arduino.cc/playground/Main/InterfacingWithHardware Index of Arudino Knowledge http://www.freeduino.org/ 20 cm
    • 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