SlideShare una empresa de Scribd logo
1 de 44
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

Más contenido relacionado

Destacado

Akin bayer. metro c&c
Akin bayer. metro c&cAkin bayer. metro c&c
Akin bayer. metro c&c
ECR Community
 
Implantable Course 2015 Med El
Implantable Course 2015 Med ElImplantable Course 2015 Med El
Implantable Course 2015 Med El
Darius Kohan
 

Destacado (19)

Soma Company Profile
Soma Company ProfileSoma Company Profile
Soma Company Profile
 
Akin bayer. metro c&c
Akin bayer. metro c&cAkin bayer. metro c&c
Akin bayer. metro c&c
 
Festa della zucca
Festa  della  zuccaFesta  della  zucca
Festa della zucca
 
PORTAFOLIO 1. CANCILLERIAE
PORTAFOLIO 1. CANCILLERIAEPORTAFOLIO 1. CANCILLERIAE
PORTAFOLIO 1. CANCILLERIAE
 
Entrada 1 Matemática
Entrada 1  MatemáticaEntrada 1  Matemática
Entrada 1 Matemática
 
Presentacion curso practico de alimentacion crudivegana
Presentacion curso practico de alimentacion crudivegana Presentacion curso practico de alimentacion crudivegana
Presentacion curso practico de alimentacion crudivegana
 
Folleto en Duotono
Folleto en DuotonoFolleto en Duotono
Folleto en Duotono
 
Direccionamiento de redes CCNA Cap. 6
Direccionamiento de redes CCNA Cap. 6Direccionamiento de redes CCNA Cap. 6
Direccionamiento de redes CCNA Cap. 6
 
SplunkLive! London: Splunk ninjas- new features and search dojo
SplunkLive! London: Splunk ninjas- new features and search dojoSplunkLive! London: Splunk ninjas- new features and search dojo
SplunkLive! London: Splunk ninjas- new features and search dojo
 
J.I. Soldevilla - Building Information Modelling (BIM)
J.I. Soldevilla - Building Information Modelling (BIM)J.I. Soldevilla - Building Information Modelling (BIM)
J.I. Soldevilla - Building Information Modelling (BIM)
 
Front Matter Smart Grid Communications
Front Matter Smart Grid CommunicationsFront Matter Smart Grid Communications
Front Matter Smart Grid Communications
 
Descripción mecánica de la cosechadora fiatagri r3500
Descripción mecánica de la cosechadora fiatagri r3500Descripción mecánica de la cosechadora fiatagri r3500
Descripción mecánica de la cosechadora fiatagri r3500
 
COOLHUNTING
COOLHUNTINGCOOLHUNTING
COOLHUNTING
 
Implantable Course 2015 Med El
Implantable Course 2015 Med ElImplantable Course 2015 Med El
Implantable Course 2015 Med El
 
Definición de drenaje
Definición de drenajeDefinición de drenaje
Definición de drenaje
 
Folleto trabes y losas
Folleto trabes y losasFolleto trabes y losas
Folleto trabes y losas
 
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDD
 
Plataformas logísticas
Plataformas logísticasPlataformas logísticas
Plataformas logísticas
 
Bronquitis
BronquitisBronquitis
Bronquitis
 

Similar a Fiddling With Phidgets

Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
zvikapika
 

Similar a Fiddling With Phidgets (20)

Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Internet of Things - Technological Perspective
Internet of Things - Technological PerspectiveInternet of Things - Technological Perspective
Internet of Things - Technological Perspective
 
Modular remote
Modular remoteModular remote
Modular remote
 
#startathon2.0 - Arduino
#startathon2.0 - Arduino#startathon2.0 - Arduino
#startathon2.0 - Arduino
 
Taller IoT en la Actualidad
Taller IoT en la ActualidadTaller IoT en la Actualidad
Taller IoT en la Actualidad
 
It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...
It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...
It's Assembler, Jim, but not as we know it: (ab)using binaries from embedded ...
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
 
The Rise of Maker Movement in Indonesia
The Rise of Maker Movement in IndonesiaThe Rise of Maker Movement in Indonesia
The Rise of Maker Movement in Indonesia
 
Microsoft IT Academy Summit 2011
Microsoft IT Academy Summit 2011Microsoft IT Academy Summit 2011
Microsoft IT Academy Summit 2011
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
 
Arduino
ArduinoArduino
Arduino
 
2011 01-24 dragino
2011 01-24 dragino2011 01-24 dragino
2011 01-24 dragino
 
Advanced View Arduino Projects List - Use Arduino for Projects 3.pdf
Advanced View Arduino Projects List - Use Arduino for Projects 3.pdfAdvanced View Arduino Projects List - Use Arduino for Projects 3.pdf
Advanced View Arduino Projects List - Use Arduino for Projects 3.pdf
 
Arduino training day 1
Arduino training day 1Arduino training day 1
Arduino training day 1
 
SIGFOX basics for Intel IoT Roadshow
SIGFOX basics for Intel IoT RoadshowSIGFOX basics for Intel IoT Roadshow
SIGFOX basics for Intel IoT Roadshow
 
A new way to inspire and stimulate learning
A new way to inspire and stimulate learningA new way to inspire and stimulate learning
A new way to inspire and stimulate learning
 
Advanced View Arduino Projects List - Use Arduino for Projects (3).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (3).pdfAdvanced View Arduino Projects List - Use Arduino for Projects (3).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (3).pdf
 
Fullstack IoT Development
Fullstack IoT DevelopmentFullstack IoT Development
Fullstack IoT Development
 

Más de Steven Peeters (6)

Applying Lean Thinking to Software Development
Applying Lean Thinking to Software DevelopmentApplying Lean Thinking to Software Development
Applying Lean Thinking to Software Development
 
Coding and naming conventions
Coding and naming conventionsCoding and naming conventions
Coding and naming conventions
 
SOTR 2012
SOTR 2012SOTR 2012
SOTR 2012
 
Bridging the Gap
Bridging the GapBridging the Gap
Bridging the Gap
 
Scotch On The Rocks 2011
Scotch On The Rocks 2011Scotch On The Rocks 2011
Scotch On The Rocks 2011
 
Flash And The City 2010
Flash And The City 2010Flash And The City 2010
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

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n