SlideShare a Scribd company logo
Workshop
on
Real-Time IOT Using NodeMCU
IOT
• Network of physical objects-“things”-that are embedded with sensors, software, and other
technologies for the purpose of connecting and exchanging data with other devices and
systems over the internet.
• An IOT ecosystem consists of web-enabled smart devices that use embedded systems, such
as processors, sensors and communication hardware, to collect, send and act on data
they acquire from their environments.
USES OF IOT
• Manufacturing Industry
• Agriculture Industry
• Healthcare
• Home Automation
• Automobile and Transportation
• Energy Sector
WHY IOT?
Connectivity
 Enables devices to connect to the internet.
 Share data and communicate with other devices.
 Devices can work together.
WHY IOT?
Efficiency
 Automating tasks.
 Monitoring systems in real-time
 Providing data for predictive maintenance.
WHY IOT?
Personalization
 create of personalized experiences for individuals .
 improve services and products.
WHY IOT?
 Innovation
 creating new products and services that were not possible before.
 lead to new business opportunities.
WHY IOT?
 Data
 Data can be analysed in the future
 gain insights into consumer behavior
 optimize operations
LAYERS OF IOT
ARCHITECTURE
• Device Layer
• Communication's Layer
• Data Storage and Processing
• Application Layer
DEVICE LAYER
• First layer of IoT architecture is a sensing layer
• Includes devices , sensors, and actuators
• Collect data from their surroundings
COMMUNICATION LAYER
• Transports data from the Device Layer to the Internet
• Security functionality including authentication, encryption and malware
protection
DATA STORAGE AND PROCESSING
• structured to handle data analysis and pre-processing.
• Located in the cloud.
• Data can be accessed by applications for edge analytics in use cases
like autonomous vehicles where real-time data is necessary.
• Data is monitored and managed while the processing is completed.
APPLICATION LAYER
• located in the cloud
• data is used by end-user applications.
LAYERS OF IOT ARCHITECTURE
• Device Layer: A temperature sensor takes temperature readings inside a
refrigerator.
• Communications Layer: Readings are sent to a router via a proprietary
protocol and sent to the cloud.
• Data Storage and Processing Layer: The cloud stores and processes the
incoming data to generate alerts in real time and, when possible, reduce the
total amount of data stored.
• Application layer: The cloud generates reports and analysis for end users
to applications and record keeping, via both web interfaces and email
delivery.
PROTOCOL’S IN IOT
• MQTT ( Message Queuing Telemetry Transport )
• CoAP ( Constrained Application Protocol )
• HTTP ( Hypertext Transfer Protocol )
• DDS ( Data Distribution Service )
• Bluetooth
• LoRaWAN
MQTT
• set of rules
• lightweight messaging between devices and the cloud
• Used where reliability and low bandwidth are critical
• supports messaging between devices to the cloud and the cloud to the
device
MQTT
• Lightweight and efficient
• requires minimal resources
• control message can be as little as two data bytes.
• Scalable
• requires a minimal amount of code that consumes very little power in operations
• support communication with a large number of IoT devices.
• Reliable
• reduce the time the IoT device takes to reconnect with the cloud
• Secure
• encrypt messages and authenticate devices
• Well-supported
• languages have extensive support for MQTT protocol
• implement with minimal coding in any type of application.
HTTP
• sending and receiving data between web servers and IoT devices.
• used for IoT devices when there is a lot of data to be published
• connect 3D printers in the network.
NODEMCU
• Also known as ESP8266 NodeMCU
• NodeMCU is an open-source platform, its hardware design is open for
edit/modify/build
• Has 8 Digital and 1 Analog Pins
• It supports serial communication protocols i.e. UART, SPI, I2C, etc
NODEMCU
BENEFITS
PROTOCOLS
•UART (universal asynchronous receiver-transmitter)
•SPI (Serial Peripheral Interface)
•I2C ( Inter-Integrated Circuit)
SPI
• communication typically happens over short
distances used on a circuit board
• low amount of data transmission
• Have 4 wires to operate
• SCLK
• MOSI
• MISO
• SS
I2C
• Only uses two wires
• Supports multiple
masters and multiple
slaves
• Hardware is less
complicated than with
UARTs
• Well known and widely
used protocol
UART
• Intergrated circuit in a computer or an microcontroller
• Data is transferred bit by bit using a single line or wire
• Change parallel data into serial data for outbound communications
• Change serial data into parallel data for inbound communications
• Low current consumption
• More no of digital I/O Pins
• Better processor and memory
• Breadboard friendly
• Built in WiFi
BENEFITS
• Int
• Char
• Float
• Double
• boolean
VARIABLES
• pinMode
• digitalWrite
• digitalRead
• analogWrite
• analogRead
• Serial
• delay
DATATYPES
• If
• If else
• for
• while
Control structures
• Void setup()
• Void loop()
DEFAULT FUNCTIONS
FIRST
PROGRAM
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
SOFTWARE
• CP2102 Driver
• http://bit.ly/3TPbsPq
• Arduino IDE
• https://bit.ly/3U61TvX
CONFIGURATION
• Install CP2102 Driver
• Install ESP8266 to Arduino IDE
• http://arduino.esp8266.com/stable/package_esp8266com_index.json
• Tools>>Board>>Boards Manager>>ESP8266>>Install
• Tools>>Board>>esp8266>>Nodemcu 1.0 (ESP-12E Module)
• Select correct Port
CONNECTING
TOWIFI
#include <ESP8266WiFi.h>
const char *ssid = "Your wifi Network name";
const char *pass = "Network password";
WiFiClient client;
void setup()
{
Serial.begin(9600);
delay(10);
Serial.println("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() !=WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
}
void loop()
{
}
HANDS ON PROJECTS
• Led Blink
• WiFi Connection
• WiFi with LED
• Interfacing with DHT22
• NodeMCU as a WebServer
• Sending data from sensor to Thingspeak,Firebase,Adafruit IO over IOT
CHALLENGES IN LARGE SCALE IOT
• Scalability
• Data management
• Security
• Interoperability
• Cost
TOPICS DISCUSSED
• What is meant by IOT
• Uses of IOT
• Introduction to NodeMCU
• Hands on Projects
• Case Studies
• Challenges in large scale IOT
THANKYOU

More Related Content

Similar to Nodemcu and IOT.pptx

iot.pptx related to technology which exist
iot.pptx related to technology which existiot.pptx related to technology which exist
iot.pptx related to technology which existVINODN33
 
Internet of Things Architecture / Topology
Internet of Things Architecture / TopologyInternet of Things Architecture / Topology
Internet of Things Architecture / TopologyNEEVEE Technologies
 
HOME AUTOMATION USING INTERNET OF THINGS.pptx
HOME AUTOMATION USING INTERNET OF THINGS.pptxHOME AUTOMATION USING INTERNET OF THINGS.pptx
HOME AUTOMATION USING INTERNET OF THINGS.pptxKhanArshidIqbal
 
GDG Meetup Jakarta - Low Power IoT
GDG Meetup Jakarta - Low Power IoTGDG Meetup Jakarta - Low Power IoT
GDG Meetup Jakarta - Low Power IoTAlwin Arrasyid
 
Internet of things
Internet of thingsInternet of things
Internet of thingsBrockanurag
 
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptx
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptxConnecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptx
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptxssuser52b751
 
IoT-CT internet of thing master séminaire cours.pdf
IoT-CT internet of thing master séminaire cours.pdfIoT-CT internet of thing master séminaire cours.pdf
IoT-CT internet of thing master séminaire cours.pdfNadouShe
 
System design of multiprotocol iot
System design of multiprotocol iotSystem design of multiprotocol iot
System design of multiprotocol iotDev Bhattacharya
 
Internet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationInternet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationSherin C Abraham
 
ch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computingch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computingssuser06ea42
 
UCT IoT Deployment and Challenges
UCT IoT Deployment and ChallengesUCT IoT Deployment and Challenges
UCT IoT Deployment and ChallengesThe IOT Academy
 
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...Rick G. Garibay
 

Similar to Nodemcu and IOT.pptx (20)

iot unit1.pdf
iot unit1.pdfiot unit1.pdf
iot unit1.pdf
 
Unit - 1.pptx
Unit - 1.pptxUnit - 1.pptx
Unit - 1.pptx
 
iot.pptx related to technology which exist
iot.pptx related to technology which existiot.pptx related to technology which exist
iot.pptx related to technology which exist
 
Internet of Things Architecture / Topology
Internet of Things Architecture / TopologyInternet of Things Architecture / Topology
Internet of Things Architecture / Topology
 
HOME AUTOMATION USING INTERNET OF THINGS.pptx
HOME AUTOMATION USING INTERNET OF THINGS.pptxHOME AUTOMATION USING INTERNET OF THINGS.pptx
HOME AUTOMATION USING INTERNET OF THINGS.pptx
 
GDG Meetup Jakarta - Low Power IoT
GDG Meetup Jakarta - Low Power IoTGDG Meetup Jakarta - Low Power IoT
GDG Meetup Jakarta - Low Power IoT
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
UNIT-2.pptx
UNIT-2.pptxUNIT-2.pptx
UNIT-2.pptx
 
intro to iot.pdf
intro to iot.pdfintro to iot.pdf
intro to iot.pdf
 
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptx
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptxConnecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptx
Connecting_Things_2.01_Instructor Supplemental Materials_Chapter4.pptx
 
IoT-CT internet of thing master séminaire cours.pdf
IoT-CT internet of thing master séminaire cours.pdfIoT-CT internet of thing master séminaire cours.pdf
IoT-CT internet of thing master séminaire cours.pdf
 
System design of multiprotocol iot
System design of multiprotocol iotSystem design of multiprotocol iot
System design of multiprotocol iot
 
Internet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationInternet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M Communication
 
ch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computingch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computing
 
chapter-1_iot.pptx
chapter-1_iot.pptxchapter-1_iot.pptx
chapter-1_iot.pptx
 
IOT UNIT 1B.ppt
IOT UNIT 1B.pptIOT UNIT 1B.ppt
IOT UNIT 1B.ppt
 
UCT IoT Deployment and Challenges
UCT IoT Deployment and ChallengesUCT IoT Deployment and Challenges
UCT IoT Deployment and Challenges
 
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
 
module 3.pptx
module 3.pptxmodule 3.pptx
module 3.pptx
 
Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
 

Recently uploaded

F5 LTM TROUBLESHOOTING Guide latest.pptx
F5 LTM TROUBLESHOOTING Guide latest.pptxF5 LTM TROUBLESHOOTING Guide latest.pptx
F5 LTM TROUBLESHOOTING Guide latest.pptxArjunJain44
 
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...Amil Baba Dawood bangali
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理kywwoyk
 
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...Amil baba
 
Memory compiler tutorial – TSMC 40nm technology
Memory compiler tutorial – TSMC 40nm technologyMemory compiler tutorial – TSMC 40nm technology
Memory compiler tutorial – TSMC 40nm technologyAhmed Abdelazeem
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理eemet
 
1. WIX 2 PowerPoint for Work Experience.pptx
1. WIX 2 PowerPoint for Work Experience.pptx1. WIX 2 PowerPoint for Work Experience.pptx
1. WIX 2 PowerPoint for Work Experience.pptxlouise569794
 
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理kywwoyk
 

Recently uploaded (8)

F5 LTM TROUBLESHOOTING Guide latest.pptx
F5 LTM TROUBLESHOOTING Guide latest.pptxF5 LTM TROUBLESHOOTING Guide latest.pptx
F5 LTM TROUBLESHOOTING Guide latest.pptx
 
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...
NO1 Pandit Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpindi...
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
 
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...
NO1 Uk Amil Baba In Lahore Kala Jadu In Lahore Best Amil In Lahore Amil In La...
 
Memory compiler tutorial – TSMC 40nm technology
Memory compiler tutorial – TSMC 40nm technologyMemory compiler tutorial – TSMC 40nm technology
Memory compiler tutorial – TSMC 40nm technology
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
 
1. WIX 2 PowerPoint for Work Experience.pptx
1. WIX 2 PowerPoint for Work Experience.pptx1. WIX 2 PowerPoint for Work Experience.pptx
1. WIX 2 PowerPoint for Work Experience.pptx
 
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理
一比一原版UVM毕业证佛蒙特大学毕业证成绩单如何办理
 

Nodemcu and IOT.pptx

  • 2. IOT • Network of physical objects-“things”-that are embedded with sensors, software, and other technologies for the purpose of connecting and exchanging data with other devices and systems over the internet. • An IOT ecosystem consists of web-enabled smart devices that use embedded systems, such as processors, sensors and communication hardware, to collect, send and act on data they acquire from their environments.
  • 3. USES OF IOT • Manufacturing Industry • Agriculture Industry • Healthcare • Home Automation • Automobile and Transportation • Energy Sector
  • 4. WHY IOT? Connectivity  Enables devices to connect to the internet.  Share data and communicate with other devices.  Devices can work together.
  • 5. WHY IOT? Efficiency  Automating tasks.  Monitoring systems in real-time  Providing data for predictive maintenance.
  • 6. WHY IOT? Personalization  create of personalized experiences for individuals .  improve services and products.
  • 7. WHY IOT?  Innovation  creating new products and services that were not possible before.  lead to new business opportunities.
  • 8. WHY IOT?  Data  Data can be analysed in the future  gain insights into consumer behavior  optimize operations
  • 9. LAYERS OF IOT ARCHITECTURE • Device Layer • Communication's Layer • Data Storage and Processing • Application Layer
  • 10. DEVICE LAYER • First layer of IoT architecture is a sensing layer • Includes devices , sensors, and actuators • Collect data from their surroundings
  • 11. COMMUNICATION LAYER • Transports data from the Device Layer to the Internet • Security functionality including authentication, encryption and malware protection
  • 12. DATA STORAGE AND PROCESSING • structured to handle data analysis and pre-processing. • Located in the cloud. • Data can be accessed by applications for edge analytics in use cases like autonomous vehicles where real-time data is necessary. • Data is monitored and managed while the processing is completed.
  • 13. APPLICATION LAYER • located in the cloud • data is used by end-user applications.
  • 14. LAYERS OF IOT ARCHITECTURE • Device Layer: A temperature sensor takes temperature readings inside a refrigerator. • Communications Layer: Readings are sent to a router via a proprietary protocol and sent to the cloud. • Data Storage and Processing Layer: The cloud stores and processes the incoming data to generate alerts in real time and, when possible, reduce the total amount of data stored. • Application layer: The cloud generates reports and analysis for end users to applications and record keeping, via both web interfaces and email delivery.
  • 15. PROTOCOL’S IN IOT • MQTT ( Message Queuing Telemetry Transport ) • CoAP ( Constrained Application Protocol ) • HTTP ( Hypertext Transfer Protocol ) • DDS ( Data Distribution Service ) • Bluetooth • LoRaWAN
  • 16. MQTT • set of rules • lightweight messaging between devices and the cloud • Used where reliability and low bandwidth are critical • supports messaging between devices to the cloud and the cloud to the device
  • 17. MQTT • Lightweight and efficient • requires minimal resources • control message can be as little as two data bytes. • Scalable • requires a minimal amount of code that consumes very little power in operations • support communication with a large number of IoT devices. • Reliable • reduce the time the IoT device takes to reconnect with the cloud • Secure • encrypt messages and authenticate devices • Well-supported • languages have extensive support for MQTT protocol • implement with minimal coding in any type of application.
  • 18. HTTP • sending and receiving data between web servers and IoT devices. • used for IoT devices when there is a lot of data to be published • connect 3D printers in the network.
  • 19. NODEMCU • Also known as ESP8266 NodeMCU • NodeMCU is an open-source platform, its hardware design is open for edit/modify/build • Has 8 Digital and 1 Analog Pins • It supports serial communication protocols i.e. UART, SPI, I2C, etc
  • 22. PROTOCOLS •UART (universal asynchronous receiver-transmitter) •SPI (Serial Peripheral Interface) •I2C ( Inter-Integrated Circuit)
  • 23. SPI • communication typically happens over short distances used on a circuit board • low amount of data transmission • Have 4 wires to operate • SCLK • MOSI • MISO • SS
  • 24. I2C • Only uses two wires • Supports multiple masters and multiple slaves • Hardware is less complicated than with UARTs • Well known and widely used protocol
  • 25. UART • Intergrated circuit in a computer or an microcontroller • Data is transferred bit by bit using a single line or wire • Change parallel data into serial data for outbound communications • Change serial data into parallel data for inbound communications
  • 26. • Low current consumption • More no of digital I/O Pins • Better processor and memory • Breadboard friendly • Built in WiFi BENEFITS
  • 27. • Int • Char • Float • Double • boolean VARIABLES
  • 28. • pinMode • digitalWrite • digitalRead • analogWrite • analogRead • Serial • delay DATATYPES
  • 29. • If • If else • for • while Control structures
  • 30. • Void setup() • Void loop() DEFAULT FUNCTIONS
  • 31. FIRST PROGRAM void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }
  • 32. SOFTWARE • CP2102 Driver • http://bit.ly/3TPbsPq • Arduino IDE • https://bit.ly/3U61TvX
  • 33. CONFIGURATION • Install CP2102 Driver • Install ESP8266 to Arduino IDE • http://arduino.esp8266.com/stable/package_esp8266com_index.json • Tools>>Board>>Boards Manager>>ESP8266>>Install • Tools>>Board>>esp8266>>Nodemcu 1.0 (ESP-12E Module) • Select correct Port
  • 34. CONNECTING TOWIFI #include <ESP8266WiFi.h> const char *ssid = "Your wifi Network name"; const char *pass = "Network password"; WiFiClient client; void setup() { Serial.begin(9600); delay(10); Serial.println("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, pass); while (WiFi.status() !=WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); } void loop() { }
  • 35. HANDS ON PROJECTS • Led Blink • WiFi Connection • WiFi with LED • Interfacing with DHT22 • NodeMCU as a WebServer • Sending data from sensor to Thingspeak,Firebase,Adafruit IO over IOT
  • 36. CHALLENGES IN LARGE SCALE IOT • Scalability • Data management • Security • Interoperability • Cost
  • 37. TOPICS DISCUSSED • What is meant by IOT • Uses of IOT • Introduction to NodeMCU • Hands on Projects • Case Studies • Challenges in large scale IOT