SlideShare une entreprise Scribd logo
1  sur  43
Télécharger pour lire hors ligne
Internet ofThings
IFTTT Templet to send SMS
Eng. Elaf A.Saeed
The Contents
• Gas sensor mq-2
• IOT platform.
• IFTTT platform.
• IFTTT platform to send gas alarm SMS.
IFTTT Templet to send SMS
With ESP8266 NodeMCU
Gas sensor mq-2
• MQ2 is one of the commonly used gas sensors in MQ sensor series. It is a
Metal Oxide Semiconductor (MOS) type Gas Sensor also known as
Chemiresistors as the detection is based upon change of resistance of the
sensing material when the Gas comes in contact with the material. Using a
simple voltage divider network, concentrations of gas can be detected.
• MQ2 Gas sensor works on 5V DC and draws around 800mW. It can detect
LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon Monoxide
concentrations anywhere from 200 to 10000ppm.
Gas sensor mq-2 (cont.)
• Here are the complete specifications
Gas sensor mq-2
❑MQ2 Gas Sensor Module
• Since MQ2 Gas Sensor is not breadboard compatible, we do recommend this
handy little breakout board. It’s very easy to use and comes with two different
outputs. It not only provides a binary indication of the presence of
combustible gases but also an analog representation of their concentration in
air.
Gas sensor mq-2
❑MQ2 Gas Sensor Module (Cont.)
• The analog signal from MQ2 Gas sensor is further fed to LM393 High
Precision Comparator (soldered on the bottom of the module), of course to
digitize the signal. Along with the comparator is a little potentiometer you can
turn to adjust the sensitivity of the sensor. You can use it to adjust the
concentration of gas at which the sensor detects it.
Gas sensor mq-2
❑Calibrate MQ2 Gas Sensor Module
• To calibrate the gas sensor you can hold the gas sensor near smoke/gas you
want to detect and keep turning the potentiometer until the Red LED on the
module starts glowing. Turn the screw clockwise to increase sensitivity or
anticlockwise to decrease sensitivity.
Gas sensor mq-2
❑Calibrate MQ2 Gas Sensor Module (Cont.)
• The comparator on the module continuously checks if the analog pin (A0) has
hit the threshold value set by potentiometer. When it crosses the threshold, the
digital pin (D0) will go HIGH and signal LED turns on. This setup is very
useful when you need to trigger an action when certain threshold is reached.
For example, when the smoke crosses a threshold, you can turn on or off a
relay or instruct your robot to blow air/sprinkle water. You got the idea!
Gas sensor mq-2
❑MQ2 Gas Sensor Module Pinout
• VCC supplies power for the module. You can connect it
to 5V output from your Arduino.
• GND is the Ground Pin and needs to be connected to
GND pin on the Arduino.
• D0 provides a digital representation of the presence of
combustible gases.
• A0 provides analog output voltage in proportional to the
concentration of smoke/gas.
Iot platform
• IoT platforms originated in the form of IoT middleware, which purpose was
to function as a mediator between the hardware and application layers. Its
primary tasks included data collection from the devices over different
protocols and network topologies, remote device configuration and control,
device management, and over-the-air firmware updates.
Iot platform
Iot platform
• Its manages the connectivity of devices.
• It enables developers to build new mobile software applications.
• It allows you to collect devices data.
• It allows your backend IT applications to communicate with your devices.
IFTtt platform
IFTtt platform
• Sign up to IFTTT Platform
IFTtt platform to send gas alarm
sms
• After sign up click on create
IFTtt platform to send gas alarm
sms (cont.)
• Click on (if this)
IFTtt platform to send gas alarm
sms (cont.)
IFTtt platform to send gas alarm
sms (cont.)
• Write on search ➔ webhooks ➔ click on it.
IFTtt platform to send gas alarm
sms (cont.)
click
IFTtt platform to send gas alarm
sms (cont.)
click
IFTtt platform to send gas alarm
sms (cont.)
click
Write the events
name
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
Phone No.
The message
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
Click
IFTtt platform to send gas alarm
sms (cont.)
• Now we specify the URL that is used to trigger the events.
IFTtt platform to send gas alarm
sms (cont.)
Event name
Click to test the event
IFTtt platform to send gas alarm
sms (cont.)
URL to
Trigger the
events
The
response
IFTtt platform to send gas alarm
sms (cont.)
• Also the message received in your phone.
IFTtt platform to send gas alarm
sms (cont.)
• Circuit Design
IFTtt platform to send gas alarm
sms (cont.)
• Circuit Design
IFTtt platform to send gas alarm
sms (cont.)
• The analog output of MQ2 and MQ9 is between 0V to 5V whereas the analog
pin of nodemcu can only read between 0V to 3.3V. That means nodemcu
cannot read the data if MQ2 or MQ9 sensor output is above 3.3V. The data
read is not accurate. Therefore, voltage is needed step down.
• In this project, voltage divider by two resistors is used. The voltage output is
determined by the ratio of the value of two resistors. I use 180ohm as R1 and
330ohm as R2 so that Vout is 3.3V.
IFTtt platform to send gas alarm
sms (cont.)
• Code:
IFTtt platform to send gas alarm
sms (cont.)
• Code:
IFTtt platform to send gas alarm
sms (cont.)
• Code:
IFTtt platform to send gas alarm
sms (cont.)
• Code:
IFTtt platform to send gas alarm
sms (cont.)
• Code:
Thanks

Contenu connexe

Tendances

Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
Akash Mhankale
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 

Tendances (20)

Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino
ArduinoArduino
Arduino
 
Arduino Introduction (Blinking LED) Presentation (workshop #5)
Arduino  Introduction (Blinking LED)  Presentation (workshop #5)Arduino  Introduction (Blinking LED)  Presentation (workshop #5)
Arduino Introduction (Blinking LED) Presentation (workshop #5)
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
 
IoT Based Agriculture Monitoring and Smart Irrigation System using Raspberry Pi
IoT Based Agriculture Monitoring and Smart Irrigation System using Raspberry PiIoT Based Agriculture Monitoring and Smart Irrigation System using Raspberry Pi
IoT Based Agriculture Monitoring and Smart Irrigation System using Raspberry Pi
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
 
Embedded System Practical manual (1)
Embedded System Practical manual (1)Embedded System Practical manual (1)
Embedded System Practical manual (1)
 
Gas sensor Alarm
Gas sensor AlarmGas sensor Alarm
Gas sensor Alarm
 
Develop a shadow sensor alarm using IC 741
Develop a shadow sensor alarm using IC 741Develop a shadow sensor alarm using IC 741
Develop a shadow sensor alarm using IC 741
 
Arduino
ArduinoArduino
Arduino
 
Arduino Projects
Arduino ProjectsArduino Projects
Arduino Projects
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
2010 Catalog Presentation - Spanish
2010 Catalog Presentation - Spanish2010 Catalog Presentation - Spanish
2010 Catalog Presentation - Spanish
 
Arduino - CH 1: The Trick Switch
Arduino - CH 1: The Trick SwitchArduino - CH 1: The Trick Switch
Arduino - CH 1: The Trick Switch
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Digital Clock
Digital ClockDigital Clock
Digital Clock
 
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
 

Similaire à IOT NodeMCU - IFTTT Templet to send SMS

GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECTGSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
Thrinadh Komatipalli
 

Similaire à IOT NodeMCU - IFTTT Templet to send SMS (20)

GSM Based SMS fire alert system
GSM Based SMS fire alert systemGSM Based SMS fire alert system
GSM Based SMS fire alert system
 
IRJET - IoT based Automatic LPG Gas Booking and Leakage Detection
IRJET  - IoT based Automatic LPG Gas Booking and Leakage DetectionIRJET  - IoT based Automatic LPG Gas Booking and Leakage Detection
IRJET - IoT based Automatic LPG Gas Booking and Leakage Detection
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
 
P 6168--microcontroller based-lpg_gas_detector_using_gsm_module
P 6168--microcontroller based-lpg_gas_detector_using_gsm_moduleP 6168--microcontroller based-lpg_gas_detector_using_gsm_module
P 6168--microcontroller based-lpg_gas_detector_using_gsm_module
 
IRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living SecurityIRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living Security
 
Lpg detector final ppt
Lpg detector final pptLpg detector final ppt
Lpg detector final ppt
 
IRJET - IoT based Smart Oil and Gas Monitoring System
IRJET -  	  IoT based Smart Oil and Gas Monitoring SystemIRJET -  	  IoT based Smart Oil and Gas Monitoring System
IRJET - IoT based Smart Oil and Gas Monitoring System
 
IRJET- Anti-Fuel Theft Checker System
IRJET- Anti-Fuel Theft Checker SystemIRJET- Anti-Fuel Theft Checker System
IRJET- Anti-Fuel Theft Checker System
 
Wireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 pptWireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 ppt
 
IRJET - IoT based Gas Level Detection and the Automatic Booking of the Gas
IRJET - IoT based Gas Level Detection and the Automatic Booking of the GasIRJET - IoT based Gas Level Detection and the Automatic Booking of the Gas
IRJET - IoT based Gas Level Detection and the Automatic Booking of the Gas
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
IRJET- Low-Cost DTMF Controlled Landmine Detection Rover
IRJET- Low-Cost DTMF Controlled Landmine Detection RoverIRJET- Low-Cost DTMF Controlled Landmine Detection Rover
IRJET- Low-Cost DTMF Controlled Landmine Detection Rover
 
GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECTGSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
GSM BASED GAS ESCAPE BURST AND FIRE SAFETY PROJECT
 
Electricity theft control
Electricity theft controlElectricity theft control
Electricity theft control
 
Electricity theft control
Electricity theft controlElectricity theft control
Electricity theft control
 
Automatic Inspection System for Two Wheeler Servicing
Automatic Inspection System for Two Wheeler ServicingAutomatic Inspection System for Two Wheeler Servicing
Automatic Inspection System for Two Wheeler Servicing
 
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
IRJET-  	  Wireless Data Monitoring and Fault Identification by using IoT in ...IRJET-  	  Wireless Data Monitoring and Fault Identification by using IoT in ...
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
 
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...
 
Smoke Detection System
Smoke Detection SystemSmoke Detection System
Smoke Detection System
 
GSM based agriculture monitoring system
GSM based agriculture monitoring systemGSM based agriculture monitoring system
GSM based agriculture monitoring system
 

Plus de Elaf A.Saeed

Plus de Elaf A.Saeed (20)

IOT NodeMCU - NodeMCU Webserver
IOT NodeMCU - NodeMCU WebserverIOT NodeMCU - NodeMCU Webserver
IOT NodeMCU - NodeMCU Webserver
 
IOT NodeMCU - Ubidots Platform to Turn on LEDs
IOT NodeMCU - Ubidots Platform to Turn on LEDsIOT NodeMCU - Ubidots Platform to Turn on LEDs
IOT NodeMCU - Ubidots Platform to Turn on LEDs
 
IOT NodeMCU - Thinger Platform to Turn on LEDs
IOT NodeMCU - Thinger Platform to Turn on LEDsIOT NodeMCU - Thinger Platform to Turn on LEDs
IOT NodeMCU - Thinger Platform to Turn on LEDs
 
Getting date and time from ntp server with esp8266 node mcu
Getting date and time from ntp server with esp8266 node mcuGetting date and time from ntp server with esp8266 node mcu
Getting date and time from ntp server with esp8266 node mcu
 
ESP8266 NodeMCU Server, Client, Station Mode, and Client Control LED
ESP8266 NodeMCU Server, Client, Station Mode, and Client Control LEDESP8266 NodeMCU Server, Client, Station Mode, and Client Control LED
ESP8266 NodeMCU Server, Client, Station Mode, and Client Control LED
 
IOT NodeMCU - NodeMCU Connection to Internet
IOT NodeMCU - NodeMCU Connection to InternetIOT NodeMCU - NodeMCU Connection to Internet
IOT NodeMCU - NodeMCU Connection to Internet
 
Lesson 10- NodeMCU with LCD I2C
Lesson 10- NodeMCU with LCD I2CLesson 10- NodeMCU with LCD I2C
Lesson 10- NodeMCU with LCD I2C
 
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
 
Lesson 8- NodeMCU with Servo Motor
Lesson 8- NodeMCU with Servo MotorLesson 8- NodeMCU with Servo Motor
Lesson 8- NodeMCU with Servo Motor
 
Lesson 7- NodeMCU with DC Motor
Lesson 7- NodeMCU with DC MotorLesson 7- NodeMCU with DC Motor
Lesson 7- NodeMCU with DC Motor
 
Lesson 6 - NodeMCU with PWM Pin
Lesson 6 -  NodeMCU with PWM PinLesson 6 -  NodeMCU with PWM Pin
Lesson 6 - NodeMCU with PWM Pin
 
lesson4 - NodeMCU control led
  lesson4 - NodeMCU control led  lesson4 - NodeMCU control led
lesson4 - NodeMCU control led
 
lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev Board
 
lesson1 - Getting Started with ESP8266
lesson1 -  Getting Started with ESP8266lesson1 -  Getting Started with ESP8266
lesson1 - Getting Started with ESP8266
 
Embedded system course projects - Arduino Course
Embedded system course projects - Arduino CourseEmbedded system course projects - Arduino Course
Embedded system course projects - Arduino Course
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino Course
 
Pyton with rasperry pi
Pyton with rasperry piPyton with rasperry pi
Pyton with rasperry pi
 
Summary of MATLAB Functions-Part1
Summary of MATLAB Functions-Part1Summary of MATLAB Functions-Part1
Summary of MATLAB Functions-Part1
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
 
Python basics_ part1
Python basics_ part1Python basics_ part1
Python basics_ part1
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Dernier (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 

IOT NodeMCU - IFTTT Templet to send SMS

  • 1. Internet ofThings IFTTT Templet to send SMS Eng. Elaf A.Saeed
  • 2. The Contents • Gas sensor mq-2 • IOT platform. • IFTTT platform. • IFTTT platform to send gas alarm SMS.
  • 3. IFTTT Templet to send SMS With ESP8266 NodeMCU
  • 4. Gas sensor mq-2 • MQ2 is one of the commonly used gas sensors in MQ sensor series. It is a Metal Oxide Semiconductor (MOS) type Gas Sensor also known as Chemiresistors as the detection is based upon change of resistance of the sensing material when the Gas comes in contact with the material. Using a simple voltage divider network, concentrations of gas can be detected. • MQ2 Gas sensor works on 5V DC and draws around 800mW. It can detect LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon Monoxide concentrations anywhere from 200 to 10000ppm.
  • 5. Gas sensor mq-2 (cont.) • Here are the complete specifications
  • 6. Gas sensor mq-2 ❑MQ2 Gas Sensor Module • Since MQ2 Gas Sensor is not breadboard compatible, we do recommend this handy little breakout board. It’s very easy to use and comes with two different outputs. It not only provides a binary indication of the presence of combustible gases but also an analog representation of their concentration in air.
  • 7. Gas sensor mq-2 ❑MQ2 Gas Sensor Module (Cont.) • The analog signal from MQ2 Gas sensor is further fed to LM393 High Precision Comparator (soldered on the bottom of the module), of course to digitize the signal. Along with the comparator is a little potentiometer you can turn to adjust the sensitivity of the sensor. You can use it to adjust the concentration of gas at which the sensor detects it.
  • 8. Gas sensor mq-2 ❑Calibrate MQ2 Gas Sensor Module • To calibrate the gas sensor you can hold the gas sensor near smoke/gas you want to detect and keep turning the potentiometer until the Red LED on the module starts glowing. Turn the screw clockwise to increase sensitivity or anticlockwise to decrease sensitivity.
  • 9. Gas sensor mq-2 ❑Calibrate MQ2 Gas Sensor Module (Cont.) • The comparator on the module continuously checks if the analog pin (A0) has hit the threshold value set by potentiometer. When it crosses the threshold, the digital pin (D0) will go HIGH and signal LED turns on. This setup is very useful when you need to trigger an action when certain threshold is reached. For example, when the smoke crosses a threshold, you can turn on or off a relay or instruct your robot to blow air/sprinkle water. You got the idea!
  • 10. Gas sensor mq-2 ❑MQ2 Gas Sensor Module Pinout • VCC supplies power for the module. You can connect it to 5V output from your Arduino. • GND is the Ground Pin and needs to be connected to GND pin on the Arduino. • D0 provides a digital representation of the presence of combustible gases. • A0 provides analog output voltage in proportional to the concentration of smoke/gas.
  • 11. Iot platform • IoT platforms originated in the form of IoT middleware, which purpose was to function as a mediator between the hardware and application layers. Its primary tasks included data collection from the devices over different protocols and network topologies, remote device configuration and control, device management, and over-the-air firmware updates.
  • 13. Iot platform • Its manages the connectivity of devices. • It enables developers to build new mobile software applications. • It allows you to collect devices data. • It allows your backend IT applications to communicate with your devices.
  • 15. IFTtt platform • Sign up to IFTTT Platform
  • 16. IFTtt platform to send gas alarm sms • After sign up click on create
  • 17. IFTtt platform to send gas alarm sms (cont.) • Click on (if this)
  • 18. IFTtt platform to send gas alarm sms (cont.)
  • 19. IFTtt platform to send gas alarm sms (cont.) • Write on search ➔ webhooks ➔ click on it.
  • 20. IFTtt platform to send gas alarm sms (cont.) click
  • 21. IFTtt platform to send gas alarm sms (cont.) click
  • 22. IFTtt platform to send gas alarm sms (cont.) click Write the events name
  • 23. IFTtt platform to send gas alarm sms (cont.) Click
  • 24. IFTtt platform to send gas alarm sms (cont.)
  • 25. IFTtt platform to send gas alarm sms (cont.) Click
  • 26. IFTtt platform to send gas alarm sms (cont.) Click
  • 27. IFTtt platform to send gas alarm sms (cont.) Click
  • 28. IFTtt platform to send gas alarm sms (cont.) Phone No. The message
  • 29. IFTtt platform to send gas alarm sms (cont.) Click
  • 30. IFTtt platform to send gas alarm sms (cont.) Click
  • 31. IFTtt platform to send gas alarm sms (cont.) • Now we specify the URL that is used to trigger the events.
  • 32. IFTtt platform to send gas alarm sms (cont.) Event name Click to test the event
  • 33. IFTtt platform to send gas alarm sms (cont.) URL to Trigger the events The response
  • 34. IFTtt platform to send gas alarm sms (cont.) • Also the message received in your phone.
  • 35. IFTtt platform to send gas alarm sms (cont.) • Circuit Design
  • 36. IFTtt platform to send gas alarm sms (cont.) • Circuit Design
  • 37. IFTtt platform to send gas alarm sms (cont.) • The analog output of MQ2 and MQ9 is between 0V to 5V whereas the analog pin of nodemcu can only read between 0V to 3.3V. That means nodemcu cannot read the data if MQ2 or MQ9 sensor output is above 3.3V. The data read is not accurate. Therefore, voltage is needed step down. • In this project, voltage divider by two resistors is used. The voltage output is determined by the ratio of the value of two resistors. I use 180ohm as R1 and 330ohm as R2 so that Vout is 3.3V.
  • 38. IFTtt platform to send gas alarm sms (cont.) • Code:
  • 39. IFTtt platform to send gas alarm sms (cont.) • Code:
  • 40. IFTtt platform to send gas alarm sms (cont.) • Code:
  • 41. IFTtt platform to send gas alarm sms (cont.) • Code:
  • 42. IFTtt platform to send gas alarm sms (cont.) • Code: