SlideShare uma empresa Scribd logo
1 de 42
Baixar para ler 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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Último (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).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