IOT Assignment 3
IOT Assignment 3
Group Number: 3
Hardware:
- Android Smartphone
Software:
- Arduino IDE
- Blynk App for Android
Setup and Connections
1. Hardware Connections:
Certainly, let's provide a step-by-step guide on how to set up the Blynk app for your
experiment:
- 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.
- 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."
- 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.
- 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).
- Configure the button by tapping on it. Rename it (e.g., "LED Control") and choose the
virtual pin (V2 in your code).
- 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.
- At the top-right corner of the screen, you'll see a play button (a triangle icon). Tap it to
start your project.
- 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.
.
2. Monitor Data:
- 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