You are on page 1of 20

Task 5

Hardware Demonstration
Components Required
1. ESP8266 NODE MCU 12E - CP2102 –Arduino
with Wi-Fi Module (Rs. 430) – 1 no
2. Breadboard -1 no
3. DHT11 sensor Module -1 no (Rs.120)
4. LED -1 no
5. Resistor – 33o ohm – 1 no
6. Connecting wires / male to male connector-4
no
What is NodeMCU?

NodeMCU (Node MicroController Unit) is an open-source software


and hardware development environment built around an inexpensive
System-on-a-Chip (SoC) called the ESP8266.

The ESP8266, designed and manufactured by Espressif Systems,


contains the crucial elements of a computer: CPU, RAM, networking
(WiFi), and even a modern operating system and SDK. That makes it
an excellent choice for the Internet of Things (IoT) projects of all kinds.
ESP8266 works in two modes: Station (STA) and Access
Point (AP).  In short, AP mode allows it to create its own
network and have other devices (your phone) connect to
it and STA mode allows the ESP8266 to connect to a Wi-
Fi network (one created by your wireless router). So, an
important feature about the ESP8266 is that it can
function as a client or as an access point or even both.
http://onlineshouter.com/
Web link for extra reference
• https://www.make-it.ca/nodemcu-arduino/no
demcu-details-specifications
/

• https://www.make-it.ca/nodemcu-arduino/no
demcu-details-specifications
/

• Doubt in code or syntax:


https://www.arduino.cc/
NodeMCU ESP8266 Pin Diagram
Step 1: Installing ESP8266 Board in Arduino IDE
(Windows, Mac OS X, Linux)

• https
://randomnerdtutorials.com/how-to-install-es
p8266-board-arduino-ide/
Step 2: Install ThingSpeak Communication Library for Arduino

Sketch/Include Library/Manage Libraries.

Click the ThingSpeak Library from the list, and


click the Install button.
Step 3: Install DHT sensor Library
• Downloading the library for NodeMCU

• Install the library named “DHT sensor library


for ESPx” or DHT sensor library and Adafruit
unified sensor as shown below.

• https://iot4beginners.com/installing-dht11-dh
t22-libraries-for-arduino-nodemcu/
DHT 11 pin diagram

Gives the relative humidity and temperature (deg.cel) of the air.


Temperature measurement range is 0°C to 50°C and
humidity from 20% to 90% with an accuracy of ±1°C and ±1%. 
How DHT sensor works
• Sensor module consist of a humidity sensing component and a
NTC temperature sensor (or thermistor) to measure humidity
as well as temperature with inbuilt 8-bit microcontroller to
output the values of temperature and humidity as serial data.
• The sensor is also factory calibrated and hence easy to
interface with other microcontrollers
• Humidity sensing component has two electrodes with
moisture holding substrate between them.
Relative humidity as a percentage of the ratio of moisture in the air to the

maximum amount that can be held in the air at the current temperature.

As the air becomes hotter, it holds more moisture, so the relative

humidity changes with the temperature.

Applications:

• Measure temperature and humidity

• Local Weather station

• Automatic climate control

• Environment monitoring
For DHT11 Sensor module

1 Vcc Power supply 3.5V to 5.5V

2 Data Outputs both


Temperature and
Humidity through serial
Data

3 Ground Connected to the ground


of the circuit
LED pin diagram
Steps to Remember
• Install ESP8266
• Install Thingspeak
• Install DHT sensor library and Adafruit Unified
Sensor library or DHT sensor library for ESPx
• Confirm the port selection COM3/COM5
• Notedown the network SSID and password.
• Create a channel in Thingspeak and takedown
the channel ID and Write API Key.
Ex.No: 1
• Blinking LED
Ex.No:2
• Create a Local server and control the LED
status.
Difference between HTTP and HTTPS

• HTTP is unsecured on other hand HTTPS is


secured.
• HTTP uses port 80 for communication unlike
HTTPS which uses port 443
• No certificates required for validation in case
of HTTP. HTTPS requires SSL Digital Certificate
• No encryption in HTTP; Data encrypted before
sending and receiving in HTTPS.
Ex.No: 3
• Remote Monitoring of LED status using
Thingspeak IoT cloud
Ex.No:4
• Real time Remote Weather Monitoring using
DHT sensor and Thingspeak IoT cloud service

You might also like