SlideShare a Scribd company logo
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

Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
Mitwa Palkhiwala
 
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-ppt
jhcid
 
Arduino Basics
Arduino BasicsArduino Basics
Arduino Basics
ESRI Bulgaria
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
C.Vamsi Krishna
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduino
unsheffield
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Richard Rixham
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Yong Heui Cho
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino English
SOAEnsAD
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
Punit Goswami
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
Shyam 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 boards
elprocus
 
Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusain
student
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Preet Sangha
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
 
Show & Tell.- Introduction
Show & Tell.- IntroductionShow & Tell.- Introduction
Show & Tell.- Introductionzvikapika
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 

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 Conference
Andy 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
 
Midwest is Best
Midwest is BestMidwest is Best
Midwest is Best
Jeremy Abbett
 
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 2016
Ryan 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 Innovation
Jeremy Abbett
 
Hyper-connectivity
Hyper-connectivityHyper-connectivity
Hyper-connectivity
Jeremy 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 1
trendcaller
 
UX for CRM
UX for CRMUX for CRM
UX for CRM
Divante
 
PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014PSFK The Maker's Manual 2014
PSFK The Maker's Manual 2014
PSFK
 
Make Your Ideas Happen
Make Your Ideas HappenMake Your Ideas Happen
Make Your Ideas Happen
Geoff 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) Workshop
leisa reichelt
 
From Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation MindsetFrom Linear to Exponential Innovation Mindset
From Linear to Exponential Innovation Mindset
Mike 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 2016
DMX Dublin
 
Just Effin' Do It
Just Effin' Do ItJust Effin' Do It
Just Effin' Do It
Heidi Hackemer
 
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
Ogilvy
 
Strategic UX Workshop - UX Bristol
Strategic UX Workshop - UX BristolStrategic UX Workshop - UX Bristol
Strategic UX Workshop - UX Bristol
leisa 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).pptx
HebaEng
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
 
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
tomtobback
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Luki B. Subekti
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
CephasMpandikaKalemb
 
Electronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdfElectronics_Tutorial_2022_Slide543404210s.pdf
Electronics_Tutorial_2022_Slide543404210s.pdf
vikknaguem
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
Qtechknow
 
Arduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting ComputingArduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting Computing
rebooting_computing
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
sdcharle
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
Qtechknow
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
 
Rebooting Computing chalkwell
Rebooting Computing chalkwellRebooting Computing chalkwell
Rebooting Computing chalkwell
rebooting_computing
 
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
Abarajithan 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_class1
Felipe 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

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 

Recently uploaded (20)

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 

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