Top Banner
Coding4Fun: Learn Windows Phone 7 Development by Creating a Robotic T-Shirt Cannon Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION CODE: WPH314
27

Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Dec 11, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Coding4Fun: Learn Windows Phone 7 Development by Creating a Robotic T-Shirt CannonDan Fernandez• Twitter:Danielfe• Blog: blogs.msdn.com/danielfe/

Clint Rutkas• Twitter:ClintRutkas• Blog:betterthaneveryone.com

Microsoft Corporation

SESSION CODE: WPH314

Page 2: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Who we are

Page 3: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Dan

FAIL WIN

Page 4: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.
Page 5: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Overview

Talk hardware and design

Driving it wirelessly

Aim a cannon

Fire t-shirts at you

Page 6: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

How Drive Works

1. Wireless router

4. Left motor

4. Right motor

3. Motor controller

0. Battery power

2. IIS on Laptop

Page 7: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Drive Commandhttp://betty2/betty/?command=drive&LeftMotor=-20&RightMotor=80

-20 +80 +40 +40 -20+80

Turn left Straight Turn right

Page 8: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Accelerometer Orientation

-Y

-X

+Z

+Y

-Y

+X

-X +Z

-Z

+Y

Page 9: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Accelerometer Turning

Y: 0.0Angle: 0.0

Y: +0.5Angle: +45⁰

Y: -0.5Angle: -45⁰

• Y Value Range: -1 to +1• Formula: Value * 90⁰• Fires 50x/second, we want every 5th

Page 10: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Accelerometer Z-Axis (Profile view)Degrees

Z: 0.5 (45⁰)

Z: 1.0 (90⁰)

Z: 0.0 (0⁰)

Z: -1.0 (-90⁰)

Z: -0.5 (-45⁰)

Z: 0.0 (0⁰)

Z: 0.5 (45⁰)Z: -0.5 (-45⁰)

Phone

Page 11: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Aim Commandhttp://betty2/betty/?command=aim&pan=-20&tilt=40

Tilt = up / down

0⁰ - 90⁰

-1⁰ to -90⁰

Pan = left / right

+90⁰ to +1⁰

Page 12: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

How Aim Workshttp://betty2/betty/?command=aim&pan=-20&tilt=40

1. Wireless router

2. IIS on Laptop

3. Phidgets Servo Controller

4. Tilt Servo

4. Pan Servo

Page 13: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

How Fire Workshttp://betty2/betty/?command=fire

1. Wireless router

2. IIS on Laptop

3. Phidgets Relay Controller

4. C0²

Page 14: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Finished Product

Status, Drive, Aim, Fireuser controls

Navigation user control

MainPage.xaml

Page 15: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Building the Cannon Phone App

DEMO

Page 16: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

At Home

Page 17: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Windows Phone ResourcesQuestions? Demos? The Latest phones? Visit the Windows Phone Technical Learning Center for demos and more…

Business IT Resourceswww.windowsphone.com/businessDeveloper Resourcesdeveloper.windowsphone.com Experience Windows Phone 7 on-line and get a backstage passwww.windowsphone7.com

Page 18: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Win a Windows Phone ContestHat Contest*

How do you enter?Enter by visiting the Windows Phone booth, accepting a free Windows Phone branded hat, and wearing that hat during the Event.

How am I selected?Each day of the event, a Windows Phone representative will randomly select up to 5 people who are observed wearing their Windows Phone branded hat

Session Contest*During each Windows Phone session the moderator will post a question. The first person to correctly answer the question and called on by the moderator will potentially win

Questions? Go to the WPH Information Counter at the TLC

* Restrictions apply please see contest rules for eligibility and restrictions. Contest rules are displayed in the Technical Learning Center at the WPH info counter.

Page 19: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Related Windows Phone Content – Breakout Sessions Mon &Tue

MondayWPH301 WP7: Deploy Microsoft Forefront Unified Access Gateway for Access Control

to SharePoint, Exchange and more.WPH202 Deploying Windows Phone 7 with Exchange Server and SharePoint Server

TuesdayWPH203 Overview of the Windows Phone 7 Application PlatformWPH313 Windows Phone 7 Architecture Deep DiveWPH304 An In-Depth view at Building Applications for WP7 with Silverlight (Part 1)WPH305 An In-Depth view at Building Applications for WP7 with Silverlight (Part 2)WPH306 Developing Occasionally Connected Applications for Windows Phone 7

Page 20: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Related Windows Phone Content – Breakout Sessions Wed &Thu

WednesdayWPH310 Designing and Developing for the Rich Mobile Web WPH311 Developing Mobile Code Today that will run on WP 7 TomorrowWPH309 Silverlight performance on Windows PhoneWPH307 Building Windows Phone Games with XNAWPH308 Building a High Performance 3D Game for Windows Phone

ThursdayWPH303 Understanding the Windows Phone 7 Development ToolsWPH314 Learn Windows Phone 7 Development by Creating a Robotic T-Shirt CannonWPH312 Understanding Marketplace and Making Money with WP7 Applications

Page 21: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Related Windows Phone Content – Interactive Session & HOL

Windows Phone Interactive SessionsWindows Phone 7 Demo Only!Microsoft’s Next Generation Mobile Enterprise Application Platform (MEAP)

Windows Phone 7 Application PerformancePrepare for Windows Phone 7 Development! Coding practices you should start using now in Windows Mobile

Windows Phone Hands On LabsHello Windows Phone - Building Your first Windows Phone ApplicationMicrosoft Silverlight for Windows PhoneMicrosoft XNA Framework 4.0 for Windows PhonesUsing Push Notifications and Windows Communication Foundation (WCF) Services

Page 22: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Resources

www.microsoft.com/teched

Sessions On-Demand & Community Microsoft Certification & Training Resources

Resources for IT Professionals Resources for Developers

www.microsoft.com/learning

http://microsoft.com/technet http://microsoft.com/msdn

Learning

Page 23: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Complete an evaluation on CommNet and enter to win!

Page 24: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st

http://northamerica.msteched.com/registration

You can also register at the

North America 2011 kiosk located at registrationJoin us in Atlanta next year

Page 25: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 26: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

Backup – Additional Project Information

Page 27: Dan Fernandez Twitter:Danielfe Blog: blogs.msdn.com/danielfe/ Clint Rutkas Twitter:ClintRutkas Blog:betterthaneveryone.com Microsoft Corporation SESSION.

JUNE 7-10, 2010 | NEW ORLEANS, LA