SlideShare a Scribd company logo
Fiddling with Phidgets




   Connecting to hardware
Who Am I?
Steven Peeters
Unit manager / Instructor / consultant at multimediacollegeTM

• Adobe Flex, AIR, Flash Catalyst & ColdFusion Certified Instructor
• Adobe Community Professional
• ColdFusion User Group Manager
• 12+ years of development experience
• Flex & AIR since 2004
• Author for Friends of ED

 Email:        steven@multimediacollege.be
 LinkedIn:     www.linkedin.com/in/stevenpeeters
 Twitter:      @aikisteve
 Blog          www.flexpert.be
 Website       www.multimediacollege.be
Topics




• Arduino
• Phidgets
• Other hardware
Twitter hash tag: #fiddlingphidgets
Getting started



• Yeah, how did I get started on this?
Getting started



• Yeah, how did I get started on this?
   • College
Getting started



• Yeah, how did I get started on this?
   • College
   • Prototype This
Getting started



• Yeah, how did I get started on this?
   • College
   • Prototype This
   • Grant Skinner
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Differences


                                            Boards, light sensors,
Components             Boards
                                             motors, displays, ...
               Shields: XBee, Ethernet,       Thermocouple,
Third party
                        motors             electrodes, sensors, ...
                                              Out of the box
Ease of use     Build your own stuff
                                               components
               Cheap, build your own        Don’t worry about
 Advantage
                   components                making mistakes

Disadvantage    Build your own stuff      Little bit more expensive
Arduino




• http://www.arduino.cc
• Shields (add-ons)
• Get started for only $30
Arduino shields
Arduino shields
Programming Arduino
Programming Arduino


• Open-source
Programming Arduino


• Open-source
• Large community
Programming Arduino


• Open-source
• Large community
• Lots of example available
Programming Arduino


• Open-source
• Large community
• Lots of example available
• Language based on processing
Programming Arduino


• Open-source
• Large community
• Lots of example available
• Language based on processing
• extensible with C, C++, Flash...
Programming Arduino


• Open-source
• Large community
• Lots of example available
• Language based on processing
• extensible with C, C++, Flash...
• examples in the IDE and on http://tv.adobe.com
Programming Arduino



• Connecting to Flash/Flex
Programming Arduino



• Connecting to Flash/Flex
   • Upload Firmata program to board
Programming Arduino



• Connecting to Flash/Flex
   • Upload Firmata program to board
   • SerProxy/TinkerProxy
Programming Arduino



• Connecting to Flash/Flex
   • Upload Firmata program to board
   • SerProxy/TinkerProxy
   • AS3Glue: http://code.google.com/p/as3glue/
Programming Arduino



• Connecting to Flash/Flex
   • Upload Firmata program to board
   • SerProxy/TinkerProxy
   • AS3Glue: http://code.google.com/p/as3glue/
   • Use Arduino object methods
Arduino Example



private var arduino:Arduino;

private function initApp():void {
	 arduino = new Arduino("localhost", 5331);
	 arduino.setPinMode(13, Arduino.OUTPUT);
	 arduino.writeDigitalPin(13, Arduino.HIGH);
	 var value:int = arduino.getAnalogData(2);
}
Phidgets




• http://www.phidgets.com
• Lots of components
• Get started for $77
Phidgets components
Phidgets Programming Languages


• Flash               • C#
• Flex                • Python
• Java                • MathLAB
• Delphi              •C
• Cocoa               • C++
• Visual Basic        • ...
Programming Phidgets



• Connecting to Flash/Flex
Programming Phidgets



• Connecting to Flash/Flex
   • Install drivers for boards
Programming Phidgets



• Connecting to Flash/Flex
   • Install drivers for boards
   • Run web service
Programming Phidgets



• Connecting to Flash/Flex
   • Install drivers for boards
   • Run web service
   • Use Phigets21Library.swc
Phidgets Servo Motor Example


private var phidgetsServo:PhidgetAdvancedServo;

protected function initApp():void {
	 phidgetsServo = new PhidgetAdvancedServo();
	 phidgetsServo.addEventListener(PhidgetEvent.ATTACH, onAttach);
	 phidgetsServo.open("localhost", 5001);
}

private function onAttach(event:PhidgetEvent):void {
	 phidgetsServo.setPosition(0, 120);
	 phidgetsServo.setPosition(1, 120);
	 phidgetsServo.setPosition(4, 120);
	 phidgetsServo.setPosition(5, 120);
}
Phidgets Interface Example

private var phidgetsInterfaceKit:PhidgetInterfaceKit;

protected function initApp():void {
	 phidgetsInterfaceKit = new PhidgetInterfaceKit();
	 phidgetsInterfaceKit.addEventListener(PhidgetEvent.ATTACH, onAttach);
	 phidgetsInterfaceKit.addEventListener(PhidgetDataEvent.SENSOR_CHANGE,
                                                       onSensorChange);
	 phidgetsInterfaceKit.open("localhost", 5001);
}

private function onInterfaceAttach(event:PhidgetEvent):void {
	 phidgetsInterfaceKit.setOutputState(0, true);
	 phidgetsInterfaceKit.setOutputState(1, false);
}

private function onSensorChange(event:PhidgetDataEvent):void {
	 trace("sensor value = " + Number(event.Data));
}
Phidgets showcase




Remote controlled maze
Under the hood
The only limit is your imagination
The only limit is your imagination
The only limit is your imagination
Thank you



     Twitter:
     @aikisteve

     Email:
     steven@multimediacollege.be

     Personal site:
     www.flexpert.be

More Related Content

PDF
Advanced view arduino projects list part 4 use arduino for projects
PDF
Arduino spooky projects_class3
PDF
Getting startedwitharduino ch04
PDF
Advanced view arduino projects list use arduino for projects (2)
PDF
Pi meets arduino
DOCX
Asignacion 2. mapa mental .
KEY
Idees per començar
PPSX
Zavicajni slikovni rjecnik sibenskoga kraja
Advanced view arduino projects list part 4 use arduino for projects
Arduino spooky projects_class3
Getting startedwitharduino ch04
Advanced view arduino projects list use arduino for projects (2)
Pi meets arduino
Asignacion 2. mapa mental .
Idees per començar
Zavicajni slikovni rjecnik sibenskoga kraja

Viewers also liked (19)

PPS
Soma Company Profile
PPT
Akin bayer. metro c&c
PPT
PDF
PORTAFOLIO 1. CANCILLERIAE
PDF
Entrada 1 Matemática
PPSX
Presentacion curso practico de alimentacion crudivegana
PDF
Folleto en Duotono
PPTX
Direccionamiento de redes CCNA Cap. 6
PPTX
SplunkLive! London: Splunk ninjas- new features and search dojo
PPT
J.I. Soldevilla - Building Information Modelling (BIM)
PDF
Front Matter Smart Grid Communications
DOCX
Descripción mecánica de la cosechadora fiatagri r3500
PDF
COOLHUNTING
PPTX
Implantable Course 2015 Med El
PPT
Definición de drenaje
PDF
Folleto trabes y losas
PPTX
ABAPCodeRetreat 23.7.2016 - TDD
PPTX
Plataformas logísticas
PPTX
Bronquitis
Soma Company Profile
Akin bayer. metro c&c
PORTAFOLIO 1. CANCILLERIAE
Entrada 1 Matemática
Presentacion curso practico de alimentacion crudivegana
Folleto en Duotono
Direccionamiento de redes CCNA Cap. 6
SplunkLive! London: Splunk ninjas- new features and search dojo
J.I. Soldevilla - Building Information Modelling (BIM)
Front Matter Smart Grid Communications
Descripción mecánica de la cosechadora fiatagri r3500
COOLHUNTING
Implantable Course 2015 Med El
Definición de drenaje
Folleto trabes y losas
ABAPCodeRetreat 23.7.2016 - TDD
Plataformas logísticas
Bronquitis
Ad

Similar to Fiddling With Phidgets (20)

PDF
Arduino presentation
PDF
Internet of Things - Technological Perspective
PPTX
Modular remote
PDF
#startathon2.0 - Arduino
PPTX
Taller IoT en la Actualidad
PDF
It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...
PPS
What is Arduino ?
PPTX
Introduction to Arduino
PDF
NSTA 2013 Denver - ArduBlock and Arduino
PDF
The Rise of Maker Movement in Indonesia
PPTX
Microsoft IT Academy Summit 2011
PDF
Smart Projects With Arduino And Esp32 Integrating Artificial Intelligence Abd...
PDF
Introducing... Arduino
PPTX
Arduino
PDF
Download full ebook of Arduino In Easy Steps Stuart Yarnold instant download pdf
KEY
2011 01-24 dragino
PDF
Advanced View Arduino Projects List - Use Arduino for Projects 3.pdf
PPTX
Arduino training day 1
PDF
SIGFOX basics for Intel IoT Roadshow
PPTX
A new way to inspire and stimulate learning
Arduino presentation
Internet of Things - Technological Perspective
Modular remote
#startathon2.0 - Arduino
Taller IoT en la Actualidad
It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...
What is Arduino ?
Introduction to Arduino
NSTA 2013 Denver - ArduBlock and Arduino
The Rise of Maker Movement in Indonesia
Microsoft IT Academy Summit 2011
Smart Projects With Arduino And Esp32 Integrating Artificial Intelligence Abd...
Introducing... Arduino
Arduino
Download full ebook of Arduino In Easy Steps Stuart Yarnold instant download pdf
2011 01-24 dragino
Advanced View Arduino Projects List - Use Arduino for Projects 3.pdf
Arduino training day 1
SIGFOX basics for Intel IoT Roadshow
A new way to inspire and stimulate learning
Ad

More from Steven Peeters (6)

PDF
Applying Lean Thinking to Software Development
KEY
Coding and naming conventions
KEY
SOTR 2012
KEY
Bridging the Gap
KEY
Scotch On The Rocks 2011
KEY
Flash And The City 2010
Applying Lean Thinking to Software Development
Coding and naming conventions
SOTR 2012
Bridging the Gap
Scotch On The Rocks 2011
Flash And The City 2010

Fiddling With Phidgets

  • 1. Fiddling with Phidgets Connecting to hardware
  • 2. Who Am I? Steven Peeters Unit manager / Instructor / consultant at multimediacollegeTM • Adobe Flex, AIR, Flash Catalyst & ColdFusion Certified Instructor • Adobe Community Professional • ColdFusion User Group Manager • 12+ years of development experience • Flex & AIR since 2004 • Author for Friends of ED Email: steven@multimediacollege.be LinkedIn: www.linkedin.com/in/stevenpeeters Twitter: @aikisteve Blog www.flexpert.be Website www.multimediacollege.be
  • 3. Topics • Arduino • Phidgets • Other hardware Twitter hash tag: #fiddlingphidgets
  • 4. Getting started • Yeah, how did I get started on this?
  • 5. Getting started • Yeah, how did I get started on this? • College
  • 6. Getting started • Yeah, how did I get started on this? • College • Prototype This
  • 7. Getting started • Yeah, how did I get started on this? • College • Prototype This • Grant Skinner
  • 8. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 9. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 10. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 11. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 12. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 13. Differences Boards, light sensors, Components Boards motors, displays, ... Shields: XBee, Ethernet, Thermocouple, Third party motors electrodes, sensors, ... Out of the box Ease of use Build your own stuff components Cheap, build your own Don’t worry about Advantage components making mistakes Disadvantage Build your own stuff Little bit more expensive
  • 14. Arduino • http://www.arduino.cc • Shields (add-ons) • Get started for only $30
  • 20. Programming Arduino • Open-source • Large community • Lots of example available
  • 21. Programming Arduino • Open-source • Large community • Lots of example available • Language based on processing
  • 22. Programming Arduino • Open-source • Large community • Lots of example available • Language based on processing • extensible with C, C++, Flash...
  • 23. Programming Arduino • Open-source • Large community • Lots of example available • Language based on processing • extensible with C, C++, Flash... • examples in the IDE and on http://tv.adobe.com
  • 25. Programming Arduino • Connecting to Flash/Flex • Upload Firmata program to board
  • 26. Programming Arduino • Connecting to Flash/Flex • Upload Firmata program to board • SerProxy/TinkerProxy
  • 27. Programming Arduino • Connecting to Flash/Flex • Upload Firmata program to board • SerProxy/TinkerProxy • AS3Glue: http://code.google.com/p/as3glue/
  • 28. Programming Arduino • Connecting to Flash/Flex • Upload Firmata program to board • SerProxy/TinkerProxy • AS3Glue: http://code.google.com/p/as3glue/ • Use Arduino object methods
  • 29. Arduino Example private var arduino:Arduino; private function initApp():void { arduino = new Arduino("localhost", 5331); arduino.setPinMode(13, Arduino.OUTPUT); arduino.writeDigitalPin(13, Arduino.HIGH); var value:int = arduino.getAnalogData(2); }
  • 30. Phidgets • http://www.phidgets.com • Lots of components • Get started for $77
  • 32. Phidgets Programming Languages • Flash • C# • Flex • Python • Java • MathLAB • Delphi •C • Cocoa • C++ • Visual Basic • ...
  • 34. Programming Phidgets • Connecting to Flash/Flex • Install drivers for boards
  • 35. Programming Phidgets • Connecting to Flash/Flex • Install drivers for boards • Run web service
  • 36. Programming Phidgets • Connecting to Flash/Flex • Install drivers for boards • Run web service • Use Phigets21Library.swc
  • 37. Phidgets Servo Motor Example private var phidgetsServo:PhidgetAdvancedServo; protected function initApp():void { phidgetsServo = new PhidgetAdvancedServo(); phidgetsServo.addEventListener(PhidgetEvent.ATTACH, onAttach); phidgetsServo.open("localhost", 5001); } private function onAttach(event:PhidgetEvent):void { phidgetsServo.setPosition(0, 120); phidgetsServo.setPosition(1, 120); phidgetsServo.setPosition(4, 120); phidgetsServo.setPosition(5, 120); }
  • 38. Phidgets Interface Example private var phidgetsInterfaceKit:PhidgetInterfaceKit; protected function initApp():void { phidgetsInterfaceKit = new PhidgetInterfaceKit(); phidgetsInterfaceKit.addEventListener(PhidgetEvent.ATTACH, onAttach); phidgetsInterfaceKit.addEventListener(PhidgetDataEvent.SENSOR_CHANGE, onSensorChange); phidgetsInterfaceKit.open("localhost", 5001); } private function onInterfaceAttach(event:PhidgetEvent):void { phidgetsInterfaceKit.setOutputState(0, true); phidgetsInterfaceKit.setOutputState(1, false); } private function onSensorChange(event:PhidgetDataEvent):void { trace("sensor value = " + Number(event.Data)); }
  • 41. The only limit is your imagination
  • 42. The only limit is your imagination
  • 43. The only limit is your imagination
  • 44. Thank you Twitter: @aikisteve Email: steven@multimediacollege.be Personal site: www.flexpert.be

Editor's Notes