13
Smart Switch Sameer Khandekar

Smart Switch

Embed Size (px)

Citation preview

Page 1: Smart Switch

Smart SwitchSameer Khandekar

Page 2: Smart Switch

Agenda• What is it about?• Intro to Arduino• Hardware architecture• App architecture• Code & Demo• Resources

Page 3: Smart Switch

What is it about?• Building Hardware and App• Arduino, Bluetooth & Power Relay• Xamarin, MVVMCross

Page 4: Smart Switch

Intro to Arduino• What is Arduino

Page 5: Smart Switch

Intro to Arduino• What is Arduino• Open source hardware platform• Comes in different flavors• Various shields are available

• Arduino Terminology (Shields, Schematics, Sketch)• Potential for Arduino

Page 6: Smart Switch

Hardware ArchitectureBluetooth Module

Arduino Board

LED + Resistor Power Relay

Page 7: Smart Switch

Hardware Pin Diagram + Tips

Page 8: Smart Switch

Hardware Schematics• Schematics

Page 9: Smart Switch

Hardware Sketch• The Sketch

Page 10: Smart Switch

App architecture• Requirements• Cross platform App• Share common code• Same Workflow on all platforms• Different Ux per platform• Different BT Implementation per platform

Page 11: Smart Switch

App architecture• Design Patterns• MVVM• IOC• Singleton

• Framework

.NET PCL

View Model

Android Windows Phone iOS

View Bluetooth View Bluetooth View Bluetooth

Page 12: Smart Switch

Code & Demo

Page 13: Smart Switch

Resources• https://www.hackster.io/sameerk/smart-switch• Arduino IDE - https://www.arduino.cc/• Xamarin - http://www.xamarin.com/• MVVMCross – NuGet package

• @sameerIOTApps• https://www.linkedin.com/in/sameerk1