• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Getting Real With Connected Devices Presentation
 

Getting Real With Connected Devices Presentation

on

  • 333 views

Presentation for the IXDA workshop about Arduino and Processing

Presentation for the IXDA workshop about Arduino and Processing

Statistics

Views

Total Views
333
Views on SlideShare
329
Embed Views
4

Actions

Likes
1
Downloads
14
Comments
0

2 Embeds 4

http://www.podidoo.com 3
http://podidoo.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

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

    Getting Real With Connected Devices Presentation Getting Real With Connected Devices Presentation Presentation Transcript

    • IxDA 14 #rgaixda14 Thursday, February 6, 14 rgaixda14.tumblr.com
    • IxDA 14 Getting Real with Connected Devices A bit about us... 2 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Ilia Seb Stuart Tim Vincent Jonny 3 Thursday, February 6, 14
    • Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices We transform the way people experience brands 5 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices R/GA Make Day 7 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Why prototype? 9 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Experience wins over specification From Prototyping, A Practioners Guide by Todd Zaki Warfel Thursday, February 6, 14 10
    • IxDA 14 Getting Real with Connected Devices Reduces misinterpretation From Prototyping, A Practioners Guide by Todd Zaki Warfel Thursday, February 6, 14 11
    • IxDA 14 Getting Real with Connected Devices Saves time, money & effort From Prototyping, A Practioners Guide by Todd Zaki Warfel Thursday, February 6, 14 12
    • IxDA 14 Getting Real with Connected Devices Reduces waste From Prototyping, A Practioners Guide by Todd Zaki Warfel Thursday, February 6, 14 13
    • IxDA 14 Getting Real with Connected Devices Prototyping is generative From Prototyping, A Practioners Guide by Todd Zaki Warfel Thursday, February 6, 14 14
    • IxDA 14 Getting Real with Connected Devices The opportunity to craft 15 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Design by making 16 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Today 17 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Toolkit Brief Ideate Build Improve 18 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices You won’t learn to be an expert coder 19 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices You might not understand everything 20 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices You’ll expand your design vocabulary 21 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices You’ll see the value in building to learn 22 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Arduino 23 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Arduino = Hardware + Software + 24 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The hardware 25 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Arduino Board Digital input & output USB Analog input only 26 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Inputs / Sensors ANALOG Infrared receiver module DIGITAL Photocell (light sensor) Potentiometer (variable resistor) 27 Thursday, February 6, 14 Flame Sensor Temperature Sensor Tilt Sensor Push Buttons
    • IxDA 14 Getting Real with Connected Devices Outputs / Actuators Buzzers 28 Thursday, February 6, 14 LED Matrix Nixie Tube LED Multi-colour LED
    • IxDA 14 Getting Real with Connected Devices Breadboard 29 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Breadboard 29 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Other Remote Control 30 Thursday, February 6, 14 Battery Case USB Cable Resistors
    • IxDA 14 Getting Real with Connected Devices Installation 31 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Installing Arduino Mac: http://arduino.cc/en/Guide/MacOSX Windows: http://arduino.cc/en/Guide/Windows 32 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Code 33 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Basics 34 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Variable - Store things String myName = “Sebastien”; // a string int myAge = 10; // an integer float myHight = 1.78; // a float bool isMale = true; // a boolean 35 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices If / Else Statements - Conditions int myAge = 10; String myName = “”; If(myAge==20) // false { myName = “Sebastien”; } else // do this now { myName = “Ilia”; } 36 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Functions Self-contained bit of code that can be called whenever. It can take parameters and return a value. Important uses: - Encapsulate code/functionality - Stops code duplication 37 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Functions void storeMyName() { myName = “Sebastien”; } storeMyName(); // stores Sebastien in myName String getMyName() { return “Sebastien”; } getMyName(); // returns Sebastien int multiply(int firstNumber, int secondNumber) { int result = firstNumber * secondNumber; return result; } multiply( 2, 2); // returns 4 38 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Basic Arduino Sketch The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. The setup function will only run once, after each power up or reset of the Arduino board. The loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board. 39 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Debugging void setup(){ Serial.begin(9600);// opens serial port, sets data rate to 9600 bps } void loop(){ Serial.println("Hello World!"); } 40 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Exercise 1: Flashing LED 41 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Flashing LED - schematic 42 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Flashing LED - Arduino code int ledPin=10; //set IO pin of LED in control void setup() { pinMode(ledPin,OUTPUT); //set digital pin IO is OUTPUT } void loop() { digitalWrite(ledPin,HIGH); //set PIN 10to HIGH delay(1000); //delay 1000ms, 1000ms = 1s digitalWrite(ledPin,LOW); //set PIN 10 is LOW, 0V delay(1000); //delay 1000ms, 1000ms = 1s } 43 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Brief 44 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Brief A new music streaming service wants to create a ‘connected device’ that will be able to interact with the service. They want to create an experience that is new, and fun. They want to launch within a year and they want to keep the price point around €100 You have access to any sensors in your kit, plus an accelerometer (that measures angles of rotations). 45 Thursday, February 6, 14
    • IxDA 14 3 up 46 Thursday, February 6, 14 Getting Real with Connected Devices
    • IxDA 14 Getting Real with Connected Devices The Cube 47 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Idea 48 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Idea 49 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Idea A cube that controls music with gestures Wireless Directly connected to music streaming service No need for a computer or other device Connects to a wireless speaker 50 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Designing the prototype A cube that controls music with gestures Wireless Directly connected to music streaming service No need for a computer or other device Connects to a wireless speaker 51 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Designing the prototype A cube that controls music with gestures Connect via USB Play MP3s instead Connect to computer Connects to a wireless speaker 58 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Arduino + Processing 59 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Processing 60 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Speaking to Arduino via USB 61 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Environment 62 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Building the Cube 63 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Sensor 64 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Accellerometer + Gyro: MPU6050 65 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Accellerometer + Gyro: MPU6050 X 66 Thursday, February 6, 14 Z Y
    • IxDA 14 Getting Real with Connected Devices Accellerometer + Gyro: MPU6050 X 67 Thursday, February 6, 14 Z Y
    • IxDA 14 Getting Real with Connected Devices Accellerometer + Gyro: MPU6050 X 68 Thursday, February 6, 14 Z Y
    • IxDA 14 Getting Real with Connected Devices Building the Circuit 69 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Components 70 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Putting it Together Accelerometer + Gyro VCC GND SCL SDA 71 Thursday, February 6, 14 Arduino 3.3V GND A5 A4
    • IxDA 14 Getting Real with Connected Devices The Files 72 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices The Arduino Files MPU6050_DMP6.ino MPU6050.h MPU6050.cpp I2Cdev.h I2Cdev.ccp helper_3dmath.h MPU6050_6Axis_MotionApps20.h The main Arduino program that the other files support To facilitate communication with the sensor These 2 files are math helpers to get the rotations https://github.com/jrowberg/i2cdevlib/tree/master/Arduino 73 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices 1. Getting data from the sensor with the Arduino 74 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices 2. Reading data from Ardiuno with Processing 75 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices 3. Using the data in Processing 76 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Building the Box 77 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Building the Box 78 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Building the Box 79 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Testing 80 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices How can it be improved? Usability issues? Communication of functionality? Better feedback? Other forms? Unexpected ideas? Additional functionlity? How to navigate playlists? 81 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Sketching 82 Thursday, February 6, 14
    • IxDA 14 3 up 83 Thursday, February 6, 14 Getting Real with Connected Devices
    • IxDA 14 1 up 84 Thursday, February 6, 14 Getting Real with Connected Devices
    • IxDA 14 Getting Real with Connected Devices Share 85 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Re-using the interaction model 86 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Stay in Touch 87 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices rgaixda14.tumblr.com/submit 88 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Further Reading 89 Thursday, February 6, 14
    • IxDA 14 Getting Real with Connected Devices Further Reading 90 Thursday, February 6, 14 Getting Started with Arduino by Massimo Banzi Getting Started with Processing by Casey Reas & Ben Fry Making Things Talk by Tom Igoe
    • IxDA 14 Thank You Thursday, February 6, 14