Iot with Arduino Esp8266 & Nodemcu

Total Page:16

File Type:pdf, Size:1020Kb

Iot with Arduino Esp8266 & Nodemcu IOT WITH ARDUINO ESP8266 & NODEMCU INTERNET OF THINGS(IOT) Introduction to IoT lWhat is IoT? lIOT basics concepts lArchitecture of IOT lIOT in home automation lApplications and industry verticals Introduction to Embedded System lIntroduction to Embedded System lApplications & Scope of Embedded System in various industries Introduction to Arduino lIntroduction to Arduino lArduino Board Description lWhat is a Microcontroller lDifference between Microcontroller and Microprocessor lMicrocontroller architecture and Interfacing lBasics of Electronics. lSensors and Actuators. lThe Arduino Uno Introduction to Arduino IDE lWhat is ARDUINO IDE and Language? lFundamentals of C programming lWhat is Open Source Microcontroller Platform? l"Hello World" Example Decision Making and using Logic lFundamentals of C programming l"If" Statements l"While" Loops lFor Loops l"Switch" Cases lUsing Maths lCreating Functions Using inputs and outputs lOverview lProgram Structure lUsing Variables lBuilding Your First Circuit Using a Breadboard lDigital Input & Digital Output lAnalog Input & Analog Output lSerial Input & Serial Output lDisplaying Information Using the Serial Port Sensors Interfacing lWhat is Sensor & Actuator? lSensor Feature. lTypes of sensors lInterfacing Sensors with GPIO of Arduino. lReading from Sensors Interfacing of I/O devices lInterfacing of LED with Arduino lInterfacing of switch with Arduino lInterfacing of Buzzer with Arduino lInterfacing of LCD display with Arduino Libraries, Serial Data and Hardware lOverview lUsing and Including Libraries lUsing ADC lUSART / UART Protocol lUsing SPI lUsing I2C lInterrupts lArduino Shields Introduction to ESP8266 and NodeMCU lIntroduction about NodeMCU lPinouts lNODE MCU firmware lConnecting to Local Wi-Fi lGetting Static IP lIntroduction to Attention Commands for internet access Sensors Interfacing lWhat is Sensor & Actuator? lSensor Feature. lTypes of sensors lInterfacing Sensors With GPIO of Node MCU lReading From Sensors Implementation of IOT lAccessing the DHT data over WIFI on Webpage and mobile (local Wi-Fi). lRemotely controlling LEDs through Android app (local Wi-Fi). lCreate a local server using Node MCU Cloud computing and IOT lIntroduction to Cloud Computing lCloud platform introduction lCreating Channel for live data feed lProgram Node MCU to read and update sensor data over cloud lContinuously monitor sensor reading through internet lRemotely Temp. Monitor using NodeMCU. lRemote controlling of appliances over cloud. Cybersecurity and privacy in the IOT lCase Studies on IoT based projects & implentations. lDiscussion about current Challenges in IoT. Project 1: - Esp8266 WIFI controlled Home automation using Localhost Web Server Project 2: - A cloud-based temperature monitoring system using Arduino and Node MCU Project 3: - Control Electronic Devices from anywhere across the world using Internet & Mobile App. Project 4: - Voice Controlled Mini Home Automation using Android Smartphone. Project 5: -Creating Android App using MIT App Inventor & Controlling Devices Connected toController. Project 6: - Sending Email from Nodemcu Project 7: - Sending Sensor data to Cloud Server using Nodemcu. Project 8: - Plotting Data on Plotly using Nodemcu. Project 9: - Remotely Temp. Monitor using Nodemcu Project 10: - Remotely controlled traffic light system Partners : Java NOIDA GHAZIABAD PITAMPURA (DELHI) SOUTH EXTENSION A-43 & A-52, Sector-16, 1, Anand Industrial Estate, Plot No. 366, 2nd Floor, (DELHI) Kohat Enclave, Pitampura, Noida - 201301, (U.P.) INDIA Near ITS College, Mohan Nagar, D-27,South Extension-1 ( Near- Kohat Metro Station) 70-70-90-50-90 Ghaziabad (U.P.) New Delhi-110049 +91 99-9999-3213 70-70-90-50-90 Above Allahabad Bank, New Delhi- 110034. 70-70-90-50-90 70-70-90-50-90 +91 98-1161-2707 GURGAON 1808/2, 2nd floor old DLF, Near Honda Showroom, Sec.-14, Gurgaon (Haryana) 70-70-90-50-90 www.facebook.com/ducateducation.
Recommended publications
  • Home Automation System Using Google Assistant
    © 2021 JETIR June 2021, Volume 8, Issue 6 www.jetir.org (ISSN-2349-5162) HOME AUTOMATION SYSTEM USING GOOGLE ASSISTANT MUDASIR M, NEHA V, NIHAAL THATHIR K, PAVAN YADAV M, POLLARPU SREERAMULU, SMITHA PATIL B.Tech. Student, Department of Computer Science and Engineering, Presidency University, Bangalore, India B.Tech. Student, Department of Computer Science and Engineering, Presidency University, Bangalore, India B.Tech. Student, Department of Computer Science and Engineering, Presidency University, Bangalore, India B.Tech. Student, Department of Computer Science and Engineering, Presidency University, Bangalore, India B.Tech. Student, Department of Computer Science and Engineering, Presidency University, Bangalore, India Assistant Professor, Department of Computer Science and Engineering, Presidency University, Bangalore, India Abstract: Nowadays Technology keeps on upgrading. The idea behind Google assistant-controlled Home automation is to control home devices with voice. On the market there are many devices available to do that, but making our own is awesome. In this project, the Google assistant requires voice commands. Adafruit account which is a cloud based free IoT web server used to create virtual switches, is linking to IFTTT website abbreviated as “If This Than That” which is used to create if else conditional statements. The voice commands for Google assistant have been added through IFTTT website. In this home automation, as the user gives commands to the Google assistant, Home appliances like Bulb, Fan and Motor etc., can be controlled accordingly. The commands given through the Google assistant are decoded and then sent to the microcontroller, the microcontroller in turn control the relays connected to it. The device connected to the respective relay can be turned ON or OFF as per the users request to the Google Assistant.
    [Show full text]
  • ESP8266EX Datasheet
    ESP8266EX Datasheet Version 6.6 Espressif Systems Copyright © 2020 www.espressif.com About This Guide This document introduces the specifications of ESP8266EX. Release Notes Date Version Release Notes 2015.12 V4.6 Updated Chapter 3. 2016.02 V4.7 Updated Section 3.6 and Section 4.1. 2016.04 V4.8 Updated Chapter 1. 2016.08 V4.9 Updated Chapter 1. 2016.11 V5.0 Added Appendix Ⅱ “Learning Resources”. Changed the power consumption during Deep-sleep from 10 μA to 20 μA 2016.11 V5.1 in Table 5-2. Changed the crystal frequency range from “26 MHz to 52 MHz” to “24 2016.11 V5.2 MHz to 52 MHz” in Section 3.3. 2016.12 V5.3 Changed the minimum working voltage from 3.0 V to 2.5 V. 2017.04 V5.4 Changed chip input and output impedance from 50 Ω to 39 + j6 Ω. Updated Chapter 3 regarding the range of clock amplitude to 0.8 V ~ 1.5 2017.10 V5.5 V. 2017.11 V5.6 Updated VDDPST from 1.8 V ~ 3.3 V to 1.8 V ~ 3.6 V. • Corrected a typo in the description of SDIO_DATA_0 in Table 2-1; 2017.11 V5.7 • Added the testing conditions for the data in Table 5-2. • Updated Wi-Fi protocols in Section 1.1; 2018.02 V5.8 • Updated description of the integrated Tensilica processor in 3.1. Date Version Release Notes • Update document cover; • Added a note for Table 1-1; • Updated Wi-Fi key features in Section 1.1; • Updated description of the Wi-Fi function in 3.5; • Updated pin layout diagram; • Fixed a typo in Table 2-1; 2018.09 V5.9 • Removed Section AHB and AHB module; • Restructured Section Power Management; • Fixed a typo in Section UART; • Removed description of transmission angle in Section IR Remote Control; • Other optimization (wording).
    [Show full text]
  • A18xji2iiis.Pdf
    1 2 Control LED by programming NODE MCU ESP8266-12E sing Arduino IDE NodeMCU Dev Board is based on widely explored esp8266 System on Chip from Express if. It combined features of WIFI access point and station + microcontroller and uses simple LUA based programming language. ESP8266 NodeMCU offers- Arduino-like hardware IO Event-driven API for network applications 10 GPIOs D0-D10, PWM functionality, IIC and SPI communication, 1-Wire and ADC A0 etc. all in one board Wi-Fi networking (can be uses as access point and/or station, host a webserver), connect to internet to fetch or upload data. Excellent system on board for Internet of Things (IOT) projects 3 Specifications SDIO 2.0, SPI, UART 32-pin QFN package Integrated RF switch,24dBm PA, DCXO, and PMU Integrated RISC processor, on-chip memory and external memory interfaces Integrated MAC/baseband processors Quality of Service management I2S interface for high fidelity audio applications On-chip low-dropout linear regulators for all internal supplies Proprietary spurious-free clock generation architecture Integrated WEP, TKIP, AES, and WAPI engines Hardware Required 4 NODE MCU ESP8266-12E – 1 Arduino DUE cable – 1 Mini Breadboard 160 points – 1 LED pack Jumper wires(male to male) - 20 pieces each Software Required Arduino IDE ((Programmable platform for Arduino boards) You can download it from this link: https://www.arduino.cc/en/Main/Software) Pin Description ESP8266-12E ESP8266EX offers a complete and self-contained Wi-Fi networking solution; it can be used to host the application or to offload Wi-Fi networking functions from another application processor.
    [Show full text]
  • Smart Garbage Monitoring System Using
    SMART GARBAGE MONITORING SYSTEM USING IOT Y.Himanth1, B.V.Pavan Kumar2, M.Lalitha Bhavani 3 1,2,3Asst.Professor, ECE Department, SASI Institute of Technology & Engineering, Tadepalligudem, India Abstract Helps in maintaining the surrounding of In the recent years, there was a rapid growth dustbins clean. in population which leads to more waste The statistics can be used to estimate area disposal. So, a proper waste management wise quantity of waste which in turn used system is necessary to avoid spreading some to rank areas. deadly diseases. But due to lack of resources, In our system, the Smart dust bins are ineffective groundwork, some waste is not connected to the internet to get the real time collected which poses serious health hazard to information of the smart dustbins. These the surrounding environment. The dustbins are interfaced with Arduino based government of India announced smart cities system with ultrasonic sensors and weight and the key to smart cities is cleanliness. In sensors and Node MCU. Where the ultrasonic support of clean city we design a dustbin sensor detects the level of the dust in dustbin and which can interact with the cloud (free cloud sends the signals to Node MCU the same signal for demonstration) and push its filling percent is encoded and send to the application and it is at regular intervals (say every 1 hour or its received. The data has been received, analyzed status set to full). If the status of the dustbin is and processed in the database, which displays the filled, a message is pushed to the municipal status of the Garbage in the dustbin on the person who is responsible to empty the bin.
    [Show full text]
  • Wireless Car Using WIFI – Iot - Bluetooth
    International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 Wireless Car Using WIFI – IoT - Bluetooth Dhruv Ketan Kotecha1 1Department of Electronics Engineering, K. J. Somaiya College of Engineering (Autonomous), (Affiliated to University of Mumbai), Mumbai, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - A working prototype has been designed to Existing technologies related to the development of the control a car Wirelessly using an Android Application. This is project were studied. These technologies even used arduino done with the help of Arduino, a microcontroller, interfacing it as a backbone of the entire prototype and leveraged the with Bluetooth module and wifi module for better connectivity. efficiency of the controlling system using the Arduino Android application is used by the User to send data wirelessly NodeMCU module. This ensured a wide range using the either by Bluetooth Connection or by connecting to the prototype.[1] This project differs from the studied Arduino using Wifi. This data is an input to the microcontroller system and the microcontroller uses it as the technologies as it also captures the real time video and controlling parameter to the underlying hardware. The provides user the privilege to view it using an online cloud prototype also captures the real time video using a video service that comes with the Camera module. Also the project camera interfaced with the arduino and the user can locate is developed such that it initiates the connection between the position of the device connecting to the cloud service three technologies: Wifi, Bluetooth and IOT provided for the captured real time video.
    [Show full text]
  • Iot Home with Voice Commands Using Google Assistants
    International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering (IJAREEIE) | e-ISSN: 2278 – 8875, p-ISSN: 2320 – 3765| www.ijareeie.com | Impact Factor: 7.122| ||Volume 9, Issue 6, June 2020|| IoT Home with Voice Commands Using Google Assistants Vivek Yadav1, Abhishek Yadav2, Anurag Tiwari3, Dr. Himani Mittal4 B.Tech. Student, Department of Electronics and Communication Engineering, RKGIT Ghaziabad, Uttar Pradesh, India1,2,3 Associate Professor, Department of Electronics & Communication Engineering, RKGIT Ghaziabad, Uttar Pradesh, India4 ABSTRACT: This paper presents a proposal for home automation using voice via Google Assistant. Home automation or domoticz a term for home automation coined by Jim Hill has been evolving drastically. We saw many home automation technologies introduced over these years from Zigbee automation to Amazon Echo, Google Home and Home from Apple. It has become a craze these days. Google Home price is around 150$ (USD) with an additional cost of the devices to be connected to, the total cost of the system reaches over 250$ (USD). Apple Home Kit too is pretty more expensive, over 100$ (USD) more than the Google Home just for a basic setup. Philips Hue, a smart light which is controlled by the Google Assistant, Amazon Echo and Siri, voice assistant by Apple is priced around 145$ (USD). Similarly, Belikin’s Wemo light is priced around 44$ (USD) per unit and this can be controlled both by Siri and Google Assistant. So, overall we can see here that to make our home smart we need to invest quite a lot, let’s say some 250$ (USD) for a basic setup.
    [Show full text]
  • How to Choose a Microcontroller Created by Mike Stone
    How to Choose a Microcontroller Created by mike stone Last updated on 2021-03-16 09:01:47 PM EDT Guide Contents Guide Contents 2 Overview 4 Which Microcontroller is the Best? 4 How to Make a Bad Choice 5 How to Make a Good Choice 6 Sketching out the features you might want 6 A list of design considerations 6 Kinds of Microcontrollers 8 8-bit Microcontrollers 8 32-bit Microcontrollers 9 More About Peripherals with 32-Bit Chips 9 System On Chip Devices (SOC) 9 The microcontrollers in Adafruit products 11 8-bit Microcontrollers: 11 The ATtiny85 11 The ATmega328P 11 The ATmega32u4 12 32-bit Microcontrollers: 13 The SAMD21G 13 The SAMD21E 14 The SAMD51 15 System-On-a-Chip (SOCs) 16 The STM32F205 16 The nRF52832 16 The ESP8266 17 The ESP32 18 Simple Boards 20 Simple is Good 20 Where do I Start? 21 I want to learn microcontrollers, but don't want to buy a lot of extra stuff 21 Resources 22 Arduino 328 Compatibles 24 I want a microcontroller that is Arduino-Compatible 24 I want to build an Arduino-compatible microcontroller into a project 25 I want to build a battery-powered device 26 Next Step - 32u4 Boards 29 The Feather 32u4 Basic: 29 The Feather 32u4 Adalogger: 30 The ItsyBitsy 32u4: 30 Intermediate Boards 33 Branching Out 33 32-bit Boards 34 The Feather M0 Basic: 34 The Feather M0 Adalogger: 34 The ItsyBitsy M0: 35 The Metro M0: 36 CircuitPython Boards 37 The Circuit Playground Express: 37 The Metro M0 Express: 38 The Feather M0 Express: 39 © Adafruit Industries https://learn.adafruit.com/how-to-choose-a-microcontroller Page 2 of 54 The Trinket
    [Show full text]
  • JETIR Research Journal
    © 2019 JETIR April 2019, Volume 6, Issue 4 www.jetir.org (ISSN-2349-5162) Heart-Rate Monitoring System Using Node MCU 1D.Swathi, 2V.S.D.Rekha 1Assistant Professor, 2Assistant Professor 1Electronics and Communication Engineering, 1P.V.P.Siddhartha Institute of Science & Technology, Vijayawada, India Abstract: This paper describes the design process of a low cost and portable microcontroller based heart-rate counting system for monitoring heart condition that can be implemented with off-the-shelf components. The raw heart-rate signals were collected from finger using IR TX-RX (Infrared Transmitter and Receiver pair) module which was amplified in order to convert them to an observable scale. Extending the concept we have replaced Arduino board with NODE MCU. In this extension we have used Thing Speak and created a private channel. In that channel updating of heart rate at regular intervals is done. If it crosses a particular limit or threshold limit it will be send to a concern doctor. This technique can be used in remote areas. The results obtained using the developed device when compared to those obtained from the manual test involving counting of heart rate was found satisfactory. The proposed system is applicable for family, hospital, clinic, community medical treatment, sports healthcare and other medical purposes. Index Terms – NodeMCU, Thing speak, Pulse Sensor I. INTRODUCTION Heart rate data can be really useful whether you’re designing an exercise routine, studying your activity or anxiety levels or just want your shirt to blink with your heart beat. Monitoring heart rate is very important for athletes, patients as it determines the condition of the heart (just heart rate).
    [Show full text]
  • Implementation of Vehicle Ventilation System Using Nodemcu ESP8266 for Remote Monitoring
    Bulletin of Electrical Engineering and Informatics Vol. 10, No. 1, February 2021, pp. 327~336 ISSN: 2302-9285, DOI: 10.11591/eei.v10i1.2669 327 Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote monitoring Amirun Murtaza Abd Jalil1, Roslina Mohamad2, Nuzli Mohamad Anas3, Murizah Kassim4, Saiful Izwan Suliman5 1,2,4,5Faculty of Electrical Engineering, Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia 3Wireless Innovation, MIMOS Berhad, 57000 Kuala Lumpur, Wilayah Persekutuan, Malaysia Article Info ABSTRACT Article history: In this paper, an implementation of vehicle ventilation system using microcontroller NodeMCU is described, as an internet of things (IoT) Received Mar 24, 2020 platform. A low-cost wireless fidelity (Wi-Fi) microchip ESP8266 integrated Revised May 27, 2020 with NodeMCU provides full-stack transmission control protocol/internet Accepted Jul 11, 2020 protocol (TCP/IP) to communicate between mobile applications. This chip is capable to monitor and control sensor devices connected to the IoT platform. In this reserach, data was collected from a temperature sensor Keywords: integrated to the platform, which then monitored using Blynk application. The vehicle ventilation system was activated/deactivated through mobile Embedded controller application and controlled using ON/OFF commands sent to the connected Internet of things devices. From the results, the vehicle ventilation system built using NodeMCU NodeMCU ESP8266 microcontroller is capable to provide near real-time data monitoring for Remote monitoring temperature in the car before and after the ventilation system was applied. Temperature and rain sensors Vehicle ventilation This is an open access article under the CC BY-SA license. Corresponding Author: Roslina Mohamad, Faculty of Electrical Engineering, Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia.
    [Show full text]
  • Solar Based Smart Garbage Monitoring System Using IOT
    IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-ISSN: 2278-1676,p-ISSN: 2320-3331, Volume 14, Issue 2 Ver. I (Mar-Apr. 2019), PP 85-88 www.iosrjournals.org Solar Based Smart Garbage Monitoring System Using IOT 1 2 Pravash Ranjan Tripathy , Subhendu Kumar Behera 1(Department of Electronics & Communication Engineering, Gandhi Engineering College, India) 2(Department of Electronics & Communication Engineering, Gandhi Engineering College, India) Abstract: The Clean India scheme emphasizes maintenance of the city premises free from household and industrial waste. India being a heavily populous country generates a huge amount hold wastes in residential area due to the FMCG packaging material. The collection and proper disposal of such wastes are essential for maintaining the ambience clean. The Municipal Corporation has number of garbage collection units for collection of garbage from different areas with in the municipal corporation. The project proposes a solar based self-sustaining garbage collection unit which connects to the municipal server through a Esp. 8266 Wi-Fi module. The system provides the municipal system with the necessary data such as garbage level in the collection unit. Key words: Angular JS, Ionic Framework ,HTML 5,Cordova. I. Introduction The Clean India scheme emphasizes maintenance of the city premises free from household the system has an android application for displaying the status of the collection units. The android application will provide intimation in the form of colored visuals in the app UI. The systems IOT unit is powered by a 12V/500ma Solar Panel. Thus the system will provide an efficient and smart way for monitoring the garbage level in a waste collection units and industrial waste.
    [Show full text]
  • ESP8266 Arduino Core Documentation Release 3.0.2-16-G9d024d17
    ESP8266 Arduino Core Documentation Release 3.0.2-16-g9d024d17 Ivan Grokhotkov Sep 29, 2021 CONTENTS: 1 Installing 1 1.1 Boards Manager.............................................1 1.2 Using git version.............................................1 1.3 Using PlatformIO............................................5 2 esp8266 configuration 7 2.1 Overview.................................................7 2.2 Note about PlatformIO..........................................7 2.3 Arduino IDE Tools Menu........................................7 3 Reference 13 3.1 Interrupts................................................. 13 3.2 Digital IO................................................. 13 3.3 Analog input............................................... 14 3.4 Analog output.............................................. 15 3.5 Timing and delays............................................ 15 3.6 Serial................................................... 15 3.7 Progmem................................................. 17 3.8 C++.................................................... 17 3.9 Streams.................................................. 18 4 Libraries 23 4.1 WiFi (ESP8266WiFi library)....................................... 23 4.2 Ticker................................................... 23 4.3 EEPROM................................................. 23 4.4 I2C (Wire library)............................................ 24 4.5 SPI.................................................... 24 4.6 SoftwareSerial.............................................
    [Show full text]
  • Desarrollo De Un Sistema De Adquisición, Transmisión Y Monitoreo Para Una Red De Sensores De Precipitación
    Universidad de La Salle Ciencia Unisalle Ingeniería en Automatización Facultad de Ingeniería 1-9-2020 Desarrollo de un sistema de adquisición, transmisión y monitoreo para una red de sensores de precipitación Edgar Felipe Zapata Diaz Universidad de La Salle, Bogotá Jhon Alejandro Angel Rodriguez Universidad de La Salle, Bogotá Follow this and additional works at: https://ciencia.lasalle.edu.co/ing_automatizacion Part of the Other Engineering Commons Citación recomendada Zapata Diaz, E. F., & Angel Rodriguez, J. A. (2020). Desarrollo de un sistema de adquisición, transmisión y monitoreo para una red de sensores de precipitación. Retrieved from https://ciencia.lasalle.edu.co/ ing_automatizacion/275 This Trabajo de grado - Pregrado is brought to you for free and open access by the Facultad de Ingeniería at Ciencia Unisalle. It has been accepted for inclusion in Ingeniería en Automatización by an authorized administrator of Ciencia Unisalle. For more information, please contact [email protected]. DESARROLLO DE UN SISTEMA DE ADQUISICIÓN, TRANSMISIÓN Y MONITOREO PARA UNA RED DE SENSORES DE PRECIPITACIÓN. EDGAR FELIPE ZAPATA DIAZ JHON ALEJANDRO ANGEL RODRÍGUEZ UNIVERSIDAD DE LA SALLE FACULTAD DE INGENIERÍA PROGRAMA INGENIERÍA EN AUTOMATIZACIÓN 2020 1 EDGAR FELIPE ZAPATA DIAZ JHON ALEJANDRO ANGEL RODRÍGUEZ TRABAJO DE GRADO ING. PHD MAXIMILIANO BUENO LÓPEZ UNIVERSIDAD DE LA SALLE FACULTAD DE INGENIERÍA PROGRAMA INGENIERÍA EN AUTOMATIZACIÓN 2020 2 NOTA DE ACEPTACIÓN _________________________________ _________________________________ _________________________________
    [Show full text]