SlideShare a Scribd company logo
1 of 17
Getting Started with
Internet of Things
(IoT)
About me:
Akshet Patel
3rd Year, Mechatronics
- Learner
- President, ISA MUJ Chapter
- Student Mentor, IEI Mechatronics
Contact: 7021795853
LinkedIn: https://www.linkedin.com/in/akshetpatel/
Github: https://github.com/AkshetPatel
Blog: https://connectwithiot.wordpress.com/
Website: hackster.io
Tentative Lesson Plan:
1. Introduction to IoT and Getting started with NodeMCU/ESP8266, Sensors, Actuators.
2. Creating the Workspace, Common Libraries, LED blink/fade code.
3. Creating an Access Point(connect to Wi-Fi) & Web Server(Create own Hotspot).
4. Controlling LEDs and Relays using Webpage.
5. Controlling LEDs and Relays using Blynk.
6. Sending Data to the Cloud. (Example: ThingSpeak)
7. To be decided
8. Mini Project: Example: COVID-19 Real-Time Data Tracker (India).
How does Internet work?
Youtube video> stored in Data center at Google> Transmit how? Satellites?
No! Because Satellite is ~35000 km above the earth's surface. 70000 km in total.
- Latency: Delay after which data transfer begins after the execution of an instruction.
Hence, this is unacceptable.
Done with a complicated network of optical fiber cables which forms an optical fiber network. Since light is the
fastest traveling form of energy. These cables are connected between the data centers and your device.
Your device i.e your phone can be connected to a router or wifi router.
But how is this done?
To understand this, let us learn about the concept of IP Address. It is a string of numbers which is used to identify
every device that is connected to the internet. It is similar to that of your home address. For example, every letter
addressed to you comes only to your home because of the address. You enter a domain name for example
facebook.com or youtube.com but from where does the internet get the IP Address from the domain name? DNS
Server. Your internet service provider or other organizations can manage the DNS Server.
Recap
Domain name in browser> Request to the DNS Server to get IP Address> forwards request to
data center more specifically to the respective server.
Once the server receives the request to access a particular website, the data flow starts in
digital format via optical fiber cables in the form of light pulses. These light pulses reach your
router and it converts them into electrical pulses which is transmitted by the ethernet cable and
if it reaches a phone tower, it gets converted into em waves which is captured by your phone.
This data is sent in the form of 0s and 1s and is divided into smaller chunks. If some packet is
missing, the device will send an acknowledgement that the packet is missing so that it can be
sent again. To manage this data flow, various protocols are implemented like HTTP, MQTT, RTP,
TCP/IP, etc.
What is a Microcontroller?
A microcontroller is a computer on a single chip that includes a processor core,
memory, and I/O peripherals, and it is typically used for a specific function in an
embedded system. For instance, you can use microcontrollers to operate sensors,
record data, control LEDs, communicate with other microcontrollers, and much
more. A microcontroller’s memory, I/O ports, and ROM/RAM are located within the
chip.
For example: A simple vending machine.
A microcontroller-based vending machine mainly consists of 3 parts, the first part
is coin/money insertion, second is coin/money detection that is basically
programming which is implemented through microcontroller and the last stage is
giving out the product according to the amount inserted.
Types of Microcontrollers:
Difference between Microprocessor and
Microcontroller:
Difference between Arduino and NodeMCU:
What is ESP8266 and NodeMCU?
The ESP8266 is a low-cost Wi-Fi chip developed by Espressif Systems with TCP/IP protocol.
NodeMCU is a Firmware on ESP8266. Firmware is a software program or set of instructions
programmed on a hardware device. It's basically an SoC (System on Chip). A System on Chip
(SoC) is an integrated circuit that integrates all components of a computer or other electronic
systems.
Specifications of NodeMCU:
Pin configuration of
NodeMCU:
Digital and Analog Signals
An analog signal is a continuous signal that represents physical measurements.
A digital signal is a signal that is being used to represent data as a sequence of discrete values.
Examples of analog signals are Human voice, Thermometer, Analog phones etc.
Examples of digital signals are Computers, Digital Phones, Digital pens, etc.
What are Sensors?
A sensor is a device that measures physical input from its environment and converts it into data that can be
interpreted by either a human or a machine.
Sensors modules have extra electronic circuitry along with sensor and are electronic devices that detect and
convert the physical signal to electrical signal.
Modules: Number of ports? Adjust sensitivity?
What are Actuators?
An actuator is a device that uses a form of power to convert a control signal into mechanical
motion. From electric door locks in automobiles, to ailerons on aircraft, buzzers, servo motors,
motors, etc actuators are all around us.
Example: DC Motors
For high current and voltage requirements a motor driver is used along with the NodeMCU to
drive the motors effectively.
Example
Setting up the IDE:
Select your os properly and install the latest version of Arduino IDE.
https://www.arduino.cc/en/software
Install the current upstream Arduino IDE at the 1.8.9 level or later. The current version is on the
Arduino website.
Start Arduino and open the Preferences window.
Enter https://arduino.esp8266.com/stable/package_esp8266com_index.json into the
File>Preferences>Additional Boards Manager URLs field of the Arduino IDE. You can add multiple
URLs, separating them with commas.
Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to
select your ESP8266 board from Tools > Board menu after installation).

More Related Content

What's hot

A Technical Introduction to The Internet of Things
A Technical Introduction to The Internet of ThingsA Technical Introduction to The Internet of Things
A Technical Introduction to The Internet of ThingsAPNIC
 
IoT - IT 423 ppt
IoT - IT 423 pptIoT - IT 423 ppt
IoT - IT 423 pptMhae Lyn
 
Internet of things Project PPT
Internet of things Project PPTInternet of things Project PPT
Internet of things Project PPTRajasPatil6
 
Internet of Things
Internet of  ThingsInternet of  Things
Internet of ThingsSourabhmt11
 
A Quick Guide for Internet of Things - Apptunix
A Quick Guide for Internet of Things - ApptunixA Quick Guide for Internet of Things - Apptunix
A Quick Guide for Internet of Things - ApptunixApptunix
 
Iot ppt
Iot pptIot ppt
Iot pptpiyuu7
 
Internet of Things Connectivity for Embedded Devices
Internet of Things Connectivity for Embedded DevicesInternet of Things Connectivity for Embedded Devices
Internet of Things Connectivity for Embedded Devicesmentoresd
 
تعلم الانترنيت
تعلم الانترنيتتعلم الانترنيت
تعلم الانترنيتjinanAlmousawy
 
Internet Of Things
Internet Of ThingsInternet Of Things
Internet Of ThingsRohan M
 
Internet of Things
Internet of ThingsInternet of Things
Internet of ThingsDodi Saputra
 
THE INTERNET OF THINGS
THE INTERNET OF THINGSTHE INTERNET OF THINGS
THE INTERNET OF THINGSMD HABIBULLAH
 
Eckovation IoT internship Report PowerPoint presentation
Eckovation IoT internship Report PowerPoint presentationEckovation IoT internship Report PowerPoint presentation
Eckovation IoT internship Report PowerPoint presentationManoranjanMaharana7
 
Practical introduction to IoT
Practical introduction to IoTPractical introduction to IoT
Practical introduction to IoTpekkanikander
 
Tips on designing for the Internet of Things
Tips on designing for the Internet of ThingsTips on designing for the Internet of Things
Tips on designing for the Internet of ThingsDesign World
 

What's hot (20)

A Technical Introduction to The Internet of Things
A Technical Introduction to The Internet of ThingsA Technical Introduction to The Internet of Things
A Technical Introduction to The Internet of Things
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
IoT - IT 423 ppt
IoT - IT 423 pptIoT - IT 423 ppt
IoT - IT 423 ppt
 
Internet of things Project PPT
Internet of things Project PPTInternet of things Project PPT
Internet of things Project PPT
 
Internet of Things
Internet of  ThingsInternet of  Things
Internet of Things
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Internet of Things
Internet of Things Internet of Things
Internet of Things
 
A Quick Guide for Internet of Things - Apptunix
A Quick Guide for Internet of Things - ApptunixA Quick Guide for Internet of Things - Apptunix
A Quick Guide for Internet of Things - Apptunix
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Iot ppt
Iot pptIot ppt
Iot ppt
 
Internet of Things Connectivity for Embedded Devices
Internet of Things Connectivity for Embedded DevicesInternet of Things Connectivity for Embedded Devices
Internet of Things Connectivity for Embedded Devices
 
تعلم الانترنيت
تعلم الانترنيتتعلم الانترنيت
تعلم الانترنيت
 
Internet Of Things
Internet Of ThingsInternet Of Things
Internet Of Things
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
IoT presentation
IoT presentationIoT presentation
IoT presentation
 
Intelligent IoT Projects In 7 Days
Intelligent IoT Projects In 7 Days Intelligent IoT Projects In 7 Days
Intelligent IoT Projects In 7 Days
 
THE INTERNET OF THINGS
THE INTERNET OF THINGSTHE INTERNET OF THINGS
THE INTERNET OF THINGS
 
Eckovation IoT internship Report PowerPoint presentation
Eckovation IoT internship Report PowerPoint presentationEckovation IoT internship Report PowerPoint presentation
Eckovation IoT internship Report PowerPoint presentation
 
Practical introduction to IoT
Practical introduction to IoTPractical introduction to IoT
Practical introduction to IoT
 
Tips on designing for the Internet of Things
Tips on designing for the Internet of ThingsTips on designing for the Internet of Things
Tips on designing for the Internet of Things
 

Similar to Getting Started with the NodeMCU- Getting started with Internet of Things (IoT) (By Akshet Patel)

Ed unit c embedded system
Ed   unit c embedded systemEd   unit c embedded system
Ed unit c embedded systemDayal Sati
 
Best HW for IoT project-1.pdf
Best HW for IoT project-1.pdfBest HW for IoT project-1.pdf
Best HW for IoT project-1.pdfKunal Pandhram
 
IoT and embedded systems.pptx
IoT and embedded systems.pptxIoT and embedded systems.pptx
IoT and embedded systems.pptxDanishKhan894003
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02ishan111
 
Chapter- 4.pptx
Chapter- 4.pptxChapter- 4.pptx
Chapter- 4.pptxKviskvis
 
Chapter-1.doc
Chapter-1.docChapter-1.doc
Chapter-1.docvenui2
 
presentation on IOT.pptx
presentation on IOT.pptxpresentation on IOT.pptx
presentation on IOT.pptxShabinJerin
 
IoT Based Home Automation System over Cloud
IoT Based Home Automation System over CloudIoT Based Home Automation System over Cloud
IoT Based Home Automation System over Cloudijtsrd
 
Chapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptxChapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptx40NehaPagariya
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersAditya Porwal
 
BEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfBEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfabdisahirko
 
Network Design for a company
Network Design for a companyNetwork Design for a company
Network Design for a companyrosu555
 

Similar to Getting Started with the NodeMCU- Getting started with Internet of Things (IoT) (By Akshet Patel) (20)

Ed unit c embedded system
Ed   unit c embedded systemEd   unit c embedded system
Ed unit c embedded system
 
Internet Of Things
 Internet Of Things Internet Of Things
Internet Of Things
 
Best HW for IoT project-1.pdf
Best HW for IoT project-1.pdfBest HW for IoT project-1.pdf
Best HW for IoT project-1.pdf
 
IOT Lecture 6.pdf
IOT Lecture 6.pdfIOT Lecture 6.pdf
IOT Lecture 6.pdf
 
IOT Lecture 6.pptx
IOT Lecture 6.pptxIOT Lecture 6.pptx
IOT Lecture 6.pptx
 
iot
iotiot
iot
 
IoT and embedded systems.pptx
IoT and embedded systems.pptxIoT and embedded systems.pptx
IoT and embedded systems.pptx
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02
 
Chapter- 4.pptx
Chapter- 4.pptxChapter- 4.pptx
Chapter- 4.pptx
 
Chapter-1.doc
Chapter-1.docChapter-1.doc
Chapter-1.doc
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
presentation on IOT.pptx
presentation on IOT.pptxpresentation on IOT.pptx
presentation on IOT.pptx
 
IoT Based Home Automation System over Cloud
IoT Based Home Automation System over CloudIoT Based Home Automation System over Cloud
IoT Based Home Automation System over Cloud
 
Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02
 
Chapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptxChapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptx
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
BEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfBEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdf
 
Network Design for a company
Network Design for a companyNetwork Design for a company
Network Design for a company
 
Contiki wsn
Contiki wsnContiki wsn
Contiki wsn
 
Project report,nowrin
Project report,nowrinProject report,nowrin
Project report,nowrin
 

Recently uploaded

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

Getting Started with the NodeMCU- Getting started with Internet of Things (IoT) (By Akshet Patel)

  • 2. About me: Akshet Patel 3rd Year, Mechatronics - Learner - President, ISA MUJ Chapter - Student Mentor, IEI Mechatronics Contact: 7021795853 LinkedIn: https://www.linkedin.com/in/akshetpatel/ Github: https://github.com/AkshetPatel Blog: https://connectwithiot.wordpress.com/ Website: hackster.io
  • 3. Tentative Lesson Plan: 1. Introduction to IoT and Getting started with NodeMCU/ESP8266, Sensors, Actuators. 2. Creating the Workspace, Common Libraries, LED blink/fade code. 3. Creating an Access Point(connect to Wi-Fi) & Web Server(Create own Hotspot). 4. Controlling LEDs and Relays using Webpage. 5. Controlling LEDs and Relays using Blynk. 6. Sending Data to the Cloud. (Example: ThingSpeak) 7. To be decided 8. Mini Project: Example: COVID-19 Real-Time Data Tracker (India).
  • 4. How does Internet work? Youtube video> stored in Data center at Google> Transmit how? Satellites? No! Because Satellite is ~35000 km above the earth's surface. 70000 km in total. - Latency: Delay after which data transfer begins after the execution of an instruction. Hence, this is unacceptable. Done with a complicated network of optical fiber cables which forms an optical fiber network. Since light is the fastest traveling form of energy. These cables are connected between the data centers and your device. Your device i.e your phone can be connected to a router or wifi router. But how is this done? To understand this, let us learn about the concept of IP Address. It is a string of numbers which is used to identify every device that is connected to the internet. It is similar to that of your home address. For example, every letter addressed to you comes only to your home because of the address. You enter a domain name for example facebook.com or youtube.com but from where does the internet get the IP Address from the domain name? DNS Server. Your internet service provider or other organizations can manage the DNS Server.
  • 5. Recap Domain name in browser> Request to the DNS Server to get IP Address> forwards request to data center more specifically to the respective server. Once the server receives the request to access a particular website, the data flow starts in digital format via optical fiber cables in the form of light pulses. These light pulses reach your router and it converts them into electrical pulses which is transmitted by the ethernet cable and if it reaches a phone tower, it gets converted into em waves which is captured by your phone. This data is sent in the form of 0s and 1s and is divided into smaller chunks. If some packet is missing, the device will send an acknowledgement that the packet is missing so that it can be sent again. To manage this data flow, various protocols are implemented like HTTP, MQTT, RTP, TCP/IP, etc.
  • 6. What is a Microcontroller? A microcontroller is a computer on a single chip that includes a processor core, memory, and I/O peripherals, and it is typically used for a specific function in an embedded system. For instance, you can use microcontrollers to operate sensors, record data, control LEDs, communicate with other microcontrollers, and much more. A microcontroller’s memory, I/O ports, and ROM/RAM are located within the chip. For example: A simple vending machine. A microcontroller-based vending machine mainly consists of 3 parts, the first part is coin/money insertion, second is coin/money detection that is basically programming which is implemented through microcontroller and the last stage is giving out the product according to the amount inserted.
  • 8. Difference between Microprocessor and Microcontroller:
  • 10. What is ESP8266 and NodeMCU? The ESP8266 is a low-cost Wi-Fi chip developed by Espressif Systems with TCP/IP protocol. NodeMCU is a Firmware on ESP8266. Firmware is a software program or set of instructions programmed on a hardware device. It's basically an SoC (System on Chip). A System on Chip (SoC) is an integrated circuit that integrates all components of a computer or other electronic systems.
  • 13. Digital and Analog Signals An analog signal is a continuous signal that represents physical measurements. A digital signal is a signal that is being used to represent data as a sequence of discrete values. Examples of analog signals are Human voice, Thermometer, Analog phones etc. Examples of digital signals are Computers, Digital Phones, Digital pens, etc.
  • 14. What are Sensors? A sensor is a device that measures physical input from its environment and converts it into data that can be interpreted by either a human or a machine. Sensors modules have extra electronic circuitry along with sensor and are electronic devices that detect and convert the physical signal to electrical signal. Modules: Number of ports? Adjust sensitivity?
  • 15. What are Actuators? An actuator is a device that uses a form of power to convert a control signal into mechanical motion. From electric door locks in automobiles, to ailerons on aircraft, buzzers, servo motors, motors, etc actuators are all around us. Example: DC Motors For high current and voltage requirements a motor driver is used along with the NodeMCU to drive the motors effectively.
  • 17. Setting up the IDE: Select your os properly and install the latest version of Arduino IDE. https://www.arduino.cc/en/software Install the current upstream Arduino IDE at the 1.8.9 level or later. The current version is on the Arduino website. Start Arduino and open the Preferences window. Enter https://arduino.esp8266.com/stable/package_esp8266com_index.json into the File>Preferences>Additional Boards Manager URLs field of the Arduino IDE. You can add multiple URLs, separating them with commas. Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).