cover photo

COURSEWORK

Nalin's IOT-001 course work. Lv 2

Nalin VyasAUTHORACTIVE
This Report is yet to be approved by a Coordinator.

2 / 10 / 2024


Task 1 : Soil Moisture Sensor

In this task I used a ESP32 with a catalytic Soil Moisture Sensor to check and display the soil moisture levels to the serial monitor. This enables us to provide efficient irrigation to the plants. Images of the task are given below.

Task 2 : Simon Says

This was a very fun and interesting task. The original task resource had code and connection for an Arduino Uno which I had to change and implement using the ESP32 . I had a few problems fixing the code initially, but I was later able to figure out these issues and fix them. The images and a video of the task are given below.

Task 3 : Morse Code

For this task I had to use an ESP32 and a simple LED to implement a morse code functionality where the input string can be provided via the webserver which is received by the ESP32 and then it makes the LED flash accordingly to display the appropriate flash code. The task resource provided here wasn't functional so I had to search and implement other resources online which helped me improve my trouble shooting skills. The images and video of the task are given below.

Task 4 : I2C Protocol :

In this task I implemented a simple master slave I2C setup using an Arduino Uno and a ESP32 . The ESP32 acts as the master and sends the message to the Arduino to display on the serial monitor. Implementing this was a bit confusing, but I figured it out and was able to complete the task. The below image shows the ESP32 successfully sending the message to the Arduino. The below image shows the Arduino successfully receiving the message and printing to serial monitor. Physical setup is shown below. Image of the physical setup

Task 5 : Creating a Website

This was a simple task where I had to create a website with a button which would dynamically change the color of a div. This task helped me improve my HTML skills which will help me in the further tasks which require hosting a webserver. The image of the website is given below. The JavaScript function to implement the color changing functionality is given below.

function Colorchange(){
   i = Math.random()*6|0 + 1;
   if (i < 3){
       document.getElementById('newDiv').style.backgroundColor='green';
            }
   else{
       document.getElementById('newDiv').style.backgroundColor = 'brown';
            }   
}

UVCE,
K. R Circle,
Bengaluru 01