SlideShare a Scribd company logo
1 of 42
Download to read offline
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
TOPICS
                                     Introduction          Introduction in Programming




                                   Basic Electronics             Getting Started




                                   The Arduino Board                Exercises
Image via http://vasastudio.com/
TOPICS
  Introduction          Introduction in Programming




Basic Electronics             Getting Started




The 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 Programming




Basic Electronics             Getting Started




The Arduino Board                Exercises
VOLTAGE & CURRENT


Voltage: speed of        Current: amount
the electrons            of electrons
> potential difference   > resistance of the circuit
CIRCUIT
button              light (LED)



         resistor



         +     -

         battery
CIRCUIT



current 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 Programming




Basic Electronics             Getting Started




The Arduino Board                Exercises
THE ARDUINO BOARD
         Serial to USB Converter   Digital In & Out Pins




           USB Port

                                                               Power LED

                                                               Microcontroller
Power Supply Connection


                                     Power Pins    Analog Input Pins
SOFTWARE




arduino.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 IN

voltage

   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 OUT

voltage

   5V+

    4

    3

    2

    1

 GND
          0   1   2   3   4   5   6   7   8   9   10   time
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
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
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
ANALOG OUT

voltage

   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 Programming




Basic Electronics             Getting Started




The 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 Programming




Basic Electronics             Getting Started




The Arduino Board                Exercises
GETTING STARTED
 WITH BLINKING LED

‣ Gather in groups
‣ Get a Fritzing Kit
‣ Start Arduino software
‣ Follow me…
TOPICS
  Introduction          Introduction in Programming




Basic Electronics             Getting Started




The Arduino Board                Exercises
ANALOG OUT
WITH 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 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
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

More Related Content

What's hot

My arduino presentation
My arduino presentationMy arduino presentation
My arduino presentationSham Arsenal
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduinozvikapika
 
arduino-ppt
 arduino-ppt arduino-ppt
arduino-pptjhcid
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino unoRahat Sood
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduinounsheffield
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoRichard Rixham
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino EnglishSOAEnsAD
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boardselprocus
 
Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusainstudent
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoPreet Sangha
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Show & Tell.- Introduction
Show & Tell.- IntroductionShow & Tell.- Introduction
Show & Tell.- Introductionzvikapika
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 

What's hot (20)

Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
 
My arduino presentation
My arduino presentationMy arduino presentation
My arduino presentation
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
 
arduino-ppt
 arduino-ppt arduino-ppt
arduino-ppt
 
Arduino Basics
Arduino BasicsArduino Basics
Arduino Basics
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino English
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusain
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Arduino
ArduinoArduino
Arduino
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Show & Tell.- Introduction
Show & Tell.- IntroductionShow & Tell.- Introduction
Show & Tell.- Introduction
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 

Viewers also liked

The Dragonfly Effect - INK Conference
The Dragonfly Effect - INK ConferenceThe Dragonfly Effect - INK Conference
The Dragonfly Effect - INK ConferenceAndy Smith
 
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...Amr Sallam
 
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...Amr Sallam
 
Now We Collide - Video Content Agency - Company Overview 2016
Now We Collide - Video Content Agency - Company Overview 2016Now We Collide - Video Content Agency - Company Overview 2016
Now We Collide - Video Content Agency - Company Overview 2016Ryan Bodger
 
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)The Shape of Things to Come / Exploring the Shift in Business (and Marketing)
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)Jeremy Abbett
 
Google’s Creative Culture: A Catalyst for Continual Innovation
Google’s Creative Culture: A Catalyst for Continual InnovationGoogle’s Creative Culture: A Catalyst for Continual Innovation
Google’s Creative Culture: A Catalyst for Continual InnovationJeremy Abbett
 
The New Face Of Venture Capital, Part 1
The New Face Of Venture Capital, Part 1The New Face Of Venture Capital, Part 1
The New Face Of Venture Capital, Part 1trendcaller
 
UX for CRM
UX for CRMUX for CRM
UX for CRMDivante
 
PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014PSFK
 
Make Your Ideas Happen
Make Your Ideas HappenMake Your Ideas Happen
Make Your Ideas HappenGeoff McDonald
 
Highlights from "Positioning for Professionals"
Highlights from "Positioning for Professionals"Highlights from "Positioning for Professionals"
Highlights from "Positioning for Professionals"Ignition Consulting Group
 
Seedcamp Customer Experience (CX) Workshop
Seedcamp Customer Experience (CX) WorkshopSeedcamp Customer Experience (CX) Workshop
Seedcamp Customer Experience (CX) Workshopleisa reichelt
 
From Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation MindsetFrom Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation MindsetMike Mastroyiannis
 
Yuri van Geest, Exponential Organizations - DMX Dublin 2016
Yuri van Geest,  Exponential Organizations - DMX Dublin 2016Yuri van Geest,  Exponential Organizations - DMX Dublin 2016
Yuri van Geest, Exponential Organizations - DMX Dublin 2016DMX Dublin
 
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannes
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannesSee #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannes
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannesOgilvy
 
Strategic UX Workshop - UX Bristol
Strategic UX Workshop - UX BristolStrategic UX Workshop - UX Bristol
Strategic UX Workshop - UX Bristolleisa reichelt
 

Viewers also liked (20)

Ad507
Ad507Ad507
Ad507
 
The Dragonfly Effect - INK Conference
The Dragonfly Effect - INK ConferenceThe Dragonfly Effect - INK Conference
The Dragonfly Effect - INK Conference
 
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 1 (June...
 
Midwest is Best
Midwest is BestMidwest is Best
Midwest is Best
 
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...
Cannes Lions Young Account Planners Academy - The Day in Quotes - Day 2 (June...
 
Now We Collide - Video Content Agency - Company Overview 2016
Now We Collide - Video Content Agency - Company Overview 2016Now We Collide - Video Content Agency - Company Overview 2016
Now We Collide - Video Content Agency - Company Overview 2016
 
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)The Shape of Things to Come / Exploring the Shift in Business (and Marketing)
The Shape of Things to Come / Exploring the Shift in Business (and Marketing)
 
Google’s Creative Culture: A Catalyst for Continual Innovation
Google’s Creative Culture: A Catalyst for Continual InnovationGoogle’s Creative Culture: A Catalyst for Continual Innovation
Google’s Creative Culture: A Catalyst for Continual Innovation
 
Hyper-connectivity
Hyper-connectivityHyper-connectivity
Hyper-connectivity
 
The New Face Of Venture Capital, Part 1
The New Face Of Venture Capital, Part 1The New Face Of Venture Capital, Part 1
The New Face Of Venture Capital, Part 1
 
UX for CRM
UX for CRMUX for CRM
UX for CRM
 
PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014
 
Make Your Ideas Happen
Make Your Ideas HappenMake Your Ideas Happen
Make Your Ideas Happen
 
Highlights from "Positioning for Professionals"
Highlights from "Positioning for Professionals"Highlights from "Positioning for Professionals"
Highlights from "Positioning for Professionals"
 
Seedcamp Customer Experience (CX) Workshop
Seedcamp Customer Experience (CX) WorkshopSeedcamp Customer Experience (CX) Workshop
Seedcamp Customer Experience (CX) Workshop
 
From Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation MindsetFrom Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation Mindset
 
Yuri van Geest, Exponential Organizations - DMX Dublin 2016
Yuri van Geest,  Exponential Organizations - DMX Dublin 2016Yuri van Geest,  Exponential Organizations - DMX Dublin 2016
Yuri van Geest, Exponential Organizations - DMX Dublin 2016
 
Just Effin' Do It
Just Effin' Do ItJust Effin' Do It
Just Effin' Do It
 
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannes
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannesSee #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannes
See #CannesLions Through the Eyes of David Ogilvy / #OgilvyCannes
 
Strategic UX Workshop - UX Bristol
Strategic UX Workshop - UX BristolStrategic UX Workshop - UX Bristol
Strategic UX Workshop - UX Bristol
 

Similar to Arduino Basics

Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshoptomtobback
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
Arduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channelsArduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channelstomtobback
 
Electronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdfElectronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdfvikknaguem
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to ArduinoQtechknow
 
Arduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting ComputingArduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting Computingrebooting_computing
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2Qtechknow
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshopmayur1432
 
Arduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaArduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaAbarajithan Gnaneswaran
 
LED Cube Presentation Slides
LED Cube Presentation Slides LED Cube Presentation Slides
LED Cube Presentation Slides Projects EC
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1Felipe Belarmino
 

Similar to Arduino Basics (20)

Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Arduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channelsArduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channels
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
 
Electronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdfElectronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdf
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Programming arduino makeymakey
Programming arduino makeymakeyProgramming arduino makeymakey
Programming arduino makeymakey
 
Arduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting ComputingArduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting Computing
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Arduino workshop sensors
Arduino workshop sensorsArduino workshop sensors
Arduino workshop sensors
 
Simply arduino
Simply arduinoSimply arduino
Simply arduino
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
 
Rebooting Computing chalkwell
Rebooting Computing chalkwellRebooting Computing chalkwell
Rebooting Computing chalkwell
 
Arduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaArduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of Moratuwa
 
LED Cube Presentation Slides
LED Cube Presentation Slides LED Cube Presentation Slides
LED Cube Presentation Slides
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
 
Tripath TA2021B
Tripath TA2021BTripath TA2021B
Tripath TA2021B
 

Recently uploaded

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Recently uploaded (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

Arduino Basics

  • 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
  • 9. CIRCUIT button light (LED) resistor + - battery
  • 11. FUNCTIONAL VIEW “input” “output” button light (LED) resistor + - battery
  • 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
  • 15. SOFTWARE arduino.cc fritzing.org
  • 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
  • 18. DIGITAL PORTS “input” “output” On/Off On/Off
  • 19. ANALOG PORTS ‣ Value range instead of state ‣ Input 0 -1023 ‣ Output 0 -255 (analog output shared with digital out)
  • 20. ANALOG PORTS 0 1023 255 0
  • 21. ANALOG IN voltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  • 22. ANALOG OUT ‣ There is no real variable voltage output ‣ Analog signal is generated by waveform with constant voltage and constant frequency
  • 23. ANALOG OUT voltage 5V+ 4 3 2 1 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
  • 27. ANALOG OUT voltage 5V+ 4 3 2 1 GND 0 1 2 3 4 5 6 7 8 9 10 time
  • 28. ANALOG RANGE ADAPTION 1023 255 0 0
  • 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++) { // }
  • 34. 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
  • 35. TOPICS Introduction Introduction in Programming Basic Electronics Getting Started The Arduino Board Exercises
  • 36. GETTING STARTED WITH BLINKING LED ‣ Gather in groups ‣ Get a Fritzing Kit ‣ Start Arduino software ‣ Follow me…
  • 37. TOPICS Introduction Introduction in Programming Basic Electronics Getting Started The Arduino Board Exercises
  • 38. ANALOG OUT WITH FADING http://www.youtube.com/watch?v=Y2cLxmNnpOE
  • 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