Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project...

24
Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid Awwad, Sameeh Jubran High Speed Digital Signal Lab

Transcript of Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project...

Page 1: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Home controlling system based on Galileo

Final Semester PresentationStarted at: Winter 2015

Project supervised by: Mony Orbach Project performed by: Khalid Awwad, Sameeh

Jubran

High Speed Digital Signal Lab

Page 2: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

MotivationWith the exponential growth of the relatively old concept of home automation, the installation of the system and managing it are still very complex to deal with.In this project we are creating a simple way to manage multiple end points (microcontrollers) by the average user, using a smartphone.

Page 3: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Data

Page 4: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

GoalsCreate a cloud based system that:

1. endpoint send the inputs to cloud through WIFI, and the cloud response with outputs.

2. The policy, which defines the outputs according to the input is defined through mobile.

3. Fast, reliable, responsive system.

Page 5: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

System Block Diagram

Page 6: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Holistic View Sensor

Cloud Process

Page 7: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - Intel Galileo + WiFi

Page 8: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - Intel GalileoGalileo is a microcontroller board based on the Intel® Quark SoC X1000 Application Processor, a 32-bit Intel Pentium-class system on a chip (datasheet). It’s the first board based on Intel® architecture designed to be hardware and software pin-compatible with Arduino shields designed for the Uno R3. Digital pins 0 to 13 (and the adjacent AREF and GND pins), Analog inputs 0 to 5, the power header, ICSP header, and the UART port pins (0 and 1), are all in the same locations as on the Arduino Uno R3. This is also known as the Arduino 1.0 pinout.

Page 9: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - Parse

Page 10: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - ParseParse.com is a very powerful tool that provides a backend service to developers. The services range from data hosting to crash reporting and push notification management.Developers can use parse in IOS, Android, OS X, javaScript, and a lot of more platforms.If parse doesn’t support a specific platform, developer can connect to DB through http.

Page 11: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools – Parse - ServicesCloud Core: allows to manage DB in Parse Cloud

Page 12: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools – Parse - ServicesCloud Analytics - Free cloud service

Page 13: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools – Parse - ServicesCloud Code – Code than runs autmaticaly

and process data in DB/ send push notfication to users

Page 14: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - Android Studio

Page 15: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Tools - Android StudioAndroid Studio is the official IDE for Android application development, based on IntelliJ IDEA. On top of the capabilities you expect from IntelliJ, Android Studio offers:● Build variants and multiple apk file generation● Code templates to help you build common app features● Rich layout editor with support for drag and drop theme editing● lint tools to catch performance, usability, version compatibility,

and other problems● ProGuard and app-signing capabilities● Built-in support for Google Cloud Platform, making it easy to

integrate Google Cloud Messaging and App Engine

Page 16: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

System● The Intel Galileo is a client that communicates

with Parse through HTTP requests.● The Intel Galileo controls multiple sensors

through the pins.● The Parse cloud receives and updates the

information accordingly, in case of a trigger event a suitable result should happen (push notification for example).

● the smartphone should handle the push notification accordingly and display it. moreover it should control the endpoints using the Parse cloud.

Page 17: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

ImplementationThe Arduino Galileo will keep updating the cloud with info about the inputs state using Parse hosting service and http requests.Each http request is fetched by the Parse and handled using express.js as the web framework.

Page 18: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

ImplementationMobile application defines a policy for setting outputs according to inputs.On mobile app, inputs are fetched all the time so it can be monitored.“Cloud Heart” keeps processing the inputs and the policy to set the outputs.

Page 19: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

ParseUserClass

EndpointClass

Page 20: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Clouds ProcessThe cloud process, is an independent client that keeps updating the outputs, according to the inputs with the policy the user choose on android.

Page 21: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Android Application

Page 22: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Future re-use and develepment• Better performance and more

responsive.• Building a special cloud for managing

endpoints, which have the required functions.

• In the future, we think it is better to use HTTP library for further maintenance and reusability instead of using raw HTTP requests.

Page 23: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Simulation and testingWe tested each part described above independently, and this use-cases:1. Multiple users of same endpoint.2. Multiple endpoints for one user.3. Multiple sensors/outputs.4. Setting outputs functions.

Page 24: Home controlling system based on Galileo Final Semester Presentation Started at: Winter 2015 Project supervised by: Mony Orbach Project performed by: Khalid.

Summary1. IOT is a future technology.2. Network speed have a big influence on response time of the IOT.3. We didn’t use 1% of galileo memory or hardisk, and we think that in this project we can use less sophisticated boards, with less price and size.