580 likes | 681 Views
Getting Started with IoT. Agenda. Sensors Microcontrollers Communication Protocol - MQTT Introduction to Arduino IDE IFTTT Demo. Simple Equation for IoT. Internet of Things (IoT) = Physical Things (Objects) + Microcontrollers + Sensors + Actuators + Internet. Cloud. Gateways.
E N D
Agenda • Sensors • Microcontrollers • Communication Protocol - MQTT • Introduction to Arduino IDE • IFTTT • Demo
Simple Equation for IoT Internet of Things (IoT) = Physical Things (Objects) + Microcontrollers + Sensors + Actuators + Internet
Cloud Gateways Controllers Sensors Sensors Actuators Block Diagram of IoT Device
Sensors Temperature and Humidity Sensor Sound Detection Sensor Soil Moisture Sensor Rain Sensor
RGB Color Sensor Hall Sensor PIR Motion Sensor
MQ – 135 Air Quality Sensor MQ-7 Carbon Monoxide Gas Sensor MQ -2 LPG Gas Sensor
IR Sensor Flame Sensor Ultrasonic Sensor
Actuators LED’s Relay’s Servo Motor’s
Senses of Human Cameras Touch Sensors Sound Sensors Gas Sensors
Arduino Boards Arduino Uno ( 14 Pins) Arduino Nano (14) Arduino Mega (54) Arduino Lilypad ( 14)
Raspberry Pi • Broadcom BCM2837 64bit Quad Core Processor powered Single Board Computer running at 1.2GHz • 1GB RAM • BCM43143 WiFi on board • Bluetooth Low Energy (BLE) on board • 40 pin extended GPIO • 4 x USB 2 ports • 4 pole Stereo output and Composite video port • Full size HDMI • CSI camera port for connecting the Raspberry Pi camera • DSI display port for connecting the Raspberry Pi touch screen display • Micro SD port for loading your operating system and storing data
Others….. Intel Galileo Intel Edison BeagleBone
ESP 8266 802.11 b/g/n protocol Wi-Fi Direct (P2P), soft-AP Integrated TCP/IP protocol stack Integrated low power 32-bit CPU could be used as application processor
Communication • Wifi • Bluetooth • Zigbee • Cellular • NFC • LoRa
Arduino wifi Shield Nodemcu ESP 01 Standard: Based on 802.11n (most common usage in homes today) Frequencies: 2.4GHz and 5GHz bands Range: Approximately 50m Data Rates: 600 Mbps maximum, but 150-200Mbps is more typical, depending on channel frequency used and number of antennas (latest 802.11-ac standard should offer 500Mbps to 1Gbps)
Bluetooth 4.0 Module Classic Bluetooth Module Standard: Bluetooth 4.2 core specification Frequency: 2.4GHz (ISM) Range: 50-150m (Smart/BLE) Data Rates: 1Mbps (Smart/BLE)
Standard: ZigBee 3.0 based on IEEE802.15.4 Frequency: 2.4GHz Range: 10-100m Data Rates: 250kbps
GSM Module GSM GPRS GPS Module A7 Standard: GSM/GPRS/EDGE (2G), UMTS/HSPA (3G), LTE (4G) Frequencies: 900/1800/1900/2100MHz Range: 35km max for GSM; 200km max for HSPA Data Rates (typical download): 35-170kps (GPRS), 120-384kbps (EDGE), 384Kbps-2Mbps (UMTS), 600kbps-10Mbps (HSPA), 3-10Mbps (LTE)
Standard: ISO/IEC 18000-3 Frequency: 13.56MHz (ISM) Range: 10cm Data Rates: 100–420kbps
Lora Shield for Raspberry Pi Lora Shield for Arduino Standard: LoRaWAN Frequency: Various (433/ 868 / 915 MHz) Range: 2-5km (urban environment), 15km (suburban environment) Data Rates: 0.3-50 kbps.
Others Neul Sigfox Thread 6LowPAN ZWave
MQTT Message Queue Telemetry Transport
What is MQTT ? MQTT stands for MQ Telemetry Transport. • It is a publish/subscribe, • extremely simple and • lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. It is used on top of TCP Protocol
Why MQTT Created ? MQTT was created with the goal of collecting data from many devices and then transporting that data to the IT infrastructure. It is lightweight, and therefore ideal for remote monitoring, especially in M2M connections that require a small code footprint or where network bandwidth is limited.
Who uses MQTT ? • MQTT was originally developed for the low-bandwidth, high-latency data links used in the oil and gas industry. • Controlling smart lighting systems • Facebook Messenger application. • Amazon Web Services recently announced that Amazon Internet of Things (IoT) is based on MQTT, as well.
How does MQTT works ? • MQTT is a publish/subscribe protocol that allows edge-of-network devices to publish to a broker. • Clients connect to this broker, which then mediates communication between the two devices. • Each device can subscribe, or register, to particular topics. • When another client publishes a message on a subscribed topic, the broker forwards the message to any client that has subscribed.
MQTT Brokers and Clients • Mosquitto • Mosquitto is an Open Source MQTT server with C and C++ client libraries. • Eclipse Paho • The Eclipse Paho project provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at new, existing, and emerging applications for the Internet of Things (IoT).
Things Required 1. Hardware Sensor – Ultrasonic Sensor Microcontroller - NodeMCU 3. Communication Wifi 4. Cloud Digital Ocean MQTT Protocol 2. Software Arduino IDE C Programming Language
From Sensor To Cloud Ultrasonic Sensor Mosquitto Gateway Cloud NodeMCU
If This Then That, also known as IFTTT, is a free web-based service to create chains of simple conditional statements, called applets. An applet is triggered by changes that occur within other web services such as Gmail, Facebook, Telegram, Instagram, or Pinterest.
Thank You www.iotusers.club