Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Student Reviews



More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Loading...

All Courses

All Courses

logo

Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter

#define WINDOW_SIZE 5int INDEX = 0;int VALUE = 0;int IN_PIN= 7;int SUM = 0;int READINGS[WINDOW_SIZE];int AVERAGED = 0;   void setup() {pinMode(IN_PIN, INPUT);Serial.begin(9600);}   void loop() {SUM = SUM - READINGS[INDEX]; // Remove the oldest entry from the sumVALUE = analogRead(IN_PIN); // Read the next sensor…

    Project Details

    Loading...

    Leave a comment

    Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

    Please  login to add a comment

    Other comments...

    No comments yet!
    Be the first to add a comment

    Read more Projects by Rama Akhil Sri Sai Kumar Srireddy (6)

    Project 1 - V&V SW Analysis - I

    Objective:

    if( manufacturer switch on the phone) { (Company logo at the center of the screen) } else if(customer switch on the phone) { (All my icons of the APPS shall be present in the grid) } else if( manufacturer powered on the phone) { (the "call the phone" icon is the first icon…

    calendar

    26 Mar 2022 03:44 AM IST

      Read more

      Project 2 - V&V SW Analysis II

      Objective:

      1: #ifndef FILE#include <stdio.h>#endif #ifndef FALSE#define FALSE 0#define TRUE 1#endif /* * this define determines if we are using stubs - * set to 0 for stubs or 1 for no stubs */#define no_stubs 1 /* * this define determines the interface to use * set to 1 for original interface or 0 for changed interface */#define…

      calendar

      26 Mar 2022 03:38 AM IST

        Read more

        Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear

        Objective:

          #include<stdio.h>   static volatile int pressure;   static volatile int output;   void Init_Landing _gear()   {      pressure = 0;     output = 0;     printf("Landing_gear is initialized and program is in state_A & value of output is %d\n", ouput);…

        calendar

        17 Mar 2022 05:15 AM IST

          Read more

          Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol

          Objective:

          #include <LiquidCrystal.h>   // initialize the library with the numbers of the interface pinsLiquidCrystal lcd(12, 11, 5, 4, 3, 2);   void setup() {// set up the LCD's number of columns and rows:lcd.begin(16, 2);// Print a message to the LCD.lcd.print("hello, world!");}   void loop() {// set the cursor…

          calendar

          16 Mar 2022 12:33 PM IST

            Read more

            Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter

            Objective:

            #define WINDOW_SIZE 5int INDEX = 0;int VALUE = 0;int IN_PIN= 7;int SUM = 0;int READINGS[WINDOW_SIZE];int AVERAGED = 0;   void setup() {pinMode(IN_PIN, INPUT);Serial.begin(9600);}   void loop() {SUM = SUM - READINGS[INDEX]; // Remove the oldest entry from the sumVALUE = analogRead(IN_PIN); // Read the next sensor…

            calendar

            14 Mar 2022 10:49 AM IST

              Read more

              Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory)

              Objective:

              #include <stdbool.h>#include <stdio.h>#include <stdlib.h> // Link list nodestruct Node{int data;struct Node* next;}; /* A utility function to insert anode at the beginning ofa linked list*/void push(struct Node** head_ref,int new_data); /* A utility function to check ifgiven data is present in a list…

              calendar

              04 Mar 2022 01:15 PM IST

                Read more
                Showing 1 of 6 projects