1 / 46

IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Technology | Edureka

This "IoT Tutorial For Beginners" by Edureka will help you grasp the basic concepts of Internet of Things & explains, how IoT is trying to revolutionize the world. This IoT tutorial helps you learn following topics: <br><br>1. What is Internet of Things <br>2. Why do we need Internet of Things <br>3. Benefits of Internet of Things <br>4. IoT features <br>5. IoT Demo - Weather Station application using Raspberry Pi and Sense Hat <br><br>Subscribe to our Edureka channel to get video updates. Hit the subscribe button above. <br><br>#Whatisiot #iot #iottutorial #internetofthings #iotonlinetraining #iotforbeginners <br><br>For more information, please write back to us at sales@edureka.co <br>Call us at US: 1800 275 9730(toll free) or India: 91 88808 62004 <br><br>Website: https://www.edureka.co <br>Facebook: https://www.facebook.com/edurekaIN/ <br>Twitter: https://twitter.com/edurekain <br>LinkedIn: https://www.linkedin.com/company/edureka

EdurekaIN
Download Presentation

IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Technology | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Agenda Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  2. What is Internet of Things? Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  3. What is Internet of Things? VOICE Voice Detection Mobile Gyroscope GPS Tracking Face Detection Adaptive Brightness IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  4. What is Internet of Things? Connecting everyday things embedded with electronics, software and sensors to the internet enabling them to collect and exchange data IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  5. Why do we need IoT? Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  6. Why do we need IoT? Cloud IOT continuously monitoring your health IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  7. Why do we need IoT? Cloud As any irregular condition is monitored, hospital is notified… IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  8. Why do we need IoT? Cloud Quickly the ambulance is send to the patients location…. IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  9. Why do we need IoT? Prescriptions Medicines Operation Theater Before ambulance arrives, all the facilities are ready for the patient based on his reports… IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  10. Why do we need IoT? to INTERACT CONTRIBUTE COLLABORATE & TO THINGS IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  11. Benefits of IoT Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  12. Benefits of IoT Benefits of Internet of Things IMPROVED SECURITY EFFICIENT RESOURCE UTILIZATION MINIMIZING HUMAN EFFORT DEVELOPMENT OF AI THROUGH IOT SAVES TIME IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  13. IoT Features Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  14. IoT Features IoT lets us achieve the true potential of technology CONNECT Connect various things to the IoT Platform Analyze the data collected and use it to build Business Intelligence ANALYZE Integrate various models to improve user experience INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  15. IoT Features - Connect 1 Device Virtualization Standardize integration of devices with the IoT enterprise CONNECT ANALYZE INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  16. IoT Features - Connect 1 Device Virtualization 2 High Speed Messaging CONNECT ANALYZE Enable reliable, secure, and bi-directional communication between devices and the cloud INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  17. IoT Features - Connect 1 Device Virtualization 2 High Speed Messaging CONNECT 3 Endpoint Management ANALYZE Manage device endpoint identity, metadata and lifecycle states for all devices INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  18. IoT Features 1 Stream Processing Real-time analysis of incoming data streams with event aggregation, filtering, and correlation CONNECT ANALYZE INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  19. IoT Features 1 Stream Processing 2 Data Enrichment CONNECT Enrich raw data streams with contextual information and generate composite streams ANALYZE INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  20. IoT Features 1 Stream Processing 2 Data Enrichment CONNECT 3 Event Store ANALYZE Query and visualize massive amounts of data with integrated BI Cloud Service support and enable big data analysis INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  21. IoT Features 1 Enterprise Connectivity Dynamically dispatch critical IoT data and events to applications and process flows CONNECT ANALYZE INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  22. IoT Features 1 Enterprise Connectivity 2 REST APIs CONNECT ANALYZE API-based integration with Cloud apps and IoT devices INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  23. IoT Features 1 Enterprise Connectivity 2 REST APIs CONNECT 3 Command and Control ANALYZE Send messages to devices from enterprise and mobile apps, independent of device connectivity INTEGRATE IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  24. Raspberry Pi OS Installation Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  25. Raspberry Pi OS Installation The Raspberry Pi Foundation recommends the use of Raspbian, a Debian-based Linux operating system 1 RISC OS 2 FreeBSD 3 NetBSD 4 Plan 9 from Bell Labs 5 Windows 10 IoT Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  26. Raspberry Pi OS Installation 1 Download NOOBS from www.raspberrypi.org D o w n l o a d N O O B S . z i p Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  27. Raspberry Pi OS Installation 1 Download NOOBS from www.raspberrypi.org 2 Extract the zip File E x t r a c t t h e z i p f i l e & G o t o R a s p b i a n Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  28. Raspberry Pi OS Installation 1 Download NOOBS from www.raspberrypi.org 2 Extract the zip File 3 Copy these file to a formatted SD card C o p y t h e s e f i l e s t o S D C a r d Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  29. Raspberry Pi OS Installation 1 Download NOOBS from www.raspberrypi.org 2 Extract the zip File 3 Copy these file to a formatted SD card 4 Put in Raspberry Pi SD Card slot Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  30. Raspberry Pi OS Installation 1 Download NOOBS from www.raspberrypi.org 2 Extract the zip File 3 Copy these file to a formatted SD card 4 Put in Raspberry Pi SD Card slot 5 Follow the installation instructions Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  31. IoT Demo Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  32. IoT Demo Problem Statement To build a Weather Detection System to get real-time weather metrics live onto mobile notifications 1 3 2 SenseHat Board will measure weather metrics of Temperature, Humidity & Pressure onto Raspberry Pi We will use Raspberry Pi to transfer the weather data and display the results on the SenseHat board We will use Instapush API and Python Script to push these notifications across the internet Figure: Three steps to build weather detection system IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  33. IoT Demo Assembling SenseHat on Raspberry Pi IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  34. IoT Demo import pycurl, json from StringIO import StringIO import RPi.GPIO as GPIO from sense_hat import SenseHat import time from time import asctime Importing Sense Hat Importing Time sense = SenseHat() sense.clear() IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  35. IoT Demo cold = 30 hot = 40 pushMessage = "" #Displaying numbers OFFSET_LEFT = 1 OFFSET_TOP = 2 NUMS =[1,1,1,1,0,1,1,0,1,1,0,1,1,1,1, # 0 0,1,0,0,1,0,0,1,0,0,1,0,0,1,0, # 1 1,1,1,0,0,1,0,1,0,1,0,0,1,1,1, # 2 1,1,1,0,0,1,1,1,1,0,0,1,1,1,1, # 3 1,0,0,1,0,1,1,1,1,0,0,1,0,0,1, # 4 1,1,1,1,0,0,1,1,1,0,0,1,1,1,1, # 5 1,1,1,1,0,0,1,1,1,1,0,1,1,1,1, # 6 1,1,1,0,0,1,0,1,0,1,0,0,1,0,0, # 7 1,1,1,1,0,1,1,1,1,1,0,1,1,1,1, # 8 1,1,1,1,0,1,1,1,1,0,0,1,0,0,1] # 9 Displaying numbers on SenseHat IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  36. IoT Demo # Displaying a single digit (0-9) def show_digit(val, xd, yd, r, g, b): offset = val * 15 for p in range(offset, offset + 15): xt = p % 3 yt = (p-offset) // 3 sense.set_pixel(xt+xd, yt+yd, r*NUMS[p], g*NUMS[p], b*NUMS[p]) Displaying numbers on SenseHat # Displays a two-digit positive number (0-99) def show_number(val, r, g, b): abs_val = abs(val) tens = abs_val // 10 units = abs_val % 10 if (abs_val > 9): show_digit(tens, OFFSET_LEFT, OFFSET_TOP, r, g, b) show_digit(units, OFFSET_LEFT+4, OFFSET_TOP, r, g, b) IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  37. IoT Demo Getting weather metrics temp = round(sense.get_temperature()) humidity = round(sense.get_humidity()) pressure = round(sense.get_pressure()) message = " T=%dC, H=%d, P=%d Millibars " %(temp,humidity,pressure) appID = "59bb6e6ba4c48a1cd674e33d“ #Adding Instapush Application appSecret = "fd127d824390296b5f84818cddafeebe“# Add your Instapush Secret Key pushEvent = "TempNotify" c = pycurl.Curl() c.setopt(c.URL, 'https://api.instapush.im/v1/post’) # Setting API URL c.setopt(c.HTTPHEADER, ['x-instapush-appid: ' + appID, 'x-instapush-appsecret: ' + appSecret, 'Content-Type: application/json']) Validating Instapush buffer = StringIO() # Capture response from push API call IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  38. IoT Demo def pushmessage(): json_fields = {} Defining notification message json_fields['event']=pushEvent json_fields['trackers'] = {} json_fields['trackers']['message']=pushMessage #print(json_fields) postfields = json.dumps(json_fields) c.setopt(c.POSTFIELDS, postfields) c.setopt(c.WRITEFUNCTION, buffer.write) c.setopt(c.VERBOSE, True) IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  39. IoT Demo while True: temp = round(sense.get_temperature()) humidity = round(sense.get_humidity()) pressure = round(sense.get_pressure()) message = ' T=%dC, H=%d, P=%d ' %(temp,humidity,pressure) time.sleep(4) log = open('weather.txt',"a") now = str(asctime()) temp = int(temp) show_number(temp, 200, 0, 60) temp1 = temp log.write(now+''+message+'\n') print(message) log.close() time.sleep(5) IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  40. IoT Demo if temp >= hot: pushMessage = "It is hot: " + message pushmessage() c.perform() # Capture the response from the server body = buffer.getvalue() pushMessage = "" elif temp <= cold: pushMessage = "It is cold: " + message c.perform() # Capture the response from the server body = buffer.getvalue() # Resetting the buffer buffer.truncate(0) buffer.seek(0) c.close() GPIO.cleanup() IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  41. Session In A Minute What is IOT? Why IOT? Benefits Of IOT Features of IOT Demo Raspberry Pi Installation IoT Tutorial Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  42. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  43. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

More Related