Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy...

24
Smart Cities and Internet of Things Practicals Ilche Georgievski [email protected] 2017/2018 Spring

Transcript of Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy...

Page 1: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Smart Cities and Internet of Things

Practicals

Ilche Georgievski [email protected]

2017/2018 Spring

Page 2: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

IAAS – Smart Energy Systems and Services

• Dr. Ilche Georgievski

• Started as a postdoc in Stuttgart on April 1st, 2018

• Previously – CTO at Sustainable Buildings Netherlands

– Postdoc at University of Groningen, The Netherlands

Focus – AI planning

– Automated service coordination

– Smart energy systems

Page 3: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

What

• How-to of some ideas and concepts

• Examples

• Pointers to tutorials

• I can help but I cannot do the project for you

Page 4: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Topics covered

• How to build a smart energy system

• How to set up a Raspberry Pi and different sensors

• How to gather data

• How to reason over data

Page 5: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Tools and technologies

• IntelliJ IDEA – Ultimate Edition is free for Academic use

• Scala (maybe sometimes Java and Python)

• JSON

• RabbitMQ (AMQP and/or MQTT)

• AI planner(s)

• Debian Strech (Raspbian Strech Lite)

• Git and GitHub

Page 6: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

PROJECT Course

Page 7: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Design and implementation of an application within the specified

context and focus

Page 8: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Deliverables

• Develop project idea (10 days)

• Submit a specification document – Deadline: 16.05.2018 – Project description – Architecture – Software and hardware requirements specification

• Midterm project demo and software – 14.06.2018 (tentative)

• Final project demo and software

– 19.07.2018 (tentative)

Page 9: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Requirements

• Groups of two or three students

• 1+ sensor and 1+ actuator

• Data storage

• Service orientation

• Message queuing

• Reasoning over data

• Free to choose your programming language

Page 10: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Scoring criteria

• Documentation (max 5 pages) - 5 points – Architecture design – Software and hardware requirement specification – Completeness – UML diagrams

• Implementation - 5 points – Main capabilities of SES (data storage, service orientation, message

queuing, planning) – 1+ sensor and 1+ actuator – Running on more than one computer

• Demonstration (15 min) - 5+5 points – Motivation – Teamwork

Page 11: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Expectation

• Innovation

• Proactivity

• Independence

Page 12: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Context

Smart cities depend on an electricity grid to ensure resilient delivery of energy to supply their main functions, present opportunities for savings, improve efficiency and so on. Among other things, a smart electricity grid

informs and educates users about their energy usage, costs and alternatives, to enable them to make decisions autonomously about how and

when to use electricity

Page 13: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Focus

• Non-residential buildings

• Building Energy Management System

• A platform that interfaces users with the grid and considers their needs, their living environments and energy prices to coordinate automatically the usage of appliances

Page 14: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Focus

• Simple unobtrusive sensors (e.g., electricity plugs, light sensors, movement sensors) to provide insights in the energy demands for the grid

• For instance, one can use live indoor data to match end-users energy consumption to the fluctuating supply of local energy sources by using automation (e.g., automated regulation of the heating system)

Page 15: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

THINGS Available

Page 16: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Raspberry Pi

• Raspberry Pi 3 B+

• microSD card 8GB

• Power adapter

• Case

Page 17: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Physical sensors

• GrovePi

– PIR Motion

– Light

– Sound

– Angle

– Temperature and humidity

• Protocol: I2C

Page 18: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Physical sensors

• MultiSensor 6 (Aeotec) – Motion – Temperature – Light – Humidity – Vibration – UV

• Z-Stick (Aeon Labs)

• Protocol: Z-Wave

Page 19: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Physical sensors

• Raspberry Pi Sense Hat

– Movement/Orientation

– Temperature

– Humidity

– Pressure

• Protocol: I2C

Page 20: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Services as sensors

• Weather forecasts

– Weather Underground (https://api.wunderground.com/)

– Open Weather (https://openweathermap.org/api)

Page 21: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Actuators

• Plugwise

– Switch on/off

– Two circles

– USB sticks

– Software licence

• Protocol: ZigBee

Page 22: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Actuators

• Grove Relay

– Control circuit of high voltage with low voltage

• Protocol: I2C

Page 23: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Actuators

• Raspberry Pi Relay Shield

– Control the load of high current

• Protocol: I2C

Page 24: Smart cities and Internet of Thingsaiellom/pdf/P1 Intro.pdf · Spring . IAAS – Smart Energy Systems and Services ... (AMQP and/or MQTT) • AI planner(s) • Debian Strech (Raspbian

Summary

• 15 Raspberry Pi’s

• 5 sets of GrovePi sensors

• 5 MultiSensor 6 and Z-Sticks

• 3 Raspberry Sense Hat

• 2 Raspberry Relay Shield

• 10 Plugwise sets (2 circles and a USB stick)

• Your own