#OFFLINE BATCH 1. #include <stdio.h> typedef enum State{GR_DWN,CHK_BFR_TKFF,RSING_GR,GR_UP,CHK_BFR_LND,LWRNG_GR}State_Type;typedef enum Switch{Open,Close //plane is in ground}Switch_Status;typedef enum Pilot_Lever{Rising,Falling,UP,DOWN}Pilot_Lever_Status;typedef enum Hydraulic_Mechanism{Working,Malfunctioning}Hydraulic_Mechanism_Status;/*.....input…
Ashwin J
updated on 18 Aug 2022
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 Ashwin J (9)
Implementation of RTOS to control and Check the Temperature and Pressure using Binary Semaphore
AIM: To Calculate and Check the Pressure and Temperature in an Atmosphere using Temperature sensor, Pressure sensor and Arduino by using Binary Semaphore in FreeRTOS. Requirements: 1. Arduino Uno 2. Temperature Sensor 3. Pressure Sensor 4. Connecting wires 5. USB cable CODE: #include #include…
28 Sep 2022 03:35 PM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
#OFFLINE BATCH #include #include #define F_CPU 8000000#include #include #include #define LCD_data_dir DDRD //LCD data port direction#define LCD_cmd_dir DDRC //LCD command port direction register#define LCD_data_port PORTD //LCD data port#define LCD_cmd_port PORTC //LCD command port#define EN PC2 //enable signal pin#define…
22 Sep 2022 05:12 AM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
#OFFLINE BATCH #include <avr/io.h> //preprocessor directive#define F_CPU 16000000ul#include "avr/interrupt.h"//Preprocessor directive of an avr interrupt#include <util/delay.h>#define sw_dir (PIND&(1<<1))#define sw_spd (PIND&(1<<2))#define pw (PINC&(1<<3))#define…
21 Sep 2022 01:49 PM IST
Project 2 - V&V SW Analysis II
#OFFLINE BATCH
14 Sep 2022 01:24 PM IST
Project 1 - V&V SW Analysis - I
#OFFLINE BATCH if(owner long press the power button) { open the company logo at centre; } else if(customer press the power button) { open the apps in grid; } else if(owner power on the phone) { shows call the phone icon on first position at bottom;…
14 Sep 2022 11:04 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
#OFFLINE BATCH float microsecToinchs( float d);float avg;int i,sum;int duration,inches;float Duration_inch;int data[5];void setup(){ Serial.begin(9600); pinMode(7, INPUT);}void loop(){ float average = mov_avg(); Serial.println("distance value is"); Serial.println( inches); delay(1000);}void…
24 Aug 2022 05:17 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
#OFFLINE BATCH //MASTER #include<Wire.h>void setup(){ pinMode(A2, INPUT); Serial.begin(9600); Wire.begin(3); }void loop(){ float value=analogRead(A2); signed int voltage=(value*5)/1024; Wire.beginTransmission(1); Wire.write(voltage); Wire.endTransmission(); …
24 Aug 2022 05:04 AM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#OFFLINE BATCH 1. #include <stdio.h> typedef enum State{GR_DWN,CHK_BFR_TKFF,RSING_GR,GR_UP,CHK_BFR_LND,LWRNG_GR}State_Type;typedef enum Switch{Open,Close //plane is in ground}Switch_Status;typedef enum Pilot_Lever{Rising,Falling,UP,DOWN}Pilot_Lever_Status;typedef enum Hydraulic_Mechanism{Working,Malfunctioning}Hydraulic_Mechanism_Status;/*.....input…
18 Aug 2022 07:31 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
OFFLINE 1. #include<stdio.h>#include<stdlib.h>typedef struct node{ int data; struct node *next;}Node;static Node *head,*tail,*newnode,*head2,*f_union,*f_intersect,*head_union,*head_intersect;Node*insert_node(Node *head_ref,int n);void display_list(Node *head_ref);Node *find_intersect(Node *head_ptr,Node…
08 Aug 2022 04:37 AM IST