ibm bluemix demos: driving smartphone and personality ball

28
© 2015 IBM Corporation IBM Bluemix Demos of Watson and IoT - Driving Smartphone - Personality Ball Niklas Heidloff IBM Bluemix Developer Advocate @nheidloff heidloff.net March 2015

Upload: niklas-heidloff

Post on 14-Jul-2015

948 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

IBM Bluemix Demos of Watson and IoT- Driving Smartphone- Personality Ball

Niklas HeidloffIBMBluemix Developer [email protected]

March 2015

Page 2: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

The Thing – Sphero Ball

● Both demos use a Sphero ball; the driving smartphone demo uses additionally a Sphero chariot

● The ball is connected via bluetooth to a native Android app via the Sphero Android SDK

Page 3: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 4: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 5: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Driving Smartphone

● Smartphone can be steered using IBM Watson speech recognition

● The Watson sample app has been extended to send the text via MQTT (Eclipse Paho JavaScript library) to the Bluemix Internet of Things foundation

● A Node-RED flow is used to send commands to the native app● When text is received from Watson● When certain URLs are invoked● When certain Twitter tweets are published

● The native Android app receives the commands and forwards them to the ball

Page 6: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 7: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 8: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 9: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 10: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 11: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 12: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 13: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 14: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 15: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 16: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 17: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Personality Ball

● The Watson personality insights service is used to analyze the personality of a person and detect the big 5 personality trait with the highest value which triggers the ball to show another color

● Tweets are read via Twitter4J from a simple Java web application. The same application invokes the Watson service and sends the result to the Internet of Things foundation via MQTT (Eclipse Paho Java library)

● A Node-RED flow receives the results and sends commands to the native Android app which forwards them to the ball

Page 18: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 19: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 20: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 21: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 22: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 23: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 24: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 25: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Page 26: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Resources

● IBM Bluemix: http://bluemix.net● Watson: http://ibm.com/smarterplanet/us/en/ibmwatson/developercloud● IBM Bluemix News: http://bluemix.info● IBM Bluemix Developers: http://developer.ibm.com/bluemix● Niklas Heidloff Blog: http://heidloff.net

● Sphero: http://store.gosphero.com/products/chariot● Chariot: http://www.gosphero.com/sphero/● Sphero Developers://developer.gosphero.com/● Sphero SDK: https://github.com/orbotix/Sphero-Android-SDK

● Eclipse Paho JavaScript: http://www.eclipse.org/paho/clients/js/● Eclipse Paho Java: http://www.eclipse.org/paho/clients/java/● Twitter4J: http://twitter4j.org/en/index.html

Page 27: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Recognition

● A special thank you goes to Bryan Boyd and Mark VanderWiele from whom I've stolen the idea and some of the code

Page 28: IBM Bluemix Demos: Driving Smartphone and Personality Ball

© 2015 IBM Corporation

Acknowledgements and Disclaimers

Availability. References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates.

The workshops, sessions and materials have been prepared by IBM or the session speakers and reflect their own views. They are provided for informational purposes only, and are neither intended to, nor shall have the effect of being, legal or other guidance or advice to any participant. While efforts were made to verify the completeness and accuracy of the information contained in this presentation, it is provided AS-IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this presentation or any other materials. Nothing contained in this presentation is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.

All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer. Nothing contained in these materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.

© Copyright IBM Corporation 2015. All rights reserved.

U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

IBM, the IBM logo, ibm.com and IBM SmartCloud® are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml

GitHub is a trademark: https://help.github.com/articles/github-trademark-policy

Other company, product, or service names may be trademarks or service marks of others.