#include<stdio.h> #include"datas.h" // Function for Initiate the Process void Initiate_State_Machine() { current_state=GEAR_DOWN; printf("The FSM program for Flight Landing gear is Initialized and currently the program in light is : %s\n",State_Machine[current_state].current_state_indication);…
George Ansfer
updated on 07 Jul 2023
Project Details
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.
Other comments...
Read more Projects by George Ansfer (10)
Project 2 - V&V SW Analysis II
Faced lot of difficulties loading particular files in LDRA and as per mentors advice used the available file to do the test( not used the mentioned file in the projrct) and got the possible screenshots
05 Feb 2024 11:23 AM IST
Project 1 - V&V SW Analysis - I
Test Plan to test features of a new mobile phone US-1: When power button of the phone is long pressed Phone switch on …
24 Jan 2024 05:20 AM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
#define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <string.h> #include <stdlib.h> #define LCD_Data DDRD // Define LCD data port direction #define LCD_Comm DDRC // Define LCD command port direction register #define LCD_Data_Port…
18 Dec 2023 09:14 AM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
#include <avr/io.h> #define F_CPU 8000000L #include <avr/interrupt.h> #include <util/delay.h> unsigned int n,duty; #define rs_high() PORTA |=(1<<2); #define rs_low() PORTA &= ~(1<<2); #define en_high() PORTA |= (1<<3); #define en_low() PORTA &= ~(1<<3); …
28 Nov 2023 10:29 AM IST
Project 3 Build an object-oriented library in C++
#include using namespace std; int in=0; class Vehicle { protected: string make,model,veh_type; int year; long int odometer; public: Vehicle(string _make = "", string _model="",int _year=0, int _odo=0) { make = _make; model = _model; year = _year; odometer = _odo; } string getType() { return veh_type; } string getMake()…
16 Oct 2023 06:25 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
onst int digPin = 6; long dist,cm; int index = 0; int value = 0; int sum = 0; int read[5]; int average = 0; int buff=0; void setup() { Serial.begin(9600); } void loop() { int n; pinMode(digPin, OUTPUT); digitalWrite(digPin, LOW); delay(200); digitalWrite(digPin, HIGH); delay(200); digitalWrite(digPin,…
16 Oct 2023 05:46 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
// Master Arduino #include #include LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //Define LCD Module Pins (RS,EN,D4,D5,D6,D7) void setup() { lcd.begin(16,2); //Initilize LCD display lcd.setCursor(0,0); lcd.print("I2C MASTER ARDUINO"); delay(5000); //Delay for 5 seconds lcd.clear(); //Clears LCD display Serial.begin(9600); …
05 Oct 2023 10:04 AM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#include<stdio.h> #include"datas.h" // Function for Initiate the Process void Initiate_State_Machine() { current_state=GEAR_DOWN; printf("The FSM program for Flight Landing gear is Initialized and currently the program in light is : %s\n",State_Machine[current_state].current_state_indication);…
07 Jul 2023 07:29 AM IST
Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory) using Linked List
#include <stdio.h>#include <stdlib.h>#include <malloc.h>struct node{ int data; struct node* next;}; struct node*createlist(int n){ struct node *head=0,*newnode,*temp; int x,i; for(i=0;i<n;i++) { printf("\nEnter the data: "); fflush(stdout); scanf("%d",&x); newnode=(struct node*) malloc(sizeof(struct…
12 May 2023 06:20 AM IST
Project - Data Handling and Interpolation
clc;clear; dt=xlsread('D:\EV design\chall3\VI.xlsx'); %Saving the data from excel to a variable "dt"V=dt(:,1);I=dt(:,2); iv=-17.3:0.1:0.9; % Setting interpolation range ipl=interp1(V,I,iv); %Linear Interpolation (Default) figure(1)plot(V,I,'o',iv,ipl,'*');title('Linear Interpolation');file1 = fopen('linear_interpolation.txt','w');fprintf(file1,'%6s…
14 Sep 2022 04:14 PM IST