Skip to content
Snippets Groups Projects
week-11.html 14.9 KiB
Newer Older
Siddhi Bodhe's avatar
Siddhi Bodhe committed
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Siddhi Bodhe Fab Academy 2024</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="Free HTML Templates" name="keywords">
    <meta content="Free HTML Templates" name="description">

    <!-- Favicon -->
    <link href="img/favicon.ico" rel="icon">

    <!-- Google Web Fonts -->
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rubik&display=swap" rel="stylesheet"> 

    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css" rel="stylesheet">

    <!-- Libraries Stylesheet -->
    <link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />

    <!-- Customized Bootstrap Stylesheet -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Template Stylesheet -->
    <link href="css/style.css" rel="stylesheet">
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <style>
        /* Use flexbox to create a row layout */
        .image-container {
                   display: flex;
               }
       
               /* Optional: Add some spacing between images */
               .image-container img {
                   margin-right: 10px;
               }
           h2 {
               margin-right: 150px;
             margin-left: 150px;
           }
           h3 {
               margin-right: 150px;
             margin-left: 150px;
           }
           h4 {
               margin-right: 150px;
             margin-left: 150px;
           }
           p {
             margin: 30px;
           }
       div {
         text-align: justify;
         text-justify: inter-word;
       }
       img {
             display: block;
             margin-left: auto;
             margin-right: auto;
           }
           p {
             margin-right: 150px;
             margin-left: 150px;
           }
           p {
             font-size: 24px;
           }
           * {
                 box-sizing: border-box;
               }
               
               .column {
                 float: left;
                 width: 33.33%;
                 padding: 5px;
               }
               
               /* Clearfix (clear floats) */
               .row::after {
                 content: "";
                 clear: both;
                 display: table;
               }
               
       </style>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
</head>

<body>
    <!-- Topbar Start -->
    <div class="container-fluid bg-dark py-3 px-lg-5 d-none d-lg-block">
        <div class="row">
            <div class="col-md-6 text-center text-lg-left mb-2 mb-lg-0">
                <div class="d-inline-flex align-items-center">
                    <a class="text-body pr-3" href=""><i class="fa fa-phone-alt mr-2"></i>+91 7057760100</a>
                    <span class="text-body">|</span>
                    <a class="text-body px-3" href=""><i class="fa fa-envelope mr-2"></i>siddhibodhe100@gmail.com</a>
                </div>
            </div>
            <div class="col-md-6 text-center text-lg-right">
                <div class="d-inline-flex align-items-center">
                    <a class="text-body px-3" href="">
                        <i class="fab fa-facebook-f"></i>
                    </a>
                    <a class="text-body px-3" href="">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a class="text-body px-3" href="">
                        <i class="fab fa-linkedin-in"></i>
                    </a>
                    <a class="text-body px-3" href="">
                        <i class="fab fa-instagram"></i>
                    </a>
                    <a class="text-body pl-3" href="">
                        <i class="fab fa-youtube"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <!-- Topbar End -->


    <!-- Navbar Start -->
    <div class="container-fluid position-relative nav-bar p-0">
        <div class="position-relative px-lg-5" style="z-index: 9;">
            <nav class="navbar navbar-expand-lg bg-secondary navbar-dark py-3 py-lg-0 pl-3 pl-lg-5">
                <a href="" class="navbar-brand">
                    <h1 class="text-uppercase text-primary mb-1">Fab Academy</h1>
                </a>
                <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse">
                    <div class="navbar-nav ml-auto py-0">
                        <a href="index.html" class="nav-item nav-link active">Home</a>
                        <a href="about.html" class="nav-item nav-link">About</a>
                        <a href="assignment.html" class="nav-item nav-link">Assignment</a>
                        <a href="finalproject.html" class="nav-item nav-link">Final Project</a>
                       
                    </div>
                </div>
            </nav>
        </div>
    </div>
    <!-- Navbar End -->

<br>


    <!-- Page Header Start -->
    <div class="container-fluid page-header">
        <h1 class="display-3 text-uppercase text-white mb-3">Week-11</h1>
        <div class="d-inline-flex text-white">
            <h6 class="text-uppercase m-0"><a class="text-white" href="">Assignments</a></h6>
            <h6 class="text-body m-0 px-3">/</h6>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
            <h6 class="text-uppercase text-body m-0">Input Devices</h6>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
        </div>
    </div>
    <!-- Page Header Start -->

    <!--Documentation Start-->
Siddhi Bodhe's avatar
Siddhi Bodhe committed
<!--Day-01 start-->
<h3><u><FONT COLOR="f77d0a">DAY-01</FONT></u></h3>
<div>
<p><FONT COLOR="black">On the Wednesday of eleventh week, Mr. Neil sir conducted our eleventh global session. He took the random generator in first 90 minutes. He gave us overall explaination about week-11 which includes Output Devices. 
    <br>
    In this assignment, I have made documentation on-<br>
    <b>Group Assignment</b><br>
    1. Probe an input device's analog levels and digital signals. <br>
    <b>Individual Assignment</b><br>
    1. Measure something: add a sensor to a microcontroller board that you have designed and read it.<br>
    
    
</FONT></p>
</div>
<!--Day-01 end-->

<!--Day-02 start-->
<!--Day-02 start-->
<h3><u><FONT COLOR="f77d0a">DAY-02</FONT></u></h3>
<div>
<p><FONT COLOR="black">
    <b>Input Devices:-</b><br>
    <b>What is Input device?</b>  The name itself give an idea that the device which takes an input from environment called as input device. An input device is a hardware component that allows users to provide data and control signals to a computer or other electronic systems. These devices translate physical actions, such as typing on a keyboard, clicking a mouse, or touching a screen, into electronic signals that the system can understand and process. Input devices are essential for user interaction, enabling the input of information, commands, and controls necessary for operating the system. Common examples include keyboards for text input, mice for navigation, touchscreens for direct interaction, and sensors for detecting environmental changes. By converting human actions into machine-readable signals, input devices play a critical role in the functionality and usability of electronic systems.<br>
    <br>
    <b>Group Assignment</b><br>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <a href="groupassignmentweek-11.html">Click here to see group assignment in detail.</a><br>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <br>
    <b>Individual Assignmment</b><br>
    In individual assignment, I designed PCB board which includes Input devices - MQ135 gas sensor and pressure sensor. <br>
<b>1) MQ135 gas sensor </b>
</FONT></p>
<div>
    <img  width="900" height="650"src="img/week-11/01.jpg">
</div><br>
<p><FONT COLOR="black">
    The MQ135 gas sensor is a versatile device used to detect a variety of gases in the air, making it essential for air quality monitoring systems. This sensor can measure the concentration of gases like ammonia, nitrogen oxides, alcohol, benzene, smoke, and carbon dioxide. It operates using a tin dioxide (SnO2) sensing layer, which exhibits lower conductivity in clean air. When the sensor is exposed to target gases, the interaction with the tin dioxide increases its conductivity. This change in conductivity is then converted into an electrical signal, which can be processed by a microcontroller or other devices to determine the concentration of the detected gases. The MQ135's wide sensitivity range makes it an ideal choice for applications requiring comprehensive air quality assessments.<br>
<b>2) Pressure Sensor</b>
</FONT></p>
<div>
    <img  width="900" height="650"src="img/week-11/02.png">
</div><br>
<p><FONT COLOR="black">
    A pressure sensor made using Velostat is a simple, flexible, and cost-effective device for detecting and measuring pressure or force. Velostat, also known as Linqstat, is a conductive material that changes its electrical resistance when pressure is applied to it. The sensor is typically constructed by placing a piece of Velostat between two conductive layers. When pressure is exerted on the sensor, the resistance of the Velostat decreases, allowing more current to flow through the circuit. This change in resistance can be measured by a microcontroller or other electronic device to determine the amount of pressure applied. Velostat pressure sensors are widely used in applications such as wearable technology, robotics, and interactive surfaces due to their lightweight, flexible, and inexpensive nature.<br>

</FONT></p>

<div>
    <img  width="900" height="550"src="img/week-11/03.png">
</div><br>
<p><FONT COLOR="black">
Here, I designed PCB Schematic in AutoDesk Eagle Software by considering the proper connections of respective input devices.
</FONT></p>
<div>
    <img  width="900" height="550"src="img/week-11/04.png">
</div><br>
<p><FONT COLOR="black">
Here is  the final design of PCB board for input devices. 
</FONT></p>
<div>
    <img  width="900" height="550"src="img/week-11/05.png">
</div><br>
<p><FONT COLOR="black">
These are the PNG images of traces and outline exported for generating GCode for PCB Milling process.
</FONT></p>
<div>
    <img  width="900" height="550"src="img/week-11/06.png">
</div><br>
<p><FONT COLOR="black">
    Now, I used MIT Mods CE to generate GCode of image for PCB Milling  process by inserting required parameters such as tool diameter, depth of cut and offset number.
</FONT></p>
<div>
    <img  width="900" height="550"src="img/week-11/07.png">
</div><br>
<p><FONT COLOR="black">
    Again,  use same process to generate GCode of outline of PCB.
</FONT></p>
<div>
    <center>
    <video width="700" height="450" controls>
        <source src="video/week-11/01.mp4" type="video/mp4">
      </video></center>
 </div>
 <p><FONT COLOR="black">
   Here is the video of PCB Milling process of input devices PCB. 
    </FONT></p> 
<div>
    <img  width="900" height="550"src="img/week-11/08.jpg">
</div><br>
<p><FONT COLOR="black">
Here, I got the output.
</FONT></p>
<div>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <img  width="900" height="550"src="img/week-11/09.jpg">
Siddhi Bodhe's avatar
Siddhi Bodhe committed
</div><br>
<p><FONT COLOR="black">
This is the glimpse after soldering the input deevice PCB. Finally, it is ready! <br>
Now, its time for testing. Firstly, I tested all the devices separately with PCB board.<br>
<b>1) MQ135 gas sensor</b><br>
<b>Code:-</b><br>
<code>

Siddhi Bodhe's avatar
Siddhi Bodhe committed
    const int sensorPin = 34;  // Analog input pin connected to MQ-135<br>
    const int heaterPin = 25;  // Digital output pin connected to MQ-135 heater<br>
    <br>
    void setup() {<br>
      Serial.begin(115200);  // Initialize serial communication for printing data<br>
      pinMode(heaterPin, OUTPUT);  // Set heater pin as output<br>
    }<br>
    <br>
    void loop() {<br>
      digitalWrite(heaterPin, HIGH);  // Turn on heater (adjust based on sensor datasheet)<br>
      delay(1000);                   // Wait for heater to stabilize (adjust based on sensor datasheet)<br>
      <br>
      int sensorValue = analogRead(sensorPin);<br>
      Serial.print("Sensor Value: ");<br>
      Serial.println(sensorValue);<br>
      <br>
      digitalWrite(heaterPin, LOW);  // Turn off heater (adjust based on sensor datasheet)<br>
      delay(5000);                   // Wait before next reading<br>
    }<br>
    
Siddhi Bodhe's avatar
Siddhi Bodhe committed



</code><br>
<b>Output:-</b>
</FONT></p>
<div>
    <center>
    <video width="700" height="450" controls>
        <source src="video/week-11/02.mp4" type="video/mp4">
      </video></center>
 </div>
 <p><FONT COLOR="black">
    <b>2) Pressure Sensor</b><br>
    <b>Code:-</b><br>
    <code>
    
Siddhi Bodhe's avatar
Siddhi Bodhe committed
        const int sensorPin = 34; // Analog input pin connected to pressure sensor<br>
        <br>
        void setup() {<br>
          Serial.begin(115200);  // Initialize serial communication for printing data<br>
        }<br>
        <br>
        void loop() {<br>
          int sensorValue = analogRead(sensorPin);<br>
          float voltage = sensorValue * (3.3 / 1023.0); // Convert raw value to voltage (assuming 3.3V reference)<br>
          // Apply calibration factor based on your sensor datasheet to convert voltage to pressure<br>
          float pressure = voltage * calibration_factor; // Replace with your calibration calculation<br>
          Serial.print("Pressure: ");<br>
          Serial.print(pressure);<br>
          Serial.println(" (your pressure unit)");<br>
          delay(1000); // Wait 1 second before next reading<br>
        }<br>
        
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    
    
    
    </code><br>
    <b>Output:-</b>
 </FONT></p>
 <div>
    <center>
    <video width="700" height="450" controls>
        <source src="video/week-11/03.mp4" type="video/mp4">
      </video></center>
 </div>
 
</div>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
   
    <!--Documentation End-->
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <div><h3>Downloads</h3>
        <p>
         <a href="files/week-11/week-11.zip">PCB Files</a><br>
        
        </p>
        </div>
Siddhi Bodhe's avatar
Siddhi Bodhe committed
       
Siddhi Bodhe's avatar
Siddhi Bodhe committed
       
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <!-- Footer Start -->
Siddhi Bodhe's avatar
Siddhi Bodhe committed
    <div>
        <p><center><u><h3><FONT COLOR="2b2e4a">Siddhi Bodhe Fab Academy&#128513;</FONT></h3></u></center></p><br><br>
     </div>   
     <!-- Footer End -->
Siddhi Bodhe's avatar
Siddhi Bodhe committed



    <!-- Back to Top -->
    <a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="fa fa-angle-double-up"></i></a>


    <!-- JavaScript Libraries -->
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
    <script src="lib/easing/easing.min.js"></script>
    <script src="lib/waypoints/waypoints.min.js"></script>
    <script src="lib/owlcarousel/owl.carousel.min.js"></script>
    <script src="lib/tempusdominus/js/moment.min.js"></script>
    <script src="lib/tempusdominus/js/moment-timezone.min.js"></script>
    <script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>

    <!-- Template Javascript -->
    <script src="js/main.js"></script>
</body>

</html>