SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Hello real world!
An introduction to physical computing
Tom Luyten & Gaston Jamin
•
•
•
•
•
•

Blinks LEDS
Drives motors
Makes sound
Senses your presence
Detects gas
…
= electronic prototyping
tool for designers
Source: Getting started with Arduino – Massimo Banzi

Anatomy of an interactive device
Some possible hardware sensors:
• potentiometer
• Sliding potentiometer
• Switch
• Tiltswitch
• Accelerometer
• Proximity sensor
• Photocell
• Flexometer
• Camera
• WII
• Kinect
• Force sensing sensor
• Temperature sensor
• Gas sensor
• Barometric sensor
• Humidity sensor
• RFID reader
• GPS
• Reed switch
• Gyroscope
• ...
Some possible hardware actuators:
• Vibration motor
• Regular motor
• Sound
• Muscle stimulus
• Light
• images
• The web
• Pump
• Solenoid
• Resistance wire
• Relais
• Radio frequency
• …
Arduino

computer
cell phone

cloud
tablet

Source: Getting started with Arduino – Massimo Banzi

Boundaries are not defined
Example: a tablet can be it’s own sensor and actuator, or
can be paired/extended.
workshop
Digital in/outputs + PWM*

USB connection

processor
Power source
(external)
5V + ground

*PWM
pulse width modulation : digital signal mimmicing an analogue one
used to fade lights, drive motors, create tone,…

Analog in/outputs
The arduino way
“the Arduino philosophy is based on making designs rather
than talking about them. It is a constant search for faster
and more powerful ways to build better prototypes. We
have explored many prototyping techniques and developed

ways of thinking with our hands.: • Prototyping
•
•
•
•
•

Tinkering
Patching
Circuit bending
Hacking
collaboration
Electronics 101
• Current is a circle – starts at an i/o port, flows to GRND

• Use red for positive wires (from output)
• Use black for negative wires (to GRND)
• Look it up, before you hook it up
Get the software

• Current is a circle – starts at an i/o port, flows to GRND
• Look it up,http://www.arduino.cc
before you hook it up
http://arduino.cc/en/Gui
de/Environment
Standalone example
Hello world! (=blink)
Hello world! (=blink)

File  examples  basics  BLINK

/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
// wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000);
// wait for a second
}
Hello world! (=blink)

Plug in
Press play…
HELLO WORLD!
Producing sound

Image: adafruit learning systems
Producing sound

Image: adafruit learning systems
Producing sound
http://learn.adafruit.com/adafruit-arduino-lesson-10-making-sounds/playing-a-scale
/*
Adafruit Arduino - Lesson 10. Simple Sounds
*/
int speakerPin = 12;
int numTones = 10;
int tones[] = {261, 277, 294, 311, 330, 349, 370, 392, 415, 440};
//
mid C C# D D# E F F# G G# A
void setup()
{
for (int i = 0; i < numTones; i++)
{
tone(speakerPin, tones[i]);
delay(500);
}
noTone(speakerPin);
}
void loop()
{
}
Sensing distance
http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor
Sensing distance
File  examples  sensors  PING
Combination
Combination
Blackboard
Make Arduino talk to your computer
Make Arduino talk to your computer
http://www.processing.org
Make Arduino talk to your computer
http://www.processing.org
Make Arduino talk to your computer
http://www.processing.org
Serial communication send
Serial communication receive
This is just a start
There are tons of
• Tutorials
• Code snippets
• Wiring diagrams
Available to aid you in your experiments
See the Blackboard environment for links.
Next week…
Tinker, hack, break, rebuild, connect and explore!

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Arduino learning
Arduino   learningArduino   learning
Arduino learning
Anil Yadav
 
Show & Tell.- Introduction
Show & Tell.- IntroductionShow & Tell.- Introduction
Show & Tell.- Introduction
zvikapika
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04
Anil Yadav
 

Was ist angesagt? (20)

Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
Getting Started With Arduino   How To Build A Twitter Monitoring AlertuinoGetting Started With Arduino   How To Build A Twitter Monitoring Alertuino
Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
 
Build an Analog Synthesizer with littleBits
Build an Analog Synthesizer with littleBitsBuild an Analog Synthesizer with littleBits
Build an Analog Synthesizer with littleBits
 
Arduino Basics
Arduino BasicsArduino Basics
Arduino Basics
 
Arduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic Arduino
 
Introduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPadIntroduction to Arduino with ArduBlock & SparkFun LilyPad
Introduction to Arduino with ArduBlock & SparkFun LilyPad
 
Arduino Intro Guide 2
Arduino Intro Guide 2Arduino Intro Guide 2
Arduino Intro Guide 2
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Arduino learning
Arduino   learningArduino   learning
Arduino learning
 
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
 
Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13
 
Show & Tell.- Introduction
Show & Tell.- IntroductionShow & Tell.- Introduction
Show & Tell.- Introduction
 
Basic Sensors
Basic Sensors Basic Sensors
Basic Sensors
 
Arduino Basics
Arduino BasicsArduino Basics
Arduino Basics
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
Arduino Uno Board - Robomart
Arduino Uno Board - RobomartArduino Uno Board - Robomart
Arduino Uno Board - Robomart
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 

Andere mochten auch (8)

Hello world program
Hello world programHello world program
Hello world program
 
Processing intro - computerdenken, als ontwerper !? (dutch)
Processing intro - computerdenken, als ontwerper !? (dutch)Processing intro - computerdenken, als ontwerper !? (dutch)
Processing intro - computerdenken, als ontwerper !? (dutch)
 
Processing Werkcollege 5 functies zonder arguments
Processing Werkcollege 5   functies zonder argumentsProcessing Werkcollege 5   functies zonder arguments
Processing Werkcollege 5 functies zonder arguments
 
Tom luyten hightechinhealthcare_2014
Tom luyten hightechinhealthcare_2014Tom luyten hightechinhealthcare_2014
Tom luyten hightechinhealthcare_2014
 
Hello Arduino.
Hello Arduino.Hello Arduino.
Hello Arduino.
 
Bitraf Arduino workshop
Bitraf Arduino workshopBitraf Arduino workshop
Bitraf Arduino workshop
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2
 
Arduino Robotics workshop Day1
Arduino Robotics workshop Day1Arduino Robotics workshop Day1
Arduino Robotics workshop Day1
 

Ähnlich wie Arduino workshop - hello real world

Arduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptxArduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptx
ANIKDUTTA25
 

Ähnlich wie Arduino workshop - hello real world (20)

Arduino
ArduinoArduino
Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Multi Sensory Communication 1/2
Multi Sensory Communication 1/2
 
Arduino by John LeMasney via lemasney.com
Arduino by John LeMasney via lemasney.comArduino by John LeMasney via lemasney.com
Arduino by John LeMasney via lemasney.com
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
Arduino, Raspberry Pi, and Making
Arduino, Raspberry Pi, and MakingArduino, Raspberry Pi, and Making
Arduino, Raspberry Pi, and Making
 
Arduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsArduino embedded systems and advanced robotics
Arduino embedded systems and advanced robotics
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
 
Arduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptxArduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptx
 
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-2.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-2.pdf
 
Powerful Electronics with Arduino
Powerful Electronics with ArduinoPowerful Electronics with Arduino
Powerful Electronics with Arduino
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 
Advanced View Arduino Projects List - Use Arduino for Projects (4).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (4).pdfAdvanced View Arduino Projects List - Use Arduino for Projects (4).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (4).pdf
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Getting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoGetting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and Arduino
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
 

Mehr von Tom Luyten

Processing Werkcollege 6 functies met parameters
Processing Werkcollege 6   functies met parametersProcessing Werkcollege 6   functies met parameters
Processing Werkcollege 6 functies met parameters
Tom Luyten
 
Processing Werkcollege 4 - loops
Processing Werkcollege 4 - loopsProcessing Werkcollege 4 - loops
Processing Werkcollege 4 - loops
Tom Luyten
 
Processing Werkcollege 3 - condities
Processing Werkcollege 3 - conditiesProcessing Werkcollege 3 - condities
Processing Werkcollege 3 - condities
Tom Luyten
 
Processing Werkcollege 2 - variabelen
Processing Werkcollege 2 - variabelenProcessing Werkcollege 2 - variabelen
Processing Werkcollege 2 - variabelen
Tom Luyten
 
Processing Werkcollege 1 - the beginning
Processing Werkcollege 1 - the beginningProcessing Werkcollege 1 - the beginning
Processing Werkcollege 1 - the beginning
Tom Luyten
 
Eindpresentatie thesis tom_luyten_draft_1
Eindpresentatie thesis tom_luyten_draft_1Eindpresentatie thesis tom_luyten_draft_1
Eindpresentatie thesis tom_luyten_draft_1
Tom Luyten
 

Mehr von Tom Luyten (6)

Processing Werkcollege 6 functies met parameters
Processing Werkcollege 6   functies met parametersProcessing Werkcollege 6   functies met parameters
Processing Werkcollege 6 functies met parameters
 
Processing Werkcollege 4 - loops
Processing Werkcollege 4 - loopsProcessing Werkcollege 4 - loops
Processing Werkcollege 4 - loops
 
Processing Werkcollege 3 - condities
Processing Werkcollege 3 - conditiesProcessing Werkcollege 3 - condities
Processing Werkcollege 3 - condities
 
Processing Werkcollege 2 - variabelen
Processing Werkcollege 2 - variabelenProcessing Werkcollege 2 - variabelen
Processing Werkcollege 2 - variabelen
 
Processing Werkcollege 1 - the beginning
Processing Werkcollege 1 - the beginningProcessing Werkcollege 1 - the beginning
Processing Werkcollege 1 - the beginning
 
Eindpresentatie thesis tom_luyten_draft_1
Eindpresentatie thesis tom_luyten_draft_1Eindpresentatie thesis tom_luyten_draft_1
Eindpresentatie thesis tom_luyten_draft_1
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

Arduino workshop - hello real world