Skip to main content

Lab 3 : Blynk Application

---------------------------------------------------------------------------

Please ensure you have installed ESP32 properly in Arduino IDE software before proceeding.

Click this link if you want to install Arduino IDE : https://www.arduino.cc/en/software

---------------------------------------------------------------------------

Please ensure you have installed and setup Blynk application before proceeding. (Take note that I am using the OLD VERSION of Blynk app in this lab.)

Click this link if you want to install Blynk application : https://blynk.io/

Click this link if you want to setup Blynk application : https://microcontrollerslab.com/control-esp32-outputs-blynk-app-arduino-ide/

---------------------------------------------------------------------------

Part A : Blynk Application  

Below are the circuit connections : 

---------------------------------------------------------------------------

This is the Google Drive link of the coding for Lab Practice : https://drive.google.com/drive/folders/1tWgsgh_NATQ41wZaqrpTJVPg6MJekzcX?usp=sharing

**Take note that the auth code, ssid and password is according to your own value

---------------------------------------------------------------------------
Below are the Blynk widgets used : 

1. Button for LEDs 
2. SuperChart for Temp&Lux readings 
3. Labeled Value for VR value 
4. LED for Push Button output

---------------------------------------------------------------------------

Results

Below are the results for the LEDs : 

- The lighting of LEDs are controlled by the button in Blynk app. 

Below are the results for Temperature, Light Intensity, and Potentiometer readings : 

- The results are monitored continuously. 

Below are the results for the Push Botton and LED widget in Blynk app : 

- When the button is pushed, the LED in Blynk app will blink. 

(a) Push and Release of button : 

(bLED on (When the button is pressed):

(c) LED off (When button is released) : 

---------------------------------------------------------------------------

**That's all for the application practices. **

Next, below is the Lab Task by applying the knowledge learned in this lab. 

---------------------------------------------------------------------------

Lab Task : Create simple application that integrate between sensors, input, output, and Blynk app. 

1. Convert raw ADC value to Lux. 

2. Based on the Lux value : 

    (i) If high - only the green LED is on. 

    (ii) If medium - only the yellow LED is on. 

    (iii) Else - only thered LED is on. 

3. The Lux value and LEDs can be monitored at Blynk app. 

4. In Blynk app also has a button that can manually turn on/off LED on ESP32. 

---------------------------------------------------------------------------

Circuit Connection 

**The circuit connection is almost the same as the connection in Lab Practice but we will just need the LEDs and LDR in Lab Task. **

---------------------------------------------------------------------------

Coding in Arduino IDE 

This is the Google Drive link for the coding of this Lab Task : https://drive.google.com/drive/folders/1B-k4ym80ViCPmBN4dI4HdB3s7trh78Lr?usp=sharing

---------------------------------------------------------------------------

Blynk Widget used 

1. Buttons for LEDs 
2. SuperChart for Temp&Lux readings 
3. LEDs for monitoring LEDs conditions 

---------------------------------------------------------------------------

Results 

Below are the results for the LEDs controlled by virtual pins : 

- The lighting of LEDs are controlled by the button in Blynk app. 

- The lighting of the LEDs are monitored by the LED widgets. 

Below is the results for LEDs with different Lux values : 

- Light intensity will affect Lux values. 

- When the light intensity is low, the Lux value will become low also; When the light intensity is high, the Lux value will also increase. 

 (i) When the Lux value is higher than 100, only the Green LED will light up. 

 (ii) When the Lux value is lower than 20, only the Red LED will light up. 

 (iii) Otherwise, only the Yellow LED will light up. 

---------------------------------------------------------------------------

Conclusion 

    As a conclusion, ESP32 can work together with Blynk application to make a lot of interesting projects which is based on IoT (Internet of Things). For example, in this lab, I have done 2 simple projects, which are mentioned above. 

    In order to connect ESP32 to the Blynk server, first we need to make a Blynk account and create a project. Then, we need to acquire the authentication code of the project. (Take note that each project has its own unique auth code.) After that, we will need to find the auth code which is sent to our email and paste the code in our coding in Arduino IDE software. At the same time, please ensure the WiFi name and password inserted are correct inside the coding. Then, we just need to upload the coding to ESP32 and it can be connected to our project inside Blynk app. 

    In Lab Practice, I learned to use buttons in Blynk app to control the lighting of LEDs, and the Temperature and Lux readings are shown in a graph inside Blynk app. Besides that, if the Push Button is pressed, the LED inside Blynk will light up, when the Push Button is realeased, the LED does not light up. The Potentiometer reading can also be monitored in the Blynk app. 

    In Lab Task, I succeed to do modify the project of Lab Practice to fulfill the requirements of the task. The project can use buttons in Blynk app to control the LEDs in the circuits. At the same time, the condition of the LEDs can be monitored in the Blynk app by looking at the LED widgets. In addition, the Lux values are shown continuously in a graph. When the Lux value is higher than 100, only the Green LED will light up; When the Lux value is lower than 20, only the Red LED will light up; Otherwise, only the Yellow LED will light up. 


---------------------------------------------------------------------------

Thank you for reading. Feel free to ask me if you have any questions. 

---------------------------------------------------------------------------


Comments

Popular posts from this blog

Video Assignment of Mini Project

Smart House Monitoring System  --------------------------------------------------------------------------- Click the link below to watch the video presentation of my mini project, which is the Smart House Monitoring System.  https://youtu.be/XWVftUKyL6c --------------------------------------------------------------------------- Thank you for reading. Feel free to ask me if you have any questions.  ---------------------------------------------------------------------------

LAB 1 : D'ARSONVAL GALVANOMETER

--------------------------------------------------------------------------- Please ensure you have installed Multisim software before proceeding.  Click the link here if you want to install the software :   https://www.ni.com/en-my/support/downloads/software-products/download.multisim.html#312060 --------------------------------------------------------------------------- Objectives 1. To find the internal resistance and the currect sensitivity of the galvanometer.  Exercise 1. Set the potentiometer to 510 Ω. Connect the circuit as in the Figure 1.1 and keep the voltage source in minimum position such that voltage output from the voltage terminals  are 0V. 2. Increase the voltage supply and the galvanometer pointer will deflect towards right hand side or left hand side. You can replace the galvanometer with the DMM/Ammeter  in the Multisim. Assume R g is 1.2 Ω for the given galvanometer. Vary the voltage supply until the galvanom...