#include <avr/io.h> //used headre file for avr function#define F_CPU 16000000 //cpu cycle has been definer#include <util/delay.h> //include header file for delay function#include <stdlib.h> #define LCD_PORT PORTD //port d define as lcdport#define RS_HIGH PORTB |= (1<<0); //enable rs pin as high#define…
Ashish Pokhriyal
updated on 05 Feb 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 Ashish Pokhriyal (9)
Project 2 - V&V SW Analysis II
ans 1. Static code analysis is a process of finding the fatal run time errors without executing the code ,it is very essential in embedded software. In static code analysis we do manual review the code to find the bug. It is usually done on software which is properly compiled nad is independent of the computer used for…
18 Feb 2023 10:46 AM IST
Project 1 - V&V SW Analysis - I
/*As a Product owner,when long pressed the power button of the phone shall switch on with a company logo at the center of the screen.*/if(owner long press the power button) {open the company logo at centre; } /* As a Customer,when the power button…
13 Feb 2023 08:47 AM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
#include <avr/io.h> //used headre file for avr function#define F_CPU 16000000 //cpu cycle has been definer#include <util/delay.h> //include header file for delay function#include <stdlib.h> #define LCD_PORT PORTD //port d define as lcdport#define RS_HIGH PORTB |= (1<<0); //enable rs pin as high#define…
05 Feb 2023 06:33 PM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
#include <avr/io.h>// I/O registers of AVR#define F_CPU 16000000L // define the cpu frequency#include <avr/interrupt.h> // header file for intrupt#include <util/delay.h>// delay function purpose#define Pb_direction (PIND & (1<<1)) // #define Pb_speed (PIND & (1<<2)) // d2 pin is declared…
31 Jan 2023 04:53 PM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
const int sigPin = 7; // pin declared as sigpindouble pingTravelDistance;void setup() { Serial.begin(9600);// initialize serial monitor with baud rate}void loop() { pinMode(sigPin,OUTPUT);//declared as output for outburst the pulse //used digitalwrite to generate the high and short pulse digitalWrite(sigPin, LOW); delayMicroseconds(2);…
22 Jan 2023 06:17 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
//I2C MASTER CODE #include//Library for I2C Communication functions #include //Library for LCD display function LiquidCrystal lcd(2, 7, 8, 9, 10, 11); //Define LCD Module Pins (RS,EN,D4,D5,D6,D7) void setup() { lcd.begin(16,2); //Initilize LCD display lcd.setCursor(0,0);//Sets Cursor at first line of Display lcd.print("Master");//Print…
16 Jan 2023 12:04 PM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
//I2C MASTER CODE //I2C Communication between Two Arduino //Circuit Digest //Pramoth.T #include<Wire.h> //Library for I2C Communication functions #include<LiquidCrystal.h> //Library for LCD display function LiquidCrystal lcd(2, 7, 8, 9, 10, 11); //Define LCD Module Pins (RS,EN,D4,D5,D6,D7) void setup()…
16 Jan 2023 10:14 AM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#include// header file#includevoid gear_down();// void as no return type and no argumentsvoid check_before_takeoff();// function declarationvoid raising_gear();void gear_up();void check_before_landing();void lowering_gear();enum state_type{geardown,checkbeforetakeoff,raisinggear,gearup,checkbeforelanding,loweringgear};enum…
02 Jan 2023 09:52 AM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#include<stdio.h>// header file#include<string.h> void gear_down();// void as no return type and no argumentsvoid check_before_takeoff();void raising_gear();void gear_up();void check_before_landing();void lowering_gear(); typedef enum{geardown,checkbeforetakeoff,raisinggear,gearup,checkbeforelanding,loweringgear}state_type;…
02 Jan 2023 08:42 AM IST