0% found this document useful (0 votes)
125 views10 pages

IOT Assignment 3

This document provides instructions for setting up an experiment to send DHT11 sensor data from a NODEMCU board to an Android application using the Blynk platform. The experiment allows monitoring of temperature and humidity data on the app and controlling an LED connected to the NODEMCU board remotely. Key steps include connecting the DHT11 sensor and LED to the NODEMCU, setting up a Blynk project to add widgets for data display and button control, generating an authentication token, updating the NODEMCU code, and executing the experiment to demonstrate real-time data monitoring and remote actuation via the app.

Uploaded by

iit2020211
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views10 pages

IOT Assignment 3

This document provides instructions for setting up an experiment to send DHT11 sensor data from a NODEMCU board to an Android application using the Blynk platform. The experiment allows monitoring of temperature and humidity data on the app and controlling an LED connected to the NODEMCU board remotely. Key steps include connecting the DHT11 sensor and LED to the NODEMCU, setting up a Blynk project to add widgets for data display and button control, generating an authentication token, updating the NODEMCU code, and executing the experiment to demonstrate real-time data monitoring and remote actuation via the app.

Uploaded by

iit2020211
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Lab Report: Sending DHT11 Sensor Data to an

Android Application using NODEMCU and Blynk

Group Number: 3

Hardware and Software Requirements

Hardware:

- NODEMCU (ESP8266-based development board) - DHT11 Temperature and Humidity


Sensor
- Breadboard and Jumper Wires
- LED and Resistor

- Android Smartphone

Software:

- Arduino IDE
- Blynk App for Android
Setup and Connections
1. Hardware Connections:

- Connect the DHT11 sensor to the NODEMCU as follows:


- DHT11 VCC → NODEMCU 3.3V
- DHT11 GND → NODEMCU GND
- DHT11 DATA → NODEMCU D4 (or any other digital pin as per your code)

- Connect an LED and a current-limiting resistor (e.g., 220-330Ω) to NODEMCU D0 for


actuation.

2. Blynk App Setup:

Certainly, let's provide a step-by-step guide on how to set up the Blynk app for your
experiment:

Step 1: Install the Blynk App

- Open the Google Play Store (for Android devices) on your smartphone. - In the search
bar, type "Blynk" and press "Search."

- Find the "Blynk - IoT for Arduino, ESP8266/32, Raspberry Pi" app and tap "Install."
- Wait for the installation to complete. Once installed, tap "Open" to launch the Blynk
app.

Step 2: Create a New Blynk Project

- Upon opening the Blynk app, you'll be prompted to log in or sign up. If you don't have
a Blynk account, sign up for a new account. If you already have one, log in.

- After logging in, you'll be taken to the Blynk dashboard. To create a new project, tap
the "+" icon (usually found at the top-right corner).

- Enter a name for your project (e.g., "Temperature Monitor") and select the appropriate
hardware (in your case, NODEMCU).

- Tap "Create."

Step 3: Project Dashboard

- You'll be taken to your project dashboard. This is where you'll add widgets to interact
with your NODEMCU.

- By default, you'll see a blank canvas. To add widgets, tap the "+ Widget" button.

Step 4: Add Widgets


- In your experiment, you want to monitor temperature and humidity and control an LED.
Here's how to add the necessary widgets:

- To add a Value Display widget for temperature, tap "Value Display."

- Configure the widget by tapping on it. You can rename it (e.g., "Temperature") and
choose the virtual pin (V0 in your code).

- Repeat the process to add a Value Display widget for humidity (e.g., "Humidity" on
V1).

- To add a Button widget for LED control, tap "Button."

- Configure the button by tapping on it. Rename it (e.g., "LED Control") and choose the
virtual pin (V2 in your code).

Step 5: Generate an Authentication Token

- To allow your NODEMCU to communicate with the Blynk app, you'll need an
authentication token. To generate one:
- Tap the gear icon (Settings) in the top-right corner of your project dashboard.

- Under the "Project Settings" section, you'll find the "Device" tab. Tap it.

- Here, you'll see your "Authentication Token." Tap the "Email" icon to send the token to
your email or copy it manually.

Step 6: Configure Your NODEMCU Code

- Replace the `BLYNK_AUTH_TOKEN` in your NODEMCU code with the authentication


token you generated in the previous step.

Step 7: Start the Project


- Go back to your Blynk project dashboard.

- At the top-right corner of the screen, you'll see a play button (a triangle icon). Tap it to
start your project.

Step 8: Monitor Data and Control LED

- Once your project is running, you'll see the Value Display widgets for temperature and
humidity.
- You can toggle the LED on and o by pressing the Button widget.

- Observe the real-time data updates on the Value Display widgets as your NODEMCU
sends data to the app.

That's it! You've successfully set up the Blynk app for your experiment, allowing you to
monitor sensor data and control an LED remotely.

Please note that Blynk might have updates or changes in its interface, so the steps may
vary slightly. However, the general process for setting up a Blynk project remains
relatively consistent.
.

Experiment Execution 1. Upload Code:

- Open the Arduino IDE.


- Set the board to NODEMCU and choose the appropriate COM port. - Upload the
provided Arduino code to your NODEMCU.

2. Monitor Data:

- Open the Blynk app on your smartphone.


- Start the project.
- You should see real-time temperature and humidity data on the app's

Value Display widgets (V0 and V1).


3. Actuation:

- Toggle the LED on and o by pressing the Button widget (V2) in the app. - Observe the
LED on the NODEMCU board changing its state accordingly.

4. Threshold Alert :
- Implement the threshold alert logic in your code to display a message

when the temperature is high or low.


Conclusion
In this lab experiment, we successfully established a connection between a NODEMCU
board and an Android application using the Blynk platform. The key achievements and
observations from this experiment include:

1. Data Monitoring:We successfully implemented real-time data monitoring of


temperature and humidity using the DHT11 sensor. The data was displayed on the
Blynk app's Value Display widgets (V0 and V1).
2. Actuation: Through the Blynk app's Button widget (V2), we demonstrated the ability
to remotely control an LED connected to the NODEMCU board. This highlights the
practicality of IoT devices for remote actuation and control.
3. Code Functionality:The code provided allowed for smooth integration between the
NODEMCU board, DHT11 sensor, Blynk app, and the LED. The code structure was
well-commented and organized for clarit Overall, this experiment showcases the
potential of IoT technologies for real-world applications, oering remote monitoring and
control capabilities that can be further developed for various practical scenarios.

You might also like