cover photo

COURSEWORK

Moksha's AI-ML-001 course work. Lv 2

MokshaAUTHORACTIVE
This Report is yet to be approved by a Coordinator.

Common Tasks Report

3 / 3 / 2024


Generic Tasks Final Report - Moksha N

Name : Moksha .N. 
Branch : Aiml 3rd semester

TASK 2 : API

API stands for Application Programming Interface. It's like a bridge between different software systems. API's enable apps, websites, or services to access features or data from other applications or platforms in a standardized way.

Building a Weather App Using the Open Weather API:

A Step-by-Step Guide:

  1. Understanding APIs.
  2. We make use of the jQuery Plugin for displaying Realtime Weather conditions using Open Weather API : https://github.com/michael-lynch/open-weather
  3. Open this GitHub repository and Clone or Download the zip file.
  4. Extract all the contents of the folder and open through VS code editor.
  5. Open the index.html file inside demo folder , right click and open with live server.
  6. Create a free account in openweathermap.org
  7. Copy the API key in API keys section and paste it in the 'getWeather' function.
  8. To make the Application some more dynamic , transfer the code of function into a new (getWeather) function and make it accept the input from the user for name of the city, instead of the default. Alt text

TASK 3 : Working with Github

This task involve implementing Github actions, managing issues and creating pull requests to contribute to the repository.

Steps :

  1. Cloning the 'git-task' repository.
  2. Implement the specified Github actions as described in the README file.
  3. Create , label and manage issues using Github's issue tracking system and commit changes.
  4. Contribute changes by creating pull requests addressing specific issues and making necessary modifications.

TASK 4: Get familiar with the command line on ubuntu and do the following subtasks:

Ubuntu Command line subtasks:


Create a folder-Test

Open Command prompt :

mkdir name_of_the_folder 
cd into the folder
cd name_of_the_folder
Create a blank file without using any text editor:
touch blank_file.txt
List the files in that folder:
ls
Create 2600 folders in this folder where each folder is named like M90 or B56:
for /l %i in ( ,2600) do mkdir .\\M%i
Concatenate two text files containing random text and display them on the terminal
echo \Random text for file 1\" > file1.txt\necho \"Random text for file 2\" > file2.txt\ncat file1.txt file2.txt

Alt text


TASK 7: Create a Portfolio Webpage

A responsive website using HTML & CSS to showcase my portfolio - about myself , projects, social and more.
My Portfolio Website
(https://github.com/Moksha-nagraj/marvel.git) Alt Portfolio


TASK 9: Tinkercad

Using ultrasonic/infrared sensors, estimate the distance between an obstacle and the sensor and display the results on a LCD screen.


TinkerCAD is a free-of-charge online platform that empowers users to create 3D designs, simulate circuits, and prototype electronics in a user-friendly environment, making it a ideal tool for both beginners and experienced makers.

Components Used:

  1. Arduino Uno R3 board
  2. Ultrasonic sensor (HC-SR04)
  3. 16×2 LCD I2C Display
  4. Jumper Wires. Alt Tinkercad

TASK 11: LED Toggle Using ESP32

Learn the working of an ESP32. Use the Arduino IDE to code and upload the program to the ESP32.

The learning objective was to build a web server that controls ESP32 outputs pins. Here we are using LED for executing this project. I started by building the circuit. I connected two LEDs to the ESP32 as shown in the following diagram – one LED connected to GPIO 26, and the other to GPIO 27. Alt circuit Then I copied and uploaded the code to Arduino IDE. Also made the necessary changes in the code Then plugged ESP32 board to the computer. To access the web server, I opened the browser, pasted the ESP32 IP address. Then I checked whether the web server is working properly or not. This completed my LED task. Alt circuit\nAlt circuit


TASK 12: Soldering Prerequisites

Learnt about the soldering equipment present in our lab, the solder, the soldering iron, soldering wick, flux and perform basic soldering on a perf board, a LED circuit


The Soldering Process Step 1: If the perf board is full, desolder it by using a desoldering wick. Step 2: Place the perf board on the helping hand for better precision. Step 3: Place the required LED on to the perf board, on a side without copper pads. Step 4: Bend the leads to follow the path you want them to have. Add a bit of solder to both ends of that lead to hold it in place. Alt Soldering


TASK 14: Karnaugh Maps and Deriving the logic circuit

A Karnaugh Map (K-map) is a graphical representation of truth tables that simplifies the process of designing and optimizing digital circuits. It is a tool used primarily in digital logic design and Boolean algebra to find the most efficient way to implement a logical expression.

How Burglar System works?

Let us assume there are two switches, one for the door and the other for an alarm that they must remember to press. Assume that the door opened is 0 and closed as 1. Assume that the alarm pressed is 1 and not pressed is 0. One would naturally assume that the burglar opens the door and forgets to press the alarm. So the underlying logic is that the buzzer must ring when both the door is opened and the alarm is not pressed. i.e., 0 and 0 case. Only a NOR gate gives the necessary output of 1 when both the inputs are 0.


TinkerCAD implementation steps:

  • Take an IC 7432 for OR gate and an IC 7404 for Inverting and connect them in series to form a NOR gate. Make sure they are not grounded together.
  • Take 2 slideswitches to regulate the input. Give them as input to the OR gate.
  • Give the Regulated Power Supply and ground all the necessary components.
  • Connect the output of the entire NOR gate to the Piezo buzzer which gives the required output as an buzzer audio.
  • In the same fashion, connect an LED for additional safety.- - - -
My tinkerCAD simulation

link Alt burglar Alt system


TASK 15: Active Participation:

At the Generation Tech event, we leveraged Moqups to design an innovative app centered around the crucial theme of quality education, aligning with the United Nations 'Sustainable Development Goal' on education. Our project aimed to address challenges and enhance accessibility, ensuring quality education for all. Through Moqups, we crafted a user-friendly interface that encapsulated our vision for a transformative educational tool. Alt certificate


UVCE,
K. R Circle,
Bengaluru 01